/* ============================================================
   style.css — User App Global Styles
   Project: Freelancing By Rifat E-Commerce
   Design: Premium Maroon & White — Fully Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Maroon palette — subtle, premium */
    --primary:       #8B1A1A;
    --primary-light: #B03535;
    --primary-dark:  #680000;
    --primary-glow:  rgba(139,26,26,0.15);
    --primary-soft:  rgba(139,26,26,0.07);

    /* Backgrounds */
    --bg:            #FFFFFF;
    --bg-light:      #FBF8F7;
    --bg-card:       #FFFFFF;
    --bg-subtle:     #F7F2F2;

    /* Borders */
    --border:        #E4D8D8;
    --border-light:  #F0EAEA;

    /* Text */
    --text-dark:     #1A0808;
    --text-body:     #3D2A2A;
    --text-muted:    #9E7070;

    /* Status */
    --gold:          #C89B00;
    --success:       #2E7D32;
    --warning:       #B45309;
    --danger:        #B91C1C;

    /* Layout */
    --radius-xs:     6px;
    --radius-sm:     10px;
    --radius-md:     14px;
    --radius-lg:     20px;
    --radius-xl:     28px;

    --shadow-xs:     0 1px 4px rgba(139,26,26,0.06);
    --shadow-sm:     0 2px 10px rgba(139,26,26,0.08);
    --shadow-md:     0 6px 24px rgba(139,26,26,0.11);
    --shadow-lg:     0 12px 44px rgba(139,26,26,0.15);
    --transition:    0.22s ease;
    --navbar-h:      64px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html               { scroll-behavior: smooth; overflow-x: hidden; }
body               {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a                  { text-decoration: none; color: inherit; }
ul                 { list-style: none; }
img                { max-width: 100%; display: block; }
button             { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 rgba(139,26,26,0.06);
    height: var(--navbar-h);
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
}

/* left accent line */
.navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    pointer-events: none;
}

.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: var(--text-dark);
    text-decoration: none; flex-shrink: 0;
    letter-spacing: -0.2px;
}

.navbar-brand span { color: var(--primary); }
.navbar-brand img  { height: 36px; width: auto; }

.navbar-search {
    flex: 1; max-width: 460px; margin: 0 auto;
    position: relative;
}

.navbar-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    font-size: 14px; outline: none;
    transition: var(--transition);
    color: var(--text-dark);
}

.navbar-search input::placeholder { color: var(--text-muted); }

.navbar-search input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.navbar-search .search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 15px; pointer-events: none;
}

.navbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.cart-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--primary); color: #fff;
    font-size: 9px; font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(139,26,26,0.4);
}

.hamburger { display: none; }

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Section ────────────────────────────────────────────────── */
.section       { padding: 32px 0; }
.section-title {
    font-size: 20px; font-weight: 800; color: var(--text-dark);
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
    letter-spacing: -0.2px;
}
.section-title span { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-left: auto; }
.section-title a { color: var(--primary); }

/* ── Hero Slider ────────────────────────────────────────────── */
.hero-slider {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    margin: 16px 0;
    box-shadow: var(--shadow-md);
}

.slider-track { display: flex; transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.slide {
    min-width: 100%; height: 380px; position: relative; flex-shrink: 0;
    background: linear-gradient(135deg, #2c0000, #5c1010);
}

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

.slide-content {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.2) 55%, transparent 80%);
    display: flex; align-items: center; padding: 40px;
}

.slide-headline {
    color: #fff; font-size: 34px; font-weight: 900;
    line-height: 1.15; max-width: 420px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    letter-spacing: -0.4px;
}

.slide-sub { color: rgba(255,255,255,0.88); font-size: 15px; margin: 10px 0 22px; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.92); border: none;
    border-radius: 50%; font-size: 18px; line-height: 1;
    cursor: pointer; box-shadow: var(--shadow-md);
    transition: var(--transition); z-index: 10;
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: var(--transition); cursor: pointer; }
.dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ── Category Pills ──────────────────────────────────────────── */
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 30px;
    background: var(--bg-card); border: 1.5px solid var(--border);
    font-size: 13px; font-weight: 600; white-space: nowrap;
    cursor: pointer; transition: var(--transition);
    text-decoration: none; color: var(--text-body);
    flex-shrink: 0;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.cat-pill img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ── Products Grid — FULLY RESPONSIVE ────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-card); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light); transition: var(--transition);
    cursor: pointer; text-decoration: none; display: block; color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(139,26,26,0.15);
}

.product-img-wrap {
    position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-subtle);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.product-badge  { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-sale { background: var(--primary); color: #fff; }
.badge-new  { background: var(--success); color: #fff; }

.product-info  { padding: 12px; }
.product-name  {
    font-size: 13.5px; font-weight: 700; color: var(--text-dark);
    margin-bottom: 6px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.4;
    word-break: break-word;
}
.product-price-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.product-price     { font-size: 16px; font-weight: 800; color: var(--primary); }
.product-old-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

.product-add-btn {
    width: 100%; padding: 9px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; border: none;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.product-add-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-1px);
}

/* ── Flash Deal Timer ────────────────────────────────────────── */
.flash-timer {
    font-size: 12px; color: var(--primary); font-weight: 700;
    background: var(--primary-soft);
    padding: 3px 10px; border-radius: 6px; margin-left: auto;
    font-variant-numeric: tabular-nums;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 700; border: none;
    cursor: pointer; transition: var(--transition);
    text-decoration: none; white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

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

.btn-dark { background: var(--text-dark); color: #fff; }
.btn-dark:hover { background: #3d1010; }

.btn-ghost { background: var(--bg-subtle); color: var(--text-body); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--border); }

.btn-whatsapp { background: #25D366; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: #1EBA5A; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.btn-whatsapp svg { flex-shrink: 0; }

.btn-sm   { padding: 7px 14px; font-size: 12.5px; }
.btn-lg   { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Form Controls ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dark);
    outline: none; transition: var(--transition); font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint  { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

/* ── Cart ───────────────────────────────────────────────────── */
.cart-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; background: var(--bg-card);
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    margin-bottom: 10px; transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(139,26,26,0.12); }

.cart-item-img   { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-subtle); flex-shrink: 0; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.cart-item-meta  { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--primary); }

.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn {
    width: 32px; height: 32px; border: none;
    background: var(--bg-subtle); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-num { width: 36px; text-align: center; font-weight: 700; font-size: 14px; color: var(--text-dark); }

/* ── Stars ──────────────────────────────────────────────────── */
.star-input { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
.star-input label { font-size: 28px; cursor: pointer; color: #ddd; transition: var(--transition); }
.star-input input { display: none; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--gold); }

.review-card-user   { background: var(--bg-light); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; }
.review-stars       { color: var(--gold); font-size: 14px; }
.review-stars-lg    { color: var(--gold); font-size: 20px; }

/* ── Stepper ─────────────────────────────────────────────────── */
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 28px; }
.step    { display: flex; align-items: center; gap: 0; }
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--border); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; transition: var(--transition);
}
.step-dot.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--primary-glow); }
.step-dot.done   { background: var(--success); color: #fff; }
.step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 6px; text-align: center; }
.step-line  { width: 60px; height: 2px; background: var(--border); flex-shrink: 0; }
.step-line.done { background: var(--success); }
.step-wrap  { display: flex; flex-direction: column; align-items: center; }

/* ── Badges / Pills ─────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-pending   { background: rgba(180,83,9,0.10);   color: var(--warning);  }
.badge-confirmed { background: rgba(46,125,50,0.10);  color: var(--success);  }
.badge-shipped   { background: rgba(139,26,26,0.10);  color: var(--primary);  }
.badge-delivered { background: rgba(46,125,50,0.14);  color: var(--success);  }
.badge-cancelled { background: rgba(185,28,28,0.10);  color: var(--danger);   }
.badge-paid      { background: rgba(46,125,50,0.10);  color: var(--success);  }
.badge-unpaid    { background: rgba(180,83,9,0.10);   color: var(--warning);  }

/* Status text helpers */
.status-pending   { color: var(--warning);  font-weight: 700; }
.status-confirmed { color: var(--success);  font-weight: 700; }
.status-shipped   { color: var(--primary);  font-weight: 700; }
.status-delivered { color: var(--success);  font-weight: 800; }
.status-cancelled { color: var(--danger);   font-weight: 700; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-bar {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--text-dark); color: #fff;
    padding: 13px 22px; border-radius: 30px; font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg); z-index: 9999; white-space: nowrap;
    animation: toastPop 0.3s ease;
}
@keyframes toastPop { from { opacity:0; transform: translateX(-50%) translateY(10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f5e8e8 25%, #eedede 50%, #f5e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Page Loader ────────────────────────────────────────────── */
.page-loader {
    position: fixed; inset: 0; 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; flex-direction: column; gap: 0;
}

.page-loader dotlottie-wc {
    width: 280px !important;
    height: 280px !important;
}

@media (max-width: 768px) {
    .page-loader dotlottie-wc {
        width: 220px !important;
        height: 220px !important;
    }
}

.spinner    { width: 38px; height: 38px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    background: #2c0808;
    background-image: linear-gradient(135deg, #1a0404 0%, #3d0e0e 100%);
    color: rgba(255,255,255,0.70);
    padding: 48px 20px 24px;
    margin-top: 56px;
    border-top: 3px solid var(--primary);
}
.footer-grid   { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand  { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.2px; }
.footer-desc   { font-size: 13px; line-height: 1.8; }
.footer-title  { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer a      { font-size: 13.5px; color: rgba(255,255,255,0.65); display: block; margin-bottom: 9px; transition: var(--transition); }
.footer a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 12px; }

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
    position: fixed; top: 0; left: 0; bottom: 0; width: 290px;
    background: #fff; z-index: 600;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; padding: 20px;
    border-right: 3px solid var(--primary);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay   { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 599; display: none; backdrop-filter: blur(3px); }
.mobile-overlay.show { display: block; }

/* ── Mobile Filter Modal ────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.mobile-filter-sheet { background: #fff; width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.3s ease; }
.mobile-filter-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.mobile-filter-body { padding: 20px; overflow-y: auto; flex: 1; }
.mobile-filter-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); display: flex; gap: 12px; }
.mobile-filter-footer .btn { flex: 1; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Custom Context Menu ────────────────────────────────────── */
#customContextMenu {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    display: none;
    border: 1px solid var(--border-light);
}

#customContextMenu a, #customContextMenu div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

#customContextMenu a:hover, #customContextMenu div:hover {
    background: var(--primary-soft);
}

#customContextMenu a:first-child:hover {
    border-radius: 12px 12px 0 0;
}

#customContextMenu div:last-child:hover {
    border-radius: 0 0 12px 12px;
}

#customContextMenu hr {
    margin: 6px 0;
    border-color: var(--border-light);
    border-style: solid;
    border-width: 1px 0 0 0;
}

/* Disable default context menu and long press */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* ── Helper Classes ─────────────────────────────────────────── */
.color-swatch    { position: relative; overflow: visible !important; }
.invoice-divider { border: none; border-top: 1px solid var(--border-light); margin: 12px 0; }
.promo-applied   { color: var(--success); font-weight: 700; }
.promo-error     { color: var(--danger);  font-weight: 600; }
.notif-dot       { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; margin-left: 4px; }

/* Promo box */
.promo-box {
    background: linear-gradient(135deg, var(--primary-soft), rgba(180,83,9,0.04));
    border: 1.5px dashed var(--primary); border-radius: var(--radius-md);
    padding: 14px; display: flex; align-items: center; gap: 12px;
}

/* Scroll to top */
#scrollTop {
    position: fixed; bottom: 80px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: #fff;
    border: none; font-size: 18px; z-index: 400;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: var(--transition); cursor: pointer;
}
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }
#scrollTop.visible { display: flex; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }

/* ── ════════ RESPONSIVE ════════ ─────────────────────────────── */

/* ── Desktop large (>1280px) */
@media (min-width: 1280px) {
    .products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .container     { max-width: 1280px; }
}

/* ── Desktop (1024-1280px) -- 4 columns, default */
@media (max-width: 1280px) and (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Tablet landscape (768-1023px) -- 3 columns */
@media (max-width: 1023px) and (min-width: 768px) {
    .products-grid     { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .footer-grid       { grid-template-columns: 1fr 1fr; gap: 28px; }
    .navbar-search     { max-width: 300px; }
    .slide             { height: 300px; }
    .slide-headline    { font-size: 26px; }
}

/* ── Tablet portrait / large mobile (641-767px) -- 2 columns */
@media (max-width: 767px) {
    .hamburger         { display: flex; }
    .navbar-search     { display: none; }  /* hidden on mobile — search in menu */
    .navbar            { padding: 0 16px; gap: 12px; }
    .products-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .slide             { height: 240px; }
    .slide-headline    { font-size: 22px; }
    .slide-content     { padding: 28px; }
    .footer-grid       { grid-template-columns: 1fr 1fr; gap: 24px; }
    .form-row          { grid-template-columns: 1fr; }
    .section           { padding: 22px 0; }
    .section-title     { font-size: 18px; }
    .stepper .step-line { width: 40px; }
    .cart-item-img     { width: 64px; height: 64px; }
}

/* ── Small mobile (<480px) -- 2 compact columns */
@media (max-width: 480px) {
    .container         { padding: 0 12px; }
    .navbar            { padding: 0 12px; gap: 10px; }
    .products-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-info      { padding: 10px; }
    .product-name      { font-size: 12.5px; }
    .product-price     { font-size: 14px; }
    .product-add-btn   { font-size: 12px; padding: 8px; }
    .slide             { height: 200px; }
    .slide-content     { padding: 18px; }
    .slide-headline    { font-size: 18px; }
    .slide-sub         { font-size: 12px; margin: 6px 0 10px; }
    .footer-grid       { grid-template-columns: 1fr; gap: 20px; }
    .footer            { padding: 32px 14px 18px; }
    .stepper           { gap: 0; }
    .stepper .step-line { width: 24px; }
    .section-title     { font-size: 16px; }
    .btn-lg            { padding: 12px 18px; font-size: 15px; }
    .hero-slider       { border-radius: var(--radius-md); }
    .slider-btn        { width: 32px; height: 32px; font-size: 14px; }
    .slider-prev       { left: 8px; }
    .slider-next       { right: 8px; }
    .cart-item         { flex-direction: column; }
    .cart-item-img     { width: 100%; height: 180px; border-radius: var(--radius-md); }
}

/* --- Product Description (Rich Text rendered styles) ----------- */
.product-description { font-size: 14px; color: var(--text-body, #333); line-height: 1.8; margin-bottom: 20px; }
.product-description b, .product-description strong { font-weight: 700; color: var(--text-dark, #111); }
.product-description i, .product-description em { font-style: italic; }
.product-description u { text-decoration: underline; }
.product-description s { text-decoration: line-through; opacity: 0.7; }
.product-description ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.product-description ol { list-style: decimal; padding-left: 22px; margin: 8px 0; }
.product-description li { margin-bottom: 4px; }
.product-description h1 { font-size: 1.4em; font-weight: 800; color: var(--text-dark,#111); margin: 10px 0 4px; }
.product-description h2 { font-size: 1.2em; font-weight: 700; color: var(--text-dark,#111); margin: 8px 0 4px; }
.product-description h3 { font-size: 1.05em; font-weight: 700; color: var(--text-dark,#111); margin: 6px 0 4px; }
.product-description blockquote { border-left: 3px solid var(--primary,#8B1A1A); padding-left: 12px; color: var(--text-muted,#666); margin: 8px 0; font-style: italic; }
.product-description p { margin: 4px 0; }
