/* ============================================================
   SHANTHI GOLD COVERING - Main Theme Stylesheet
   Imitation Jewelry E-Commerce
   Mobile-First | CSS Variables | Animations
   ============================================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----- CSS Variables (Design Tokens) ----- */
:root {
    /* Primary Colors */
    --primary: #097969;
    --primary-dark: #065a4d;
    --primary-light: #0b8f7a;

    /* Accent */
    --accent: #D4AF37;
    --accent-light: #e0c35a;
    --accent-dark: #b8962e;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F0F0F0;
    --medium-gray: #999999;
    --dark-gray: #555555;
    --charcoal: #222222;
    --black: #111111;

    /* Functional */
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--off-white);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--accent);
}

ul, ol {
    list-style: none;
}

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

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-top: -0.75rem;
    margin-bottom: var(--space-xl);
}

/* ----- Page Loader Animation ----- */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loader-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    white-space: nowrap;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ----- Header / Navigation ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.6rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Desktop Navigation */
.nav-menu {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-base);
}

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

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

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

/* Header Actions (Cart, Hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Cart Icon */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--charcoal);
    font-size: 1.3rem;
    transition: color var(--transition-base);
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.cart-count.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ----- Hamburger Menu (Pure CSS Icon) ----- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition-base);
    position: absolute;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger-line:nth-child(2) {
    transform: translateY(0);
}

.hamburger-line:nth-child(3) {
    transform: translateY(6px);
}

/* Hamburger morphs to X when active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ----- Mobile Slide-Out Nav ----- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1060;
    padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-md) var(--space-sm);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--charcoal);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--off-white);
    color: var(--primary);
    padding-left: var(--space-md);
}

/* ----- Hero Section ----- */
.hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--space-3xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent);
    color: var(--charcoal);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

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

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* ----- Categories Section ----- */
.categories-section {
    padding: var(--space-3xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    border: 1px solid var(--light-gray);
}

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

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.category-card span {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* ----- Featured Products Section ----- */
.featured-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--light-gray);
    position: relative;
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--off-white);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--accent);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-badge.sale {
    background: var(--error);
    color: var(--white);
}

.product-card-body {
    padding: var(--space-md);
}

.product-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--medium-gray);
    margin-bottom: var(--space-xs);
}

.product-card-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

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

.old-price {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ----- Features Section ----- */
.features-section {
    padding: var(--space-3xl) 0;
    background: var(--off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* ----- Newsletter Section ----- */
.newsletter-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.newsletter-content p {
    opacity: 0.85;
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form .btn {
    flex-shrink: 0;
}

/* ----- Footer ----- */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
}

.footer-contact .icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--accent);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    font-size: 0.8rem;
}

/* ----- Shop / Catalog Page ----- */
.page-hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.page-hero p {
    opacity: 0.85;
    font-size: 0.9rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.filter-sidebar h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--light-gray);
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition-base);
}

.filter-group label:hover {
    color: var(--primary);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.shop-header p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--white);
}

/* ----- Product Detail Page ----- */
.product-detail {
    margin-top: var(--header-height);
    padding: var(--space-xl) 0;
}

.product-gallery {
    margin-bottom: var(--space-xl);
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--off-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
    border: 1px solid var(--light-gray);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: var(--space-sm);
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--light-gray);
    transition: all var(--transition-base);
}

.thumb.active,
.thumb:hover {
    border-color: var(--accent);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.product-meta {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: var(--space-lg);
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.product-info .price .old-price {
    font-size: 1rem;
    color: var(--medium-gray);
    text-decoration: line-through;
    margin-left: var(--space-sm);
    font-weight: 400;
}

.product-description {
    margin-bottom: var(--space-lg);
}

.product-description h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.product-description p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.product-details-table {
    width: 100%;
    margin-bottom: var(--space-lg);
}

.product-details-table td {
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--light-gray);
}

.product-details-table td:first-child {
    font-weight: 600;
    color: var(--charcoal);
    width: 120px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--off-white);
    border-color: var(--primary);
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
}

/* ----- Cart Page ----- */
.cart-page {
    margin-top: var(--header-height);
    padding: var(--space-xl) 0;
    min-height: 60vh;
}

.cart-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.cart-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.cart-empty h2 {
    margin-bottom: var(--space-md);
}

.cart-empty p {
    color: var(--dark-gray);
    margin-bottom: var(--space-xl);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--off-white);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.cart-item-info .item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.cart-item-actions {
    text-align: right;
}

.cart-item-actions .quantity-selector {
    margin-bottom: var(--space-sm);
    justify-content: flex-end;
}

.remove-item {
    background: none;
    border: none;
    color: var(--error);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity var(--transition-base);
}

.remove-item:hover {
    opacity: 0.7;
}

.cart-summary {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    margin-top: var(--space-xl);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
}

.cart-summary-row.total {
    border-top: 2px solid var(--charcoal);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ----- Checkout Page ----- */
.checkout-page {
    margin-top: var(--header-height);
    padding: var(--space-xl) 0;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.form-section {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.form-section h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 121, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ----- Toast Notification ----- */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--charcoal);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success { background: var(--primary); }
.toast.error { background: var(--error); }
.toast.warning { background: var(--warning); color: var(--charcoal); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ----- Responsive: Tablet (min-width: 768px) ----- */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .container {
        padding: 0 var(--space-xl);
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .checkout-form {
        grid-template-columns: 2fr 1fr;
    }

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .shop-layout {
        grid-template-columns: 250px 1fr;
    }
}

/* ----- Responsive: Desktop (min-width: 1024px) ----- */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ----- Utility Classes ----- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* Fade-in animation (Intersection Observer) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
