:root {
    --rf-bg: #f4f6fb;
    --rf-surface: #ffffff;
    --rf-surface-strong: #f8faff;
    --rf-surface-dark: #101826;
    --rf-border: rgba(148, 163, 184, 0.18);
    --rf-text: #111827;
    --rf-muted: #6b7280;
    --rf-primary: #2563eb;
    --rf-secondary: #0f766e;
    --rf-accent: #fb7185;
    --rf-danger: #ef4444;
    --rf-success: #16a34a;
    --rf-hero-shadow: 0 36px 90px rgba(15, 23, 42, 0.22);
    --rf-card-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    --rf-card-shadow-hover: 0 26px 60px rgba(15, 23, 42, 0.14);
    --rf-radius-sm: 6px;
    --rf-radius-md: 8px;
    --rf-radius-lg: 10px;
    --rf-transition: 220ms ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 9rem;
}

body {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%), radial-gradient(circle at top right, rgba(251, 113, 133, 0.07), transparent 22%), linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 251, 0.92)), var(--rf-bg);
    color: var(--rf-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.alert {
    border: 0;
    border-radius: var(--rf-radius-sm);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1d4ed8, #0f766e 58%, #fb7185);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
    flex: 0 0 auto;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--rf-card-shadow);
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-badge-image {
    padding: 0.25rem;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.8rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.brand-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1rem;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-copy small {
    color: var(--rf-muted);
    font-size: 0.78rem;
    line-height: 1.2;
    max-width: 20rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-bar {
    background: linear-gradient(90deg, #0f172a, #1f2937 52%, #172554);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    padding: 0.55rem 0;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* flex-wrap: wrap; */
}

.announcement-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    min-width: 97px;
}

.app-header {
    z-index: 1035;
}

.glass-header {
    padding: 0.7rem 0 0;
    background: linear-gradient(180deg, rgba(244, 246, 251, 0.92), rgba(244, 246, 251, 0.64));
    backdrop-filter: blur(22px);
}

.header-shell {
    width: 100%;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.8rem;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.1rem;
    align-items: center;
    min-width: 0;
}

.header-desktop-nav {
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-desktop-nav::-webkit-scrollbar {
    display: none;
}

.navbar-nav-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.32rem;
    white-space: nowrap;
}

.navbar-nav-inline .nav-link,
.mobile-menu-link {
    color: var(--rf-muted);
    font-weight: 600;
    transition: transform var(--rf-transition), background var(--rf-transition), color var(--rf-transition), box-shadow var(--rf-transition);
}

.navbar-nav-inline .nav-link {
    padding: 0.78rem 1rem;
    border-radius: 999px;
}

.navbar-nav-inline .nav-link.active,
.navbar-nav-inline .nav-link:hover {
    color: var(--rf-text);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 52px;
    padding: 0 1rem;
    border: 1px solid var(--rf-border);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.header-search i {
    color: var(--rf-muted);
}

.header-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--rf-text);
    outline: 0;
}

.header-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: 0.95rem;
}

.header-utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
}

.header-utility-actions,
.mobile-utility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.utility-copy {
    color: var(--rf-muted);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
}

.icon-action,
.pill-action,
.hero-arrow,
.rail-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--rf-transition), box-shadow var(--rf-transition), background var(--rf-transition), color var(--rf-transition);
}

.icon-action {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--rf-card-shadow);
    text-decoration: none;
}

.icon-action:hover,
.pill-action:hover,
.hero-arrow:hover,
.rail-arrow:hover,
.product-card:hover,
.category-card:hover,
.best-seller-spotlight:hover,
.summary-card:hover,
.cart-row:hover,
.promo-pod:hover {
    transform: translateY(-2px);
}

.navbar-toggler {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-card-shadow);
}

.navbar-toggler-icon {
    width: 1.15rem;
    height: 1.15rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817,24,39,0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

.pill-action,
.role-pill {
    /* min-height: 2.9rem; */
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--rf-card-shadow);
    gap: 0.55rem;
    /* font-size: 0.92rem; */
    font-weight: 600;
    text-decoration: none;
}

.role-pill {
    display: inline-flex;
    color: var(--rf-text);
}

.role-pill-sale {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
}

.mobile-nav-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 58px;
    padding: 0.95rem 1rem;
    border-radius: 1.1rem;
    background: rgba(248, 250, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    text-decoration: none;
}

.mobile-menu-link.active,
.mobile-menu-link:hover {
    color: var(--rf-text);
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
}

.mobile-menu-link i {
    color: var(--rf-primary);
}

.mobile-utility {
    display: grid;
    gap: 0.85rem;
}

.cart-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.1rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--rf-danger);
    color: #fff;
    font-size: 0.68rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-band,
.page-hero,
.auth-stage {
    padding: 0.6rem 0;
}

.page-band-dark {
    background: linear-gradient(135deg, #111827, #172554);
    color: #fff;
}

.page-band-soft {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 55%);
}

.page-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 247, 251, 0.32));
}

.page-hero-compact {
    padding-bottom: 1rem;
}

.page-hero-copy,
.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.page-hero-copy h1,
.section-header h2,
.hero-content h1 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0;
}

.page-hero-copy h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.page-hero-copy p,
.section-header p,
.hero-content p,
.content-stack p {
    margin: 0;
    color: var(--rf-muted);
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.7;
}

.section-header {
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header-light p,
.section-header-light h2 {
    color: rgba(255, 255, 255, 0.9);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--rf-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-header-light .section-kicker,
.hero-content .section-kicker {
    color: rgba(255, 255, 255, 0.76);
}

#category-section,
#offers-section,
#new-arrival-section,
#best-seller-section {
    scroll-margin-top: 9rem;
}

.hero-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    min-height: min(76vh, 720px);
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--rf-hero-shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 520ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: min(76vh, 720px);
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.78) 84%), linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18));
}

.hero-content {
    max-width: 42rem;
    padding: 0 0 5rem;
    color: #fff;
}

.hero-panel {
    padding: 1.75rem;
    border-radius: 1.9rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-arrow,
.rail-arrow {
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(16px);
}

.rail-arrow {
    background: rgba(255, 255, 255, 0.92);
    color: var(--rf-text);
    box-shadow: var(--rf-card-shadow);
    flex: 0 0 auto;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-dots button {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.34);
    padding: 0;
}

.hero-dots button.is-active {
    width: 2rem;
    background: #fff;
}

.stats-ribbon {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    border: 0;
    border-radius: var(--rf-radius-md);
    background: transparent;
    box-shadow: none;
}

.stats-ribbon div {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 1.15rem 1.2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--rf-card-shadow);
}

.stats-ribbon strong {
    font-size: 1rem;
}

.stats-ribbon span {
    color: var(--rf-muted);
    font-size: 0.92rem;
}

.rail-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-rail,
.product-rail,
.product-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 15px;
}

.category-rail::-webkit-scrollbar,
.product-rail::-webkit-scrollbar,
.product-gallery-strip::-webkit-scrollbar {
    display: none;
}

.category-card,
.product-rail-item {
    scroll-snap-align: start;
}

.category-rail {
    grid-auto-columns: minmax(150px, 170px);
}

.product-rail {
    grid-auto-columns: minmax(240px, 268px);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1rem 0.8rem 1.05rem;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--rf-card-shadow);
    text-decoration: none;
    transition: transform var(--rf-transition), box-shadow var(--rf-transition);
}

.category-card-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* border-radius: 50%; */
    padding: 0.28rem;
    /* background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(15, 118, 110, 0.1), rgba(251, 113, 133, 0.18));
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44); */
}

.category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
}

.category-card-body strong {
    font-size: 1rem;
}

.category-card-body small {
    color: var(--rf-muted);
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 1.85rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: var(--rf-card-shadow);
    overflow: hidden;
    transition: transform var(--rf-transition), box-shadow var(--rf-transition);
}

.product-card:hover {
    box-shadow: var(--rf-card-shadow-hover);
}

.product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.06;
    padding: 0.8rem;
    background: linear-gradient(180deg, #f4f7ff, #fcfdff);
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1.35rem;
    transition: transform 320ms ease;
}

.product-card:hover .product-card-media img {
    transform: scale(1.04);
}

.product-card-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge-sale,
.badge-new,
.badge-best,
.badge-featured {
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-sale {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
}

.badge-new {
    background: rgb(0 193 71);
    color: #ffffff;
}

.badge-best {
    background: rgb(0, 145, 96);
    color: #ffffff;
}

.badge-featured {
    background: #2196F3;
    color: #ffffff;
}

.small-icon-action {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 0.95rem;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.05rem 1rem 1rem;
}

.product-card-category {
    color: var(--rf-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.product-card-copy {
    margin: 0;
    color: var(--rf-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
}

.price-stack {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.price-current {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    color: #000;
}

.price-compare {
    color: var(--rf-muted);
    font-size: 0.86rem;
    text-decoration: line-through;
}

.quick-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.78rem 1rem;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.product-card--light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 249, 0.98));
}

.best-seller-layout {
    display: grid;
    gap: 1.5rem;
}

.best-seller-spotlight {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: var(--rf-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--rf-card-shadow);
}

.best-seller-media {
    border-radius: calc(var(--rf-radius-lg) - 10px);
    overflow: hidden;
    /* aspect-ratio: 1 / 1; */
    background: #eef2ff;
}

.best-seller-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.best-seller-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.best-seller-copy h3 {
    margin: 0 0 0.8rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.best-seller-copy p {
    margin: 0;
    color: var(--rf-muted);
    line-height: 1.7;
    max-width: 52ch;
}

.promo-pod,
.summary-card,
.filter-panel,
.auth-card,
.checkout-panel,
.cart-row,
.empty-state,
.product-detail-panel,
.product-description-panel,
.admin-panel,
.admin-stat-card,
.permission-card,
.banner-admin-card,
.address-card {
    border-radius: var(--rf-radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--rf-card-shadow);
}

.summary-card,
.filter-panel,
.auth-card,
.checkout-panel,
.admin-panel,
.admin-stat-card,
.permission-card,
.address-card,
.product-detail-panel,
.product-description-panel {
    padding: 1.35rem;
}

.content-stack {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--rf-radius-md);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--rf-card-shadow);
}

.catalog-filter-panel {
    position: sticky;
    top: 8.5rem;
}

.product-detail-shell {
    margin-bottom: 1.3rem;
}

.product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--rf-muted);
    font-size: 0.92rem;
}

.product-gallery-main {
    aspect-ratio: 1 / 1.1;
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    background: #eef2ff;
    box-shadow: var(--rf-card-shadow);
}

.product-gallery-main img,
.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product-gallery-strip {
    margin-top: 1rem;
    grid-auto-columns: minmax(80px, 80px);
}

.product-gallery-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #eef2ff;
    box-shadow: var(--rf-card-shadow);
}

.product-detail-title {
    margin: 0 0 0.7rem;
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.05;
}

.product-detail-copy {
    margin: 0 0 1rem;
    color: var(--rf-muted);
    line-height: 1.7;
}

.product-price-row {
    display: flex;
    align-items: end;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.product-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--rf-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.status-pill-success {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.status-pill-muted {
    background: rgba(148, 163, 184, 0.16);
    color: var(--rf-muted);
}

.product-benefits {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.product-benefits div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--rf-muted);
}

.product-description-panel h2 {
    margin-bottom: 0.9rem;
}

.rich-copy {
    color: var(--rf-muted);
    line-height: 1.8;
}

.cart-row {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    transition: transform var(--rf-transition), box-shadow var(--rf-transition);
}

.cart-row img,
.admin-thumb {
    width: 108px;
    height: 108px;
    border-radius: 1rem;
    object-fit: contain;
    background: #fff;
    flex: 0 0 auto;
}

.cart-qty-input {
    width: 88px;
}

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

.address-option,
.payment-option {
    display: flex;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 251, 255, 0.92);
}

.address-option input,
.payment-option input {
    margin-top: 0.25rem;
}

.address-option span,
.payment-option span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.auth-stage {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.auth-card {
    padding: 1.6rem;
}

.site-footer {
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(32, 32, 32, 0.98));
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
    display: grid;
    gap: 1.8rem;
}

.footer-brand p {
    margin: 0 0 1rem;
    color: var(--rf-muted);
    max-width: 46ch;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--rf-muted);
}

.footer-links-group h2 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    color: var(--rf-bg);
}

.footer-links-group ul {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links-group a {
    color: var(--rf-muted);
    text-decoration: none;
}

.footer-links-group a:hover {
    color: var(--rf-surface);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.social-links a {
    width: 2.9rem;
    height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--rf-muted);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-card-shadow);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--rf-surface);
    background: var(--rf-muted);
}

.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-categories a {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rf-border);
    color: var(--rf-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-categories a:hover {
    color: var(--rf-surface);
    background: var(--rf-muted);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--rf-muted);
    font-size: 0.88rem;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    gap: 0.3rem;
    padding: 0.45rem;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 1.5rem;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(20px);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 58px;
    padding: 0.3rem 1rem;
    border-radius: 1rem;
    color: var(--rf-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-bottom-nav a span {
    line-height: 1.1;
    text-align: center;
}

.mobile-bottom-nav a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.9rem;
    background: rgba(244, 246, 251, 0.92);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.mobile-bottom-nav a.active {
    color: var(--rf-text);
    background: rgba(37, 99, 235, 0.08);
}

.mobile-bottom-nav a.active i {
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.table> :not(caption)>*>* {
    padding: 0.95rem 0.75rem;
}

.pagination .page-link {
    border: 0;
    border-radius: 0.9rem;
    color: var(--rf-text);
    box-shadow: var(--rf-card-shadow);
}

.pagination .active .page-link {
    background: var(--rf-text);
    color: #fff;
}

.admin-body {
    background: linear-gradient(180deg, #eef3f9, #f7f9fc);
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.4rem 1rem;
    background: linear-gradient(180deg, #0f172a, #162033);
    color: #fff;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.admin-brand .brand-badge,
.admin-brand .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    border-radius: 1rem;
}

.admin-menu a.active,
.admin-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.admin-main {
    padding: 1.25rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--rf-radius-md);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--rf-card-shadow);
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-stat-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-stat-card span {
    color: var(--rf-muted);
    font-size: 0.92rem;
}

.admin-stat-card strong {
    font-size: 2rem;
    line-height: 1;
}

.snapshot-row,
.activity-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.snapshot-row:last-child,
.activity-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.permission-card,
.address-card,
.banner-admin-card {
    padding: 1rem;
}

.banner-admin-card img,
.admin-image-card img {
    width: 100%;
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.admin-image-card {
    display: block;
    padding: 0.8rem;
    border-radius: var(--rf-radius-sm);
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

@media (min-width: 768px) {
    .stats-ribbon {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-header {
        flex-direction: row;
        align-items: end;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .best-seller-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
    .best-seller-spotlight {
        grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }
}

@media (min-width: 992px) {
    .page-band,
    .page-hero,
    .auth-stage {
        padding: 1.5rem 0;
    }
    .header-shell {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 991.98px) {
    body.storefront-body {
        padding-bottom: 102px;
    }
    .hero-slider,
    .hero-slide img {
        min-height: 500px;
    }
    .hero-content {
        padding-bottom: 5.5rem;
    }
    .header-secondary {
        grid-template-columns: 1fr;
    }
    .header-utility {
        justify-content: flex-start;
    }
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static;
        height: auto;
        border-bottom-left-radius: 1.6rem;
        border-bottom-right-radius: 1.6rem;
    }
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 2fr;
    }
}

@media (max-width: 767.98px) {
    .glass-header {
        padding-top: 0.5rem;
    }
    .header-shell {
        border-radius: 1.5rem;
        padding: 0.8rem;
    }
    .header-main {
        grid-template-columns: auto auto;
        gap: 0.7rem;
    }
    .brand-copy small {
        display: none;
    }
    .brand-copy strong {
        font-size: 0.95rem;
    }
    .hero-stage {
        padding-top: 0.5rem;
    }
    .hero-slider,
    .hero-slide img {
        width: calc(100% - 0.8rem);
        min-height: 430px;
        border-radius: 1.7rem;
    }
    .hero-slide img {
        object-fit: cover;
        object-position: center center;
    }
    .hero-content {
        padding-bottom: 4.4rem;
    }
    .hero-content h1 {
        font-size: clamp(1.2rem, 1vw, 1.2rem);
        margin-bottom: 0.5rem;
    }
    .hero-content p {
        font-size: 0.8rem !important;
        line-height: 1;
    }
    .hero-actions {
        margin-top: .8rem;
    }
    .hero-panel {
        padding: 1.2rem;
        border-radius: 1.5rem;
        background: transparent;
        border: 0;
        backdrop-filter: inherit;
    }
    .hero-controls {
        bottom: 0.85rem;
        gap: 0.55rem;
        justify-content: center;
    }
    .hero-arrow {
        display: none;
    }
    .hero-arrow,
    .rail-arrow {
        width: 2.7rem;
        height: 2.7rem;
    }
    .section-header {
        margin-bottom: 1.2rem;
    }
    .product-rail {
        grid-auto-columns: minmax(220px, 82vw);
    }
    .category-rail {
        grid-auto-columns: minmax(136px, 43vw);
    }
    .category-card {
        padding: 0.9rem 0.7rem 1rem;
    }
    .category-card-media {
        width: 82px;
    }
    .category-card-body strong {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    .category-card-body small {
        font-size: 0.8rem;
    }
    .product-card {
        border-radius: 1.35rem;
    }
    .product-card-body {
        padding: 0.85rem;
    }
    .product-card-copy {
        font-size: 0.86rem;
    }
    .product-card-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .quick-add-form,
    .quick-add-btn {
        width: 100%;
    }
    .quick-add-btn {
        justify-content: center;
    }
    .best-seller-spotlight {
        padding: 0.85rem;
    }
    .cart-row {
        flex-direction: row;
    }
    .cart-row img {
        width: 70px;
        height: 70px;
    }
    .mobile-menu-grid {
        grid-template-columns: 1fr;
    }
    .mobile-bottom-nav {
        left: 0.45rem;
        right: 0.45rem;
        bottom: 0.45rem;
        padding: 0.35rem;
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
        gap: 0.2rem;
    }
    .mobile-bottom-nav a span {
        font-size: 0.64rem;
    }
    .admin-topbar {
        flex-direction: column;
        align-items: start;
    }
    .category-directory-copy .h5 {
        font-size: 0.9rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* App-like UX Refresh */

:root {
    --rf-primary: #2563eb;
    --rf-secondary: #14b8a6;
    --rf-accent: #f97316;
    --rf-surface-soft: #f8fafc;
    --rf-shadow-strong: 0 22px 48px rgba(15, 23, 42, 0.14);
}

body.storefront-body {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 22%), radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 18%), linear-gradient(180deg, #f9fbff 0%, #f3f6fb 100%);
}

body.has-overlay {
    overflow: hidden;
}

.storefront-body .btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0;
}

.storefront-body .btn-sm {
    padding: 0.6rem 0.95rem;
    font-size: 0.86rem;
}

.storefront-body .form-control,
.storefront-body .form-select {
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.397);
    min-height: 48px;
    box-shadow: none;
}

.storefront-body .form-control:focus,
.storefront-body .form-select:focus {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.12);
}

.app-header {
    z-index: 1050;
}

.navbar-shell {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.94), rgba(20, 184, 166, 0.88) 52%, rgba(249, 115, 22, 0.9));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.store-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
}

.store-nav-start,
.store-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: end;
}

.store-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.store-nav-center::-webkit-scrollbar {
    display: none;
}

.store-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--rf-transition), color var(--rf-transition), transform var(--rf-transition);
}

.store-nav-link:hover,
.store-nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 52px;
}

.nav-logo-image {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
}

.nav-logo-image-mobile {
    height: 48px;
    max-width: 220px;
}

.brand-copy-fallback {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 0.75rem;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    transition: transform var(--rf-transition), background var(--rf-transition);
}

.nav-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.nav-icon-btn .cart-badge {
    top: -0.15rem;
    right: -0.15rem;
}

.overlay-shell[hidden] {
    display: none !important;
}

.overlay-shell {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.overlay-shell.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
}

.overlay-shell.cart-overlay {
    justify-content: flex-end !important;
}

.overlay-shell .cart-drawer-panel {
    transform: translateX(100%);
}

.drawer-panel,
.search-panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--rf-shadow-strong);
}

.drawer-panel {
    width: min(420px, 92vw);
    height: 100%;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 260ms ease;
}

.filter-drawer {
    width: 100vw !important;
}

.overlay-shell.is-visible .drawer-panel {
    transform: translateX(0);
}

.drawer-head,
.cart-drawer-head,
.search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.drawer-body,
.cart-drawer-body {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
}

.drawer-close-btn {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgb(235 241 255);
    color: var(--rf-text);
}

.search-overlay {
    justify-content: center;
    align-items: flex-start;
    padding: 6rem 1rem 1rem;
}

.search-panel {
    width: min(760px, 100%);
    border-radius: 1.6rem;
    padding: 1.1rem;
    transform: translateY(-24px) scale(0.98);
    transition: transform 240ms ease;
}

.overlay-shell.is-visible .search-panel {
    transform: translateY(0) scale(1);
}

.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 58px;
    margin-bottom: 1rem;
    padding: 0 1.1rem;
    border-radius: 1.2rem;
    background: var(--rf-surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.search-overlay-form input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    outline: 0;
    font-size: 1rem;
}

.search-suggestions {
    display: grid;
    gap: 0.7rem;
    max-height: 360px;
    overflow-y: auto;
    align-items: start;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    text-decoration: none;
    color: inherit;
}

.search-suggestion-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.9rem;
}

.mobile-nav-drawer {
    width: min(360px, 88vw);
}

.mobile-nav-links {
    display: grid;
    gap: 0.65rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0.95rem 1rem;
    border-radius: 1.05rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
    text-decoration: none;
    color: var(--rf-text);
    font-weight: 600;
}

.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--rf-primary);
}

.mobile-nav-meta {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.catalog-toolbar,
.catalog-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-toolbar-copy,
.catalog-results-head>div {
    display: grid;
    gap: 0.35rem;
}

.catalog-shell {
    min-height: 320px;
}

.catalog-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.filter-drawer .drawer-body {
    max-height: calc(100vh - 100px);
}

.quantity-stepper {
    display: inline-grid;
    grid-template-columns: 42px minmax(48px, auto) 42px;
    align-items: center;
    max-width: 150px;
    min-height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgb(50 70 99 / 36%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.quantity-stepper-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--rf-text);
}

.quantity-stepper-input {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: var(--rf-text);
}

.wishlist-form {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.wishlist-form-static {
    position: static;
}

.wishlist-btn {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rf-text);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.wishlist-btn.is-active {
    background: rgb(191 4 4 / 27%);
    color: #dc2626;
}

.wishlist-btn-large {
    position: static;
    width: 3rem;
    height: 3rem;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #f59e0b;
    font-size: 0.82rem;
}

.rating-stars-icons {
    display: inline-flex;
    gap: 0.18rem;
}

.rating-stars-copy {
    color: var(--rf-muted);
    font-weight: 600;
}

.product-card-media {
    padding: 0.72rem;
    aspect-ratio: 1 / 1.02;
}

.product-card-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-media img {
    border-radius: 1.25rem;
}

.product-card-copy {
    min-height: 2.95rem;
}

.product-card-meta {
    align-items: center;
}

.quick-add-form {
    flex: 0 0 auto;
}

.quick-add-btn {
    min-height: 42px;
}

.product-add-btn {
    min-height: 48px;
}

.remove-icon-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    box-shadow: none;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.product-detail-panel .rating-stars {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cart-drawer-panel {
    display: flex;
    flex-direction: column;
}

.cart-drawer-list {
    display: grid;
    gap: 0.9rem;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.cart-drawer-item img {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    object-fit: contain;
    background: #fff;
}

.cart-drawer-copy {
    display: grid;
    gap: 0.2rem;
}

.cart-drawer-foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.app-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: grid;
    gap: 0.7rem;
}

.app-toast {
    min-width: 220px;
    max-width: 320px;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    box-shadow: var(--rf-shadow-strong);
    font-size: 0.9rem;
}

.app-toast.is-error {
    background: rgba(185, 28, 28, 0.94);
}

@media (max-width: 991.98px) {
    body.storefront-body {
        padding-bottom: 100px;
    }
    .store-nav {
        grid-template-columns: auto 1fr auto;
        min-height: 72px;
    }
    .nav-logo-image {
        height: 40px;
        max-width: 180px;
    }
    .search-overlay {
        padding: 0;
        align-items: stretch;
    }
    .search-panel {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    .search-suggestions {
        max-height: none;
        /* flex: 1 1 auto; */
    }
    .hero-slider,
    .hero-slide img {
        min-height: 220px !important;
    }
    .hero-content {
        padding-bottom: 2rem;
    }
    .hero-panel {
        padding: 1rem;
        border-radius: 1.3rem;
    }
    .page-hero-copy p,
    .section-header p,
    .hero-content p,
    .content-stack p,
    .product-card-copy,
    .footer-bottom,
    .storefront-body .btn,
    .storefront-body .form-control,
    .storefront-body .form-select {
        font-size: 0.92rem;
    }
    .product-card-category {
        font-size: 0.56rem;
    }
    .product-card-title,
    .section-header h2 {
        font-size: 0.78rem;
    }
    .product-card-meta {
        flex-direction: column;
        align-items: stretch;
    }
    .price-current {
        font-size: 0.9rem;
    }
    .price-compare {
        font-size: 0.76rem;
    }
    .quick-add-form,
    .quick-add-btn {
        width: 100%;
    }
    .catalog-toolbar {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .announcement-bar {
        font-size: 0.76rem;
    }
    .store-nav {
        gap: 0.7rem;
    }
    .nav-logo-image {
        height: 36px;
        max-width: 148px;
    }
    .nav-logo-image-mobile {
        height: 42px;
        max-width: 180px;
    }
    .nav-icon-btn {
        width: 2.65rem;
        height: 2.65rem;
    }
    .search-overlay-form {
        min-height: 52px;
    }
    .drawer-panel {
        width: min(360px, 92vw);
    }
    .mobile-bottom-nav {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        padding-top: 0.35rem;
        padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav a {
        min-height: 54px;
    }
    .mobile-bottom-nav a span {
        font-size: 0.63rem;
    }
    .cart-row {
        padding: 0.9rem;
    }
    .product-gallery-strip {
        grid-auto-columns: minmax(64px, 64px);
    }
}


/* Advanced catalog, order lifecycle, and gallery refresh */

.page-band-shop {
    padding-top: 1.5rem;
}

.catalog-filter-sidebar {
    position: sticky;
    top: 7.4rem;
}

.filter-drawer-left {
    border-radius: 0 1.35rem 1.35rem 0;
}

.category-directory {
    display: grid;
    gap: 0.5rem;
}

.category-directory-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.category-directory-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 0.15rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--rf-card-shadow);
}

.category-directory-tile {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform var(--rf-transition), box-shadow var(--rf-transition);
}

.category-directory-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--rf-shadow-strong);
}

.category-directory-media {
    display: block;
    border-radius: 1.15rem;
    overflow: hidden;
    height: 70px;
    padding: 11px;
    width: 70px;
}

.category-directory-tile .category-directory-media {
    min-height: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid #bebebe;
}

.category-directory-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.category-directory-copy {
    display: grid;
    gap: 0rem;
}

.category-directory-copy h2.h5 {
    font-size: 0.9rem;
}

.category-directory-copy small {
    font-size: 11px;
    color: var(--rf-muted) !important;
}

.category-directory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.84rem;
    color: var(--rf-muted);
}

.category-directory-children {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.category-directory-children a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--rf-text);
    text-decoration: none;
    font-size: 0.86rem;
}

.product-gallery {
    display: grid;
    gap: 1rem;
}

.product-gallery-main {
    position: relative;
    background-repeat: no-repeat;
    background-size: 190%;
    background-position: 50% 50%;
    transition: background-position 120ms ease;
}

.product-gallery-main.is-zooming img {
    opacity: 0;
}

.product-gallery-preview {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery-main img {
    transition: opacity 140ms ease;
}

.product-gallery-thumb {
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-gallery-thumb.is-active {
    border: 2px solid rgba(37, 100, 235, 0.966);
    transform: translateY(0px);
}

.image-lightbox-overlay {
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.image-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 980px);
    max-height: 92vh;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--rf-shadow-strong);
}

.image-lightbox-panel img {
    width: 100%;
    max-height: calc(92vh - 3rem);
    object-fit: contain;
}

.image-lightbox-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

.review-card {
    display: grid;
    gap: 0.3rem;
}

.review-image-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.review-image-strip img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.review-image-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.review-edit-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.order-timeline-card {
    padding: 1.2rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--rf-card-shadow);
}

.order-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.order-timeline-step {
    position: relative;
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--rf-muted);
}

.order-timeline-step.is-complete {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--rf-text);
}

.order-timeline-step.is-alert {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.14);
}

.order-timeline-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
}

.order-timeline-step.is-complete .order-timeline-dot {
    background: #2563eb;
}

.order-timeline-step.is-alert .order-timeline-dot {
    background: #ef4444;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.order-meta-chip {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.order-meta-chip span {
    display: block;
    font-size: 0.8rem;
    color: var(--rf-muted);
}

.order-meta-chip strong {
    display: block;
    margin-top: 0.3rem;
}

@media (max-width: 991.98px) {
    .category-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .category-directory-card {
        grid-template-columns: 1fr;
    }
    .catalog-filter-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .page-band-shop {
        padding-top: 0.9rem;
    }
    .category-directory-grid {
        grid-template-columns: 1fr;
    }
    .category-directory-card {
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        padding: 0.85rem;
    }
    .category-directory-tile {
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: center;
    }
    .category-directory-media {
        min-height: 100px;
        height: 100px;
        padding: 5px;
    }
    .category-directory-tile .category-directory-media {
        aspect-ratio: auto;
        height: 50px;
        width: 50px;
        border-radius: 10px;
    }
    .category-directory-copy p,
    .catalog-toolbar-copy p,
    .review-card p,
    .order-side-note,
    .order-meta-chip span {
        font-size: 0.84rem;
    }
    .review-image-strip img {
        width: 72px;
        height: 72px;
    }
    .review-edit-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .product-detail-panel .role-pill {
        padding: 0.1rem 0.5rem;
        gap: 0.2rem;
        font-size: 0.8rem;
    }
    .cart-drawer-copy a,
    .cart-row .h6 {
        font-size: 0.8rem;
    }
    .site-footer {
        display: none;
        padding-bottom: 100px;
    }
    .cart-drawer-panel {
        width: 100vw;
    }
    .quick-add-btn {
        min-height: 35px !important;
        padding: 0.3rem 0.7rem !important;
    }
    .best-seller-media {
        height: 220px;
    }
}