/* Color token palettes matched to image reference standards */
:root {
    --dominant-white: #FFFFFF;
    --background-cream: #FFFFFF; /* Adjusted to pure white background as directed */
    --text-primary: #060B11;     /* Brand deep navy/black for primary text */
    --text-muted: #6C7A89;       /* Professional slate-gray text tint */
    
    /* Strict Accent Selections */
    --primary-red: #CC1F26;      /* Brand high-energy red */
    --accent-yellow: #FBB03B;    /* Brand classic secondary gold */
    --dark-button: #060B11;      /* Crisp brand navy/black for solid actions */
    
    /* Background tint configurations derived cleanly from primary/secondary scale */
    --card-tint-purple: #FFF5F5; /* Replaced with subtle red-tint */
    --card-tint-yellow: #FFFDF5; /* Soft brand yellow tint */
    --card-tint-green: #E6F7ED;  /* Clean status success green tint */
    --card-tint-blue: #F0F4F8;   /* Neutral technical tint */
    
    --skeleton-base: #EAEAEA;
}

/* ============================================ */
/* GLOBAL OVERFLOW FIXES - MOBILE FIRST        */
/* ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dominant-white);
    min-height: 100vh;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.mobile-frame {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================ */
/* FULL WIDTH STICKY APP HEADER SETUP          */
/* ============================================ */
.top-header {
    position: sticky;
    top: 0;
    background-color: var(--dominant-white);
    z-index: 100;
    padding: 16px 16px 12px 16px;
    width: 100%;
    border-bottom: 1px solid #E2E8F0; /* Cleaned up to match brand contrast boundary */
    box-sizing: border-box;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fallback-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.fallback-logo span { color: var(--primary-red); }
.brand-logo { height: 28px; object-fit: contain; }
.top-actions { display: flex; align-items: center; gap: 16px; }

.notification-icon {
    position: relative;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
}

.dot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--dominant-white);
}

.red-bg { background-color: var(--primary-red); }
.yellow-bg { background-color: var(--accent-yellow); }

/* Prominent Top Search Input */
.search-container {
    position: relative;
    width: 100%;
}

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

.search-container input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background-color: #F8F9FA; /* Neutral subtle field background */
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-container input:focus {
    border-color: var(--text-primary);
    background-color: var(--dominant-white);
    box-shadow: 0 4px 12px rgba(6, 11, 17, 0.04);
}

/* ============================================ */
/* FLUID CONTENT BODY PADDING                  */
/* ============================================ */
.content-body {
    padding: 0 16px 100px 16px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 16px 0;
}

.section-title-bar h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.layout-toggle-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
}

/* ============================================ */
/* FLUID 2-COLUMNS PER ROW GRID CONFIGURATION  */
/* ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-tile {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.media-wrapper {
    position: relative;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    transition: transform 0.2s ease;
    overflow: hidden;
    background: #F8F9FA; /* Neutral showcase tile background */
    border: 1px solid #E2E8F0;
}

.media-wrapper:active { transform: scale(0.97); }

.media-wrapper img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.tile-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(6, 11, 17, 0.06);
}

.tile-wishlist-btn.active { color: var(--primary-red); }

.tile-details { 
    padding: 8px 2px 4px 2px; 
    width: 100%;
    overflow: hidden;
}

.tile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.tile-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tile-price { 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--primary-red); /* Adjusted to match your specified primary color structure */
    white-space: nowrap;
}

.tile-buy-btn {
    background-color: var(--dark-button);
    color: var(--dominant-white);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================ */
/* HORIZONTAL CATEGORY ROW STYLES              */
/* ============================================ */
.filter-scroller-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0;
    width: 100%;
    scrollbar-width: none;
}

.filter-scroller-row::-webkit-scrollbar { display: none; }

.filter-pill {
    background-color: #F8F9FA;
    border: 1px solid #E2E8F0;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.filter-pill.active {
    background-color: var(--dark-button);
    border-color: var(--dark-button);
    color: var(--dominant-white);
    font-weight: 600;
}

/* ============================================ */
/* CART ITEM CARDS LAYOUT UI ELEMENTS          */
/* ============================================ */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #E2E8F0;
}

.cart-item-media {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background-color: #F8F9FA;
    border: 1px solid #E2E8F0;
}

.cart-item-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cart-item-price { font-size: 13px; font-weight: 700; color: var(--primary-red); }

.quantity-control-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #F8F9FA;
    border: 1px solid #E2E8F0;
    padding: 4px 10px;
    border-radius: 20px;
}

.qty-toggle-btn { background: none; border: none; font-size: 12px; color: var(--text-primary); cursor: pointer; }
.qty-display { font-size: 13px; font-weight: 600; }

/* ============================================ */
/* STRUCTURAL FORM SHEETS FIELDS FOR CHECKOUT  */
/* ============================================ */
.form-section { padding: 16px 0 8px 0; }
.form-section-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.form-card { background-color: #F8F9FA; border: 1px solid #E2E8F0; padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }

.form-group input {
    background-color: var(--dominant-white);
    border: 1px solid #E2E8F0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.payment-selection-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-option.card { background-color: #F8F9FA; border: 1.5px solid #E2E8F0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.payment-option.card i { font-size: 20px; color: var(--text-muted); }
.payment-option.card span { font-size: 13px; font-weight: 600; }
.payment-option.card.active { border-color: var(--dark-button); background-color: var(--dominant-white); }
.payment-option.card.active i { color: var(--text-primary); }

/* ============================================ */
/* ORDER CONFIRMATION PIPELINE VECTORS         */
/* ============================================ */
.full-centered-status-view { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; min-height: calc(100vh - 65px); }
.success-banner-wrapper { margin-bottom: 40px; }
.success-icon-circle { width: 72px; height: 72px; border-radius: 50%; background-color: var(--card-tint-green); color: #27AE60; display: flex; justify-content: center; align-items: center; font-size: 28px; margin: 0 auto 20px auto; }
.success-banner-wrapper h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.success-banner-wrapper p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.order-pipeline-container { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 320px; text-align: left; margin-bottom: 40px; }
.pipeline-milestone { display: flex; gap: 16px; position: relative; }
.pipeline-milestone:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 24px; bottom: -18px; width: 2px; background-color: var(--skeleton-base); }
.pipeline-milestone.active:not(:last-child)::after { background-color: #27AE60; }
.indicator-dot { font-size: 20px; color: var(--skeleton-base); background-color: var(--dominant-white); z-index: 2; height: 22px; }
.pipeline-milestone.active .indicator-dot { color: #27AE60; }
.milestone-copy h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.milestone-copy p { font-size: 12px; color: var(--text-muted); }

.full-span-btn { width: 100%; max-width: 320px; border-radius: 14px; text-align: center; justify-content: center; }

/* ============================================ */
/* SKELETONS & DETAIL BASE LAYOUT ITEMS        */
/* ============================================ */
.skeleton-tile { 
    display: flex; 
    flex-direction: column; 
    width: 100%;
    overflow: hidden;
}
.skeleton-media { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    background-color: var(--skeleton-base); 
    border-radius: 16px;
}
.skeleton-line { background-color: var(--skeleton-base); height: 12px; border-radius: 4px; margin-top: 10px; }
.skeleton-line.full { width: 90%; }
.skeleton-line.half { width: 50%; }

.explicit-back-header { border-bottom: 1px solid #E2E8F0; }
.back-navigation-btn { color: var(--text-primary); font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.view-header-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.tile-wishlist-btn-static { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }
.tile-wishlist-btn-static.active { color: var(--primary-red); }

.detail-hero-frame {
    width: 100%;
    margin-left: 0;
    aspect-ratio: 1.1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: #F8F9FA;
    border-bottom: 1px solid #E2E8F0;
}

.detail-hero-frame img { max-width: 85%; max-height: 85%; object-fit: contain; }
.detail-meta-panel { padding: 4px 0; }
.detail-tag-pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent-yellow); letter-spacing: 0.5px; margin-bottom: 8px; }
.detail-product-title { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.3; margin-bottom: 12px; }
.detail-description-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================ */
/* STICKY SPLIT ROW ACTION BUTTON BLOCK        */
/* ============================================ */
.bottom-action-container { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--dominant-white); 
    border-top: 1px solid #E2E8F0; 
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)) 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 600; 
    box-sizing: border-box;
}
.bottom-action-container.elevated-action-bar { bottom: 63px; border-bottom: 1px solid #E2E8F0; box-shadow: 0 -4px 10px rgba(6, 11, 17, 0.02); padding: 12px 20px; }
.content-body.shifted-for-actions { padding-bottom: 175px; }

.action-price-block { display: flex; flex-direction: column; }
.price-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 500; margin-bottom: 2px; }
.action-price-value { font-size: 18px; font-weight: 700; color: var(--primary-red); }
.action-primary-btn { background-color: var(--dark-button); color: var(--dominant-white); border: none; border-radius: 14px; padding: 16px 40px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease; }
.action-primary-btn:active { background-color: #121A24; }
.skeleton-media.large-hero { width: calc(100% + 40px); margin-left: -20px; aspect-ratio: 1.1 / 1; border-radius: 0; }

/* ============================================ */
/* UNIVERSAL BOTTOM NAVIGATION MENU BAR        */
/* ============================================ */
.bottom-nav-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: rgba(255, 255, 255, 0.96); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-top: 1px solid #E2E8F0; 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0; 
    z-index: 500; 
}
.nav-anchor { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text-muted); gap: 4px; }
.nav-anchor i { font-size: 18px; }
.nav-anchor span { font-size: 10px; font-weight: 500; }
.nav-anchor.active { color: var(--text-primary); }
.cart-anchor { position: relative; }
.nav-badge { 
    position: absolute; 
    top: -4px; 
    right: 14px; 
    color: var(--dominant-white); 
    font-size: 9px; 
    font-weight: 700; 
    min-width: 15px; 
    height: 15px; 
    border-radius: 10px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 4px; 
}

.empty-state { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 14px; width: 100%; grid-column: span 2; }

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav-bar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .bottom-action-container.elevated-action-bar { bottom: calc(55px + calc(8px + env(safe-area-inset-bottom))); }
    .content-body.shifted-for-actions { padding-bottom: calc(175px + env(safe-area-inset-bottom)); }
}

/* ============================================ */
/* DISCOUNT BANNER CARD                        */
/* ============================================ */
.discount-banner {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-button));
    border-radius: 16px;
    padding: 20px 20px;
    margin: 12px 12px 0 12px;
    color: #ffffff;
    display: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(204, 31, 38, 0.25);
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
}

.discount-banner.active {
    display: block;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.discount-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.discount-banner .discount-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discount-banner .discount-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.discount-banner .discount-description {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 400;
}

.discount-banner .discount-code-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.discount-banner .discount-code {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    flex: 1;
    font-family: 'Courier New', monospace;
    min-width: 120px;
}

.discount-banner .copy-code-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.discount-banner .copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.discount-banner .copy-code-btn.copied {
    background: rgba(39, 174, 96, 0.6);
}

.discount-banner .discount-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.discount-banner .discount-expiry {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.discount-banner .discount-expiry .countdown-timer {
    display: flex;
    gap: 4px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.discount-banner .discount-expiry .countdown-timer .time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.discount-banner .discount-expiry .countdown-timer .time-unit .label {
    font-size: 8px;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
}

.discount-banner .shop-now-btn {
    background: #ffffff;
    color: var(--primary-red);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.discount-banner .shop-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* ============================================ */
/* TOAST NOTIFICATIONS                         */
/* ============================================ */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.custom-toast {
    background: var(--text-primary);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(6, 11, 17, 0.2);
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: toastSlideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: top center;
    box-sizing: border-box;
}

.custom-toast.hide {
    animation: toastSlideUp 0.4s ease forwards;
}

.custom-toast .toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.custom-toast.success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.custom-toast.error {
    background: linear-gradient(135deg, var(--primary-red), #F87171);
}

.custom-toast.warning {
    background: linear-gradient(135deg, #d97706, var(--accent-yellow));
}

.custom-toast.info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Toast Animations */
@keyframes toastSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.95);
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE FIRST                   */
/* ============================================ */

/* Small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .top-header {
        padding: 12px 12px 10px 12px;
    }
    
    .content-body {
        padding: 0 12px 100px 12px;
    }
    
    .products-grid {
        gap: 10px;
    }
    
    .media-wrapper {
        padding: 10px;
        border-radius: 14px;
    }
    
    .tile-name {
        font-size: 12px;
    }
    
    .tile-price {
        font-size: 12px;
    }
    
    .tile-buy-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .tile-details {
        padding: 6px 2px 2px 2px;
    }
    
    .discount-banner {
        padding: 16px 14px;
        margin: 12px 10px 0 10px;
        border-radius: 14px;
    }
    
    .discount-banner .discount-title {
        font-size: 17px;
    }
    
    .discount-banner .discount-code {
        font-size: 15px;
        min-width: 100px;
    }
    
    .discount-banner .discount-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .discount-banner .shop-now-btn {
        text-align: center;
    }
    
    .discount-banner .discount-code-container {
        flex-wrap: wrap;
    }
    
    .discount-banner .copy-code-btn {
        width: 100%;
        text-align: center;
    }
    
    .discount-banner .discount-expiry .countdown-timer {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    #toast-container {
        top: 16px;
        width: 92%;
        max-width: 100%;
    }
    
    .custom-toast {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .custom-toast .toast-icon {
        font-size: 18px;
    }
}

/* Extra small devices (under 360px) */
@media (max-width: 360px) {
    .top-header {
        padding: 10px 10px 8px 10px;
    }
    
    .content-body {
        padding: 0 10px 90px 10px;
    }
    
    .products-grid {
        gap: 8px;
    }
    
    .fallback-logo {
        font-size: 18px;
    }
    
    .media-wrapper {
        padding: 8px;
        border-radius: 12px;
    }
    
    .tile-name {
        font-size: 11px;
    }
    
    .tile-price {
        font-size: 11px;
    }
    
    .tile-buy-btn {
        padding: 3px 8px;
        font-size: 9px;
        border-radius: 16px;
    }
    
    .tile-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .discount-banner {
        padding: 14px 12px;
        margin: 10px 8px 0 8px;
        border-radius: 12px;
    }
    
    .discount-banner .discount-code {
        font-size: 13px;
        min-width: 80px;
    }
    
    .discount-banner .discount-title {
        font-size: 15px;
    }
    
    .discount-banner .discount-tag {
        font-size: 10px;
        padding: 3px 10px;
    }
}
