/* =============================================
   Mobile-First E-commerce Stylesheet
   ============================================= */

/* --- Top Ad Banner (above site shell) --- */
.ad-top-banner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    text-align: center;
    padding: 0 0 8px;
    min-height: 260px;
}
.ad-top-banner__label {
    display: block;
    font-size: 11px;
    color: #888;
    letter-spacing: 1px;
    padding: 6px 0 4px;
}


/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #970e71;
    --primary-dark: #7a0b5c;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #ffffff;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
    --red: #e53935;
    --green: #4caf50;
    --footer-bg: #1a1a1a;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

html { font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #e8e8e8;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: var(--vh, 100vh);
    margin: 0;
}

/* --- Mobile Shell (always mobile view, even on desktop) --- */
.mobile-shell {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    height: var(--vh, 100vh);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    overflow: hidden;
}
.mobile-shell__scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mobile-shell__scroll::-webkit-scrollbar {
    display: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--full { width: 100%; }
.btn--sm { padding: 6px 14px; font-size: 0.8rem; }

/* --- Header --- */
.header {
    position: relative;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.footer { margin-top: 40px; }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.header__hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}
.header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.header__nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* Search bar */
.header__search {
    display: none;
    padding: 0 16px 12px;
}
.header__search.active { display: block; }
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}
.search-form__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
}
.search-form__input {
    flex: 1;
    padding: 12px 14px 12px 42px;
    border: 2px solid #b0b0c0;
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    background: var(--bg);
}
.search-form__input:focus { border-color: #8080a0; }
.search-form__btn {
    display: none;
}

/* --- Scrolling Ticker --- */
.ticker {
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
}
.ticker__content {
    display: inline-flex;
    animation: tickerScroll 20s linear infinite;
}
.ticker__content span {
    padding: 0 40px;
    display: inline-block;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Side Navigation (Mobile) --- */
.side-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -280px;
    width: 280px;
    background: var(--bg);
    z-index: 200;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
}
.side-nav.open { left: 0; }
.side-nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.side-nav__title { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.side-nav__close { font-size: 1.5rem; color: var(--text-light); padding: 4px; }
.side-nav__links { display: flex; flex-direction: column; }
.side-nav__links a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--bg-light);
    font-weight: 500;
    transition: background 0.2s;
}
.side-nav__links a:hover { background: var(--bg-light); }
.side-nav__overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}
.side-nav__overlay.active { display: block; }

/* --- Main Content --- */
.main-content {
    min-height: 60vh;
    padding: 0 16px;
}

/* --- Category Carousel --- */
.category-carousel {
    padding: 16px 0 8px;
}
.category-carousel__scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
}
.category-carousel__scroll::-webkit-scrollbar { display: none; }
.category-carousel__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc((100% - 48px) / 4);
    scroll-snap-align: start;
    text-decoration: none;
}
.category-carousel__image {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    padding: 2px;
    background: #fff;
}
.category-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.category-carousel__name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Hero Banner --- */
.hero-banner {
    margin: 16px 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.hero-banner__slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hero-banner__slider::-webkit-scrollbar { display: none; }
.hero-banner__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.hero-banner__slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/7;
}
.hero-banner__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
}
.hero-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
}
.hero-banner__dot.active { background: var(--primary); }

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 12px;
}
.section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}
.section-header a { color: var(--primary); font-weight: 600; font-size: 0.85rem; }

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 20px;
}

/* --- Product Card --- */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card__link { display: block; }
.product-card__image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-light);
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__info { padding: 10px; }
.product-card__name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    line-height: 1.3;
}
.product-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-card__sale-price { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.product-card__mrp {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: line-through;
}
.product-card__discount {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
}
.product-card__special-offer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #388e3c;
    font-weight: 500;
    margin-top: 4px;
}
.product-card__special-offer svg {
    flex-shrink: 0;
}
.product-card__delivery {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
}
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.product-card__rating-pill {
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.product-card__rating-count {
    font-size: 0.75rem;
    color: var(--text-light);
}
.size-pill {
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-light);
    transition: all 0.2s;
    background: var(--bg);
}
.size-pill.active,
.size-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(151, 14, 113, 0.05);
}

/* --- Product Detail Page --- */
.product-detail { padding: 16px 0; }
.product-detail__gallery {
    position: relative;
    margin-bottom: 20px;
}
.product-detail__main-image {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
}
.product-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.product-detail__thumb {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.product-detail__thumb.active { border-color: var(--primary); }
.product-detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__info { padding-top: 8px; }
.product-detail__name-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.product-detail__name-row .product-detail__name {
    flex: 1;
    margin-bottom: 0;
}
.product-detail__quick-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    padding-top: 2px;
}
.product-detail__quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}
.product-detail__quick-action span {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
}
.product-detail__category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-detail__name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.product-detail__price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-detail__sale { font-size: 1.5rem; font-weight: 700; }
.product-detail__mrp {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}
.product-detail__discount {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 600;
}

.product-detail__rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.product-detail__rating-pill {
    background: var(--green);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.product-detail__rating-text {
    font-size: 0.82rem;
    color: var(--text-light);
}

.product-detail__sizes-label { font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.product-detail__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.product-detail__sizes .size-pill {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.product-detail__ad { width: 100%; text-align: center; margin: 16px 0; min-height: 100px; background: #fafafa; }
.product-detail__ad .ad-label { display: block; font-size: 10px; color: #999; letter-spacing: 1px; padding: 4px 0; }

.product-detail__actions { display: flex; gap: 10px; margin-bottom: 24px; }
.product-detail__actions .btn { flex: 1; padding: 14px; font-size: 1rem; text-align: center; }

.product-detail__desc { margin-bottom: 24px; }
.product-detail__desc h3 { font-size: 1rem; margin-bottom: 8px; }
.product-detail__desc p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* --- Similar Products (Meesho-style) --- */
.similar-products {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
}
.similar-products__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}
.similar-products__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.similar-products__scroll::-webkit-scrollbar { display: none; }
.similar-products__item {
    flex-shrink: 0;
    width: 100px;
    height: 130px;
    border-radius: 10px;
    border: 2px solid var(--border);
    overflow: hidden;
    display: block;
}
.similar-products__item:first-child {
    border-color: var(--green);
    border-width: 2px;
}
.similar-products__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Product Reviews --- */
.product-reviews {
    padding: 20px 16px;
    border-top: 8px solid var(--bg-light);
    margin-top: 8px;
}
.product-reviews__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.product-reviews__summary {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.product-reviews__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.product-reviews__avg {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.product-reviews__star {
    color: #388e3c;
    font-size: 1.2rem;
}
.product-reviews__count {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}
.product-reviews__bars { flex: 1; }
.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.rating-bar__label {
    font-size: 0.72rem;
    color: var(--text-light);
    width: 60px;
    flex-shrink: 0;
}
.rating-bar__track {
    flex: 1;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
}
.rating-bar__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.rating-bar__fill--5 { background: #388e3c; }
.rating-bar__fill--4 { background: #4caf50; }
.rating-bar__fill--3 { background: #ff9800; }
.rating-bar__fill--2 { background: #ff6d00; }
.rating-bar__fill--1 { background: var(--red); }
.rating-bar__count {
    font-size: 0.72rem;
    color: var(--text-light);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}
.product-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-card {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-light);
}
.review-card:last-child { border-bottom: none; }
.review-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.review-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.review-card__rating--good { background: #388e3c; }
.review-card__rating--ok { background: #ff9800; }
.review-card__rating--bad { background: var(--red); }
.review-card__star { font-size: 0.7rem; }
.review-card__name { font-size: 0.82rem; font-weight: 600; }
.review-card__date {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-left: auto;
}
.review-card__text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}
.review-card__images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.review-card__images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* --- Trust Badges --- */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #f0ebf8;
    border-radius: 10px;
    padding: 16px 8px;
    margin: 16px;
}
.trust-badges__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.trust-badges__icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-badges__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
.trust-badges__divider {
    width: 1px;
    height: 50px;
    background: #ccc;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.cart-sidebar__header h3 { font-size: 1.1rem; }
.cart-sidebar__close { font-size: 1.5rem; color: var(--text-light); }
.cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.cart-sidebar__footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 8px));
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-sidebar__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.cart-sidebar__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.cart-sidebar__overlay.active { display: block; }

/* Cart item */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
}
.cart-item__image {
    width: 70px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; }
.cart-item__name { font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.cart-item__size { font-size: 0.75rem; color: var(--text-light); margin-bottom: 6px; }
.cart-item__price { font-weight: 600; font-size: 0.9rem; }
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.cart-item__qty button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--bg-light);
}
.cart-item__qty span { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item__remove {
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 4px;
    text-decoration: underline;
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.cart-empty svg { margin-bottom: 12px; }

/* --- Cart Page --- */
.cart-page { padding: 20px 0; }
.cart-page h1 { font-size: 1.3rem; margin-bottom: 16px; }
.cart-page__items { margin-bottom: 20px; }
.cart-page__summary {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
}
.cart-page__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}
.cart-page__row--total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- Checkout Page (Multi-Step Wizard) --- */
.checkout { padding: 0 0 20px; }

/* Progress bar */
.checkout__progress {
    height: 4px;
    background: var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.checkout__progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

/* Steps: hidden by default, shown when active */
.checkout__step {
    display: none;
    animation: fadeInUp 0.25s ease;
}
.checkout__step.active {
    display: block;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card */
.checkout__card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 16px 0;
}
.checkout__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.checkout__card-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Divider & Pricing */
.checkout__divider {
    border-top: 1px dashed var(--border);
    margin: 16px 0;
}
.checkout__price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.checkout__price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.checkout__price-value {
    font-size: 0.9rem;
    color: var(--text);
}
.checkout__price-row--total .checkout__price-label,
.checkout__price-row--total .checkout__price-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Loading screen before final step */
.checkout__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}
.checkout__loading p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}
.checkout__loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation (Back + Continue/Pay) */
.checkout__nav {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkout__back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}
.checkout__back-btn svg {
    flex-shrink: 0;
}

/* Review items on confirm step */
.checkout__review {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checkout__review-item {
    font-size: 0.9rem;
    color: var(--text);
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-light);
}
.checkout__review-item:last-child {
    border-bottom: none;
}
.checkout__review-item strong {
    font-weight: 700;
}

/* Checkout ad slots */
.checkout__ad {
    margin: 12px 16px 0;
}
.checkout__ad .ad-slot {
    margin: 0;
}

/* Green continue button */
.btn--green {
    background: #388e3c;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
}
.btn--green:disabled,
.btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --- Category Page --- */
.category-page { padding: 16px 0; }
.category-page__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.category-page__header h1 { font-size: 1.3rem; }
.category-page__count { font-size: 0.85rem; color: var(--text-light); }

/* --- Search Results --- */
.search-page { padding: 16px 0; }
.search-page h1 { font-size: 1.2rem; margin-bottom: 16px; }
.search-page__query { color: var(--primary); font-weight: 700; }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- Order Success --- */
.order-success {
    text-align: center;
    padding: 60px 20px;
}
.order-success__icon {
    width: 80px;
    height: 80px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.order-success__icon svg { color: #fff; }
.order-success h1 { font-size: 1.5rem; margin-bottom: 8px; }
.order-success p { color: var(--text-light); margin-bottom: 24px; }

/* --- Order Failed --- */
.order-failed {
    padding: 40px 20px;
}
.order-failed__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}
.order-failed__text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}
.order-failed__hint {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 24px;
}
.order-failed__btn {
    display: block;
    text-align: center;
}

/* --- Interstitial Ad Overlay --- */
.interstitial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.interstitial-overlay__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.interstitial-overlay__content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: interstitialIn 0.3s ease;
}
.interstitial-overlay__close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.8rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.interstitial-overlay__close:hover {
    background: var(--bg-light);
}
.interstitial-overlay__ad {
    width: 100%;
}
@keyframes interstitialIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Ad Slots --- */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin: 12px 0;
    overflow: hidden;
}
.ad-slot--banner { padding: 0 16px; }
.ad-slot--infeed {
    grid-column: 1 / -1;
    margin: 8px 0;
}
.ad-slot--sidebar { display: none; }
.ad-slot--before-footer { padding: 0 16px; margin: 20px auto; }
.ad-slot--product { margin: 20px 0; }

/* --- Footer --- */
.footer {
    background: var(--footer-bg);
    color: #ccc;
    margin-top: 40px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 40px 16px;
}
.footer__col h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.footer__col li { margin-bottom: 8px; }
.footer__col a {
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    color: #ccc;
    transition: color 0.2s;
}
.footer__social-heading {
    margin-top: 16px;
}
.footer__social a:hover { color: var(--primary); }
.footer__bottom {
    text-align: center;
    padding: 16px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* --- Static Pages (About, Contact, Terms, etc.) --- */
.static-page {
    padding: 32px 20px 40px;
}
.static-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.3;
}
.static-page__content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.static-page__content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.static-page__content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}
.static-page__content ul,
.static-page__content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.static-page__content li {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 6px;
}
.static-page__content a {
    color: var(--primary);
    text-decoration: underline;
}
.static-page__content a:hover {
    color: var(--primary-dark);
}
.static-page__content strong {
    color: var(--text);
}

/* Static Page Table */
.static-page__table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 0.88rem;
}
.static-page__table th,
.static-page__table td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--border);
}
.static-page__table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
}
.static-page__table td {
    color: var(--text-light);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 8px;
}
.faq-item h3 {
    margin-top: 12px !important;
}

/* Contact Form */
.contact-form {
    margin-top: 16px;
    margin-bottom: 24px;
}
.contact-form__group {
    margin-bottom: 16px;
}
.contact-form__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.no-results { text-align: center; padding: 40px 20px; color: var(--text-light); }

/* --- Loading Spinner --- */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 300;
    transition: transform 0.3s ease;
    white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* --- Google AdSense-Style Ad Units --- */
.gad-unit {
    width: 100%;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    cursor: pointer;
}
.gad-unit__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 0;
}
.gad-unit__label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: #1a73e8;
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.3px;
    line-height: 1.5;
}
.gad-unit__dots {
    font-size: 1rem;
    color: #5f6368;
    line-height: 1;
    cursor: pointer;
}
.gad-unit__main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}
.gad-unit__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.gad-unit__text {
    flex: 1;
    min-width: 0;
}
.gad-unit__headline {
    font-size: 0.82rem;
    font-weight: 700;
    color: #202124;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gad-unit__desc {
    font-size: 0.72rem;
    color: #5f6368;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gad-unit__cta {
    flex-shrink: 0;
    background: #1a73e8;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.gad-unit__cta:hover {
    background: #1765cc;
}
.gad-unit__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 8px;
}
.gad-unit__advertiser {
    font-size: 0.7rem;
    color: #70757a;
}
.gad-unit__info {
    flex-shrink: 0;
}

/* --- Real Mobile Devices: natural scroll (enables pull-to-refresh, fixes sidebar heights) --- */
@media (max-width: 480px) {
    body {
        overflow: auto;
        height: auto;
        background: var(--bg);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    body::-webkit-scrollbar {
        display: none;
    }
    .mobile-shell {
        height: auto;
        min-height: 100%;
        overflow: visible;
        box-shadow: none;
        max-width: none;
    }
    .mobile-shell__scroll {
        height: auto;
        overflow: visible;
    }
    .side-nav {
        position: fixed;
    }
    .side-nav__overlay {
        position: fixed;
    }
    .cart-sidebar {
        max-width: none;
    }
    .cart-sidebar__footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 12px));
    }
}
