/* ====================================
   Pygma Store - Base CSS
   Shared layout, structure, and components.
   Theme CSS files override CSS variables only.
   ==================================== */

:root {
    --color-bg: #ffffff;
    --color-surface: #f8f9fa;
    --color-primary: #4A90D9;
    --color-primary-dark: #357ABD;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-muted: #999999;
    --color-border: #e0e0e0;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: var(--font-family);
    --border-radius: 10px;
    --header-bg: #ffffff;
    --header-text: #333333;
    --footer-bg: #222222;
    --footer-text: #cccccc;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body { font-family: var(--font-family); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; }

/* Header */
.store-header { background: var(--header-bg); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 70px; gap: 20px; }
.store-logo { display: flex; align-items: center; }
.store-logo img { height: 40px; }
.logo-text { font-size: 1.4rem; font-weight: 700; font-family: var(--font-heading); color: var(--header-text); }
.store-nav { display: flex; gap: 5px; flex: 1; justify-content: center; align-items: center; flex-wrap: nowrap; }
.store-nav a { padding: 8px 16px; color: var(--header-text); font-weight: 500; border-radius: var(--border-radius); transition: 0.3s; white-space: nowrap; flex-shrink: 0; }
.store-nav a:hover { background: var(--color-surface); color: var(--color-primary); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown .dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--header-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); width: 520px; box-shadow: var(--card-shadow); z-index: 50; padding: 14px; }
.nav-dropdown.open .dropdown-content { display: block; }
.dropdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; }
.dropdown-grid a { display: block; padding: 8px 12px; font-size: 0.85rem; border-radius: 6px; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.2s, color 0.2s; }
.dropdown-grid a:hover { background: var(--color-surface); color: var(--color-primary); }

/* ====== MEGA MENU ====== */
.mega-trigger-btn { cursor: pointer; display: inline-flex !important; align-items: center; gap: 6px; }
.mega-trigger-btn .fa-bars { font-size: 0.85rem; }
.mega-arrow { font-size: 0.65rem; transition: transform 0.3s; }
.mega-open .mega-arrow { transform: rotate(180deg); }
.mega-cat-item:hover { background: #fff !important; color: var(--color-primary) !important; border-left-color: var(--color-primary) !important; }
.dropdown-pagination { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--color-border); margin-top: 10px; padding-top: 10px; }
.dropdown-nav-btn { background: none; border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.dropdown-nav-btn:hover:not(:disabled) { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.dropdown-nav-btn:disabled { opacity: 0.3; cursor: default; }
.dropdown-page-info { font-size: 0.8rem; color: var(--color-muted); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-form { display: flex; border: 1px solid var(--color-border); border-radius: var(--border-radius); overflow: hidden; }
.search-form input { border: none; padding: 8px 14px; width: 160px; font-size: 0.9rem; outline: none; background: transparent; color: var(--color-text); }
.search-form button { border: none; background: var(--color-primary); color: white; padding: 8px 12px; cursor: pointer; }
.cart-icon { position: relative; color: var(--header-text); font-size: 1.2rem; padding: 8px; }
.cart-badge { position: absolute; top: 0; right: -2px; background: var(--color-danger); color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.3rem; color: var(--header-text); cursor: pointer; }

/* Main */
.store-main { min-height: 60vh; }
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title { font-size: 1.8rem; font-family: var(--font-heading); margin-bottom: 30px; text-align: center; color: var(--color-text); }

/* Hero Slider */
.hero-slider { position: relative; height: 450px; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.6s; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.slide-content { position: relative; text-align: center; color: white; max-width: 600px; padding: 20px; }
.slide-content h1 { font-size: 2.5rem; font-family: var(--font-heading); margin-bottom: 10px; }
.slide-content p { font-size: 1.1rem; margin-bottom: 20px; }
.btn-hero { display: inline-block; padding: 14px 35px; background: var(--color-primary); color: white; border-radius: var(--border-radius); font-weight: 600; font-size: 1rem; transition: 0.3s; }
.btn-hero:hover { background: var(--color-primary-dark); transform: translateY(-2px); color: white; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; font-size: 1.5rem; padding: 12px 16px; cursor: pointer; z-index: 10; border-radius: 50%; backdrop-filter: blur(4px); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.dot.active { background: white; transform: scale(1.2); }

.hero-simple { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; text-align: center; padding: 100px 20px; }
.hero-simple h1 { font-size: 3rem; font-family: var(--font-heading); margin-bottom: 10px; }
.hero-simple p { font-size: 1.2rem; margin-bottom: 25px; opacity: 0.9; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; background: var(--color-surface); border-radius: var(--border-radius); transition: 0.3s; text-align: center; color: var(--color-text); font-weight: 500; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); color: var(--color-primary); }
.category-card i { font-size: 1.5rem; color: var(--color-primary); }

/* Product Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.product-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); overflow: hidden; transition: all 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.product-image { display: block; position: relative; height: 200px; overflow: hidden; background: var(--color-surface); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-placeholder, .product-placeholder-large { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--color-muted); font-size: 2.5rem; background: var(--color-surface); }
.product-placeholder-large { height: 400px; font-size: 4rem; border-radius: var(--border-radius); }
.product-main-image { width: 100%; height: 400px; object-fit: cover; border-radius: var(--border-radius); display: block; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 5px; }
.product-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid var(--color-border); cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.product-thumb:hover, .product-thumb.active { border-color: var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.product-placeholder-sm { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--color-surface); border-radius: 8px; color: var(--color-muted); }
.badge-featured { position: absolute; top: 10px; left: 10px; background: var(--color-primary); color: white; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.product-info { padding: 16px; }
.product-info h3 { font-size: 1rem; margin-bottom: 4px; }
.product-info h3 a { color: var(--color-text); }
.product-info h3 a:hover { color: var(--color-primary); }
.product-category { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 10px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); }
.btn-add-cart { background: var(--color-primary); color: white; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.btn-add-cart:hover { background: var(--color-primary-dark); transform: scale(1.05); }
.out-of-stock { font-size: 0.8rem; color: var(--color-danger); font-weight: 600; }
.btn-secondary { display: inline-block; padding: 12px 30px; border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: var(--border-radius); font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { background: var(--color-primary); color: white; }

/* Products Page Layout */
.products-page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.shop-sidebar { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 20px; height: fit-content; position: sticky; top: 90px; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sidebar-header h3 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.clear-filters { font-size: 0.8rem; color: var(--color-danger); }
.clear-filters:hover { text-decoration: underline; }

/* Filter Sections */
.filter-section { border-top: 1px solid var(--color-border); padding-top: 15px; margin-top: 15px; }
.filter-title { font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; user-select: none; color: var(--color-text); }
.filter-title i { font-size: 0.7rem; transition: transform 0.2s; color: var(--color-muted); }
.filter-section.collapsed .filter-title i { transform: rotate(-90deg); }
.filter-section.collapsed > :not(.filter-title) { display: none; }
.shop-sidebar h3 { font-size: 1.1rem; margin-bottom: 15px; }
.category-list { list-style: none; }
.category-list li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 6px; color: var(--color-text-light); font-size: 0.9rem; transition: 0.2s; }
.category-list li a:hover, .category-list li a.active { background: var(--color-surface); color: var(--color-primary); font-weight: 600; }
.filter-count { font-size: 0.8rem; background: var(--color-surface); padding: 1px 8px; border-radius: 10px; color: var(--color-muted); }

/* Price Range Slider */
.price-filter-form { padding: 0 4px; }
.price-range-display { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--color-text); margin-bottom: 8px; }
.dual-range { position: relative; height: 30px; margin-bottom: 10px; }
.dual-range input[type="range"] { position: absolute; width: 100%; top: 0; height: 30px; margin: 0; padding: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.dual-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--color-border); border-radius: 2px; }
.dual-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.2); cursor: pointer; margin-top: -7px; pointer-events: auto; }
.dual-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.2); cursor: pointer; pointer-events: auto; }
.dual-range input[type="range"]::-moz-range-track { height: 4px; background: var(--color-border); border-radius: 2px; }
.btn-apply-filter { width: 100%; padding: 8px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-apply-filter:hover { background: var(--color-primary-dark); }

/* Stock Checkbox */
.filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; padding: 4px 0; }
.filter-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; }

/* Active Filter Tags */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; font-size: 0.8rem; color: var(--color-text); transition: 0.2s; }
.filter-tag:hover { border-color: var(--color-danger); color: var(--color-danger); }
.filter-tag i { font-size: 0.65rem; }

/* Mobile Filter Button */
.mobile-filter-btn { display: none; width: 100%; padding: 12px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: center; margin-bottom: 15px; color: var(--color-text); }
.mobile-filter-btn .filter-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--color-primary); color: white; border-radius: 50%; font-size: 0.7rem; margin-left: 6px; }

/* Pagination Dots */
.pagination-dots { color: var(--color-muted); padding: 8px 4px; }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.products-header h2 { font-size: 1.4rem; font-family: var(--font-heading); }
.product-count { color: var(--color-muted); font-size: 0.9rem; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { margin: 15px 0 10px; }
.empty-state p { color: var(--color-muted); margin-bottom: 20px; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 15px; }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.product-title { font-size: 2rem; font-family: var(--font-heading); margin-bottom: 10px; }
.product-barcode { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 15px; }
.product-price-large { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 15px; }
.product-stock { margin-bottom: 20px; }
.in-stock { color: var(--color-success); font-weight: 500; }
.out-of-stock-label { color: var(--color-danger); font-weight: 500; }
.product-description { margin-bottom: 20px; color: var(--color-text-light); }
.product-meta { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.9rem; }
.add-to-cart-form { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.qty-selector { display: flex; border: 1px solid var(--color-border); border-radius: var(--border-radius); overflow: hidden; }
.qty-selector button { width: 40px; height: 44px; border: none; background: var(--color-surface); cursor: pointer; font-size: 1.1rem; }
.qty-selector input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); font-size: 1rem; }
.btn-add-cart-large { padding: 12px 30px; background: var(--color-primary); color: white; border: none; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.btn-add-cart-large:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
.cart-item { display: flex; gap: 15px; padding: 16px; border-bottom: 1px solid var(--color-border); align-items: center; }
.cart-item-info h4 { margin-bottom: 4px; font-size: 1rem; }
.cart-item-price { color: var(--color-muted); font-size: 0.9rem; }
.cart-item-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.qty-selector-sm { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; }
.qty-selector-sm button { width: 30px; height: 30px; border: none; background: var(--color-surface); cursor: pointer; }
.qty-selector-sm span { width: 30px; text-align: center; font-weight: 600; }
.cart-item-total { font-weight: 700; min-width: 80px; text-align: right; }
.btn-remove { background: none; border: none; color: var(--color-danger); cursor: pointer; font-size: 0.9rem; padding: 5px; }
.cart-summary { background: var(--color-surface); border-radius: var(--border-radius); padding: 25px; height: fit-content; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 20px; font-family: var(--font-heading); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--color-text); padding-top: 12px; margin-top: 8px; }
.summary-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.85rem; color: var(--color-text-light); }
.btn-checkout { display: block; width: 100%; padding: 14px; background: var(--color-primary); color: white; border: none; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 15px; transition: 0.3s; text-align: center; }
.btn-checkout:hover { background: var(--color-primary-dark); color: white; }
.btn-continue { display: block; text-align: center; margin-top: 10px; color: var(--color-primary); font-size: 0.9rem; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
.checkout-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 25px; margin-bottom: 20px; }
.checkout-card h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--color-text-light); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 0.95rem; font-family: var(--font-family); background: var(--color-bg); color: var(--color-text); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; }
.payment-option:hover { border-color: var(--color-primary); }
.payment-option input[type="radio"] { margin-top: 3px; }
.payment-label strong { display: block; }
.payment-label small { color: var(--color-muted); font-size: 0.85rem; }

/* Payment Details Panel (QR, wallet, bank) */
.payment-details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 16px; margin: -2px 0 10px 26px; animation: pmSlideDown 0.3s ease; }
@keyframes pmSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.pm-detail-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.9rem; color: var(--color-text); }
.pm-detail-row i { width: 18px; text-align: center; color: var(--color-primary); font-size: 0.85rem; }
.pm-wallet-info, .pm-bank-info { margin-bottom: 10px; }
.pm-qr-section { text-align: center; padding-top: 10px; border-top: 1px solid var(--color-border); }
.pm-qr-label { font-weight: 600; color: var(--color-text); margin-bottom: 10px; font-size: 0.95rem; }
.pm-qr-image { max-width: 200px; max-height: 200px; border: 2px solid var(--color-border); border-radius: 12px; background: white; padding: 8px; }
.store-alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 15px; }
.store-alert.error { background: #f8d7da; color: #721c24; }

/* Order Success */
.order-success { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 4rem; color: var(--color-success); margin-bottom: 20px; }
.order-success h1 { font-size: 2rem; font-family: var(--font-heading); margin-bottom: 10px; }
.order-number-box { display: inline-block; padding: 15px 30px; background: var(--color-surface); border-radius: var(--border-radius); margin: 20px 0; }
.order-number-box span { display: block; font-size: 0.85rem; color: var(--color-muted); }
.order-number-box strong { font-size: 1.3rem; }
.success-note { color: var(--color-text-light); margin-bottom: 25px; }
.success-actions { display: flex; gap: 12px; justify-content: center; }

/* Auth */
.auth-container { display: flex; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 35px; }
.auth-card h2 { text-align: center; margin-bottom: 25px; font-family: var(--font-heading); }
.auth-link { text-align: center; margin-top: 15px; font-size: 0.9rem; color: var(--color-muted); }

/* Pagination */
.store-pagination { display: flex; gap: 5px; justify-content: center; margin-top: 30px; }
.store-pagination a { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-text); font-size: 0.9rem; transition: 0.2s; }
.store-pagination a:hover, .store-pagination a.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Footer */
.store-footer { background: var(--footer-bg); color: var(--footer-text); padding: 50px 0 0; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-col h4 { color: white; margin-bottom: 15px; font-family: var(--font-heading); }
.footer-col a { display: block; color: var(--footer-text); padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: white; }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a { color: var(--footer-text); font-size: 1.2rem; transition: 0.3s; }
.social-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 30px; text-align: center; font-size: 0.85rem; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--color-text); color: white; padding: 12px 28px; border-radius: var(--border-radius); font-weight: 500; z-index: 9999; transition: transform 0.3s; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* WhatsApp Order Button */
.btn-whatsapp-order { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #25D366; color: white; border: none; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s, transform 0.2s; margin-top: 10px; width: auto; }
.btn-whatsapp-order:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-whatsapp-order i { font-size: 1.2rem; }
.btn-whatsapp-cart { display: block; width: 100%; text-align: center; justify-content: center; margin-top: 8px; }

/* Floating WhatsApp Button */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 9998; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); color: white; }
@media (max-width: 768px) { .whatsapp-float { bottom: 15px; right: 15px; width: 52px; height: 52px; font-size: 1.5rem; } }

/* ====== PROMO / ANNOUNCEMENT BAR ====== */
.promo-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 40px; color: white; font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 40px; overflow: hidden; box-sizing: border-box; }
.promo-link { color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; max-width: 100%; }
.promo-link:hover { color: white; opacity: 0.9; }
.promo-text { letter-spacing: 0.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.promo-countdown { font-family: 'Courier New', monospace; font-weight: 700; background: rgba(0,0,0,0.2); padding: 3px 10px; border-radius: 4px; font-size: 0.85rem; flex-shrink: 0; white-space: nowrap; }
.promo-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; opacity: 0.7; }
.promo-close:hover { opacity: 1; }

/* ====== QUICK VIEW BUTTON ====== */
.product-card { position: relative; }
.btn-quickview { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; background: rgba(255,255,255,0.92); border: none; border-radius: 50%; cursor: pointer; font-size: 0.9rem; color: var(--color-text-light); box-shadow: 0 2px 8px rgba(0,0,0,0.1); opacity: 0; transform: scale(0.8); transition: all 0.25s; z-index: 5; display: flex; align-items: center; justify-content: center; }
.product-card:hover .btn-quickview { opacity: 1; transform: scale(1); }
.btn-quickview:hover { background: var(--color-primary); color: white; }

/* ====== QUICK VIEW MODAL ====== */
.quickview-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.quickview-overlay.active { display: flex; }
.quickview-modal { background: var(--color-bg); border-radius: 16px; width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 25px 80px rgba(0,0,0,0.2); animation: qvSlideUp 0.3s ease; }
@keyframes qvSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.qv-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.6rem; color: var(--color-muted); cursor: pointer; z-index: 5; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.qv-close:hover { background: var(--color-surface); color: var(--color-text); }
.qv-loading { display: flex; align-items: center; justify-content: center; min-height: 300px; font-size: 2rem; color: var(--color-primary); }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-image { background: var(--color-surface); display: flex; align-items: center; justify-content: center; min-height: 300px; border-radius: 16px 0 0 0; }
.qv-image .product-placeholder-large { height: 100%; font-size: 3rem; border-radius: 0; }
.qv-info { padding: 30px; }
.qv-category { font-size: 0.8rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.qv-info h2 { font-size: 1.4rem; margin: 8px 0 6px; font-family: var(--font-heading); }
.qv-barcode { color: var(--color-muted); font-size: 0.85rem; margin-bottom: 12px; }
.qv-price { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); margin-bottom: 10px; }
.qv-stock { margin-bottom: 12px; }
.qv-description { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 18px; max-height: 80px; overflow-y: auto; }
.qv-actions { margin-bottom: 12px; }
.qv-full-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--color-primary); font-weight: 500; }
.qv-full-link:hover { text-decoration: underline; }
.qv-related { padding: 0 30px 25px; border-top: 1px solid var(--color-border); margin-top: 15px; }
.qv-related h4 { margin: 18px 0 12px; font-size: 1rem; }
.qv-related-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 5px; }
.qv-related-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 100px; padding: 10px; background: var(--color-surface); border-radius: 10px; text-align: center; font-size: 0.8rem; color: var(--color-text); text-decoration: none; transition: 0.2s; }
.qv-related-item:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.qv-related-item strong { color: var(--color-primary); font-size: 0.85rem; }

/* ====== RELATED PRODUCTS SLIDER ====== */
.related-section { position: relative; }
.related-slider { position: relative; }
.related-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 5px 0 15px; scrollbar-width: none; -ms-overflow-style: none; }
.related-track::-webkit-scrollbar { display: none; }
.related-card { min-width: 220px; max-width: 240px; flex-shrink: 0; }
.related-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: 0 2px 10px rgba(0,0,0,0.08); cursor: pointer; font-size: 0.9rem; color: var(--color-text); display: flex; align-items: center; justify-content: center; z-index: 5; transition: 0.2s; }
.related-nav:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.related-nav.prev { left: -18px; }
.related-nav.next { right: -18px; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { gap: 8px; height: 60px; }
    .store-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 15px; border-bottom: 1px solid var(--color-border); box-shadow: var(--card-shadow); z-index: 150; }
    .store-nav.open { display: flex; }
    .mega-panel { width: calc(100vw - 30px) !important; left: 0 !important; transform: none !important; top: calc(100% + 4px) !important; max-height: 70vh !important; }
    .mega-sidebar { max-height: 180px; }
    .mega-content { max-height: 300px !important; }
    .mega-cat-arrow { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; font-size: 1.4rem; order: -1; }
    .header-actions { gap: 6px; flex: 1; justify-content: flex-end; }
    .search-form input { width: 0; padding: 8px 0; transition: width 0.3s; }
    .search-form:focus-within input { width: 120px; padding: 8px 10px; }
    .header-link { font-size: 1rem; padding: 6px; }
    .store-logo img { height: 32px; }
    .logo-text { font-size: 1.1rem; }
    .hero-slider { height: 300px; }
    .hero-video-wrapper { height: 320px; }
    .hero-video-overlay h1 { font-size: 1.8rem; }
    .hero-video-overlay p { font-size: 1rem; }
    .slide-content h1 { font-size: 1.6rem; }
    .hero-simple h1 { font-size: 2rem; }
    .products-page-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--color-bg); border-radius: 0; overflow-y: auto; padding: 20px; }
    .shop-sidebar.open { display: block; }
    .mobile-filter-btn { display: block; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand-card { padding: 14px 8px; font-size: 0.85rem; }
    .location-card { grid-template-columns: 1fr; }
    .location-map { min-height: 200px; }
    .location-map iframe { height: 250px; }
    .contact-map iframe { height: 250px; }
    .delivery-options { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .track-progress { flex-direction: column; align-items: flex-start; }
    .step-line { width: 2px; height: 20px; margin: 0 0 0 22px; }
    .share-buttons { justify-content: center; }
    .promo-bar { font-size: 0.75rem; padding: 8px 32px 8px 10px; gap: 6px; }
    .promo-link { gap: 6px; max-width: calc(100% - 24px); }
    .promo-text { flex: 1 1 0; }
    .promo-countdown { font-size: 0.7rem; padding: 2px 6px; }
    .qv-grid { grid-template-columns: 1fr; }
    .qv-image { min-height: 180px; border-radius: 16px 16px 0 0; }
    .qv-info { padding: 20px; }
    .related-nav { display: none; }
    .btn-quickview { opacity: 1; transform: scale(1); width: 42px; height: 42px; font-size: 1.05rem; }
    .products-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .products-header-right { width: 100%; justify-content: space-between; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-card { padding: 14px 8px; font-size: 0.85rem; }
    .section { padding: 25px 15px; }
    .section-title { font-size: 1.4rem; margin-bottom: 20px; }
}

/* Header Action Links */
.header-link { color: var(--header-text); font-size: 1.1rem; padding: 8px; transition: color 0.3s; }
.header-link:hover { color: var(--color-primary); }
.store-logo { display: flex; align-items: center; gap: 10px; }
.store-logo img { height: 40px; }

/* ====== VIDEO HERO ====== */
.hero-video-wrapper { position: relative; height: 500px; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; }
.hero-video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; padding: 20px; }
.hero-video-overlay h1 { font-size: 3rem; font-family: var(--font-heading); margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero-video-overlay p { font-size: 1.2rem; margin-bottom: 25px; opacity: 0.9; }

/* ====== SHOP BY BRAND ====== */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); transition: all 0.3s; text-align: center; color: var(--color-text); font-weight: 600; font-size: 0.95rem; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); color: var(--color-primary); border-color: var(--color-primary); }
.brand-card i { font-size: 1.6rem; color: var(--color-primary); }

/* ====== PRE-ORDER BUTTON ====== */
.btn-preorder { background: var(--color-warning); color: #333; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: 600; font-size: 0.8rem; }
.btn-preorder:hover { background: #e0a800; transform: scale(1.05); }
.badge-preorder { position: absolute; top: 10px; right: 10px; background: var(--color-warning); color: #333; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; z-index: 2; }

/* ====== STORE LOCATION ====== */
.location-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 30px; }
.location-info { display: flex; flex-direction: column; gap: 18px; }
.location-detail { display: flex; gap: 14px; align-items: flex-start; }
.location-detail i { font-size: 1.2rem; color: var(--color-primary); margin-top: 3px; width: 20px; text-align: center; }
.location-detail strong { display: block; margin-bottom: 2px; }
.location-detail p { color: var(--color-text-light); font-size: 0.95rem; margin: 0; }
.location-detail a { color: var(--color-primary); }
.location-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #e8f5e9; color: #2e7d32; border-radius: 8px; font-weight: 600; font-size: 0.9rem; margin-top: 5px; }
.location-map { border-radius: var(--border-radius); overflow: hidden; min-height: 250px; }
.location-map iframe { display: block; width: 100%; height: 300px; max-width: 100%; border: 0; }

/* ====== DELIVERY OPTIONS (CHECKOUT) ====== */
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.delivery-option { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid var(--color-border); border-radius: var(--border-radius); cursor: pointer; transition: 0.2s; }
.delivery-option:hover { border-color: var(--color-primary); }
.delivery-option.selected { border-color: var(--color-primary); background: rgba(74,144,217,0.05); }
.delivery-option input[type="radio"] { accent-color: var(--color-primary); }
.delivery-option .do-icon { font-size: 1.3rem; color: var(--color-primary); }
.delivery-option .do-label { font-weight: 600; display: block; }
.delivery-option .do-desc { font-size: 0.8rem; color: var(--color-muted); }
.schedule-section { background: var(--color-surface); border-radius: var(--border-radius); padding: 18px; margin-top: 12px; animation: pmSlideDown 0.3s ease; }
.schedule-section h4 { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* Sort Dropdown */
.products-header-right { display: flex; align-items: center; gap: 15px; }
.sort-select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 0.9rem; background: var(--color-bg); color: var(--color-text); cursor: pointer; }
.sort-select:focus { border-color: var(--color-primary); outline: none; }

/* Share Buttons */
.share-buttons { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--color-border); }
.share-label { font-size: 0.9rem; font-weight: 600; color: var(--color-text-light); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: none; font-size: 1rem; cursor: pointer; transition: transform 0.2s, opacity 0.2s; text-decoration: none; }
.share-btn:hover { transform: scale(1.15); opacity: 0.85; }
.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.facebook { background: #1877F2; color: white; }
.share-btn.twitter { background: #1DA1F2; color: white; }
.share-btn.copy { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }

/* Order Tracking */
.track-result { max-width: 700px; margin: 0 auto; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 30px; }
.track-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.track-date { color: var(--color-muted); font-size: 0.9rem; }
.track-status-badge { padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.track-status-badge.pending { background: #fff3cd; color: #856404; }
.track-status-badge.confirmed { background: #cce5ff; color: #004085; }
.track-status-badge.processing { background: #d4edda; color: #155724; }
.track-status-badge.shipped { background: #d1ecf1; color: #0c5460; }
.track-status-badge.delivered { background: #c3e6cb; color: #155724; }
.track-status-badge.cancelled { background: #f8d7da; color: #721c24; }
.track-status-badge.refunded { background: #e2e3e5; color: #383d41; }
.track-progress { display: flex; align-items: center; justify-content: center; margin: 30px 0; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-icon { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--color-surface); color: var(--color-muted); border: 2px solid var(--color-border); transition: all 0.3s; }
.track-step.done .step-icon { background: var(--color-success); color: white; border-color: var(--color-success); }
.track-step.current .step-icon { background: var(--color-primary); color: white; border-color: var(--color-primary); animation: pulse 2s infinite; }
.track-step span { font-size: 0.75rem; color: var(--color-muted); font-weight: 500; }
.track-step.done span, .track-step.current span { color: var(--color-text); font-weight: 600; }
.step-line { flex: 1; height: 3px; background: var(--color-border); margin: 0 5px; min-width: 30px; }
.step-line.done { background: var(--color-success); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,144,217,0.4); } 50% { box-shadow: 0 0 0 10px rgba(74,144,217,0); } }
.track-cancelled { text-align: center; padding: 25px; color: var(--color-danger); }
.track-cancelled i { font-size: 2.5rem; margin-bottom: 10px; }
.track-items { margin-top: 25px; }
.track-items h4 { margin-bottom: 12px; }
.track-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.track-item.track-total { font-weight: 700; border-top: 2px solid var(--color-text); border-bottom: none; padding-top: 12px; }
.item-name { flex: 1; }
.item-qty { width: 50px; text-align: center; color: var(--color-muted); }
.item-price { width: 100px; text-align: right; }
.track-shipping { margin-top: 20px; padding: 15px; background: var(--color-surface); border-radius: 8px; }
.track-shipping h4 { margin-bottom: 8px; }
.track-shipping p { font-size: 0.9rem; color: var(--color-text-light); margin: 2px 0; }

/* My Account */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.account-sidebar { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 25px; height: fit-content; position: sticky; top: 90px; }
.account-avatar { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); margin-bottom: 15px; }
.account-avatar i { font-size: 3.5rem; color: var(--color-primary); }
.account-avatar h3 { margin: 10px 0 2px; font-size: 1.1rem; }
.account-avatar p { color: var(--color-muted); font-size: 0.85rem; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: var(--color-text); font-size: 0.95rem; transition: 0.2s; }
.account-nav a:hover { background: var(--color-surface); color: var(--color-primary); }
.account-nav a.active { background: var(--color-primary); color: white; }
.account-nav a.logout { color: var(--color-danger); }
.account-nav a.logout:hover { background: #fef0f0; }
.account-content { min-height: 300px; }
.account-content h2 { margin-bottom: 20px; font-family: var(--font-heading); }
.order-card { border: 1px solid var(--color-border); border-radius: var(--border-radius); margin-bottom: 12px; overflow: hidden; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--color-surface); }
.order-date { color: var(--color-muted); font-size: 0.85rem; margin-left: 12px; }
.order-card-body { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 15px; font-size: 0.9rem; }
.btn-track { padding: 6px 16px; background: var(--color-primary); color: white; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.btn-track:hover { background: var(--color-primary-dark); color: white; }
.profile-form { max-width: 500px; }

/* ====== ABOUT PAGE ====== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-layout:has(.about-full) { grid-template-columns: 1fr; }
.about-content.about-full { max-width: 800px; margin: 0 auto; }
.about-image { border-radius: var(--border-radius); overflow: hidden; }
.about-image img { width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
.about-content { line-height: 1.8; color: var(--color-text-light); font-size: 1rem; }
.about-card { text-align: center; padding: 40px 20px; background: var(--color-surface); border-radius: var(--border-radius); margin-bottom: 30px; }
.about-icon { font-size: 3rem; color: var(--color-primary); margin-bottom: 15px; }
.about-card h3 { font-size: 1.6rem; font-family: var(--font-heading); margin-bottom: 10px; }
.about-card p { color: var(--color-text-light); max-width: 600px; margin: 0 auto; }
.about-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.about-detail-item { display: flex; gap: 15px; padding: 20px; background: var(--color-surface); border-radius: var(--border-radius); }
.about-detail-item i { font-size: 1.3rem; color: var(--color-primary); margin-top: 3px; }
.about-detail-item strong { display: block; margin-bottom: 4px; }
.about-detail-item p { color: var(--color-text-light); font-size: 0.95rem; margin: 0; }
.about-social { text-align: center; padding: 30px; background: var(--color-surface); border-radius: var(--border-radius); }
.about-social h4 { margin-bottom: 15px; font-family: var(--font-heading); }
.about-social-links { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.about-social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 30px; color: var(--color-text); font-weight: 500; transition: 0.3s; }
.about-social-links a:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* ====== CONTACT PAGE ====== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.contact-info-card { background: var(--color-surface); border-radius: var(--border-radius); padding: 30px; height: 100%; }
.contact-info-card h3 { font-size: 1.3rem; font-family: var(--font-heading); margin-bottom: 5px; }
.contact-tagline { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 25px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info-item strong { display: block; margin-bottom: 3px; font-size: 0.9rem; }
.contact-info-item p { color: var(--color-text-light); font-size: 0.9rem; margin: 0; }
.contact-info-item a { color: var(--color-primary); }
.contact-social { display: flex; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.contact-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text); font-size: 1.1rem; transition: 0.3s; }
.contact-social a:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.contact-form-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 30px; }
.contact-form-card h3 { font-size: 1.2rem; font-family: var(--font-heading); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.contact-success-icon { text-align: center; padding: 40px 20px; }
.contact-success-icon i { font-size: 3rem; color: var(--color-success); margin-bottom: 15px; display: block; }
.contact-success-icon p { color: var(--color-text-light); margin-bottom: 20px; }
.contact-map { margin-top: 30px; border-radius: var(--border-radius); overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 350px; max-width: 100%; border: 0; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } .about-layout { grid-template-columns: 1fr; } }

/* ====== LAYOUT VARIANTS ====== */

/* Layout: list - Products displayed as horizontal list cards */
.layout-list .products-grid { grid-template-columns: 1fr; gap: 15px; }
.layout-list .product-card { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.layout-list .product-image { height: 100%; min-height: 160px; }
.layout-list .product-info { display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.layout-list .product-info h3 { font-size: 1.1rem; }
.layout-list .product-bottom { margin-top: 10px; }

/* Layout: compact - Smaller cards, more items per row */
.layout-compact .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.layout-compact .product-image { height: 150px; }
.layout-compact .product-info { padding: 12px; }
.layout-compact .product-info h3 { font-size: 0.9rem; }
.layout-compact .product-price { font-size: 1rem; }

/* Layout: magazine - Large first card, smaller rest */
.layout-magazine .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.layout-magazine .product-card:first-child { grid-column: span 2; grid-row: span 2; }
.layout-magazine .product-card:first-child .product-image { height: 400px; }
.layout-magazine .product-card:first-child .product-info h3 { font-size: 1.3rem; }

/* Header variant: centered */
.header-centered .header-inner { flex-direction: column; height: auto; padding: 15px 20px; gap: 10px; }
.header-centered .store-nav { order: 2; }
.header-centered .header-actions { order: 3; }

/* Header variant: transparent */
.header-transparent .store-header { background: transparent; border-bottom: none; position: absolute; width: 100%; }
.header-transparent .store-header .logo-text { color: white; }
.header-transparent .store-header .store-nav a { color: rgba(255,255,255,0.9); }
.header-transparent .store-header .header-link { color: rgba(255,255,255,0.9); }
.header-transparent .store-header .cart-icon { color: rgba(255,255,255,0.9); }
.header-transparent .search-form { border-color: rgba(255,255,255,0.3); }
.header-transparent .search-form input { color: white; }
.header-transparent .search-form input::placeholder { color: rgba(255,255,255,0.6); }

/* Card variant: borderless */
.cards-borderless .product-card { border: none; box-shadow: none; background: transparent; }
.cards-borderless .product-card:hover { box-shadow: var(--card-shadow); background: var(--color-bg); }
.cards-borderless .product-image { border-radius: var(--border-radius); }

/* Card variant: overlay - price overlay on image */
.cards-overlay .product-info { position: relative; }
.cards-overlay .product-card:hover .product-image::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.cards-overlay .product-image { position: relative; }

/* Footer variant: minimal */
.footer-minimal .store-footer { padding: 20px 0 0; }
.footer-minimal .footer-grid { grid-template-columns: 1fr; text-align: center; }
.footer-minimal .footer-col { display: flex; flex-direction: column; align-items: center; }
.footer-minimal .footer-col p { justify-content: center; }

/* Footer variant: wide - 4 columns */
.footer-wide .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

@media (max-width: 768px) {
    .layout-list .product-card { grid-template-columns: 1fr; }
    .layout-magazine .product-card:first-child { grid-column: span 1; grid-row: span 1; }
    .layout-magazine .product-card:first-child .product-image { height: 200px; }
    .header-centered .header-inner { flex-direction: row; }
    .footer-wide .footer-grid { grid-template-columns: 1fr; }
}

/* ======== Catch of the Day ======== */
.cotd-section { padding-top: 30px; padding-bottom: 30px; }
.cotd-header { text-align: center; margin-bottom: 30px; }
.cotd-title { font-size: 1.6rem; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.cotd-title::before, .cotd-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(to right, transparent, var(--color-primary), transparent); max-width: 200px; }
.cotd-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--color-surface); border-radius: var(--border-radius); padding: 30px; box-shadow: var(--card-shadow); border: 1px solid var(--color-border); align-items: center; }
.cotd-image { position: relative; border-radius: var(--border-radius); overflow: hidden; }
.cotd-image img { width: 100%; height: 350px; object-fit: contain; display: block; background: #fff; border-radius: var(--border-radius); }
.cotd-badge { position: absolute; top: 12px; left: 12px; background: var(--color-danger); color: #fff; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.95rem; }
.cotd-info { display: flex; flex-direction: column; gap: 12px; }
.cotd-product-name { font-size: 1.5rem; font-family: var(--font-heading); }
.cotd-product-name a { color: var(--color-text); }
.cotd-product-name a:hover { color: var(--color-primary); }
.cotd-sku { font-size: 0.85rem; color: var(--color-muted); }
.cotd-pricing { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cotd-price-special { font-size: 2rem; font-weight: 700; color: var(--color-danger); }
.cotd-price-original { font-size: 1.2rem; color: var(--color-muted); text-decoration: line-through; }
.cotd-countdown { display: flex; gap: 10px; margin-top: 4px; }
.cotd-timer-unit { background: var(--color-text); color: #fff; border-radius: 8px; padding: 8px 12px; text-align: center; min-width: 56px; }
.cotd-timer-unit span { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.cotd-timer-unit small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.cotd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cotd-urgency { color: var(--color-danger); font-weight: 600; font-size: 0.9rem; margin-top: 4px; }

/* ======== Visual Category / Brand Cards ======== */
.visual-cards-slider { position: relative; padding: 0 24px; }
.visual-cards-track { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px 0; }
.visual-cards-track::-webkit-scrollbar { display: none; }
.visual-card { scroll-snap-align: start; flex: 0 0 240px; width: 240px; min-width: 240px; max-width: 240px; border-radius: 16px; overflow: hidden; text-decoration: none; color: #333; display: flex; flex-direction: column; position: relative; min-height: 280px; border: 3px solid rgba(255,255,255,0.7); box-shadow: 0 4px 20px rgba(0,0,0,0.12); transition: transform 0.3s, box-shadow 0.3s; }
.visual-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.visual-card-promo { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 1.1rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); z-index: 2; line-height: 1.3; padding: 0 10px; }
.visual-card img { flex: 1; width: 100%; object-fit: contain; padding: 10px; min-height: 180px; }
.visual-card-footer { padding: 12px 14px; text-align: center; background: rgba(255,255,255,0.92); border-top: 2px dashed rgba(0,0,0,0.1); }
.visual-card-footer strong { display: block; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: #333; }
.visual-card-footer span { display: block; font-size: 0.8rem; color: #888; margin-top: 2px; }
.visual-cards-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,0.95); border: 1px solid #ddd; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: #333; display: flex; align-items: center; justify-content: center; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.visual-cards-nav:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.visual-cards-nav.prev { left: 0; }
.visual-cards-nav.next { right: 0; }

@media (max-width: 768px) {
    .visual-cards-slider { padding: 0; }
    .visual-card { flex: 0 0 200px; width: 200px; min-width: 200px; max-width: 200px; min-height: 220px; }
    .visual-cards-nav { display: none; }
    .cotd-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .cotd-image img { height: 250px; }
    .cotd-product-name { font-size: 1.2rem; }
    .cotd-price-special { font-size: 1.6rem; }
    .cotd-countdown { justify-content: center; }
    .cotd-actions { justify-content: center; }
}
