/* =====================
   RESET & BASE STYLES
   ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #B09E66;
    --red: #CB2125;
    --dark: #1a0808;
    --dark-brown: #2c1810;
    --cream: #f8f6f3;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --white: #ffffff;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */

.header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 48px;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
    margin: 0 auto;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    position: relative;
}

.icon-btn:hover {
    background: var(--cream);
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* =====================
   HERO SECTION
   ===================== */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream) 0%, #f5f1eb 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0.9;
}

.hero-text {
    max-width: 550px;
    padding: 80px 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* =====================
   BUTTONS
   ===================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* =====================
   FEATURES
   ===================== */

.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: var(--gold);
    transform: translateY(-4px);
}

.feature:hover .feature-icon svg path {
    stroke: var(--white);
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature p {
    color: var(--text-gray);
    font-size: 15px;
}

/* =====================
   PRODUCTS SECTION
   ===================== */

.products-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -1px;
}

.view-all {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    color: var(--red);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.sale {
    background: var(--red);
    left: 16px;
}

.product-badge.bestseller {
    background: var(--gold);
    left: 16px;
    top: 48px;
}

.product-badge.new {
    background: #10b981;
    left: 16px;
}

.product-badge.hot {
    background: #f59e0b;
    left: 16px;
}

.quick-add {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-add:hover {
    background: var(--gold);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.product-variant {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.price-original {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* =====================
   STORY BANNER
   ===================== */

.story-banner {
    padding: 120px 0;
    background: var(--dark);
    color: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.story-text h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.story-text p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.story-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* =====================
   CATEGORIES
   ===================== */

.categories {
    padding: 100px 0;
    background: var(--cream);
}

.categories .section-title {
    text-align: center;
    margin-bottom: 64px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* =====================
   TESTIMONIALS
   ===================== */

.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials .section-title {
    text-align: center;
    margin-bottom: 64px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-gray);
}

/* =====================
   NEWSLETTER
   ===================== */

.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.newsletter p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    outline: none;
}

.newsletter-form .btn {
    background: var(--dark);
}

.newsletter-form .btn:hover {
    background: var(--white);
    color: var(--dark);
}

/* =====================
   FOOTER
   ===================== */

.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-info svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.payment-methods img {
    height: 24px;
    width: auto;
}

/* =====================
   CART SIDEBAR
   ===================== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.close-cart {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    color: var(--text-gray);
}

.close-cart:hover {
    background: var(--cream);
    color: var(--dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.empty-cart {
    text-align: center;
    padding: 80px 32px;
}

.empty-cart svg {
    margin: 0 auto 24px;
    opacity: 0.3;
}

.empty-cart p {
    color: var(--text-gray);
    font-size: 16px;
}

.cart-footer {
    padding: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.total-amount {
    font-size: 28px;
    color: var(--dark);
}

.cart-footer .btn {
    margin-bottom: 12px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }

    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content {
        flex: 1;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 16px;
    }

    .price-current {
        font-size: 20px;
    }
}

/* =====================
   ANIMATIONS
   ===================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--white);
}
