/* === FONTS === */
@font-face { font-family: 'Bebas Neue'; src: url('../fonts/BebasNeue-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --dark: #231f20;
    --red: #ec1e24;
    --red-hover: #c41818;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border: #eeeeee;
    --text: #333333;
    --text-muted: #999999;
    --hero-end: #2d2d2d;
    --nav-link: #cccccc;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
}

/* === THEMES === */
[data-theme="midnight"] {
    --dark: #0f172a;
    --red: #3b82f6;
    --red-hover: #2563eb;
    --light-gray: #f0f4f8;
    --hero-end: #1e293b;
    --nav-link: #94a3b8;
}
[data-theme="gold"] {
    --dark: #1c1917;
    --red: #d97706;
    --red-hover: #b45309;
    --light-gray: #faf8f5;
    --hero-end: #292524;
    --nav-link: #a8a29e;
}
[data-theme="emerald"] {
    --dark: #064e3b;
    --red: #059669;
    --red-hover: #047857;
    --light-gray: #f0fdf4;
    --hero-end: #065f46;
    --nav-link: #6ee7b7;
}
[data-theme="stage"] {
    --dark: #1e1b4b;
    --red: #8b5cf6;
    --red-hover: #7c3aed;
    --light-gray: #f5f3ff;
    --hero-end: #312e81;
    --nav-link: #a5b4fc;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
img { max-width: 100%; height: auto; display: block; }

/* === FOCUS STATES === */
a:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(236, 30, 36, 0.1); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === ANNOUNCEMENT BANNER === */
.announcement-banner { padding: 8px 0; font-size: 0.85rem; font-weight: 600; text-align: center; position: relative; z-index: 101; }
.announcement-banner-inner { display: flex; align-items: center; justify-content: center; gap: 12px; }
.announcement-banner-text { text-decoration: none; }
a.announcement-banner-text:hover { text-decoration: underline; }
.announcement-banner-close { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; opacity: 0.7; padding: 0 4px; line-height: 1; }
.announcement-banner-close:hover { opacity: 1; }

/* === HEADER / NAV === */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.nav-logo { color: var(--white); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }
.nav-logo span { color: var(--red); }
.nav-logo img { max-height: 32px; width: auto; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: var(--nav-link); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cart { color: var(--red) !important; font-weight: 600; position: relative; }
.nav-cart .cart-count { background: var(--red); color: var(--white); font-size: 0.7rem; padding: 1px 6px; border-radius: 10px; position: absolute; top: -8px; right: -14px; }
/* Nav Search */
.nav-search { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.nav-search input { background: transparent; border: none; color: var(--white); padding: 6px 10px; font-size: 0.85rem; width: 160px; outline: none; }
.nav-search input::placeholder { color: #888; }
.nav-search button { background: none; border: none; color: #888; padding: 6px 8px; cursor: pointer; font-size: 0.85rem; }
.nav-search button:hover { color: var(--white); }
@media (max-width: 768px) { .nav-search { display: none; } }

.mini-cart { display: none; position: absolute; top: 100%; right: 0; width: 320px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 101; padding: 16px; }
.mini-cart.open { display: block; }
.mini-cart-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-footer { padding-top: 12px; text-align: center; }
.mini-cart-total { display: flex; justify-content: space-between; font-weight: 700; padding: 8px 0; border-top: 2px solid var(--dark); margin-top: 8px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.nav-links.open { display: flex; }

/* === HERO === */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--hero-end) 100%); padding: 60px 0; text-align: center; color: var(--white); }
.hero-tagline { color: var(--red); font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.hero h1 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 400; letter-spacing: 2px; margin-bottom: 12px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s, transform 0.1s; text-align: center; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-secondary { background: var(--dark); color: var(--white); border: 2px solid var(--dark); }
.btn-secondary:hover { background: #333; color: var(--white); border-color: #333; }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #333; color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline.btn-dark { border-color: var(--dark); color: var(--dark); }
.btn-outline.btn-dark:hover { background: var(--dark); color: var(--white); }

/* === SECTIONS === */
.section { padding: 48px 0; }
.section-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 24px; border-left: 4px solid var(--red); padding-left: 12px; }

/* === CATEGORY SCROLL === */
.category-scroll-wrapper { position: relative; display: flex; align-items: center; }
.category-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 0; }
.category-scroll::-webkit-scrollbar { display: none; }
.scroll-arrow { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--text); font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: opacity 0.2s, background 0.2s; }
.scroll-arrow:hover { background: var(--dark); color: var(--white); }
.scroll-left { left: -18px; }
.scroll-right { right: -18px; }
.category-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 20px 16px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; min-width: 140px; flex-shrink: 0; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.category-card .icon { font-size: 2.2rem; margin-bottom: 8px; }
.category-card .name { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; }

/* === PRODUCT GRID === */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.product-card a { color: inherit; }
.product-card .image-wrap { background: var(--light-gray); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .no-image { font-size: 3rem; color: var(--text-muted); }
.product-card .info { padding: 12px; }
.product-card .category-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.product-card .product-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.product-card .price { font-size: 1.05rem; font-weight: 700; color: var(--red); }
.product-card .price-original { font-size: 0.85rem; text-decoration: line-through; color: var(--text-muted); margin-right: 6px; font-weight: 400; }
.product-card .price del, .price-display del { text-decoration: line-through; color: var(--text-muted); font-weight: 400; }
.call-for-price { color: var(--red); font-weight: 600; font-style: italic; }

/* Badges */
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 3px; font-size: 0.7rem; font-weight: 700; color: var(--white); z-index: 2; text-transform: uppercase; }
.badge-sale { background: var(--red); }
.badge-featured { background: var(--dark); }

/* === PRODUCT DETAIL === */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { background: var(--light-gray); border-radius: 8px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumbs .thumb { width: 70px; height: 70px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--light-gray); }
.gallery-thumbs .thumb.active { border-color: var(--red); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info .breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.product-info .breadcrumb a { color: var(--text-muted); }
.product-info .breadcrumb a:hover { color: var(--red); }
.product-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.product-info .price-display { font-size: 1.5rem; color: var(--red); font-weight: 700; margin-bottom: 16px; }
.product-info .price-display .original { font-size: 1.1rem; text-decoration: line-through; color: var(--text-muted); margin-right: 8px; font-weight: 400; }
.product-info .description { color: #555; line-height: 1.8; margin-bottom: 24px; }

.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-right: 12px; }
.quantity-selector button { width: 40px; height: 40px; background: var(--light-gray); border: none; font-size: 1.1rem; cursor: pointer; }
.quantity-selector button:hover { background: #e0e0e0; }
.quantity-selector input { width: 50px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 1rem; }
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }

.add-to-cart-row { display: flex; align-items: center; margin-bottom: 24px; }
.product-specs { margin-bottom: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.product-specs h3 { font-size: 1rem; margin-bottom: 12px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--light-gray); }
.specs-table td { padding: 8px 12px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.specs-table .spec-key { font-weight: 600; color: var(--dark); width: 40%; }
.specs-table .spec-val { color: #555; }
.product-meta { font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }

/* === FILTERS === */
.filter-bar { background: var(--light-gray); padding: 16px; border-radius: 8px; margin-bottom: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-bar .search-input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; background: var(--white); }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { padding: 6px 14px; border-radius: 4px; font-size: 0.85rem; background: var(--white); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: all 0.2s; }
.filter-tab:hover, .filter-tab.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* === CART === */
.cart-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 0; }
.cart-continue-link { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.cart-continue-link:hover { color: var(--red); }
.cart-item-count { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.cart-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; padding: 20px 0 40px; }
.cart-items { min-width: 0; }
.cart-item { display: flex; gap: 16px; padding: 16px; background: var(--light-gray); border-radius: 8px; margin-bottom: 10px; align-items: center; transition: opacity 0.3s, transform 0.3s; }
.cart-item.removing { opacity: 0; transform: translateX(-20px); }
.cart-item .item-image { width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: var(--white); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item .item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item a.item-image { transition: opacity 0.2s; }
.cart-item a.item-image:hover { opacity: 0.8; }
.cart-item .item-details { flex: 1; min-width: 0; }
.cart-item a.item-name { font-weight: 600; font-size: 0.95rem; color: var(--text); display: block; }
.cart-item a.item-name:hover { color: var(--red); }
.cart-item .item-category { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.cart-item .item-unit-price { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.cart-item .item-unit-price del { color: var(--text-muted); margin-right: 4px; }
.cart-item .item-unit-price span { color: var(--red); font-weight: 600; }
.cart-item .item-unit-label { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }
.cart-item .item-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cart-item .item-remove { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.2s; }
.cart-item .item-remove:hover { color: var(--red); background: rgba(227,30,36,0.08); }
.cart-item .item-subtotal { font-weight: 700; color: var(--red); min-width: 110px; text-align: right; font-size: 1rem; }

.cart-total { display: flex; justify-content: space-between; padding: 16px 0; border-top: 3px solid var(--dark); margin-top: 8px; }
.cart-total .label { font-size: 1.1rem; font-weight: 700; }
.cart-total .amount { font-size: 1.3rem; font-weight: 700; color: var(--red); }

.checkout-sidebar { align-self: start; position: sticky; top: 80px; }
.checkout-form { background: var(--light-gray); border-radius: 10px; padding: 24px; }
.checkout-form h2 { font-size: 1.2rem; margin-bottom: 4px; }
.checkout-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #666; margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; font-family: var(--font); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 60px; }
.checkout-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 10px; }
.btn-block { display: block; width: 100%; }

.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty-icon { color: var(--text-muted); margin-bottom: 16px; }
.cart-empty h2 { margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 20px; }

/* === FLASH MESSAGES === */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* === FOOTER === */
.site-footer { background: var(--dark); color: #ccc; padding: 40px 0 20px; margin-top: 48px; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-col p, .footer-col a { font-size: 0.85rem; color: #aaa; line-height: 2; }
.footer-col a:hover { color: var(--white); }
.footer-col ul { list-style: none; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.8rem; color: #666; }
.footer-policies { display: flex; gap: 16px; justify-content: center; margin-top: 12px; }
.footer-policies a { color: #888; font-size: 0.75rem; }
.footer-policies a:hover { color: var(--white); }

/* Footer Logo & Social */
.footer-logo-img { max-height: 72px; width: auto; margin-bottom: 12px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; color: #ccc !important; transition: background 0.2s, color 0.2s; }
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: rgba(255,255,255,0.2); color: var(--white) !important; }
.social-facebook:hover { background: #1877f2; color: #fff !important; }
.social-instagram:hover { background: #e4405f; color: #fff !important; }
.social-tiktok:hover { background: #000; color: #fff !important; }
.social-twitter:hover { background: #000; color: #fff !important; }
.social-youtube:hover { background: #ff0000; color: #fff !important; }
.social-linkedin:hover { background: #0a66c2; color: #fff !important; }

/* Product Sharing */
.product-share { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--light-gray); border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* New Badge */
.badge-new { background: #2563eb; color: var(--white); }

/* === ABOUT / CONTACT === */
.page-header { background: var(--dark); padding: 40px 0; text-align: center; color: var(--white); }
.page-header h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 400; letter-spacing: 2px; }
.page-content { padding: 40px 0; max-width: 800px; margin: 0 auto; line-height: 1.8; }
.about-content { text-align: justify; }
.about-content h2 { text-align: left; margin: 32px 0 12px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin-bottom: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; color: #555; }

/* === ORDER CONFIRMATION === */
.confirmation { text-align: center; padding: 60px 0; }
.confirmation .check-icon { font-size: 3rem; color: #22c55e; margin-bottom: 16px; }
.confirmation h1 { margin-bottom: 8px; }
.confirmation p { color: #555; margin-bottom: 24px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 16px 20px; gap: 12px; border-top: 1px solid #333; }
    .nav-links.open { display: flex; }

    .hero h1 { font-size: 1.8rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .scroll-arrow { display: none; }
    .category-scroll-wrapper { overflow: visible; }
    .category-card { min-width: 120px; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-sidebar { position: static; }
    .cart-item { flex-wrap: wrap; }
    .cart-item .item-image { width: 72px; height: 72px; }
    .cart-item .item-actions { flex-direction: row; width: 100%; justify-content: space-between; margin-top: 4px; }
    .cart-item .item-subtotal { width: 100%; text-align: right; margin-top: 4px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .filter-bar { flex-direction: column; }
    .filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

@media (max-width: 480px) {
    .category-card { min-width: 110px; padding: 16px 12px; }
}

/* === BREADCRUMB NAV === */
.breadcrumb-nav { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--red); }
.breadcrumb-nav span { color: var(--text); font-weight: 500; }

/* === SORT & FILTER ROW === */
.sort-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.price-filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-filter-form label { font-size: 0.85rem; font-weight: 600; }
.price-input { width: 90px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; }
.sort-select { display: flex; align-items: center; gap: 8px; }
.sort-select label { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.sort-select select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; background: var(--white); cursor: pointer; }
.results-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

/* === SEARCH FORM === */
.search-form { display: flex; flex: 1; min-width: 200px; }
.search-form .search-input { flex: 1; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; padding: 16px 0; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; color: var(--text); background: var(--white); transition: all 0.2s; }
.pagination-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.pagination-btn.active { background: var(--red); color: var(--white); border-color: var(--red); font-weight: 700; }

/* === LIGHTBOX === */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; justify-content: center; align-items: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--white); font-size: 2.5rem; cursor: pointer; line-height: 1; z-index: 1001; }
.lightbox-close:hover { color: var(--red); }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 3rem; cursor: pointer; padding: 8px 14px; line-height: 1; border-radius: 4px; z-index: 1001; transition: background 0.2s; -webkit-tap-highlight-color: transparent; }
.lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.9rem; z-index: 1001; }
.lightbox img { cursor: default; }
@media (max-width: 600px) {
    .lightbox-arrow { font-size: 2rem; padding: 6px 10px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* === WHATSAPP BUTTON === */
.btn-whatsapp { display: inline-flex; align-items: center; background: #25D366; color: var(--white); padding: 12px 24px; border-radius: 6px; font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; transition: background 0.2s; }
.btn-whatsapp:hover { background: #1da851; color: var(--white); }

/* === PRODUCT NAME TRUNCATION === */
.product-card .product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 2.6em; }

/* === BACK TO TOP === */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--white); border: none; font-size: 1.3rem; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.3); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, background 0.2s; z-index: 90; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--red); }

/* === COOKIE BANNER === */
.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: #ccc; padding: 16px 24px; z-index: 200; align-items: center; justify-content: center; gap: 16px; font-size: 0.85rem; box-shadow: 0 -2px 12px rgba(0,0,0,0.2); }
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; max-width: 700px; }

/* === ORDER SUMMARY === */
.order-summary { text-align: left; max-width: 500px; margin: 0 auto 24px; background: var(--light-gray); border-radius: 8px; padding: 20px; }
.order-summary h3 { margin-bottom: 12px; font-size: 1rem; }
.order-summary table { width: 100%; border-collapse: collapse; }
.order-summary th, .order-summary td { padding: 8px 12px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.order-summary th { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.order-summary tfoot td { border-bottom: none; border-top: 2px solid var(--dark); }

/* === CONFIRMATION ACTIONS === */
.confirmation-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === PRINT UTILITIES === */
.print-only { display: none !important; }

/* === PRINT INVOICE (screen hidden, print visible) === */
@media print {
    .no-print, .site-header, .site-footer, .nav-toggle, .back-to-top, .cookie-banner { display: none !important; }
    .print-only { display: block !important; }
    body { color: #000; font-size: 12pt; }

    .print-invoice { padding: 0; margin: 0; }
    .print-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid #231f20; margin-bottom: 20px; }
    .print-logo img { max-height: 50px; width: auto; }
    .print-company { text-align: right; font-size: 9pt; line-height: 1.5; color: #333; }

    .print-title h1 { text-align: center; font-size: 18pt; margin: 0 0 16px; color: #231f20; text-transform: uppercase; letter-spacing: 1px; }

    .print-meta { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 10pt; line-height: 1.6; }

    .print-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 10pt; }
    .print-table th { background: #f5f5f5; padding: 8px 10px; border-bottom: 2px solid #231f20; text-align: left; font-weight: 700; font-size: 9pt; text-transform: uppercase; }
    .print-table td { padding: 8px 10px; border-bottom: 1px solid #ddd; }
    .print-table tfoot td { border-bottom: none; padding: 6px 10px; font-size: 10pt; }
    .print-total-row td { border-top: 2px solid #231f20; font-size: 12pt; padding-top: 10px; }

    .print-notes { background: #f9f9f9; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 10pt; }

    .print-footer { margin-top: 40px; text-align: center; }
    .print-footer-message { font-size: 11pt; margin-bottom: 12px; }
    .print-footer-message span { font-size: 9pt; color: #666; }
    .print-footer-line { font-size: 8pt; color: #999; padding-top: 8px; border-top: 1px solid #ddd; }
}

/* === WISHLIST === */
.wishlist-btn { font-size: 1.3rem; line-height: 1; border-color: var(--border); color: var(--text-muted); }
.wishlist-btn:hover { color: var(--red); border-color: var(--red); }
.nav-wishlist-count { background: var(--red); color: var(--white); font-size: 0.65rem; padding: 1px 5px; border-radius: 8px; margin-left: 2px; vertical-align: super; }

/* Toast */
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
