/* ----- CSS Variables & Reset ----- */
:root {
    --primary: #9b5151; /* Elegant dark rose */
    --primary-light: #c07a7a;
    --secondary: #1a1a1a;
    --accent: #d4af37; /* Gold */
    --bg-color: #fbf9f6;
    --surface: #ffffff;
    --text-main: #2d2d2d;
    --text-muted: #757575;
    --border: #e8e8e8;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; }
em {
    font-style: italic;
    color: var(--primary);
}

/* ----- General Components ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ----- Animations ----- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icons button {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.nav-icons button:hover { color: var(--primary); transform: translateY(-2px); }

.badge {
    position: absolute;
    top: -8px; right: -8px;
    background-color: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    padding: 100px 5% 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 200px 200px 10px 10px;
    overflow: hidden;
    height: 70vh;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

.floating-badge {
    position: absolute;
    bottom: 10%; left: -30px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

.floating-badge i { color: var(--accent); font-size: 1.5rem; }
.floating-badge div { display: flex; flex-direction: column; }
.floating-badge strong { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1; }
.floating-badge span { font-size: 0.8rem; color: var(--text-muted); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 500px; height: 500px;
    background-color: #f7e6e6;
    top: -100px; right: -100px;
}

.shape-2 {
    width: 400px; height: 400px;
    background-color: #f2ebd9;
    bottom: 10%; left: -100px;
}

/* ----- Features Bar ----- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background-color: var(--background);
    padding: 5rem 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #fdfbf7);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), inset 0 2px 0 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(155, 81, 81, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: #9b5151;
    background: #fbf9f6;
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 20px rgba(155, 81, 81, 0.12);
    transition: transform 0.5s ease, background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.feature-item:hover i {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary);
    color: white;
}

.feature-item h3 { font-size: 1.25rem; font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.5rem; color: #1a1a1a; }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* ----- Categories ----- */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1440px; margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    flex: 1 1 400px;
    max-width: 550px;
    min-width: 300px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transform: translateZ(0);
}

.category-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card:hover::after {
    opacity: 0.95;
}

.category-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3rem 2rem 2rem;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.category-card:hover .category-info {
    transform: translateY(0);
}

.category-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem; margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.category-info span {
    font-size: 0.95rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 2px;
    display: flex; align-items: center; gap: 0.75rem;
    color: #dac153;
}

.category-info span i {
    transition: transform 0.3s ease;
}

.category-card:hover .category-info span i {
    transform: translateX(8px);
}

/* ----- Products ----- */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1440px; margin: 0 auto;
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-image {
        height: 250px;
    }
    .product-details {
        padding: 0.75rem;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .action-btn { width: 35px; height: 35px; }
}

.product-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-badges {
    position: absolute;
    top: 1rem; left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prod-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-new { background-color: var(--secondary); color: white; }
.badge-sale { background-color: #ef4444; color: white; }

.product-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.action-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-details {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* ----- Skeletons ----- */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.category-skeleton { height: 350px; border-radius: 12px; }
.product-skeleton { height: 460px; border-radius: 8px; }

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ----- Newsletter ----- */
.newsletter {
    background-color: var(--primary-light);
    color: white;
    text-align: center;
    padding: 5rem 5%;
}

.newsletter h2 { color: white; margin-bottom: 1rem; }

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

.newsletter-form {
    display: flex;
    margin-top: 2rem;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 1rem 2.5rem;
    background-color: var(--secondary);
}

.newsletter-form button::before { display: none; }
.newsletter-form button:hover { background-color: #000; }

/* ----- Footer ----- */
footer {
    background-color: #111;
    color: #fff;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1440px; margin: 0 auto 3rem;
}

.footer-col h3 { color: #fff; margin-bottom: 1.5rem; font-family: var(--font-body); font-size: 1.1rem; }
.footer-col p { color: #aaa; margin-bottom: 1.5rem; font-size: 0.95rem; }

.brand-col .logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.brand-col .logo span { color: var(--primary); }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a { color: #aaa; font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--primary-light); padding-left: 5px; }

.contact-col p { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contact-col i { color: var(--primary-light); margin-top: 4px; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    max-width: 1440px; margin: 0 auto;
}

.footer-bottom p { color: #777; font-size: 0.9rem; }
.payment-icons { display: flex; gap: 1rem; font-size: 1.5rem; color: #777; }

/* ----- Cart Sidebar ----- */
.cart-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

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

.cart-sidebar {
    position: absolute;
    top: 0; right: -450px;
    width: 100%; max-width: 450px;
    height: 100%;
    background: var(--surface);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-family: var(--font-body); font-size: 1.25rem; margin: 0; color: var(--secondary); }
.close-cart { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.close-cart:hover { color: var(--primary); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.empty-cart-msg { text-align: center; color: var(--text-muted); margin-top: 2rem; }

.cart-item { display: flex; gap: 1rem; }
.cart-item-img { width: 80px; height: 100px; border-radius: 4px; object-fit: cover; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--secondary); }
.cart-item-variant { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.cart-item-price { font-weight: 600; color: var(--primary); margin-bottom: auto; }
.cart-item-actions { display: flex; justify-content: space-between; align-items: center; }

.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.qty-control button { width: 28px; height: 28px; background: #fff; border: none; cursor: pointer; color: var(--text-muted); }
.qty-control button:hover { background: #f0f0f0; }
.qty-control span { width: 30px; text-align: center; font-size: 0.9rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 28px;}

.remove-item { background: none; border: none; color: #ef4444; font-size: 0.85rem; cursor: pointer; text-decoration: underline; }

.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); background: #fdfdfd; }

.coupon-area { margin-bottom: 1rem; }
.coupon-area .input-group { display: flex; gap: 0.5rem; }
.coupon-area input { flex: 1; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; outline: none; }
.coupon-area button { padding: 0 1.5rem; background: var(--secondary); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; }
.coupon-msg { font-size: 0.8rem; margin-top: 0.5rem; color: var(--primary); }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; color: var(--text-muted); }
.summary-row.total { font-weight: 700; color: var(--secondary); font-size: 1.1rem; border-top: 1px dashed var(--border); padding-top: 0.75rem; margin-bottom: 1.5rem; }
.discount-row { color: var(--primary); }

.checkout-btn { width: 100%; border-radius: 4px; padding: 1.2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
    .hero-content { margin: 0 auto; }
    .hero-content .description { margin: 0 auto 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        position: fixed; 
        top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); 
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center; align-items: center; 
        transition: left 0.4s ease; z-index: 999;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger { display: block; z-index: 1001; }
    
    h1 { font-size: 2.5rem; }
    .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .newsletter-form { flex-direction: column; border-radius: 8px; overflow: hidden; }
    .newsletter-form input, .newsletter-form button { border-radius: 0; width: 100%; }
}
