/* ═══════════════════════════════════════════════════════════════════════════
   GLOORBOT - "Playful Tech" Redesign
   Vibrant Blue, Rounded & Friendly, Glassmorphism
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
    /* Core Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f4f8;
    /* Softer blue-grey */
    --accent-blue: #2563EB;
    /* Vibrant Blue */
    --accent-blue-dark: #1E40AF;
    --accent-blue-light: #60A5FA;
    --accent-blue-soft: rgba(37, 99, 235, 0.12);

    /* Functional Colors */
    --success: #10B981;
    --success-bg: #D1FAE5;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --warning: #F59E0B;
    --text-primary: #1E293B;
    /* Slate 800 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94A3B8;
    /* Slate 400 */

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);

    /* Typography */
    --font-heading: 'Fredoka', system-ui, sans-serif;
    /* Playful headers */
    --font-body: 'Nunito', system-ui, sans-serif;
    /* Friendly body text */

    /* Spacing */
    --container-max: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-secondary);
    /* Hero Gradient Background */
    background-image: url('../img/hero-gradient.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.2;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-blue-dark);
}

button {
    font-family: var(--font-heading);
    /* Buttons get the playful font */
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER (The "Peeking Robot")
   ═══════════════════════════════════════════════════════════════════════════ */

.site-header {
    height: var(--header-height);
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-blue) 100%);
    color: white;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-md);
    /* Soft curve at bottom */
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* The Wave Pattern Overlay (generated image) */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/header-pattern.png');
    background-size: cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    pointer-events: none;
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Context for absolute logo */
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* THE PEEKING LOGO */
.brand-link {
    display: flex;
    /* Kept for semantics, but image is absolute */
}

.brand-logo {
    position: absolute;
    top: 10px;
    /* Slight offset from top */
    left: 24px;
    height: 110px;
    /* Big! 15% larger as requested */
    width: 110px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.brand-name {
    display: none;
    /* Hide text, logo is iconic enough */
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 8px;
    /* Tight gap for pill buttons */
    margin-left: 120px;
    /* Make room for the big logo */
    z-index: 20;
    /* Above pattern */
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link.active {
    background: white;
    color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

/* Mobile Nav Adjustments - Basic fallback (overridden by more specific rules below) */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 12px 0;
        border-radius: 0 0 16px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.site-main {
    padding: 40px 0;
    /* Pushes content down so it doesn't hide behind the peeking logo space */
    margin-top: 20px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.1s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.35);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--accent-blue-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS (Glassmorphism)
   ═══════════════════════════════════════════════════════════════════════════ */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
    /* Cards in same row match height */
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Card Image Area */
.deal-card__image {
    aspect-ratio: 1.1;
    /* Slightly wider */
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 24px;
    position: relative;
    /* Clean separation */
    border-bottom: 1px solid var(--bg-secondary);
}

.deal-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .deal-card__image img {
    transform: scale(1.05);
}

/* Discount Badge - Floating Pill */
.deal-card__discount {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--danger);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Card Body */
.deal-card__body {
    padding: 20px;
    flex: 1;
    /* Grows to fill available space */
    display: flex;
    flex-direction: column;
}

.category-chip {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    border: none;
    transition: all 0.2s;
}

.category-chip:hover {
    background: var(--accent-blue-soft);
    color: var(--accent-blue);
}

.deal-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    min-height: 2.6em;
    /* Minimum ~2 lines, but grows for longer titles */
    line-height: 1.3;
    /* Tighter line height for multi-line titles */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Allow up to 4 lines before truncating */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-card__title a {
    color: var(--text-primary);
}

.deal-card__title a:hover {
    color: var(--accent-blue);
}

/* Pricing Grid in Card */
.deal-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.deal-card__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-blue-dark);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.deal-card__was-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 600;
}

/* Card Footer */
.deal-card__footer {
    padding: 16px 20px;
    background: transparent;
    /* Seamless */
    border-top: 1px solid var(--bg-secondary);
}

.btn-block {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTERS BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.filters-bar {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    align-items: flex-end;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select,
input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
    min-width: 140px;
}

select:focus,
input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-blue-light);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-blue-soft);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH & OTHER PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-page {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 24px;
}

.form-input {
    margin-bottom: 16px;
}

/* Dashboard Header & Text */
.dashboard .header .nav-link {
    color: var(--text-primary);
}

.dashboard .header .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-blue);
}

.dashboard-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

/* Underline effect for H1 */
.dashboard-header h1::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent-blue-soft);
    z-index: -1;
    border-radius: 4px;
}

.dashboard-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STORE MODULE (Mini Cards)
   ═══════════════════════════════════════════════════════════════════════════ */

.store-module {
    margin-top: 1rem;
}

.store-card {
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.store-card:hover {
    background: white;
    border-color: var(--accent-blue-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.store-card.primary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.store-card.primary:hover {
    background: #e0f2fe;
}

.store-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-name-row {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.store-name {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.store-icon {
    font-size: 1rem;
}

.store-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.stock-badge {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.stock-badge.in-stock {
    color: var(--success);
    background: var(--success-bg);
}

.more-badge {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.75rem;
}

.store-price-tag {
    background: var(--accent-blue-soft);
    color: var(--accent-blue-dark);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.copy-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.store-card:hover .copy-hint {
    opacity: 1;
}

.more-stores-container {
    margin-top: 8px;
}

.btn-toggle-stores {
    width: 100%;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-toggle-stores:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

.btn-toggle-stores::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: auto;
    transition: transform 0.2s;
}

.btn-toggle-stores.expanded::after {
    transform: rotate(180deg);
}

.stores-list-scroll {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.stores-list-scroll.expanded {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    border-top: 1px dashed var(--bg-secondary);
    padding-top: 8px;
}

.store-card.secondary {
    margin-bottom: 6px;
    padding: 8px;
}

/* Scrollbar for store list */
.stores-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.stores-list-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: white;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--accent-blue);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toast-success {
    border-left-color: var(--success);
    background: linear-gradient(to right, var(--success-bg), white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing {
    padding: 40px 0;
}

.pricing-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto 64px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent-blue);
    z-index: 10;
    box-shadow: var(--shadow-xl);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-secondary);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    color: var(--success);
    margin-right: 12px;
    flex-shrink: 0;
}

.plan-action {
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE-SPECIFIC FIXES
   These styles ONLY affect mobile screens (max-width: 768px)
   Desktop layout is unchanged
   ═══════════════════════════════════════════════════════════════════════════ */

/* -----------------------------------------------------------------------------
   1. PREVENT HORIZONTAL SCROLL ON MOBILE
   Forces the entire page to be locked horizontally
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Ensure main container doesn't cause overflow */
    .site-main {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* -----------------------------------------------------------------------------
   2. MOBILE HEADER & NAVIGATION FIXES
   Prevents nav overflow and centers content properly
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .site-header {
        overflow: hidden;
        width: 100%;
    }

    .site-header .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        width: 100%;
        max-width: 100%;
    }

    /* Logo positioned properly */
    .brand-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .brand-logo {
        position: relative;
        top: 0;
        left: 0;
        height: 50px;
        width: 50px;
        margin: 0;
        flex-shrink: 0;
    }

    /* Navigation: scrollable but hidden scrollbar, no overflow visible */
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        margin-left: 0;
        padding: 0;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar but allow scroll */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    /* Smaller nav items on mobile to fit all */
    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Sign in button shrink */
    .nav-links .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* -----------------------------------------------------------------------------
   3. DASHBOARD HEADER ON MOBILE
   Properly sized title and subscription badge
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .dashboard .header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Subscription badge (Pro/Premium) wraps below title */
    .dashboard .header h1 > span {
        margin-left: 0 !important;
        font-size: 0.7rem !important;
        padding: 0.2rem 0.6rem !important;
    }

    .dashboard .header .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Dashboard nav links */
    .dashboard .header .nav-links {
        justify-content: flex-start;
        gap: 8px;
    }
}

/* -----------------------------------------------------------------------------
   4. FILTERS BAR MOBILE LAYOUT
   Stack filters vertically on mobile
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group.search-field {
        min-width: unset !important;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        width: 100%;
    }

    select,
    input[type="search"] {
        min-width: unset;
        width: 100%;
    }
}

/* -----------------------------------------------------------------------------
   5. DEAL CARDS GRID ON MOBILE
   Single column, centered, no cutoff
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .deals-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
        width: 100%;
    }

    .card.deal-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-lg);
    }

    /* Ensure discount badge is fully visible */
    .deal-card__image {
        position: relative;
        padding: 16px;
        overflow: visible;
    }

    /* Discount badge - ensure it's fully visible on mobile */
    .deal-card__discount {
        position: absolute;
        top: 12px;
        right: 12px;
        left: auto;
        z-index: 10;
        font-size: 0.8rem;
        padding: 4px 10px;
        /* Prevent cutoff */
        max-width: calc(100% - 24px);
        box-sizing: border-box;
    }

    /* Card body padding for mobile */
    .deal-card__body {
        padding: 16px;
    }

    /* Pricing text size on mobile */
    .deal-card__price {
        font-size: 1.4rem;
    }

    .deal-card__was-price {
        font-size: 0.9rem;
    }

    /* Card footer */
    .deal-card__footer {
        padding: 12px 16px;
    }
}

/* -----------------------------------------------------------------------------
   6. STORE CARDS ON MOBILE
   Full width, properly contained
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .store-module {
        margin-top: 12px;
    }

    .store-card {
        width: 100%;
        box-sizing: border-box;
    }

    .store-name-row {
        font-size: 0.85rem;
    }

    .store-price-tag {
        font-size: 0.8rem;
    }
}

/* -----------------------------------------------------------------------------
   7. INFO BANNERS ON MOBILE
   Full width with proper padding
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .dashboard > div[style*="background:"] {
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--radius-md);
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* -----------------------------------------------------------------------------
   8. TOAST NOTIFICATIONS ON MOBILE
   Position at bottom center
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        width: 100%;
    }
}

/* -----------------------------------------------------------------------------
   9. MODAL ON MOBILE
   Full width with proper margins
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .store-modal {
        width: calc(100% - 32px);
        max-width: 100%;
        margin: 16px;
    }
}

/* -----------------------------------------------------------------------------
   10. ACCOUNT PAGE GRID ON MOBILE
   Single column layout
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .account-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .account-card {
        width: 100%;
    }
}

/* -----------------------------------------------------------------------------
   11. PRICING CARDS ON MOBILE
   Stack vertically
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* -----------------------------------------------------------------------------
   12. AUTH PAGES ON MOBILE
   Full width forms
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .auth-page {
        margin: 20px 16px;
        max-width: 100%;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

/* -----------------------------------------------------------------------------
   13. FOOTER ON MOBILE
   Reduced padding
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .site-footer {
        padding: 24px 16px;
        font-size: 0.85rem;
    }
}