:root {
    --store-bg: #f5f1eb;
    --store-surface: #ffffff;
    --store-surface-soft: #fbf8f4;
    --store-ink: #171411;
    --store-muted: #6c635a;
    --store-line: #e6ddd2;
    --store-line-strong: #d8ccbf;
    --store-accent: #0f5c4d;
    --store-accent-soft: #edf6f3;
    --store-shadow: 0 18px 40px rgba(23, 20, 17, 0.06);
    --store-radius-lg: 24px;
    --store-radius-md: 18px;
    --store-radius-sm: 12px;
}

.storefront-page {
    background:
        linear-gradient(180deg, #f8f5f0 0%, #f3eee8 42%, #f7f4ef 100%);
    padding: 2rem 0 4rem;
    color: var(--store-ink);
}

.storefront-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--store-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.storefront-display,
.storefront-section__title,
.product-toolbar-title {
    color: var(--store-ink);
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    line-height: 1.15;
}

.storefront-display {
    font-size: clamp(2rem, 4vw, 3.45rem);
    margin: 0.85rem 0 1rem;
}

.storefront-lead,
.storefront-section__subtitle,
.catalog-hero__summary,
.storefront-cta__copy p,
.catalog-sidebar__header p,
.home-category-card p,
.subcategory-card__meta p,
.store-product-card__meta,
.store-product-card__secondary-price,
.store-product-card__availability,
.storefront-empty-state p,
.storefront-end-message,
.subcategory-section-meta {
    color: var(--store-muted);
}

.storefront-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.storefront-hero-copy,
.storefront-hero-panel,
.catalog-hero,
.catalog-sidebar__panel,
.home-category-card,
.store-product-card,
.storefront-cta,
.storefront-empty-state,
.subcategory-section {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 221, 210, 0.92);
    box-shadow: var(--store-shadow);
}

.storefront-hero-copy,
.storefront-hero-panel,
.catalog-hero,
.subcategory-section,
.storefront-cta,
.storefront-empty-state {
    border-radius: var(--store-radius-lg);
}

.storefront-hero-copy,
.storefront-hero-panel {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.storefront-hero-actions,
.storefront-cta__actions,
.catalog-hero__actions,
.subcategory-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.storefront-hero-summary {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--store-line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.storefront-summary-item {
    padding: 0.85rem 0.95rem;
    border-radius: var(--store-radius-sm);
    background: var(--store-surface-soft);
    border: 1px solid var(--store-line);
}

.storefront-summary-item strong,
.storefront-panel-list strong {
    display: block;
    color: var(--store-ink);
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
}

.storefront-panel-eyebrow {
    display: inline-block;
    color: var(--store-accent);
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.storefront-panel-title {
    font-size: 1.55rem;
    margin: 0 0 0.9rem;
    line-height: 1.25;
}

.storefront-panel-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.95rem;
}

.storefront-panel-list li {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--store-line);
}

.storefront-panel-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.storefront-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.storefront-metric-card {
    padding: 1rem;
    border-radius: var(--store-radius-sm);
    background: var(--store-surface-soft);
    border: 1px solid var(--store-line);
}

.storefront-metric-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--store-ink);
}

.storefront-metric-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.92rem;
    color: var(--store-muted);
}

.storefront-section {
    margin-top: 1.9rem;
}

.storefront-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.storefront-section__title,
.product-toolbar-title {
    margin: 0.35rem 0 0.25rem;
    font-size: clamp(1.4rem, 2.2vw, 2.15rem);
}

.storefront-section__link,
.catalog-sidebar__link,
.catalog-chip,
.subcategory-card,
.home-category-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.storefront-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--store-accent);
    font-weight: 700;
}

.storefront-section__link:hover {
    color: #0b473c;
}

.storefront-trust-grid,
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.storefront-trust-card,
.home-category-card {
    border-radius: var(--store-radius-md);
    padding: 1.2rem;
}

.storefront-trust-card h3,
.home-category-card h3,
.subcategory-name {
    margin: 0 0 0.45rem;
    color: var(--store-ink);
    font-size: 1.08rem;
}

.home-category-card,
.subcategory-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
}

.home-category-card:hover,
.subcategory-card:hover,
.catalog-chip:hover,
.catalog-sidebar__link:hover,
.store-product-card:hover {
    transform: translateY(-2px);
    border-color: var(--store-line-strong);
    box-shadow: 0 22px 46px rgba(23, 20, 17, 0.08);
}

.home-category-card__icon,
.subcategory-card__icon,
.store-product-card__placeholder-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--store-line);
    background: var(--store-surface-soft);
    color: var(--store-accent);
    font-weight: 800;
}

.home-category-card__icon img,
.subcategory-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.catalog-hero {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.catalog-hero__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.catalog-hero__search {
    width: 100%;
    margin-bottom: 1rem;
}

.catalog-hero__query-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: var(--store-accent-soft);
    border: 1px solid rgba(15, 92, 77, 0.14);
    color: var(--store-accent);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.catalog-hero__insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.catalog-hero__insight {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--store-line);
}

.catalog-hero__insight strong {
    display: block;
    color: var(--store-ink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.catalog-hero__insight span {
    display: block;
    margin-top: 0.28rem;
    color: var(--store-muted);
    font-size: 0.84rem;
}

.product-toolbar {
    display: grid;
    gap: 0.25rem;
}

.product-toolbar-count {
    color: var(--store-muted);
    font-size: 0.95rem;
}

.storefront-search {
    display: flex;
    gap: 0.75rem;
    width: min(100%, 440px);
}

.storefront-search .form-control {
    min-height: 52px;
    border-radius: 14px;
    border-color: var(--store-line);
    background: #fff;
}

.catalog-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--store-line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--store-ink);
    font-weight: 600;
}

.catalog-chip.is-active {
    background: var(--store-accent-soft);
    color: var(--store-accent);
    border-color: rgba(15, 92, 77, 0.18);
}

.storefront-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 110px;
}

.catalog-sidebar__panel {
    border-radius: var(--store-radius-lg);
    padding: 1.2rem;
}

.catalog-sidebar__header h2 {
    margin: 0.35rem 0;
    font-size: 1.35rem;
}

.catalog-sidebar__nav {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.catalog-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--store-surface-soft);
    color: var(--store-ink);
}

.catalog-sidebar__link.is-active {
    border-color: rgba(15, 92, 77, 0.18);
    background: var(--store-accent-soft);
    color: var(--store-accent);
}

.catalog-main {
    min-width: 0;
}

.store-category-shelf {
    margin-top: 1.25rem;
}

.products-grid.storefront-products-grid {
    gap: 1rem;
}

.store-product-card {
    border-radius: var(--store-radius-md);
    overflow: hidden;
    border: 1px solid rgba(230, 221, 210, 0.96);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 92, 77, 0.18);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.store-product-card__media {
    position: relative;
    min-height: 220px;
    background: linear-gradient(180deg, #f8f5f0 0%, #f2ebe4 100%);
}

.store-product-card__media-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 86px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.62) 100%);
    z-index: 1;
    pointer-events: none;
}

.store-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product-card__badges {
    position: absolute;
    inset: 0.95rem 0.95rem auto auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.store-product-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 32px;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--store-ink);
    border: 1px solid rgba(230, 221, 210, 0.96);
    font-size: 0.78rem;
    font-weight: 700;
}

.store-product-card__badge--featured {
    color: var(--store-accent);
    background: var(--store-accent-soft);
    border-color: rgba(15, 92, 77, 0.14);
}

.store-product-card__badge--featured i {
    font-size: 0.62rem;
}

.store-product-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.25rem;
    text-align: center;
}

.product-placeholder-text {
    color: var(--store-ink);
    font-weight: 700;
    font-size: 1rem;
}

.store-product-card__delivery-pill {
    position: absolute;
    left: 0.95rem;
    bottom: 0.95rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
    font-weight: 700;
}

.store-product-card__delivery-pill i {
    color: #fbbf24;
    font-size: 0.72rem;
}

.store-product-card__body {
    padding: 1.15rem;
    display: grid;
    gap: 0.85rem;
}

.store-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.store-product-card__availability {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--store-muted);
    font-weight: 700;
}

.store-product-card__availability::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #21a365;
}

.store-product-card__category-text {
    color: var(--store-accent);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.store-product-card__title {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.45;
    min-height: 3rem;
}

.store-product-card__title a {
    color: var(--store-ink);
}

.store-product-card__pricing {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
}

.store-product-card__price-stack {
    display: grid;
    gap: 0.15rem;
}

.store-product-card .card-price {
    color: var(--store-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.store-product-card__signal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: var(--store-surface-soft);
    border: 1px solid var(--store-line);
    color: var(--store-muted);
    font-size: 0.82rem;
}

.store-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 14px;
    min-height: 48px;
    font-weight: 700;
}

.store-product-card__button i {
    font-size: 0.85rem;
}

.subcategory-section {
    padding: 1.25rem;
    margin-bottom: 1.3rem;
}

.subcategory-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subcategory-section-title {
    margin: 0;
    font-size: 1.3rem;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.subcategory-card {
    padding: 1rem;
    border-radius: var(--store-radius-md);
    border: 1px solid var(--store-line);
    background: var(--store-surface-soft);
}

.subcategory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.storefront-loader,
.storefront-end-message {
    text-align: center;
    margin-top: 1rem;
}

.storefront-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.storefront-empty-state i {
    font-size: 2rem;
    color: var(--store-accent);
    margin-bottom: 0.85rem;
}

.storefront-cta {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.btn.btn-outline {
    border-color: var(--store-line-strong);
    color: var(--store-ink);
}

.btn.btn-outline:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
    background: rgba(15, 92, 77, 0.05);
}

@media (max-width: 1199px) {
    .storefront-trust-grid,
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subcategories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .storefront-page {
        padding-top: 1.25rem;
    }

    .storefront-hero-grid,
    .storefront-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        margin-top: 1rem;
        order: 2;
    }

    .catalog-main {
        order: 1;
    }

    .catalog-hero__top,
    .storefront-section__header,
    .subcategory-section-head,
    .storefront-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-search {
        width: 100%;
    }

    .catalog-hero__query-pill {
        min-height: 34px;
        padding: 0.5rem 0.75rem;
        font-size: 0.76rem;
    }

    .catalog-hero__insights {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .catalog-hero__insight {
        padding: 0.85rem 0.95rem;
    }

    .catalog-hero__insight strong {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .storefront-page {
        padding-top: 0.8rem;
        padding-bottom: 5.1rem;
    }

    .storefront-layout {
        gap: 0.9rem;
    }

    .catalog-hero {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .catalog-hero__top {
        gap: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .catalog-hero__summary {
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .catalog-hero__search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.6rem;
        align-items: stretch;
        margin-bottom: 0.8rem;
    }

    .catalog-hero__search .btn {
        min-width: 96px;
        padding-inline: 1.15rem;
    }

    .catalog-hero__insights {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 48vw);
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.6rem;
        padding-bottom: 0.2rem;
        margin-top: 0.85rem;
    }

    .catalog-hero__insight {
        padding: 0.8rem 0.85rem;
    }

    .catalog-hero__insight span {
        font-size: 0.78rem;
    }

    .catalog-sidebar__panel {
        padding: 0.35rem;
        border-radius: 18px;
    }

    .catalog-sidebar__header {
        display: none;
    }

    .catalog-sidebar__nav {
        display: flex;
        overflow-x: auto;
        gap: 0.55rem;
    }

    .catalog-sidebar__link {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.72rem 0.9rem;
        border-radius: 999px;
    }

    .products-grid.storefront-products-grid {
        gap: 0.75rem;
    }

    .store-product-card__media {
        min-height: 168px;
    }

    .store-product-card__badges {
        inset: 0.65rem 0.65rem auto auto;
        gap: 0.35rem;
    }

    .store-product-card__badge,
    .store-product-card__delivery-pill {
        min-height: 28px;
        font-size: 0.7rem;
    }

    .store-product-card__body {
        padding: 0.85rem;
        gap: 0.65rem;
    }

    .store-product-card__meta {
        font-size: 0.78rem;
    }

    .store-product-card__title {
        min-height: 2.7rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .store-product-card .card-price {
        font-size: 1.05rem;
    }

    .store-product-card__button {
        min-height: 42px;
        border-radius: 12px;
        font-size: 0.85rem;
    }

    .subcategory-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .storefront-stat-grid,
    .storefront-hero-summary,
    .storefront-trust-grid,
    .home-category-grid,
    .subcategories-grid {
        grid-template-columns: 1fr;
    }

    .catalog-chip-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    .catalog-chip,
    .catalog-hero__insights,
    .catalog-sidebar__nav {
        white-space: nowrap;
    }

    .catalog-chip-row,
    .catalog-hero__insights,
    .catalog-sidebar__nav {
        scrollbar-width: none;
    }

    .catalog-chip-row::-webkit-scrollbar,
    .catalog-hero__insights::-webkit-scrollbar,
    .catalog-sidebar__nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 576px) {
    .catalog-hero__search {
        grid-template-columns: minmax(0, 1fr) 90px;
    }
}

/* Catalog redesign: card-first storefront inspired by fast digital marketplaces. */
.storefront-page {
    --catalog-bg: #f5f1e8;
    --catalog-surface: rgba(255, 252, 246, 0.88);
    --catalog-surface-strong: #fffdfa;
    --catalog-border: rgba(37, 45, 36, 0.1);
    --catalog-text: #1b241e;
    --catalog-muted: #6f786f;
    --catalog-accent: #1b4a34;
    --catalog-accent-soft: #ecf4ee;
    --catalog-gold: #c9a65f;
    --catalog-shadow: 0 28px 60px rgba(16, 28, 20, 0.08);
    background:
        radial-gradient(circle at top left, rgba(201, 166, 95, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(27, 74, 52, 0.12), transparent 28%),
        linear-gradient(180deg, #f8f5ee 0%, #f2eee5 48%, #f8f6f0 100%);
    padding: 1.6rem 0 4rem;
    color: var(--catalog-text);
}

.catalog-home-shell,
.catalog-browser-shell {
    display: grid;
    gap: 1.35rem;
}

.catalog-home-hero,
.catalog-home-section,
.catalog-utility-strip,
.catalog-quick-picks,
.catalog-browser-hero,
.catalog-browser-block,
.storefront-empty-state {
    position: relative;
    overflow: hidden;
    background: var(--catalog-surface);
    border: 1px solid var(--catalog-border);
    border-radius: 32px;
    box-shadow: var(--catalog-shadow);
    backdrop-filter: blur(14px);
}

.catalog-home-hero,
.catalog-home-section,
.catalog-utility-strip,
.catalog-quick-picks,
.catalog-browser-hero,
.catalog-browser-block,
.storefront-empty-state {
    padding: 1.4rem;
}

.catalog-home-hero::before,
.catalog-browser-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(201, 166, 95, 0.18), transparent 26%),
        radial-gradient(circle at 85% 0%, rgba(27, 74, 52, 0.16), transparent 28%);
    pointer-events: none;
}

.catalog-home-hero > *,
.catalog-browser-hero > * {
    position: relative;
    z-index: 1;
}

.catalog-home-hero__masthead,
.catalog-browser-hero__copy {
    display: grid;
    gap: 0.5rem;
}

.catalog-home-kicker,
.catalog-section-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(27, 74, 52, 0.08);
    color: var(--catalog-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.catalog-home-title,
.catalog-section-title {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--catalog-text);
}

.catalog-home-title {
    max-width: 12ch;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.catalog-section-title {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.catalog-home-summary,
.catalog-section-copy {
    max-width: 68ch;
    margin: 0;
    color: var(--catalog-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.catalog-home-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.catalog-home-search .form-control {
    min-height: 60px;
    border-radius: 18px;
    border: 1px solid rgba(27, 74, 52, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.catalog-home-search .btn {
    min-height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1b4a34 0%, #102c20 100%);
    border-color: #163925;
    font-weight: 800;
}

.catalog-home-search--compact {
    width: min(100%, 400px);
    margin-top: 0;
}

.catalog-home-stats,
.catalog-browser-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.catalog-home-stat,
.catalog-browser-metric {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(27, 74, 52, 0.08);
}

.catalog-home-stat strong,
.catalog-browser-metric strong {
    display: block;
    color: var(--catalog-text);
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 800;
}

.catalog-home-stat span,
.catalog-browser-metric span {
    display: block;
    margin-top: 0.35rem;
    color: var(--catalog-muted);
    font-size: 0.88rem;
}

.catalog-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalog-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.catalog-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    border-radius: 24px;
    overflow: hidden;
    color: #f7f4ef;
    box-shadow: 0 24px 48px rgba(16, 28, 20, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-hub-card:hover,
.catalog-node-card:hover,
.catalog-root-pill:hover,
.catalog-utility-link:hover,
.store-product-card:hover {
    transform: translateY(-4px);
}

.catalog-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 19, 16, 0.4) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 32%);
}

.catalog-hub-card--games {
    background: linear-gradient(135deg, #0f2f24 0%, #1f5f47 55%, #c09e59 100%);
}

.catalog-hub-card--apps {
    background: linear-gradient(135deg, #18352a 0%, #2f5d4e 48%, #73a97f 100%);
}

.catalog-hub-card--numbers {
    background: linear-gradient(135deg, #11261f 0%, #28503d 52%, #98b876 100%);
}

.catalog-hub-card--social {
    background: linear-gradient(135deg, #17221b 0%, #355843 52%, #a38a57 100%);
}

.catalog-hub-card__cover,
.catalog-hub-card__body {
    position: relative;
    z-index: 1;
}

.catalog-hub-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 1rem 0.95rem 0.25rem;
}

.catalog-hub-card__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 1.45rem;
}

.catalog-hub-card__body {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.9rem;
    margin-top: auto;
    padding: 0.2rem 0.95rem 1.05rem;
    text-align: center;
}

.catalog-hub-card__body h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.12;
    color: #fff8ef;
}

.catalog-hub-card__metrics,
.catalog-hub-card__chips,
.catalog-node-card__meta,
.catalog-browser-root-switch,
.catalog-utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.catalog-hub-card__metrics span,
.catalog-hub-card__chips span,
.catalog-node-card__meta span,
.catalog-root-pill,
.catalog-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.4rem 0.78rem;
    border-radius: 999px;
}

.catalog-hub-card__metrics span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff8ef;
    font-size: 0.72rem;
    font-weight: 700;
}

.catalog-hub-card__chips span {
    background: rgba(16, 20, 18, 0.2);
    color: rgba(255, 248, 239, 0.88);
    font-size: 0.72rem;
}

.catalog-hub-card__cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    color: #fff3da;
    font-weight: 800;
    font-size: 0.95rem;
}

.catalog-utility-links {
    gap: 0.75rem;
}

.catalog-home-hero {
    padding: 1rem 1.1rem;
}

.catalog-home-summary {
    max-width: 46ch;
    font-size: 0.94rem;
    line-height: 1.65;
}

.catalog-home-stats {
    margin-top: 0.75rem;
    gap: 0.75rem;
}

.catalog-home-stat {
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
}

.catalog-home-stat strong {
    font-size: 1.1rem;
}

.catalog-home-stat span {
    font-size: 0.78rem;
}

.catalog-home-section .catalog-section-head,
.catalog-utility-strip .catalog-section-head {
    margin-bottom: 0.85rem;
}

.catalog-home-section .catalog-section-copy,
.catalog-utility-strip .catalog-section-copy {
    max-width: 42ch;
    font-size: 0.92rem;
}

.catalog-utility-link {
    border: 1px solid rgba(27, 74, 52, 0.1);
    background: rgba(255, 255, 255, 0.86);
    color: var(--catalog-text);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-utility-link--utility {
    background: linear-gradient(180deg, #fffdfa 0%, #f1ece2 100%);
}

.catalog-browser-hero__top {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: start;
}

.catalog-browser-hero {
    padding: 1rem 1.1rem;
}

.catalog-browser-hero .catalog-section-title {
    font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.catalog-browser-hero .catalog-section-copy {
    max-width: 40ch;
    font-size: 0.94rem;
    line-height: 1.6;
}

.catalog-browser-root-switch {
    margin-top: 0.7rem;
    gap: 0.45rem;
}

.catalog-browser-hero--games {
    border-color: rgba(27, 74, 52, 0.14);
}

.catalog-browser-hero--apps {
    border-color: rgba(54, 103, 77, 0.16);
}

.catalog-browser-hero--numbers {
    border-color: rgba(91, 117, 54, 0.18);
}

.catalog-browser-hero--social {
    border-color: rgba(120, 95, 50, 0.18);
}

.catalog-browser-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--catalog-muted);
    font-size: 0.9rem;
}

.catalog-browser-breadcrumbs a {
    color: var(--catalog-accent);
    font-weight: 700;
}

.catalog-browser-breadcrumbs__divider {
    color: rgba(111, 120, 111, 0.64);
}

.catalog-root-pill {
    border: 1px solid rgba(27, 74, 52, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--catalog-text);
    font-weight: 700;
    min-height: 34px;
    padding: 0.32rem 0.72rem;
    font-size: 0.84rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.catalog-root-pill.is-active {
    background: linear-gradient(135deg, #1b4a34 0%, #102c20 100%);
    color: #fffaf0;
    border-color: #163925;
}

.catalog-browser-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.catalog-node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.catalog-node-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 132px;
    padding: 0.85rem;
    border-radius: 22px;
    border: 1px solid rgba(27, 74, 52, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 244, 238, 0.96) 100%);
    box-shadow: 0 18px 32px rgba(16, 28, 20, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-node-card__media {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    color: #fff9ef;
    font-size: 1.28rem;
    background: linear-gradient(135deg, #1c4d37 0%, #173327 100%);
}

.catalog-node-card--apps .catalog-node-card__media {
    background: linear-gradient(135deg, #315d4d 0%, #18352a 100%);
}

.catalog-node-card--numbers .catalog-node-card__media {
    background: linear-gradient(135deg, #537145 0%, #243f2d 100%);
}

.catalog-node-card--social .catalog-node-card__media {
    background: linear-gradient(135deg, #6f613f 0%, #2a392d 100%);
}

.catalog-node-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-node-card__content {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.catalog-node-card__eyebrow {
    color: var(--catalog-accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.catalog-node-card__content h3 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--catalog-text);
}

.catalog-node-card__content p {
    display: none;
}

.catalog-node-card__meta span {
    background: var(--catalog-accent-soft);
    color: var(--catalog-accent);
    font-size: 0.72rem;
    font-weight: 800;
    min-height: 30px;
    padding: 0.28rem 0.6rem;
}

.catalog-node-card__arrow {
    color: var(--catalog-accent);
    font-size: 0.92rem;
}

.storefront-products-grid--home,
.storefront-products-grid--listing {
    gap: 1rem;
}

.store-product-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(27, 74, 52, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 241, 232, 0.96) 100%);
    box-shadow: 0 18px 32px rgba(16, 28, 20, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-product-card__media {
    min-height: 210px;
    background: linear-gradient(180deg, #f7f2e8 0%, #ece2d0 100%);
}

.store-product-card__media-overlay {
    height: 110px;
    background: linear-gradient(180deg, rgba(17, 26, 20, 0) 0%, rgba(17, 26, 20, 0.72) 100%);
}

.store-product-card__delivery-pill,
.store-product-card__badge {
    min-height: 30px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.store-product-card__badge,
.store-product-card__delivery-pill {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.88);
}

.store-product-card__badge--featured {
    background: rgba(27, 74, 52, 0.1);
    border-color: rgba(27, 74, 52, 0.12);
}

.store-product-card__body {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.store-product-card__meta,
.store-product-card__secondary-price,
.storefront-end-message,
.storefront-empty-state p {
    color: var(--catalog-muted);
}

.store-product-card__title {
    min-height: 3rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.45;
}

.store-product-card__title a,
.store-product-card__category-text,
.store-product-card__availability,
.store-product-card .card-price {
    color: var(--catalog-text);
}

.store-product-card .card-price {
    font-size: 1.18rem;
    font-weight: 800;
}

.store-product-card__secondary-price {
    font-size: 0.82rem;
}

.store-product-card__button {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #1b4a34 0%, #102c20 100%);
    border-color: #163925;
}

.subcategory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.subcategory-pagination-status {
    color: var(--catalog-muted);
    font-size: 0.92rem;
}

.storefront-empty-state {
    display: grid;
    place-items: center;
    gap: 0.6rem;
    min-height: 220px;
    text-align: center;
}

.storefront-empty-state i {
    color: var(--catalog-accent);
    font-size: 2rem;
}

@media (max-width: 1024px) {
    .catalog-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .storefront-page {
        padding: 1rem 0 5.5rem;
    }

    .catalog-home-title {
        max-width: none;
        font-size: 2rem;
    }

    .catalog-browser-hero__top,
    .catalog-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-home-search,
    .catalog-home-search--compact {
        width: 100%;
    }

    .catalog-home-stats,
    .catalog-browser-metrics {
        grid-template-columns: 1fr;
    }

    .catalog-hub-card {
        min-height: 270px;
    }

    .catalog-node-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .catalog-node-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        min-height: 188px;
        padding: 0.8rem;
        text-align: center;
        justify-items: center;
    }

    .catalog-node-card__content {
        justify-items: center;
        text-align: center;
    }

    .catalog-node-card__meta {
        justify-content: center;
    }

    .catalog-node-card__arrow {
        display: none;
    }
}

@media (max-width: 576px) {
    .catalog-home-hero,
    .catalog-home-section,
    .catalog-utility-strip,
    .catalog-quick-picks,
    .catalog-browser-hero,
    .catalog-browser-block,
    .storefront-empty-state {
        border-radius: 26px;
        padding: 1rem;
    }

    .catalog-home-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-home-search .btn {
        width: 100%;
    }

    .catalog-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .catalog-home-title {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .catalog-section-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .catalog-home-summary,
    .catalog-section-copy {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .catalog-home-search {
        margin-top: 0.85rem;
        gap: 0.6rem;
    }

    .catalog-home-stats,
    .catalog-browser-metrics {
        display: none;
    }

    .catalog-home-section .catalog-section-copy,
    .catalog-utility-strip .catalog-section-copy,
    .catalog-browser-block .catalog-section-copy {
        display: none;
    }

    .catalog-hub-card {
        min-height: 180px;
        border-radius: 20px;
    }

    .catalog-hub-card__cover {
        min-height: 60px;
        padding: 0.65rem 0.65rem 0.15rem;
    }

    .catalog-hub-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .catalog-hub-card__body {
        gap: 0.55rem;
        padding: 0.15rem 0.65rem 0.7rem;
    }

    .catalog-hub-card__body h3 {
        font-size: 0.94rem;
    }

    .catalog-hub-card__chips {
        display: none;
    }

    .catalog-hub-card__cta {
        font-size: 0.78rem;
    }

    .catalog-section-head {
        margin-bottom: 0.8rem;
    }

    .catalog-root-pill,
    .catalog-utility-link,
    .catalog-hub-card__chips span {
        white-space: nowrap;
    }

    .catalog-browser-root-switch,
    .catalog-utility-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    .catalog-browser-root-switch::-webkit-scrollbar,
    .catalog-utility-links::-webkit-scrollbar {
        display: none;
    }

    .catalog-node-grid {
        grid-template-columns: 1fr;
    }

    .catalog-node-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.75rem;
        min-height: 0;
        padding: 0.85rem;
        align-items: center;
        justify-items: initial;
        text-align: start;
    }

    .catalog-node-card__content,
    .catalog-node-card__meta {
        justify-items: start;
        justify-content: start;
        text-align: start;
    }

    .catalog-node-card__media {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 1.15rem;
    }

    .catalog-node-card__content h3 {
        font-size: 1.02rem;
    }

    .catalog-node-card__content p {
        display: none;
    }

    .store-product-card__media {
        min-height: 180px;
    }
}
