/* ═══════════════════════════════════════════════════════════
   RIZFA PREMIUM MARKETPLACE — v70.0 (MODERN APP THEME)
   Bright, engaging, soft shadows, rounded corners, professional.
═══════════════════════════════════════════════════════════ */

:root {
    /* Modern E-Commerce Palette */
    --brand-main:    #1e293b; /* Deep slate for primary text/headers */
    --brand-accent:  #e11d48; /* Vibrant crimson for buttons/highlights */
    --brand-text:    #334155; /* Soft slate for body text */
    --brand-muted:   #64748b; /* Muted text */
    --brand-bg:      #f8fafc; /* Very soft app background */
    --brand-surface: #ffffff; /* Pure white cards */
    --brand-border:  #e2e8f0; /* Light borders */
    
    /* Legacy aliases */
    --accent:        #e11d48;
    --primary:       #1e293b;

    /* Shadows - Soft floating app style */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(15,23,42,0.06);
    --shadow-lg: 0 16px 48px rgba(15,23,42,0.08);

    /* Transitions */
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease);

    /* Radius - Soft modern app curves */
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-full: 999px;
}

/* ──────────────────────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    background: var(--brand-bg);
    color: var(--brand-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ──────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
────────────────────────────────────────────────────────── */
.announce-bar {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    color: white;
    padding: 8px 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    overflow: hidden;
}

@keyframes marqueeLeft {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.announce-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    white-space: nowrap;
    width: max-content;
    animation: marqueeLeft 20s linear infinite;
}
.announce-inner:hover {
    animation-play-state: paused;
}
.announce-inner ion-icon { font-size: 1rem; color: #facc15; }
.announce-inner .divider { opacity: 0.3; }

/* ──────────────────────────────────────────────────────────
   HEADER / NAV
────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.main-nav { padding: 1rem 0; }

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-main);
}
.logo img {
    height: 65px;
    width: auto;
    margin-right: 12px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-top: 2px;
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--brand-main);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.nav-btn:hover { color: var(--brand-accent); transform: translateY(-2px); }

.nav-icon-wrap {
    position: relative;
    font-size: 1.6rem;
    background: #f1f5f9;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.nav-btn:hover .nav-icon-wrap { background: #ffe4e6; color: var(--brand-accent); }

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(225,29,72,0.3);
}

/* User chip */
.nav-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
}
.nav-user-chip ion-icon { font-size: 1.2rem; color: var(--brand-accent); }

/* ──────────────────────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────────────────────── */
.hero-section {
    background: var(--brand-bg);
    padding-top: 1.5rem;
}

.hero-wrapper {
    position: relative;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 1440px;
    margin: 0 auto;
    width: calc(100% - 6rem);
}

#slidesContainer {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}



.hero-slide-inner {
    width: 100%;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 500px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: rgba(225,29,72,0.9);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(225,29,72,0.3);
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--brand-main);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.hero-cta:hover {
    background: var(--brand-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225,29,72,0.3);
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: var(--brand-accent);
    width: 24px;
    border-radius: 10px;
}

/* ──────────────────────────────────────────────────────────
   SEARCH SECTION
────────────────────────────────────────────────────────── */
.search-section {
    padding: 2.5rem 0 1rem;
}

.search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-border);
    transition: var(--transition);
}
.search-wrapper:focus-within {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    font-size: 1.3rem;
    color: var(--brand-muted);
}

.search-wrapper input {
    flex: 1;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--brand-main);
}

.search-btn {
    background: var(--brand-accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin-right: 6px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.search-btn:hover { background: #be123c; }

/* ──────────────────────────────────────────────────────────
   CATEGORY RIBBON (MODERN CIRCLES RESTORED)
────────────────────────────────────────────────────────── */
.category-ribbon {
    margin: 2rem auto;
}

.ribbon-container {
    display: flex;
    align-items: center;
    position: relative;
}

.ribbon-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 1rem;
}
.ribbon-scroll::-webkit-scrollbar { display: none; }

.ribbon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
}
.ribbon-item:hover { transform: translateY(-5px); }

.ribbon-item .circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    overflow: hidden;
    transition: var(--transition);
}
.ribbon-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ribbon-item.active .circle {
    border-color: var(--brand-accent);
    box-shadow: 0 4px 15px rgba(225,29,72,0.2);
}

.ribbon-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-main);
    text-align: center;
}
.ribbon-item.active span { color: var(--brand-accent); }

/* ──────────────────────────────────────────────────────────
   MARKET LAYOUT
────────────────────────────────────────────────────────── */
.market-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

/* ──────────────────────────────────────────────────────────
   FILTER SIDEBAR
────────────────────────────────────────────────────────── */
.filter-sidebar {
    position: sticky;
    top: 120px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-border);
}

.sidebar-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-main);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--brand-border);
}

.category-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-link, .cat-btn {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: transparent !important;
    border: none !important;
    border-radius: var(--radius-sm);
    color: var(--brand-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: var(--transition);
}
.cat-link:hover, .cat-btn:hover { background: #f1f5f9 !important; color: var(--brand-main) !important; }
.cat-link.active, .cat-btn.active { 
    background: #ffe4e6 !important; 
    color: var(--brand-accent) !important; 
    font-weight: 700 !important; 
}
.cat-link ion-icon, .cat-btn ion-icon { display: none; }

/* ──────────────────────────────────────────────────────────
   SECTION TITLES
────────────────────────────────────────────────────────── */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-main);
}

.flash-timer {
    background: var(--brand-accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ──────────────────────────────────────────────────────────
   PRODUCT GRID & CARDS
────────────────────────────────────────────────────────── */
.market-main { min-width: 0; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    min-width: 0;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-border);
}

.product-img-wrapper {
    background: #f1f5f9;
    border-radius: var(--radius-md);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.2rem;
    padding: 1rem;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: darken; /* Blends white background into the wrapper seamlessly */
    transition: transform 0.4s var(--ease);
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

/* Wishlist heart */
.wish-action {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 2;
}
.wish-action:hover, .wish-action.active { color: var(--brand-accent); background: #ffe4e6; }

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info .tag {
    font-size: 0.65rem;
    color: var(--brand-accent);
    background: rgba(225,29,72,0.1);
    box-shadow: none;
    border-bottom: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-main);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-main);
}

/* Restored layout to proper inline flex if desired, or column depending on space */
.price-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}

.flash-sale-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
}
.flash-sale-scroll::-webkit-scrollbar { display: none; }

/* ──────────────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────────────── */
.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand-main);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.add-btn:hover { background: var(--brand-accent); }
.add-btn ion-icon { font-size: 1rem; }

.full-btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
    background: var(--brand-accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
}
.full-btn:hover { background: #be123c; }

.ghost-btn {
    display: block;
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.95rem;
    background: transparent;
    border: none;
    text-decoration: underline;
    color: var(--brand-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.ghost-btn:hover { color: var(--brand-main); }

/* ──────────────────────────────────────────────────────────
   OVERLAY & SIDEBARS
────────────────────────────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
    transition: opacity 0.3s ease;
}
.overlay.open { display: block; }

.sidebar {
    position: fixed;
    right: -480px;
    top: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s var(--ease);
}
.sidebar.open { right: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--brand-border);
}
.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--brand-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.sidebar-close-btn:hover { background: #fee2e2; color: #ef4444; }

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.sidebar-footer {
    padding: 2rem;
    background: white;
    border-top: 1px solid var(--brand-border);
}

/* ──────────────────────────────────────────────────────────
   CHECKOUT MODAL
────────────────────────────────────────────────────────── */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    z-index: 3000;
    display: none;
    flex-direction: column;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.checkout-modal.open { display: flex; }

.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10; }

.checkout-steps {
    display: flex;
    justify-content: space-around;
    padding: 2rem 2rem 0;
    border-bottom: 1px solid var(--brand-border);
}
.step {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-muted);
    padding-bottom: 1rem;
    border-bottom: 2px solid transparent;
}
.step.active { color: var(--brand-accent); border-bottom-color: var(--brand-accent); }

.checkout-flow { padding: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-main);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8fafc;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(225,29,72,0.1);
}

/* ──────────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────────── */
.site-footer {
    background: white;
    color: var(--brand-main);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--brand-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand p {
    color: var(--brand-muted);
    line-height: 1.8;
    margin-top: 1.5rem;
}

.footer-logo img { height: 48px; }

.footer-socials { display: flex; gap: 1rem; margin-top: 2rem; }
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-main);
    text-decoration: none;
    transition: var(--transition);
}
.social-icon:hover { background: var(--brand-accent); color: white; transform: translateY(-3px); }

.footer-col h4 {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--brand-main);
    margin-bottom: 1.5rem;
}
.footer-col a, .footer-col p {
    display: block;
    color: var(--brand-muted);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--brand-accent); }

/* ──────────────────────────────────────────────────────────
   TOAST
────────────────────────────────────────────────────────── */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background: var(--brand-main);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }

/* ──────────────────────────────────────────────────────────
   RESPONSIVE (MOBILE FIXES)
────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container, .nav-container, .hero-slide-inner { padding: 0 2rem; }
    .hero-wrapper { width: calc(100% - 4rem); }
    .market-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .container, .nav-container { padding: 0 1.2rem; }
    .nav-container { flex-wrap: wrap; }
    
    .logo img { height: 55px; }
    .brand-title { font-size: 1.4rem; }
    
    .nav-btn span, .nav-user-chip span { display: none; }
    .nav-user-chip { padding: 8px; border-radius: 50%; }
    
    .hero-wrapper { width: 100%; border-radius: 0; height: 220px; }
    .hero-slide-inner { padding: 0 1.5rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { display: none; }
    
    .search-wrapper input { padding-left: 3rem; }
    .search-icon { left: 1rem; }
    .search-btn span { display: none; }
    
    .ribbon-item .circle { width: 68px; height: 68px; }
    .ribbon-item span { font-size: 0.65rem; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .product-card { padding: 0.8rem; border-radius: var(--radius-md); }
    .product-img-wrapper { height: 150px; padding: 0.5rem; }
    .product-info h3 { font-size: 0.85rem; height: 2.8em; }
    .price { font-size: 1rem; }
    
    /* Stack price and button safely on mobile so it never overlaps */
    .price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .add-btn { width: 100%; padding: 0.6rem; font-size: 0.7rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-socials { justify-content: center; }
}