/* ==================== CSS VARIABLES ==================== */
:root {
    --primary-gold: #D4AF37;
    --dark-bg: #0F0F0F;
    --light-bg: #F8F6F1;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --border-color: #E8E8E8;
    --accent-dark: #1A1A1A;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease-out;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* ==================== NAVBAR STYLES ==================== */
#mainNavbar {
    background-color: transparent;
    backdrop-filter: none;
    padding: 1.5rem 0;
    transition: all var(--transition-smooth);
    z-index: 1000;
    border-bottom: none;
}

#mainNavbar.scrolled {
    background-color: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.brand-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

#mainNavbar.scrolled .brand-logo-img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 1.2rem;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width var(--transition-fast);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    width: 200px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-btn {
    background: none;
    color: var(--text-light);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: -2.5rem;
}

.icon-btn {
    background: none;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
}

.icon-btn:hover {
    color: var(--primary-gold);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* ==================== OFFCANVAS CART ==================== */
.offcanvas {
    background-color: var(--light-bg);
    width: 380px !important;
}

.offcanvas-header {
    background-color: var(--accent-dark);
    color: var(--text-light);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
}

.offcanvas-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.offcanvas-body {
    padding: 2rem;
}

.cart-items-list {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cart-item-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 2px;
}

.cart-item-qty-btn:hover {
    background-color: #f0f0f0;
}

.cart-summary {
    font-size: 0.95rem;
}

.btn-gold {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-gold:hover {
    background-color: #E5C158;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    background: transparent;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.btn-explore {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    border: 2px solid var(--primary-gold);
}

.btn-explore:hover {
    background-color: transparent;
    color: var(--text-light);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==================== FEATURED CATEGORIES ==================== */
.featured-categories {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transition: transform var(--transition-smooth);
}

.category-card:hover {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity var(--transition-smooth);
}

.category-card:hover .category-overlay {
    opacity: 0.8;
}

.category-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    padding: 2rem;
    transition: transform var(--transition-smooth);
}

.category-card:hover .category-content {
    transform: translateY(-10px);
}

.category-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-content p {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.product-card {
    transition: all var(--transition-smooth);
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image,
.product-image-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-smooth);
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

/* Product Badges */
.badge-new,
.badge-limited {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 3;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

.badge-limited {
    background-color: #E74C3C;
    color: white;
}

/* Product Quick Actions */
.product-quick-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    gap: 0.8rem;
    opacity: 0;
    transition: all var(--transition-smooth);
    z-index: 4;
}

.product-card:hover .product-quick-actions {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.quick-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--text-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    border: 2px solid var(--text-light);
}

.quick-btn:hover {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
    transform: scale(1.1);
}

.wishlist-btn:hover {
    color: #E74C3C;
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.8rem;
}

.product-rating {
    font-size: 0.9rem;
    color: #FFB800;
}

.product-rating i {
    margin-right: 0.2rem;
}

.product-rating span {
    color: #888;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* ==================== PROMO BANNER ==================== */
.promo-banner {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0;
}

.promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.promo-text {
    animation: slideInLeft 0.8s ease-out;
}

.promo-image {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.promo-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.promo-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-weight: 300;
}

.promo-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.testimonials-carousel {
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-card.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background-color: white;
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #E8E8E8;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-stars {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #FFB800;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 300;
}

.testimonial-author h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.testimonial-author p {
    font-size: 0.85rem;
    color: #888;
}

.testimonial-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.testimonial-prev,
.testimonial-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

/* ==================== NEWSLETTER ==================== */
.newsletter {
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    color: var(--text-light);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    position: relative;
    border-bottom: 2px solid var(--primary-gold);
    transition: all var(--transition-fast);
}

.newsletter-input-group:focus-within {
    border-bottom-color: #E5C158;
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-submit {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 1rem;
    transition: color var(--transition-fast);
}

.newsletter-submit:hover {
    color: #E5C158;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .promo-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #mainNavbar {
        padding: 1rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .brand-logo-img {
        max-height: 40px;
    }

    #mainNavbar.scrolled .brand-logo-img {
        max-height: 35px;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .navbar-actions {
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    .search-input {
        width: 150px;
    }

    .hero {
        height: 70vh;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .promo-title {
        font-size: 2rem;
    }

    .promo-subtitle {
        font-size: 0.95rem;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .newsletter-title {
        font-size: 1.8rem;
    }

    .footer-title {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 60vh;
        margin-top: 50px;
    }

    .brand-logo-img {
        max-height: 35px;
    }

    #mainNavbar.scrolled .brand-logo-img {
        max-height: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-explore {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-card {
        height: 300px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .promo-text {
        padding: 0;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-subtitle {
        font-size: 0.9rem;
    }

    .testimonial-content {
        padding: 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
    }

    .footer {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
}

/* ==================== ANIMATIONS & TRANSITIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Smooth scrolling utility */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Loading state */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
