/* ============== RESET & BASE ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #f1641e;
    --primary-dark: #d35400;
    --primary-light: #fef3ed;
    --accent: #7b2d8b;
    --dark: #222222;
    --gray-900: #2a2a2a;
    --gray-700: #595959;
    --gray-500: #757575;
    --gray-400: #a2a2a2;
    --gray-300: #d4d4d4;
    --gray-200: #e8e8e8;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --success: #2ecc40;
    --error: #e74c3c;
    --warning: #f39c12;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.15);
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============== HEADER (Etsy-style) ============== */
.header { background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; flex-shrink: 0; }
.logo-text { color: var(--primary); }
.logo-accent { color: var(--dark); }

/* Search bar - Etsy style centered */
.search-form { flex: 1; display: flex; align-items: center; max-width: 680px; position: relative; }
.search-form .search-category {
    padding: 11px 14px; border: 2px solid var(--gray-300); border-right: none;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl); font-size: 0.85rem;
    background: var(--white); color: var(--gray-700); appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 10px;
    padding-right: 30px; min-width: 120px;
}
.search-input {
    flex: 1; border: 2px solid var(--gray-300); border-left: none; border-right: none;
    padding: 11px 16px; font-size: 0.95rem; outline: none; background: var(--white);
    font-family: var(--font);
}
.search-input:focus { border-color: var(--primary); }
.search-input:focus ~ .search-btn { background: var(--primary-dark); }
.search-btn {
    background: var(--primary); color: var(--white); border: none;
    padding: 11px 20px; cursor: pointer; font-size: 1rem;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.7rem; color: var(--gray-700); transition: var(--transition); cursor: pointer; }
.header-icon i { font-size: 1.2rem; }
.header-icon:hover { color: var(--primary); }
.cart-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.7rem; color: var(--gray-700); transition: var(--transition); }
.cart-link i { font-size: 1.2rem; }
.cart-link:hover { color: var(--primary); }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--primary); color: var(--white); font-size: 0.6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-toggle { display: none; border: none; background: none; font-size: 1.3rem; cursor: pointer; padding: 8px; color: var(--dark); }

/* Category nav bar */
.header-nav { border-top: 1px solid var(--gray-200); }
.nav { display: flex; align-items: center; justify-content: center; gap: 0; height: 46px; overflow-x: auto; }
.nav-link { padding: 12px 20px; font-size: 0.85rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ============== HERO - Etsy style ============== */
.hero {
    background: linear-gradient(135deg, #fef3ed 0%, #fdf0e9 30%, #e8dff5 70%, #f0ebf8 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-content { flex: 1; max-width: 520px; }
.hero h1 {
    font-size: 3.2rem; font-weight: 800; line-height: 1.15;
    color: var(--dark); margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero h1 .hero-highlight { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--gray-700); margin-bottom: 28px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { flex: 1; max-width: 420px; position: relative; }
.hero-showcase {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
    height: 320px;
}
.hero-slider-box {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--white); box-shadow: var(--shadow-md);
    position: relative; transition: transform 0.3s, box-shadow 0.3s;
}
.hero-slider-box:first-child { grid-row: span 2; }
.hero-slider-box:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.hero-slider-label {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white); padding: 20px 12px 10px; font-size: 0.75rem;
    font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.hero-slider-track {
    position: absolute; inset: 0; display: flex;
}
.hero-slider-track img {
    min-width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-xl); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition);
    font-family: var(--font);
}
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-orange { background: var(--primary); color: var(--white); }
.btn-orange:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--dark); border: 1px solid var(--gray-300); }
.btn-white:hover { border-color: var(--dark); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #6a1f7a; }
.btn-outline { background: transparent; border: 2px solid var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-orange { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-orange:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--success); color: var(--white); }

/* ============== PROMO BANNER ============== */
.promo-banner {
    background: var(--primary); color: var(--white); text-align: center;
    padding: 10px 20px; font-size: 0.85rem; font-weight: 500;
}
.promo-banner a { text-decoration: underline; font-weight: 700; }

/* ============== SECTIONS ============== */
.section { padding: 56px 0; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.section-subtitle { color: var(--gray-500); margin-bottom: 28px; font-size: 0.95rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }

/* ============== CATEGORY CIRCLES (Etsy-style) ============== */
.category-scroll { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; padding: 16px 0; }
.category-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; transition: var(--transition); }
.category-circle:hover { transform: translateY(-4px); }
.category-circle .circle-img {
    width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
    background: var(--gray-100); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 3px solid transparent;
}
.category-circle:hover .circle-img { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.category-circle .circle-img i { font-size: 2rem; color: var(--primary); }
.category-circle .circle-img img { width: 100%; height: 100%; object-fit: cover; }
.category-circle span { font-size: 0.82rem; font-weight: 600; color: var(--dark); text-align: center; max-width: 100px; }

/* ============== PRODUCT GRID ============== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
/* Horizontal scroll row (Etsy-style) */
.scroll-row-wrapper {
    position: relative;
}
.scroll-row {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 8px; -ms-overflow-style: none; scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .product-card {
    width: 240px; min-width: 240px; max-width: 240px; flex-shrink: 0;
}
.scroll-row .product-image { aspect-ratio: 4/5; }
.scroll-row .product-name { font-size: 0.82rem; -webkit-line-clamp: 1; }
.scroll-row .price-current { font-size: 0.95rem; }
.scroll-row .product-info { padding: 10px 4px 6px; }
.scroll-row .product-rating, .scroll-row .product-shipping { display: none; }
.scroll-arrow {
    position: absolute; top: 50%; transform: translateY(-70%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--dark); color: var(--white); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; box-shadow: var(--shadow-lg);
    transition: var(--transition); opacity: 0.9;
}
.scroll-arrow:hover { opacity: 1; transform: translateY(-70%) scale(1.08); }
.scroll-left { left: -16px; }
.scroll-right { right: -16px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-image { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--gray-100); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-wishlist {
    position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; color: var(--gray-500);
    transition: var(--transition); backdrop-filter: blur(4px);
}
.product-wishlist:hover { color: var(--error); background: var(--white); box-shadow: var(--shadow); }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-sale { background: var(--error); color: var(--white); }
.badge-digital { background: var(--accent); color: var(--white); }
.badge-new { background: var(--success); color: var(--white); }
.badge-bestseller { background: var(--warning); color: var(--white); }
.product-info { padding: 12px 4px 8px; }
.product-shop { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 2px; }
.product-name { font-size: 0.88rem; font-weight: 500; color: var(--dark); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-category { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 6px; }
.product-price { display: flex; align-items: baseline; gap: 6px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.price-compare { font-size: 0.82rem; color: var(--gray-400); text-decoration: line-through; }
.price-discount { font-size: 0.75rem; font-weight: 600; color: var(--success); }
.product-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.product-rating i { font-size: 0.7rem; color: var(--warning); }
.product-rating span { font-size: 0.75rem; color: var(--gray-500); }
.product-shipping { font-size: 0.72rem; color: var(--success); font-weight: 500; margin-top: 4px; }
.product-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.product-tag { font-size: 0.68rem; padding: 3px 8px; background: var(--gray-100); border-radius: 20px; color: var(--gray-500); }

/* ============== COLLECTIONS BANNER ============== */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/3; background: var(--gray-100); cursor: pointer;
}
.collection-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.collection-slider {
    position: absolute; inset: 0; display: flex;
}
.collection-slider img {
    min-width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
    transition: transform 0.4s;
}
.collection-card:hover .collection-slider img { transform: scale(1.05); }
.collection-card .collection-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
    z-index: 1; color: var(--white);
}
.collection-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.collection-card p { font-size: 0.85rem; opacity: 0.9; }

/* ============== TRUST STRIP ============== */
.trust-strip {
    display: flex; justify-content: center; gap: 48px; padding: 40px 0;
    border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .trust-icon {
    width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary);
}
.trust-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.trust-item p { font-size: 0.75rem; color: var(--gray-500); }

/* ============== NEWSLETTER ============== */
.newsletter {
    background: linear-gradient(135deg, #fef3ed, #f0ebf8);
    padding: 56px 0; text-align: center;
}
.newsletter h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.newsletter p { color: var(--gray-700); margin-bottom: 24px; }
.newsletter-form {
    display: flex; max-width: 460px; margin: 0 auto;
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.newsletter-form input {
    flex: 1; border: none; padding: 14px 20px; font-size: 0.95rem;
    outline: none; font-family: var(--font);
}
.newsletter-form button {
    background: var(--dark); color: var(--white); border: none;
    padding: 14px 28px; font-weight: 600; cursor: pointer; font-family: var(--font);
    transition: var(--transition);
}
.newsletter-form button:hover { background: #000; }

/* ============== PRODUCT DETAIL ============== */
.product-detail { padding: 32px 0 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery { position: relative; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 1.7rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.detail-price { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.detail-price .price-compare { font-size: 1rem; margin-left: 8px; }
.detail-description { color: var(--gray-700); margin-bottom: 24px; line-height: 1.7; font-size: 0.95rem; }
.detail-options { margin-bottom: 24px; }
.option-group { margin-bottom: 16px; }
.option-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; display: block; color: var(--dark); }
.option-values { display: flex; gap: 8px; flex-wrap: wrap; }
.option-btn {
    padding: 10px 20px; border: 2px solid var(--gray-300); border-radius: var(--radius-xl);
    cursor: pointer; font-size: 0.85rem; background: var(--white); transition: var(--transition);
    font-family: var(--font); font-weight: 500;
}
.option-btn:hover { border-color: var(--dark); }
.option-btn.selected { border-color: var(--dark); background: var(--dark); color: var(--white); }
.quantity-group { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.qty-btn {
    width: 40px; height: 40px; border: 1px solid var(--gray-300); border-radius: 50%;
    background: var(--white); cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.qty-btn:hover { border-color: var(--dark); }
.qty-input { width: 56px; height: 40px; text-align: center; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 0.95rem; font-family: var(--font); }
.detail-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.detail-meta p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 4px; }

/* ============== CART ============== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 14px 12px; border-bottom: 2px solid var(--gray-200); font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.cart-table td { padding: 20px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); }
.cart-product-name { font-weight: 600; font-size: 0.95rem; }
.cart-product-meta { font-size: 0.8rem; color: var(--gray-500); }
.cart-summary { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; margin-top: 24px; max-width: 400px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; }
.cart-summary-total { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--gray-300); padding-top: 14px; margin-top: 8px; }

/* ============== CHECKOUT ============== */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--dark); }
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 0.95rem; font-family: var(--font);
    transition: var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}

/* ============== ORDER CONFIRMATION ============== */
.order-success { text-align: center; padding: 60px 20px; }
.order-success i { font-size: 4rem; color: var(--success); margin-bottom: 16px; }
.order-success h1 { font-size: 2rem; margin-bottom: 8px; }
.download-links { margin: 32px auto; max-width: 500px; }
.download-link { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 8px; }

/* ============== BLOG ============== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); background: var(--white); }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 6px; }
.blog-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.blog-card p { font-size: 0.88rem; color: var(--gray-700); line-height: 1.5; }
.blog-content { max-width: 780px; margin: 0 auto; padding: 40px 20px; }
.blog-content h1 { font-size: 2.2rem; margin-bottom: 12px; line-height: 1.3; }
.blog-content .blog-meta { color: var(--gray-500); margin-bottom: 32px; }
.blog-content .content { line-height: 1.85; font-size: 1.05rem; }
.blog-content .content h2 { margin-top: 36px; margin-bottom: 14px; }
.blog-content .content p { margin-bottom: 18px; }
.blog-content .content img { border-radius: var(--radius-lg); margin: 28px 0; }

/* ============== FILTERS ============== */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.filter-select {
    padding: 9px 34px 9px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-xl);
    font-size: 0.85rem; background: var(--white); font-family: var(--font); cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 10px;
    transition: var(--transition);
}
.filter-select:hover { border-color: var(--dark); }

/* ============== PAGINATION ============== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.pagination a, .pagination span { padding: 10px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-xl); font-size: 0.85rem; transition: var(--transition); font-weight: 500; }
.pagination a:hover { border-color: var(--dark); background: var(--gray-50); }
.pagination .active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ============== FLASH MESSAGES ============== */
.flash-messages { padding: 0 20px; }
.flash { max-width: 1200px; margin: 12px auto; padding: 14px 20px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============== ABOUT & CONTACT ============== */
.page-header { background: linear-gradient(135deg, #fef3ed, #f0ebf8); padding: 56px 0; text-align: center; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 8px; font-weight: 700; }
.page-header p { color: var(--gray-500); font-size: 1.05rem; }
.page-content { max-width: 800px; margin: 0 auto; padding: 48px 20px; line-height: 1.85; font-size: 1.02rem; }

/* ============== EMPTY STATE ============== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 3.5rem; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h2 { margin-bottom: 8px; font-weight: 600; }
.empty-state p { color: var(--gray-500); margin-bottom: 24px; }

/* ============== FOOTER ============== */
.footer { background: var(--gray-50); color: var(--gray-700); padding: 56px 0 24px; margin-top: 0; border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-title { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.footer-heading { color: var(--dark); font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--gray-500); font-size: 0.88rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 0.88rem; color: var(--gray-500); }
.footer-text { font-size: 0.9rem; line-height: 1.7; color: var(--gray-500); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-700); transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: var(--gray-400); }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.footer-payments i { font-size: 1.5rem; color: var(--gray-400); }

/* ============== ADMIN ============== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--dark); color: var(--white); padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { padding: 0 20px; margin-bottom: 30px; display: block; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--gray-300); font-size: 0.9rem; transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-nav a i { width: 20px; text-align: center; }
.admin-main { flex: 1; margin-left: 250px; padding: 30px; background: var(--gray-100); min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.stat-card h3 { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--dark); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px; font-size: 0.78rem; color: var(--gray-500); text-transform: uppercase; border-bottom: 2px solid var(--gray-100); letter-spacing: 0.5px; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.admin-table tr:hover { background: var(--gray-50); }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.status-paid { background: #ecfdf5; color: #065f46; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-processing { background: #eff6ff; color: #1e40af; }
.status-shipped { background: #f0f9ff; color: #075985; }
.status-delivered { background: #ecfdf5; color: #065f46; }
.status-cancelled { background: #fef2f2; color: #991b1b; }

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

/* Tablet landscape */
@media (max-width: 1024px) {
    .search-form { max-width: 400px; }
    .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-showcase { height: 280px; }
    .scroll-row .product-card { width: 200px; min-width: 200px; max-width: 200px; }
}

/* Tablet / small screens */
@media (max-width: 768px) {
    .header-top { gap: 8px; }
    .search-form .search-category { display: none; }
    .search-input { border-radius: var(--radius-xl) 0 0 var(--radius-xl); border-left: 2px solid var(--gray-300); font-size: 0.85rem; padding: 10px 12px; }
    .header-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .header-nav::-webkit-scrollbar { display: none; }
    .nav { justify-content: flex-start; gap: 0; }
    .nav-link { padding: 12px 14px; font-size: 0.8rem; }
    .mobile-toggle { display: block; }
    .header-icon span { display: none; }
    .header-actions { gap: 14px; }
    .cart-link span { display: none; }

    /* Hero */
    .hero { padding: 28px 0; }
    .hero-inner { flex-direction: column; text-align: center; gap: 24px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 16px; }
    .hero-image { max-width: 100%; }
    .hero-showcase { height: 200px; gap: 8px; }
    .hero-actions { justify-content: center; }
    .hero-actions .btn { padding: 12px 24px; font-size: 0.85rem; }

    /* Categories - horizontal scroll on mobile */
    .category-scroll { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; gap: 16px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .category-scroll::-webkit-scrollbar { display: none; }
    .category-circle { flex-shrink: 0; }
    .category-circle .circle-img { width: 64px; height: 64px; }
    .category-circle span { font-size: 0.7rem; max-width: 70px; }

    /* Collections */
    .collections-grid { grid-template-columns: 1fr; gap: 12px; }
    .collection-card { aspect-ratio: 16/9; }

    /* Products */
    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Scroll rows */
    .scroll-row .product-card { width: 155px; min-width: 155px; max-width: 155px; }
    .scroll-row .product-image { aspect-ratio: 1; }
    .scroll-arrow { width: 36px; height: 36px; font-size: 0.8rem; }
    .scroll-left { left: -8px; }
    .scroll-right { right: -8px; }

    /* Gallery thumbs */
    .gallery-thumbs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .gallery-thumb { width: 60px; height: 60px; flex-shrink: 0; }

    /* Size buttons */
    .option-btn { padding: 8px 14px; font-size: 0.8rem; }

    /* Checkout */
    .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
    .cart-summary { max-width: 100%; position: static; }

    /* Trust strip */
    .trust-strip { gap: 16px; padding: 24px 12px; flex-wrap: wrap; justify-content: center; }
    .trust-item { flex: 0 0 calc(50% - 12px); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Cart table */
    .cart-table { font-size: 0.82rem; }
    .cart-table th { font-size: 0.7rem; padding: 8px 6px; }
    .cart-table td { padding: 12px 6px; }
    .cart-product img { width: 56px; height: 56px; }
    .cart-product { gap: 10px; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }

    /* Newsletter */
    .newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .newsletter-form input { border-radius: var(--radius) var(--radius) 0 0; }
    .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); }

    /* Admin */
    .admin-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 1000; transition: left 0.3s ease; display: block; }
    .admin-sidebar.open { left: 0; }
    .admin-main { margin-left: 0; padding: 60px 16px 16px; }

    /* Page content */
    .page-content { padding: 32px 16px; }
    .page-header { padding: 32px 0; }
    .page-header h1 { font-size: 1.6rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding: 20px 0; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.88rem; }
    .hero-showcase { height: 160px; gap: 6px; }
    .hero-slider-label { font-size: 0.65rem; padding: 14px 8px 8px; }
    .hero-actions .btn { padding: 10px 18px; font-size: 0.8rem; }

    .section { padding: 28px 0; }
    .section-title { font-size: 1.2rem; }
    .section-subtitle { font-size: 0.82rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .product-info { padding: 6px 2px; }
    .product-name { font-size: 0.75rem; }
    .price-current { font-size: 0.88rem; }
    .product-badge { font-size: 0.6rem; padding: 3px 6px; }

    .scroll-row .product-card { width: 140px; min-width: 140px; max-width: 140px; }
    .scroll-row .product-name { font-size: 0.7rem; }

    .category-circle .circle-img { width: 56px; height: 56px; }
    .category-circle .circle-img i { font-size: 1.4rem; }
    .category-circle span { font-size: 0.65rem; }

    .trust-strip { flex-direction: column; gap: 12px; align-items: center; }
    .trust-item { flex: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer { padding: 32px 0 16px; }

    .detail-info h1 { font-size: 1.3rem; }
    .detail-price { font-size: 1.3rem; }
    .option-btn { padding: 7px 11px; font-size: 0.75rem; }
    .qty-btn { width: 34px; height: 34px; }

    .promo-banner { font-size: 0.75rem; padding: 8px 12px; }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero h1 { font-size: 1.3rem; }
    .hero-showcase { height: 140px; }
    .product-name { font-size: 0.7rem; }
    .price-current { font-size: 0.82rem; }
    .scroll-row .product-card { width: 120px; min-width: 120px; max-width: 120px; }
    .category-circle .circle-img { width: 48px; height: 48px; }
}


/* ===== Nav Categories dropdown (menu is position:fixed because .nav has overflow-x:auto) ===== */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-dropdown-toggle .nav-caret { font-size: 0.7rem; transition: transform 0.2s ease; }
.nav-dropdown-toggle[aria-expanded="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: fixed; z-index: 1200;
    background: #fff; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    padding: 8px; margin: 0;
    display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 2px;
    max-height: min(70vh, 520px); overflow-y: auto;
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    font-size: 0.85rem; color: var(--gray-700, #374151); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-dropdown-menu a:hover { background: var(--gray-50, #f9fafb); color: var(--primary); }
.nav-dropdown-menu a.active { color: var(--primary); font-weight: 600; }
.nav-dropdown-menu a i { width: 18px; text-align: center; color: var(--primary); flex-shrink: 0; }
.nav-dropdown-menu a span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
    .nav-dropdown-menu { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
    .nav-dropdown-menu { grid-template-columns: 1fr; max-height: 60vh; }
}
