/* assets/css/style.css */
:root {
    --brand-dark: #264847;
    --brand-light: #356362;
    --brand-bronze: #713D26;
    --brand-gold: #FCB77B;
    --brand-gray: #EAEAEA;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #F4F7F6;
    --white: #FFFFFF;
    --panel-bg: rgba(255, 255, 255, 0.8);
    --input-bg: rgba(255,255,255,0.7);
    --border-color: rgba(255,255,255,0.5);
    --success: #10B981;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --brand-dark: #1a3231;
    --brand-light: #254746;
    --brand-bronze: #a65836;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --bg-main: #12181b;
    --white: #1e292b;
    --panel-bg: rgba(30, 41, 43, 0.85);
    --input-bg: rgba(0,0,0,0.2);
    --border-color: rgba(255,255,255,0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.font-bold { font-weight: 700; }
.text-success { color: var(--success); }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.section-title { font-weight: 600; font-size: 1.1rem; color: var(--brand-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }

/* Glassmorphism */
.glassmorphism {
    background: rgba(38, 72, 71, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.glassmorphism-dark {
    background: var(--panel-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-main);
}
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Install Banner */
.install-banner {
    background: var(--brand-gold);
    color: #1a3231;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    position: relative;
}
.install-banner-content { display: flex; align-items: center; gap: 1rem; }
.install-banner-content img { width: 36px; height: 36px; border-radius: 8px; }
.install-banner p { font-size: 0.8rem; line-height: 1.2; opacity: 0.9; }
.btn-primary-small { background: #1a3231; color: #fff; padding: 0.4rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.85rem; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary-small:hover { background: #fff; color: #1a3231; }
.btn-icon { background: none; border: none; color: rgba(0,0,0,0.5); font-size: 1.2rem; cursor: pointer; padding: 0.2rem; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-container .logo { height: 40px; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-btn { background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; }
.nav-btn:hover { color: var(--brand-gold); }
.nav-btn span { font-size: 1rem; font-weight: 600; }
.cart-icon { position: relative; cursor: pointer; font-size: 1.5rem; transition: var(--transition); }
.cart-icon:hover { color: var(--brand-gold); transform: scale(1.1); }
.cart-badge {
    position: absolute; top: -8px; right: -10px; background-color: var(--brand-gold); color: #1a3231;
    font-size: 0.75rem; font-weight: 700; height: 20px; width: 20px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hero / Search / Filters */
.hero { text-align: center; padding: 3rem 1rem; border-radius: var(--radius-lg); margin-bottom: 2rem; position: relative; overflow: hidden; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--brand-dark); }
[data-theme="dark"] .hero h1 { color: var(--brand-gold); }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.search-bar-wrapper { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; }
.search-bar { position: relative; flex: 1; margin-bottom: 0; }
.search-bar i { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; z-index: 2; pointer-events: none; line-height: 1; }
.search-bar input {
    width: 100%; padding: 1rem 3rem 1rem 1.5rem; border: none; border-radius: 30px;
    background: var(--white); box-shadow: var(--shadow-md); font-size: 1rem; font-family: inherit;
    transition: var(--transition); outline: none; color: var(--text-main);
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.search-bar input::-webkit-search-decoration,
.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-results-button,
.search-bar input::-webkit-search-results-decoration { -webkit-appearance: none; }
.search-bar input:focus { box-shadow: 0 0 0 3px rgba(38,72,71,0.2); }

.btn-adv-filter-toggle {
    background: var(--white); color: var(--brand-dark); border: 1px solid var(--border-color);
    padding: 0.9rem 1.2rem; border-radius: 30px; cursor: pointer; font-weight: 600; font-size: 0.95rem;
    font-family: inherit; transition: var(--transition); box-shadow: var(--shadow-md); display: flex;
    align-items: center; gap: 0.5rem; position: relative; white-space: nowrap;
}
[data-theme="dark"] .btn-adv-filter-toggle { color: var(--brand-gold); }
.btn-adv-filter-toggle:hover { border-color: var(--brand-light); transform: translateY(-2px); }
.btn-adv-filter-toggle.active { background: var(--brand-dark); color: var(--brand-gold); }
.active-filter-badge {
    background: var(--brand-gold); color: #1a3231; font-size: 0.75rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}

/* Advanced Filter Panel */
.adv-filters-panel {
    background: var(--white); border-radius: var(--radius-md); padding: 1.25rem;
    margin-bottom: 1.5rem; box-shadow: 0 8px 25px rgba(0,0,0,0.15); border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease; text-align: left;
}
[data-theme="dark"] .adv-filters-panel {
    background: #1e292b;
    border-color: rgba(255,255,255,0.15);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.adv-filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: flex-end; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
[data-theme="dark"] .filter-group label { color: var(--brand-gold); }

.price-inputs { display: flex; align-items: center; gap: 0.4rem; }
.price-inputs input { width: 100%; padding: 0.6rem 0.8rem; font-size: 0.9rem; border-radius: 8px; background: var(--input-bg); color: var(--text-main); border: 1px solid var(--border-color); }
.price-inputs span { font-size: 0.8rem; color: var(--text-muted); }

.filter-select {
    width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border-color);
    border-radius: 8px; background: var(--input-bg); color: var(--text-main);
    font-family: inherit; font-size: 0.9rem; outline: none; cursor: pointer;
}
.filter-select option { background: var(--white); color: var(--text-main); }

.filter-checkbox-group { display: flex; align-items: center; height: 40px; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; margin-bottom: 0; color: var(--text-main); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--brand-gold); }

.btn-clear-filters {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
    transition: var(--transition); width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
[data-theme="dark"] .btn-clear-filters { color: #aaaaaa; }
.btn-clear-filters:hover { background: rgba(239,68,68,0.15); color: var(--danger); border-color: var(--danger); }
.category-pills { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.category-pill {
    background: var(--white); color: var(--text-muted); border: 1px solid var(--border-color); padding: 0.5rem 1.2rem;
    border-radius: 20px; cursor: pointer; font-weight: 500; font-size: 0.9rem; font-family: inherit;
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.category-pill:hover { border-color: var(--brand-light); color: var(--text-main); transform: translateY(-2px); }
.category-pill.active { background: var(--brand-dark); color: var(--brand-gold); border-color: var(--brand-dark); }

/* Featured Carousel */
.featured-section { margin-bottom: 2.5rem; }
.featured-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.featured-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.text-gold { color: #f59e0b; }
.carousel-nav-btn-group { display: flex; gap: 0.5rem; }
.carousel-nav-btn {
    background: var(--white); border: 1px solid var(--border-color); color: var(--text-main);
    width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.carousel-nav-btn:hover { background: var(--brand-dark); color: var(--brand-gold); border-color: var(--brand-dark); }
.featured-carousel {
    display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1rem; scroll-behavior: smooth;
}
.featured-carousel::-webkit-scrollbar { height: 6px; }
.featured-carousel::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.featured-card {
    min-width: 280px; max-width: 300px; flex-shrink: 0; scroll-snap-align: start;
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid var(--border-color);
    cursor: pointer; position: relative;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.featured-badge-star {
    position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4); z-index: 2; text-transform: uppercase; display: flex; align-items: center; gap: 0.3rem;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem 3rem; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: var(--transition); display: flex; flex-direction: column;
    border: 1px solid var(--border-color); cursor: pointer;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-image-container { height: 220px; background-color: var(--white); position: relative; overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.product-card:hover .product-image { transform: scale(1.08); }
.product-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.85); color: #1a3231;
    font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 20px;
    text-transform: uppercase; backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); z-index: 2;
}
.product-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-main); }
.product-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--brand-dark); }
[data-theme="dark"] .product-price { color: var(--brand-gold); }

.btn-add-cart {
    background: var(--brand-gold); color: #1a3231; border: none; width: 45px; height: 45px;
    border-radius: 50%; cursor: pointer; transition: var(--transition); display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(252,183,123,0.4);
}
.btn-add-cart:hover { background: var(--brand-dark); color: var(--brand-gold); transform: scale(1.1) rotate(90deg); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

/* Skeleton Loading */
.skeleton { background: #e2e5e7; background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.5) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0)); background-size: 200% 100%; animation: shimmer 1.5s infinite linear; }
[data-theme="dark"] .skeleton { background: #2a3b3d; background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0)); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 380px; }
.skeleton-img { height: 220px; width: 100%; }
.skeleton-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.skeleton-title { height: 20px; width: 80%; border-radius: 4px; }
.skeleton-text { height: 14px; width: 100%; border-radius: 4px; }
.skeleton-text.short { width: 60%; }
.skeleton-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.skeleton-price { height: 24px; width: 40%; border-radius: 4px; }
.skeleton-btn { height: 45px; width: 45px; border-radius: 50%; }

/* Cart Sidebar */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: -450px; width: 100%; max-width: 420px; height: 100%; z-index: 1001; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.15); transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cart-sidebar.active { right: 0; }
.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.close-cart { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.close-cart:hover { color: var(--danger); transform: rotate(90deg); }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 1.5rem; }
.empty-cart { text-align: center; color: var(--text-muted); margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty-cart i { font-size: 3rem; opacity: 0.2; }
.cart-item { display: flex; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--border-color); animation: slideIn 0.3s ease-out forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius-md); object-fit: cover; background: var(--white); margin-right: 1rem; box-shadow: var(--shadow-sm); }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text-main); line-height: 1.2; }
.cart-item-price { font-size: 1rem; color: var(--brand-bronze); font-weight: 700; }
[data-theme="dark"] .cart-item-price { color: var(--brand-gold); }

.cart-item-qty { display: flex; align-items: center; margin-top: 0.5rem; background: var(--input-bg); border-radius: 20px; width: fit-content; padding: 0.1rem; border: 1px solid var(--border-color); }
.qty-btn { background: transparent; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--text-main); }
.qty-btn:hover { background: var(--white); box-shadow: var(--shadow-sm); color: #000; }
.qty-val { margin: 0 0.5rem; font-size: 0.9rem; font-weight: 600; min-width: 16px; text-align: center; }
.remove-item { background: rgba(239, 68, 68, 0.1); border: none; color: var(--danger); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: var(--transition); }
.remove-item:hover { background: var(--danger); color: #fff; transform: scale(1.1); }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border-color); background: rgba(0,0,0,0.02); }
.cart-summary { margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text-muted); }
.summary-line.total { font-size: 1.3rem; font-weight: 700; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-color); color: var(--text-main); }
.btn-checkout { width: 100%; padding: 1.2rem; background: var(--brand-dark); color: #fff; border: none; border-radius: var(--radius-lg); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
[data-theme="dark"] .btn-checkout { background: var(--brand-gold); color: #1a3231; }
.btn-checkout:not(:disabled):hover { background: var(--brand-gold); color: #1a3231; transform: translateY(-2px); }
.btn-checkout:disabled { background: var(--text-muted); cursor: not-allowed; opacity: 0.5; box-shadow: none; }

/* Shipping Form */
.shipping-calculator input { padding: 0.75rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); width: 100%; }
.shipping-options { background: var(--white); border-radius: var(--radius-md); padding: 0.5rem; border: 1px solid var(--border-color); }
.shipping-option { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.shipping-option:last-child { border-bottom: none; }
.shipping-option input { width: auto; margin-right: 10px; }

/* Modals */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-main); width: 90%; max-width: 600px; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.3); max-height: 90vh; display: flex; flex-direction: column; transform: scale(0.95) translateY(20px); transition: var(--transition); position: relative; }
.modal.active .modal-content { transform: scale(1) translateY(0); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.02); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-header h2 { color: var(--text-main); font-size: 1.5rem; }
.close-modal { background: var(--input-bg); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; }
.close-modal:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }
.modal-body { padding: 1.5rem; overflow-y: auto; }

/* Product Details Modal */
.product-modal-content { max-width: 800px; flex-direction: row; overflow: hidden; background: var(--white); }
.product-modal-content .close-modal { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: rgba(0,0,0,0.5); color: #fff; }
.product-modal-body { display: flex; padding: 0; width: 100%; height: 100%; }
.pm-image { width: 50%; background: var(--white); display: flex; flex-direction: column; padding: 2rem; border-right: 1px solid var(--border-color); }
.pm-main-img-container { width: 100%; aspect-ratio: 1; margin-bottom: 1rem; border-radius: var(--radius-md); overflow: hidden; background: #f9f9f9; display: flex; justify-content: center; align-items: center; }
.pm-main-img-container img { width: 100%; height: 100%; object-fit: contain; }
.pm-gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.pm-gallery::-webkit-scrollbar { height: 6px; }
.pm-gallery::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.pm-gallery img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); flex-shrink: 0; }
.pm-gallery img:hover { border-color: var(--brand-gold); transform: scale(1.05); }

.pm-info { width: 50%; padding: 2.5rem; display: flex; flex-direction: column; overflow-y: auto; max-height: 80vh; }
.pm-category { color: var(--brand-bronze); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
[data-theme="dark"] .pm-category { color: var(--brand-gold); }
.pm-title { font-size: 2rem; color: var(--text-main); margin-bottom: 0.5rem; line-height: 1.1; }
.pm-price { font-size: 1.8rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 0.5rem; }
[data-theme="dark"] .pm-price { color: var(--brand-gold); }
.pm-stock { font-size: 0.85rem; margin-bottom: 1.5rem; font-weight: bold; }
.pm-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; padding-right: 0.5rem; }

.pm-action-row { display: flex; align-items: center; gap: 1rem; margin-top: auto; flex-wrap: wrap; }
.pm-qty-selector { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; background: var(--input-bg); height: 50px; }
.pm-qty-selector button { padding: 0 15px; height: 100%; background: transparent; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-main); font-weight: bold; transition: var(--transition); }
.pm-qty-selector button:hover { background: rgba(0,0,0,0.05); }
.pm-qty-selector input { width: 45px; text-align: center; border: none; outline: none; font-weight: bold; font-size: 1.1rem; background: transparent; color: var(--text-main); height: 100%; }
.pm-btn-add { flex: 1; height: 50px; padding: 0 1.5rem; background: var(--brand-dark); color: #fff; font-weight: 700; font-size: 1rem; border: none; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; gap: 0.5rem; min-width: 200px; }
[data-theme="dark"] .pm-btn-add { background: var(--brand-gold); color: #1a3231; }
.pm-btn-add:not(:disabled):hover { background: var(--brand-gold); color: #1a3231; box-shadow: 0 4px 15px rgba(252,183,123,0.4); transform: translateY(-2px); }
.pm-btn-add:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 768px) { 
    .product-modal-content { max-height: 95vh; overflow-y: auto; } 
    .product-modal-body { flex-direction: column; }
    .pm-image { width: 100%; padding: 1.5rem; border-right: none; border-bottom: 1px solid var(--border-color); } 
    .pm-info { width: 100%; padding: 1.5rem; overflow-y: visible; max-height: none; } 
    .pm-title { font-size: 1.5rem; } 
    .pm-action-row { flex-direction: column; align-items: stretch; }
}

/* Form Styles */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="search"] { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--input-bg); color: var(--text-main); }
input:focus { outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(53,99,98,0.2); }
.payment-methods { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.payment-method { flex: 1; border: 2px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem 0.5rem; text-align: center; cursor: pointer; transition: var(--transition); font-weight: 600; font-size: 0.9rem; background: var(--white); }
.payment-method input { display: none; }
.payment-method i { display: block; font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-muted); transition: var(--transition); }
.payment-method.selected { border-color: var(--brand-dark); background-color: rgba(53,99,98,0.1); color: var(--brand-dark); }
[data-theme="dark"] .payment-method.selected { border-color: var(--brand-gold); color: var(--brand-gold); }
.payment-method.selected i { color: var(--brand-gold); transform: scale(1.1); }
.cc-container { background: rgba(0,0,0,0.03); border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--border-color); animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.btn-primary { width: 100%; padding: 1.2rem; background: var(--brand-gold); color: #1a3231; border: none; border-radius: var(--radius-lg); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px rgba(252, 183, 123, 0.4); display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
[data-theme="dark"] .btn-primary:hover { background: var(--white); color: var(--brand-dark); }
.btn-secondary { padding: 0.9rem 1.5rem; background: var(--input-bg); color: var(--text-main); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { background: var(--brand-light); color: #fff; }
.btn-text { background: none; border: none; color: var(--brand-light); font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: underline; transition: var(--transition); }
[data-theme="dark"] .btn-text { color: var(--brand-gold); }
.btn-text:hover { color: var(--text-main); }
.error-msg { color: var(--danger); font-size: 0.9rem; margin-bottom: 1rem; text-align: center; }

/* Orders List */
.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card-wrapper { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.order-card { padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.order-card-info h4 { margin-bottom: 0.25rem; font-size: 1.1rem; color: var(--text-main); }
.order-card-info p { font-size: 0.85rem; color: var(--text-muted); }
.order-status { font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.75rem; border-radius: 20px; background: #eee; }
.order-status.received { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.order-status.shipped { background: rgba(59, 130, 246, 0.2); color: #2563eb; }
.order-status.delivered { background: rgba(16, 185, 129, 0.25); color: #059669; }
.order-status.canceled { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.order-status.pending { background: rgba(252, 183, 123, 0.2); color: var(--brand-bronze); }

.order-tracking-box {
    background: rgba(0, 0, 0, 0.03); border-top: 1px border-style var(--border-color);
    padding: 0.8rem 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
[data-theme="dark"] .order-tracking-box { background: rgba(255, 255, 255, 0.05); }
.tracking-code-info { font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.btn-track-order {
    background: var(--brand-dark); color: #fff; padding: 0.4rem 1rem; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: var(--transition);
}
[data-theme="dark"] .btn-track-order { background: var(--brand-gold); color: #1a3231; }
.btn-track-order:hover { transform: translateY(-2px); opacity: 0.9; }

/* Customer Portal Modal */
.customer-portal-modal { max-width: 680px; width: 92%; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.portal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.02); }
.customer-profile-info { display: flex; align-items: center; gap: 0.85rem; }
.customer-avatar { font-size: 2.5rem; color: var(--brand-gold); display: flex; align-items: center; }
.customer-profile-info h2 { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--text-main); }
.customer-email-badge { font-size: 0.82rem; color: var(--text-muted); display: block; }

.portal-tabs { display: flex; border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.04); padding: 0 1rem; overflow-x: auto; gap: 0.5rem; }
[data-theme="dark"] .portal-tabs { background: rgba(255, 255, 255, 0.04); }
.portal-tab {
    padding: 0.85rem 1.25rem; background: none; border: none; border-bottom: 3px solid transparent;
    color: var(--text-muted); font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex;
    align-items: center; gap: 0.5rem; white-space: nowrap; transition: var(--transition);
}
.portal-tab.active { color: var(--brand-dark); border-bottom-color: var(--brand-dark); }
[data-theme="dark"] .portal-tab.active { color: var(--brand-gold); border-bottom-color: var(--brand-gold); }
.portal-tab:hover { color: var(--text-main); }

.portal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.portal-tab-content { display: none; }
.portal-tab-content.active { display: block; }
.portal-form .form-group { margin-bottom: 1rem; }

.portal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; background: rgba(0,0,0,0.02); }
.btn-danger-outline { border: 1px solid var(--danger); color: var(--danger); background: transparent; padding: 0.5rem 1.25rem; border-radius: 20px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }

.order-pay-box {
    background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.75rem 1rem; border-radius: 8px; margin-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.btn-pay-order { background: #d97706; color: #fff; text-decoration: none; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 700; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-pay-order:hover { background: #b45309; transform: translateY(-2px); }

.order-items-detail { margin-top: 0.75rem; border-top: 1px dashed var(--border-color); padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.order-item-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--text-main); }
.order-item-name { font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 35px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 1500;
    display: flex; justify-content: center; align-items: center; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Footer */
.app-footer { background: #1f3d3c; color: #e5e7eb; padding-top: 3.5rem; margin-top: 4rem; border-top: 4px solid var(--brand-gold); position: relative; }
[data-theme="dark"] .app-footer { background: #162a29; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.footer-col { font-size: 0.9rem; }
.footer-logo { height: 48px; background: #fff; padding: 6px; border-radius: 6px; margin-bottom: 1rem; }
.footer-desc { color: #d1d5db; line-height: 1.5; margin-bottom: 1.25rem; font-size: 0.9rem; }

.footer-title {
    color: var(--brand-gold); margin-bottom: 1.5rem; font-size: 0.95rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; position: relative; display: inline-block;
}
.footer-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 3px; background: var(--brand-gold); border-radius: 2px; }

.footer-quick-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-quick-links li a { color: #d1d5db; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.footer-quick-links li a:hover { color: var(--brand-gold); transform: translateX(4px); }

.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { color: #d1d5db; font-size: 0.88rem; display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.4; }
.footer-contact-list i { margin-top: 3px; font-size: 1rem; }

.hours-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 1rem; border-radius: 10px; }
.hours-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #d1d5db; border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.hours-row.border-none { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
    color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); text-decoration: none;
}
.social-icons a:hover { background: var(--brand-gold); color: var(--brand-dark); transform: translateY(-3px); }

.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); padding: 1.25rem 0; font-size: 0.85rem; color: #9ca3af; }
.footer-bottom-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-nav-links { display: flex; align-items: center; gap: 0.75rem; }
.footer-nav-links a { color: #9ca3af; text-decoration: none; transition: var(--transition); }
.footer-nav-links a:hover { color: #fff; }
.credits-link { display: flex; align-items: center; gap: 0.5rem; color: #9ca3af; text-decoration: none; transition: var(--transition); }
.credits-link:hover { color: var(--brand-gold); }
.fn-logo { height: 26px; object-fit: contain; }

/* Toast */
.toast { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--panel-bg); color: var(--text-main); border: 1px solid var(--border-color); padding: 1rem 2rem; border-radius: 30px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 3000; transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 0.5rem; backdrop-filter: blur(5px); }
.toast.show { bottom: 40px; }
.toast i { color: var(--brand-gold); }

.pix-qrcode { max-width: 220px; border-radius: var(--radius-md); border: 2px solid var(--border-color); padding: 0.5rem; background: #fff; }
.pix-payload { width: 100%; font-size: 0.85rem; font-family: monospace; padding: 0.75rem; margin: 1rem 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--input-bg); color: var(--text-main); resize: none; height: 80px; }

/* Mobile Optimization & Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(38, 72, 71, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(18, 24, 27, 0.95);
}

.mobile-nav-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
    color: var(--brand-gold);
    transform: translateY(-2px);
}

.mobile-cart-badge-wrapper {
    position: relative;
    display: inline-block;
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 10px;
    padding: 1px 5px;
    line-height: 1;
}

/* Mobile responsive media queries (<768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
    
    .toast.show {
        bottom: 80px;
    }

    /* Modal Sheet Effect for Mobile */
    .modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
        max-height: 92vh;
        overflow-y: auto;
        animation: slideUp 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Customer Portal Tabs Mobile */
    .portal-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-bottom: 2px solid rgba(255,255,255,0.1);
        padding: 0 10px;
        gap: 8px;
    }
    
    .portal-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .portal-tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex: 0 0 auto;
        border-radius: 12px 12px 0 0;
    }

    /* Form Rows in Mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Order Card Mobile Improvements */
    .order-card {
        padding: 1rem;
    }
    
    .order-pay-box {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: center;
    }
    
    .btn-pay-order {
        justify-content: center;
        width: 100%;
        padding: 0.6rem 1rem;
    }

    /* Products Grid Mobile 2 Columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-card {
        border-radius: 16px;
    }

    .product-card .product-title {
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .product-card .product-price {
        font-size: 1rem;
    }
}

/* Floating Install PWA Button */
.floating-install-btn {
    position: fixed;
    bottom: 85px; /* Stay above the mobile bottom nav bar */
    left: 20px;
    z-index: 999;
    background: var(--brand-gold);
    color: #1a3231;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(252,183,123,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    animation: pulseInstall 2s infinite;
}

[data-theme="dark"] .floating-install-btn {
    background: var(--brand-gold);
    color: #1a3231;
}

.floating-install-btn.hidden {
    display: none !important;
}

.floating-install-btn:hover {
    transform: translateY(-3px);
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@keyframes pulseInstall {
    0% {
        box-shadow: 0 0 0 0 rgba(252,183,123,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(252,183,123,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(252,183,123,0);
    }
}

@media (max-width: 768px) {
    .floating-install-btn {
        bottom: 85px; /* Above the mobile nav bar */
        left: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
