.hero-section,
.section-block,
.auth-card,
.cart-summary,
.cart-items,
.product-gallery,
.product-info,
.profile-form,
.profile-sidecard,
.sale-copy {
    padding: 1.4rem;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.4rem;
    min-height: 78vh;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    max-width: 12ch;
    margin: 0;
}

.hero-copy p {
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions,
.hero-metrics,
.product-actions,
.detail-actions,
.checkbox-row,
.profile-topline {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-metrics {
    margin-top: 1.3rem;
}

.hero-metrics div,
.feature-card,
.summary-line,
.cart-row,
.review-card,
.order-card,
.list-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 1rem 1.05rem;
    box-shadow: inset 8px 8px 18px rgba(0, 0, 0, 0.22), inset -8px -8px 18px rgba(255, 255, 255, 0.02);
}

.hero-metrics strong,
.product-pricing strong,
.referral-code {
    display: block;
    font-size: 1.4rem;
}

.hero-showcase {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
}

.orbital-card,
.floating-panel {
    position: absolute;
    width: min(280px, 82%);
    padding: 1.15rem;
    border-radius: 24px;
}

.orbital-card {
    right: 10%;
    top: 10%;
}

.floating-panel {
    background: rgba(7, 16, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-panel);
}

.panel-a {
    left: 0;
    bottom: 16%;
}

.panel-b {
    right: 0;
    bottom: 2%;
}

.glow-ring {
    width: 360px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 213, 255, 0.2), rgba(105, 213, 255, 0.04) 54%, transparent 72%);
    border: 1px solid rgba(105, 213, 255, 0.1);
    box-shadow: inset 0 0 40px rgba(105, 213, 255, 0.1), 0 0 120px rgba(105, 213, 255, 0.14);
}

.glow-ring::before,
.glow-ring::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    inset: 28px;
}

.glow-ring::after {
    inset: 68px;
    border-color: rgba(130, 255, 198, 0.12);
}

.category-grid,
.product-grid,
.feature-strip,
.catalog-layout,
.cart-layout,
.checkout-layout,
.product-detail-layout,
.detail-secondary-grid,
.profile-layout {
    display: grid;
    gap: 1rem;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card {
    padding: 1.15rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.category-card span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(105, 213, 255, 0.18), rgba(130, 255, 198, 0.12));
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.15rem;
}

.category-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.category-card small {
    color: var(--muted);
    line-height: 1.6;
}

.spotlight-block,
.sale-grid {
    position: relative;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.product-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 26px;
    background: rgba(8, 17, 31, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.product-visual {
    position: relative;
    min-height: 230px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 18%, rgba(105, 213, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(105, 213, 255, 0.1), rgba(130, 255, 198, 0.08), rgba(255, 255, 255, 0.03));
    overflow: hidden;
    display: grid;
    place-items: center;
}

.product-visual.placeholder span,
.gallery-main.placeholder span {
    font-size: 3.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.78);
}

.product-visual img,
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pill {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 214, 107, 0.16);
    color: #ffe498;
}

.wishlist-btn {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #ffe9ef;
}

.wishlist-btn.active {
    background: rgba(255, 124, 151, 0.18);
}

.product-meta,
.product-pricing,
.rating-line,
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.product-meta,
.rating-line,
.catalog-toolbar span {
    color: var(--muted);
}

.product-pricing span {
    color: rgba(255, 255, 255, 0.42);
    text-decoration: line-through;
}

.sale-grid,
.checkout-layout,
.profile-layout {
    grid-template-columns: 1fr;
}

.feature-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card h3 {
    margin: 0 0 0.55rem;
}

.catalog-layout {
    grid-template-columns: 300px 1fr;
}

.filter-panel,
.catalog-results,
.sale-copy,
.sale-products {
    overflow: hidden;
}

.filter-form,
.coupon-form,
.review-form,
.checkout-form,
.profile-form {
    display: grid;
    gap: 1rem;
}

.filter-form {
    padding-bottom: 0.2rem;
}

.cart-layout,
.checkout-layout,
.product-detail-layout,
.detail-secondary-grid,
.profile-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-row,
.summary-line,
.order-card,
.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.summary-line.total {
    background: rgba(105, 213, 255, 0.08);
}

.qty-selector {
    display: grid;
    grid-template-columns: 42px minmax(56px, 80px) 42px;
    gap: 0.4rem;
    align-items: center;
}

.qty-selector.small {
    grid-template-columns: 34px 54px 34px;
}

.qty-selector button {
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.qty-selector input {
    text-align: center;
}

.gallery-main {
    min-height: 380px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.gallery-thumbs {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.7rem;
}

.thumb-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 0.3rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.15rem 0;
}

.detail-grid div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-grid span,
.cart-row small,
.summary-line span,
.list-card p {
    color: var(--muted);
}

.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 2rem 0 4rem;
}

.auth-card {
    width: min(560px, calc(100% - 28px));
    display: grid;
    gap: 1rem;
}

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

.profile-topline {
    align-items: center;
}

.avatar-display {
    width: 90px;
    height: 90px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(105, 213, 255, 0.18), rgba(130, 255, 198, 0.12));
    font-size: 2rem;
    font-weight: 900;
}

.avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referral-code {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(105, 213, 255, 0.08);
    letter-spacing: 0.12em;
}

.review-list,
.stack-list,
.order-list,
.referral-list {
    display: grid;
    gap: 1rem;
}

@media (max-width: 1080px) {
    .hero-section,
    .catalog-layout,
    .cart-layout,
    .checkout-layout,
    .product-detail-layout,
    .detail-secondary-grid,
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-copy h1 {
        max-width: 100%;
    }

    .hero-showcase {
        min-height: 340px;
        gap: 1rem;
    }

    .hero-section,
    .section-block,
    .cart-summary,
    .cart-items,
    .product-gallery,
    .product-info,
    .profile-form,
    .profile-sidecard,
    .sale-copy {
        padding: 1.1rem;
    }

    .orbital-card,
    .floating-panel {
        position: static;
        width: 100%;
    }

    .glow-ring {
        width: 240px;
        margin-inline: auto;
    }

    .detail-grid,
    .product-meta,
    .product-pricing,
    .catalog-toolbar,
    .cart-row,
    .summary-line,
    .order-card,
    .list-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .qty-selector {
        width: 100%;
    }

    .product-actions,
    .detail-actions,
    .hero-actions,
    .hero-metrics,
    .profile-topline {
        flex-direction: column;
        align-items: stretch;
    }
}
