/* ====================
   CSS Reset & Variables
   ==================== */
:root {
    /* Color Palette */
    --clr-gold: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-gold-dark: #996515;
    --clr-beige: #F5F5DC;
    --clr-tan: #D2B48C;
    --clr-dark: #1A1A1A;
    --clr-dark-gray: #333333;
    --clr-light: #FAFAFA;
    --clr-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-light);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ====================
   Utility Classes
   ==================== */
.fw-light {
    font-weight: 300;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--clr-dark);
    color: var(--clr-gold-light);
    border: 1px solid var(--clr-dark);
}

.btn-primary:hover {
    background-color: var(--clr-gold);
    color: var(--clr-dark);
    border-color: var(--clr-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-dark);
    border: 1px solid var(--clr-dark);
}

.btn-outline:hover {
    background-color: var(--clr-dark);
    color: var(--clr-gold-light);
    transform: translateY(-2px);
}

/* ====================
   Navigation
   ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding var(--transition-fast);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.logo-subtext {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--clr-gold-dark);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold-dark);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn {
    position: relative;
    font-size: 1.5rem;
    color: var(--clr-dark);
    transition: color var(--transition-fast);
}

.cart-btn:hover {
    color: var(--clr-gold-dark);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--clr-gold);
    color: var(--clr-dark);
    font-size: 0.65rem;
    font-weight: 700;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-dark);
}

/* ====================
   Hero Section
   ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, var(--clr-beige), var(--clr-light), var(--clr-gold-light), #fff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.3) 0%, rgba(250, 250, 250, 0.9) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-gold-dark);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--transition-slow) forwards 0.3s;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--clr-dark);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--transition-slow) forwards 0.6s;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--clr-dark-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--transition-slow) forwards 0.9s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--transition-slow) forwards 1.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================
   Collection Section
   ==================== */
.collection {
    padding: 8rem 2rem;
    background-color: var(--clr-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--clr-gold-dark);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    group: product;
    cursor: pointer;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--clr-beige);
    margin-bottom: 1.5rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn {
    background-color: var(--clr-white);
    color: var(--clr-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background-color: var(--clr-gold);
    color: var(--clr-white);
}

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.product-price {
    font-size: 1rem;
    color: var(--clr-gold-dark);
    font-weight: 500;
}

/* ====================
   About Section
   ==================== */
.about {
    padding: 8rem 2rem;
    background-color: var(--clr-beige);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--clr-gold);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--clr-dark-gray);
    margin-bottom: 1.5rem;
}

/* ====================
   Cart Drawer
   ==================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(4px);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--clr-white);
    z-index: 1002;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    font-size: 1.5rem;
    color: var(--clr-dark-gray);
    transition: color var(--transition-fast);
}

.close-cart:hover {
    color: var(--clr-dark);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.empty-cart-message {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-dark-gray);
    gap: 1rem;
}

.empty-cart-message i {
    font-size: 4rem;
    color: var(--clr-tan);
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--clr-gold-dark);
    margin-bottom: auto;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.qty-btn:hover {
    background-color: var(--clr-beige);
}

.qty-value {
    width: 32px;
    text-align: center;
    font-size: 0.875rem;
}

.remove-item {
    color: var(--clr-dark-gray);
    font-size: 0.875rem;
    text-decoration: underline;
}

.cart-footer {
    padding: 2rem;
    background-color: var(--clr-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.cart-note {
    font-size: 0.75rem;
    color: var(--clr-dark-gray);
    text-align: center;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--clr-dark-gray);
}

/* ====================
   Footer
   ==================== */
footer {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 6rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--clr-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #A0A0A0;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--clr-gold);
    border-color: var(--clr-gold);
    color: var(--clr-dark);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--clr-gold-light);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #A0A0A0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-gold);
    padding-left: 5px;
}

.footer-contact p {
    color: #A0A0A0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--clr-gold);
    font-size: 1.25rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #A0A0A0;
    font-size: 0.875rem;
}

/* ====================
   Media Queries
   ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .products-grid {
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        /* In a real app, implement a true mobile menu */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem 1rem;
    }

    .product-actions {
        padding: 1rem;
        opacity: 1;
        /* Always show on mobile since there is no hover */
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    }

    .add-to-cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        margin: 0 auto;
        max-width: 100%;
    }

    .about-title {
        font-size: 2.25rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .cart-drawer {
        max-width: 100%;
    }
}