:root {
    --bg: #ffffff;
    --surface: #f5f5f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --muted: #737378;
    --line: #e7e7eb;
    --accent: #1769e0;
    --hero: #f2f2f5;
    --dark: #171719;
    --shadow: 0 15px 45px rgba(0, 0, 0, .07);
}

html[data-theme="dark"] {
    --bg: #121214;
    --surface: #1d1d20;
    --card: #202023;
    --text: #f5f5f7;
    --muted: #b0b0b8;
    --line: #37373b;
    --accent: #78aaff;
    --hero: #1a1a1e;
    --dark: #f5f5f7;
    --shadow: 0 15px 45px rgba(0, 0, 0, .25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    transition: background .2s, color .2s;
}

body, button, input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input {
    font-size: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

.announcement {
    padding: 10px 16px;
    text-align: center;
    background: #19191b;
    color: #fff;
    font-size: 12px;
    letter-spacing: .02em;
}

.announcement a {
    margin-left: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header {
    height: 70px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--accent);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 13px;
    color: var(--muted);
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button,
.cart-button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    padding: 8px 13px;
    cursor: pointer;
}

.icon-button {
    min-width: 40px;
}

.cart-button {
    font-size: 13px;
}

.cart-button span {
    display: inline-grid;
    place-items: center;
    margin-left: 5px;
    min-width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
}

.menu-toggle,
.mobile-nav {
    display: none;
}

.hero {
    min-height: 570px;
    padding: 65px 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
    background: var(--hero);
    overflow: hidden;
}

.hero-copy {
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
}

.hero h1 {
    margin: 20px 0;
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 1.03;
    letter-spacing: -.065em;
    font-weight: 750;
}

.hero h1 span {
    color: var(--muted);
}

.hero-copy > p,
.promo-copy > p {
    max-width: 430px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 27px;
}

.button {
    min-height: 47px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .2s, opacity .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    background: #171719;
    color: #fff;
}

html[data-theme="dark"] .button-dark {
    background: #f5f5f7;
    color: #171719;
}

.button-light {
    background: #fff;
    color: #171719;
}

.text-link {
    font-size: 13px;
    font-weight: 600;
}

.text-link:hover {
    color: var(--accent);
}

.hero-note {
    margin-top: 40px;
    color: var(--muted);
    font-size: 11px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #3ab879;
}

.hero-visual {
    min-height: 400px;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
}

.visual-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5c9f5, #b8d6ff 50%, #f9d9c3);
    filter: blur(8px);
    opacity: .85;
    z-index: -1;
}

.phone {
    width: 170px;
    height: 330px;
    border: 5px solid #29292c;
    border-radius: 32px;
    position: absolute;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .22);
}

.phone-back {
    background: linear-gradient(145deg, #d9d8df, #8b8d9e);
    transform: translate(-55px, -5px) rotate(-13deg);
}

.phone-front {
    background: #17171c;
    transform: translate(55px, 12px) rotate(8deg);
    padding: 7px;
}

.camera {
    width: 38px;
    height: 38px;
    border: 5px solid #50515d;
    border-radius: 50%;
    background: radial-gradient(circle, #2a416d 0 28%, #121521 30% 55%, #5c5e68 57%);
    position: absolute;
    left: 14px;
}

.camera-one {
    top: 15px;
}

.camera-two {
    top: 59px;
}

.camera-three {
    top: 103px;
}

.camera-flash {
    width: 12px;
    height: 12px;
    background: #f5f3df;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 62px;
}

.phone-wallpaper {
    height: 100%;
    border-radius: 23px;
    overflow: hidden;
    background: linear-gradient(145deg, #142b4e, #7a6ad1 45%, #e4a3b8 75%, #f2c4a7);
    position: relative;
}

.phone-island {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 17px;
    border-radius: 12px;
    background: #09090b;
}

.wallpaper-orb {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 45%;
    filter: blur(2px);
}

.orb-one {
    background: linear-gradient(140deg, #f7c5df, #b2a6ff);
    top: 45px;
    left: -75px;
    transform: rotate(40deg);
}

.orb-two {
    background: linear-gradient(140deg, #f8c9a3, #d7a0f3);
    top: 130px;
    left: 15px;
    transform: rotate(-30deg);
}

.orb-three {
    background: linear-gradient(140deg, #90d5e7, #aaa2ed);
    top: 200px;
    left: -70px;
}

.floating-label {
    position: absolute;
    right: -10px;
    bottom: 30px;
    padding: 15px 19px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 14px;
    background: rgba(255,255,255,.86);
    color: #1d1d1f;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.floating-label span,
.floating-label strong {
    display: block;
}

.floating-label span {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: .12em;
    color: #74747b;
}

.floating-label strong {
    font-size: 13px;
}

.section {
    padding: 85px 8%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-heading h2,
.promo-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(29px, 3.3vw, 42px);
    letter-spacing: -.055em;
    line-height: 1.12;
}

.section-heading > p {
    max-width: 280px;
    color: var(--muted);
    font-size: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    min-height: 170px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--card);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.category-icon {
    margin-bottom: 21px;
    font-size: 34px;
    line-height: 1;
}

.category-card strong {
    font-size: 15px;
}

.category-card > span:last-child {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.products-section {
    background: var(--surface);
}

.product-controls {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
}

.filter-button.active {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

.search-input {
    width: 210px;
    min-width: 0;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 24px;
    outline: none;
    background: var(--card);
    color: var(--text);
    font-size: 12px;
}

.search-input:focus {
    border-color: var(--accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--card);
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-art {
    height: 205px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: var(--art-bg, #f1edf5);
}

.product-emoji {
    font-size: 78px;
    line-height: 1;
    filter: drop-shadow(0 15px 12px rgba(0,0,0,.12));
    transition: transform .2s;
}

.product-card:hover .product-emoji {
    transform: scale(1.08) rotate(-3deg);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 15px;
    background: rgba(255,255,255,.85);
    color: #242428;
    font-size: 9px;
    font-weight: 700;
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    color: #222;
    font-size: 18px;
    cursor: pointer;
}

.favorite-button.selected {
    color: #e34368;
}

.product-info {
    padding: 16px;
}

.product-category {
    color: var(--muted);
    font-size: 10px;
}

.product-info h3 {
    margin: 6px 0;
    font-size: 15px;
    letter-spacing: -.02em;
}

.product-description {
    min-height: 36px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.product-bottom {
    margin-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 750;
}

.add-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    font-size: 21px;
    cursor: pointer;
}

.add-button:hover {
    opacity: .75;
}

.empty-message {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
}

.promo-section {
    margin: 80px 8%;
    min-height: 300px;
    padding: 45px 6%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(120deg, #1a1b22, #343a50);
    color: #fff;
}

.promo-copy h2 {
    margin: 15px 0;
    font-size: clamp(30px, 3.6vw, 45px);
}

.promo-copy > p {
    color: #c5c6cf;
    font-size: 13px;
}

.promo-copy .button {
    margin-top: 14px;
}

.promo-art {
    min-height: 210px;
    position: relative;
}

.promo-disc {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: inset -18px -20px 35px rgba(0,0,0,.22),
                inset 12px 12px 30px rgba(255,255,255,.35),
                0 20px 35px rgba(0,0,0,.2);
}

.disc-one {
    top: 5px;
    left: 12%;
    background: linear-gradient(135deg, #d6c8ff, #8f8ce9);
}

.disc-two {
    top: 40px;
    left: 38%;
    background: linear-gradient(135deg, #f9d8bb, #e48ba9);
}

.disc-three {
    top: 10px;
    left: 62%;
    background: linear-gradient(135deg, #c6e8f6, #829fdc);
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    border-bottom: 1px solid var(--line);
}

.benefit > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.benefit h3 {
    margin: 13px 0 8px;
    font-size: 17px;
}

.benefit p {
    max-width: 280px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.footer {
    min-height: 145px;
    padding: 35px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    font-size: 22px;
}

.footer p,
.footer > span {
    color: var(--muted);
    font-size: 11px;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.cart-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100dvh;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
    transform: translateX(105%);
    transition: transform .3s ease;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.cart-header h2 {
    margin: 5px 0 0;
    font-size: 26px;
    letter-spacing: -.04em;
}

.cart-header h2 span {
    color: var(--muted);
    font-size: 14px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-row {
    padding: 17px 0;
    display: grid;
    grid-template-columns: 65px 1fr auto;
    gap: 13px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.cart-product-art {
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface);
    font-size: 29px;
}

.cart-product-name {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 650;
}

.cart-product-price {
    color: var(--muted);
    font-size: 11px;
}

.quantity-control {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 25px;
    height: 25px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
}

.cart-line-total {
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.remove-button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    cursor: pointer;
    text-decoration: underline;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-bag {
    font-size: 55px;
    color: var(--muted);
}

.cart-empty h3 {
    margin: 12px 0 4px;
}

.cart-empty p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.subtotal-row strong {
    font-size: 20px;
}

.cart-footer > p {
    color: var(--muted);
    font-size: 10px;
}

.checkout-button {
    width: 100%;
}

.toast {
    position: fixed;
    z-index: 30;
    bottom: 25px;
    left: 50%;
    max-width: calc(100% - 30px);
    padding: 13px 20px;
    border-radius: 30px;
    background: #202023;
    color: #fff;
    font-size: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
    transition: opacity .2s, transform .2s;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

[hidden] {
    display: none !important;
}

@media (min-width: 1500px) {
    .hero {
        padding-left: max(9%, calc((100% - 1250px) / 2));
        padding-right: max(9%, calc((100% - 1250px) / 2));
    }

    .section {
        padding-left: max(8%, calc((100% - 1300px) / 2));
        padding-right: max(8%, calc((100% - 1300px) / 2));
    }
}

@media (max-width: 1050px) {
    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .section {
        padding: 70px 5%;
    }

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

    .product-art {
        height: 220px;
    }

    .promo-section {
        margin: 60px 5%;
    }

    .floating-label {
        right: -5px;
    }
}

@media (max-width: 700px) {
    .announcement {
        font-size: 10px;
    }

    .header {
        height: 62px;
        padding: 0 5%;
    }

    .logo {
        font-size: 23px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    .mobile-nav {
        padding: 10px 5% 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .mobile-nav.open {
        display: grid;
        gap: 12px;
    }

    .mobile-nav a {
        padding: 8px 0;
        color: var(--muted);
        font-size: 13px;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button,
    .cart-button {
        min-height: 36px;
        padding: 7px 10px;
    }

    .icon-button {
        min-width: 36px;
    }

    .hero {
        padding: 50px 6% 35px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 62px);
    }

    .hero-copy > p {
        font-size: 13px;
    }

    .hero-note {
        margin-top: 23px;
    }

    .hero-visual {
        min-height: 360px;
        margin-top: 5px;
    }

    .visual-glow {
        width: 270px;
        height: 270px;
    }

    .phone {
        transform-origin: center;
        scale: .9;
    }

    .phone-back {
        transform: translate(-43px, -5px) rotate(-13deg);
    }

    .phone-front {
        transform: translate(43px, 12px) rotate(8deg);
    }

    .floating-label {
        right: 0;
        bottom: 5px;
    }

    .section {
        padding: 55px 5%;
    }

    .section-heading {
        display: block;
        margin-bottom: 24px;
    }

    .section-heading > p {
        margin-bottom: 0;
    }

    .category-grid {
        gap: 10px;
    }

    .category-card {
        min-height: 145px;
        padding: 16px;
    }

    .category-icon {
        margin-bottom: 16px;
        font-size: 29px;
    }

    .category-card strong {
        font-size: 13px;
    }

    .category-card > span:last-child {
        font-size: 10px;
    }

    .product-controls {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .filter-buttons {
        gap: 7px;
    }

    .filter-button {
        padding: 8px 11px;
    }

    .search-input {
        width: 100%;
    }

    .product-grid {
        gap: 10px;
    }

    .product-art {
        height: 155px;
    }

    .product-emoji {
        font-size: 58px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-description {
        min-height: 52px;
        font-size: 10px;
    }

    .product-price {
        font-size: 13px;
    }

    .product-bottom {
        margin-top: 12px;
    }

    .promo-section {
        margin: 30px 4%;
        padding: 32px 7%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .promo-art {
        min-height: 190px;
        margin-top: 15px;
    }

    .promo-disc {
        width: 130px;
        height: 130px;
    }

    .disc-one {
        left: 3%;
    }

    .disc-two {
        left: 31%;
    }

    .disc-three {
        left: 58%;
    }

    .benefits-section {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .benefit h3 {
        margin-top: 8px;
    }

    .footer {
        padding: 30px 6%;
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .footer p {
        margin: 0;
    }

    .cart-drawer {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}



/* TECHSTORE PREMIUM DESIGN */
#techstore-premium-sections {
    overflow: hidden;
}

.premium-showcase {
    min-height: 530px;
    margin: 34px 5%;
    padding: 55px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--surface);
    color: var(--text);
}

.premium-showcase-copy {
    max-width: 500px;
}

.premium-showcase h2,
.premium-audio h2,
.premium-benefits-heading h2,
.premium-cta h2 {
    margin: 15px 0;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.premium-showcase-copy p,
.premium-audio-copy p,
.premium-benefits-heading p,
.premium-cta p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.premium-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 650;
}

.premium-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.premium-image-wrap {
    height: 390px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
}

.premium-image-wrap img,
.premium-audio-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s ease;
}

.premium-showcase:hover .premium-image-wrap img,
.premium-audio:hover .premium-audio-image img {
    transform: scale(1.045);
}

.premium-phone .premium-image-wrap img {
    object-position: center;
}

.premium-laptop {
    background: #e8e8ed;
    color: #1d1d1f;
}

.premium-laptop .eyebrow,
.premium-laptop p {
    color: #626269;
}

.premium-laptop .premium-image-wrap {
    background: #fff;
}

html[data-theme="dark"] .premium-laptop {
    background: #29292e;
    color: #f5f5f7;
}

html[data-theme="dark"] .premium-laptop .eyebrow,
html[data-theme="dark"] .premium-laptop p {
    color: #b9b9c2;
}

.premium-audio {
    margin: 34px 5%;
    min-height: 440px;
    padding: 55px 7%;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 45px;
    border-radius: 26px;
    background: #171719;
    color: #fff;
    overflow: hidden;
}

.premium-audio-copy {
    position: relative;
    z-index: 1;
}

.premium-audio-copy .eyebrow {
    color: #b7b7c0;
}

.premium-audio-copy p {
    color: #c0c0c8;
}

.premium-audio .premium-link {
    color: #9cc3ff;
}

.premium-audio-image {
    height: 320px;
    overflow: hidden;
    border-radius: 18px;
    background: #29292d;
}

.premium-benefits {
    padding: 100px 8%;
    background: var(--bg);
}

.premium-benefits-heading {
    max-width: 600px;
    margin: 0 auto 45px;
    text-align: center;
}

.premium-benefits-heading h2 {
    font-size: clamp(30px, 3.5vw, 44px);
}

.premium-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.premium-benefit-card {
    padding: 30px 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    transition: transform .25s ease, box-shadow .25s ease;
}

.premium-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.premium-benefit-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--surface);
    color: var(--accent);
    font-size: 24px;
}

.premium-benefit-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.premium-benefit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.premium-cta {
    margin: 35px 5% 65px;
    padding: 80px 25px;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(86, 121, 211, .4), transparent 42%),
        linear-gradient(135deg, #19191d, #30303b);
    color: #fff;
    text-align: center;
}

.premium-cta .eyebrow {
    color: #c5c5d0;
}

.premium-cta h2 {
    max-width: 750px;
    margin: 18px auto;
}

.premium-cta p {
    max-width: 540px;
    margin: 0 auto 25px;
    color: #c6c6cf;
}

.premium-cta .button-light {
    color: #171719;
    background: #fff;
}

.reveal-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-section,
    .premium-image-wrap img,
    .premium-audio-image img {
        transition: none;
    }

    .reveal-section {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 800px) {
    .premium-showcase,
    .premium-audio {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 22px 4%;
        padding: 35px 6%;
        min-height: auto;
    }

    .premium-showcase-copy {
        max-width: none;
    }

    .premium-image-wrap {
        height: 300px;
    }

    .premium-audio-image {
        height: 260px;
    }

    .premium-benefits {
        padding: 65px 5%;
    }

    .premium-benefits-grid {
        grid-template-columns: 1fr;
    }

    .premium-cta {
        margin: 20px 4% 40px;
        padding: 55px 7%;
    }
}

@media (max-width: 480px) {
    .premium-showcase h2,
    .premium-audio h2,
    .premium-benefits-heading h2,
    .premium-cta h2 {
        font-size: 34px;
    }

    .premium-image-wrap {
        height: 240px;
    }

    .premium-audio-image {
        height: 210px;
    }
}


/* Product photography: use database image_url when available. */
.product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 18px;
    mix-blend-mode: multiply;
    transition: transform .35s ease;
}

html[data-theme="dark"] .product-image {
    mix-blend-mode: normal;
}

.product-card:hover .product-image {
    transform: scale(1.045);
}

.product-image[hidden],
.product-emoji[hidden] {
    display: none;
}

.cart-product-art {
    overflow: hidden;
}

.cart-product-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

@media (max-width: 600px) {
    .product-art {
        height: 175px;
    }

    .product-image {
        padding: 12px;
    }
}


/* TechStore minimal storefront navigation and category landing */
.announcement {
    background: #f5f5f7;
    color: #303036;
    font-size: 12px;
    padding: 11px 16px;
}
.announcement a {
    color: #1769e0;
    text-decoration: none;
}
.header {
    height: 52px;
    padding: 0 max(5%, calc((100% - 1100px) / 2));
    justify-content: space-between;
    gap: 24px;
    background: rgba(250,250,252,.96);
    border-bottom: 0;
    backdrop-filter: blur(18px);
}
html[data-theme="dark"] .header { background: rgba(25,25,28,.96); }
.logo { font-size: 19px; letter-spacing: -1px; white-space: nowrap; }
.desktop-nav { flex: 1; justify-content: center; gap: clamp(14px,2.4vw,34px); color: var(--text); font-size: 12px; }
.desktop-nav a, .store-nav-trigger { white-space: nowrap; transition: color .2s; }
.store-nav-trigger {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.store-nav-item { position: static; }
.store-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 54px;
    padding: 38px max(8%, calc((100% - 980px) / 2)) 46px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 38px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.store-nav-item:hover .store-mega-menu,
.store-nav-item:focus-within .store-mega-menu,
.store-nav-item.is-open .store-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.mega-column a { font-size: 13px; font-weight: 550; color: var(--text); }
.mega-column a:hover { color: var(--accent); }
.mega-kicker { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.mega-column .mega-feature-title { font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.header-actions { gap: 7px; }
.header-actions .icon-button, .header-actions .cart-button {
    min-height: 34px; min-width: 34px; padding: 6px 9px; border: 0; background: transparent;
}
.catalog-hero {
    padding: 62px max(5.5%, calc((100% - 1280px) / 2)) 30px;
    background: var(--bg);
}
.catalog-heading h1 {
    margin: 10px 0 8px;
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 720;
}
.catalog-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.category-ribbon {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(22px,4vw,58px);
    padding: 26px 5% 44px;
    overflow-x: auto;
    background: var(--bg);
}
.category-ribbon-item {
    min-width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.category-ribbon-item strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.category-ribbon-item:hover strong { color: var(--accent); }
.ribbon-art {
    width: 54px; height: 58px;
    display: grid; place-items: center;
    position: relative;
}
.ribbon-phone span {
    width: 26px; height: 49px; border: 2px solid #777984; border-radius: 7px;
    background: linear-gradient(145deg,#dce9fb,#7f9fc9 55%,#d8dce5);
    box-shadow: 7px 3px 0 -2px #a7b4c7;
}
.ribbon-laptop span {
    width: 48px; height: 32px; border: 3px solid #858994; border-radius: 4px;
    background: linear-gradient(135deg,#d9e7f6,#9caec7);
    position: relative;
}
.ribbon-laptop span:after { content:""; position:absolute; width:56px; height:4px; background:#858994; bottom:-8px; left:-7px; border-radius:0 0 5px 5px; }
.ribbon-audio span {
    width: 34px; height: 43px; border: 6px solid #555b68; border-top-color: transparent; border-radius: 18px;
}
.ribbon-audio span:after { content:""; position:absolute; width:8px; height:17px; left:-8px; top:18px; background:#aab7ca; border-radius:6px; box-shadow:34px 0 #aab7ca; }
.ribbon-accessories span {
    width: 37px; height: 37px; border: 3px solid #9299a5; border-radius: 50%;
    box-shadow: inset 0 0 0 6px #e4e9ef;
}
.ribbon-all { border-radius: 14px; background: linear-gradient(145deg,#d7c4a9,#8a7665); color:#fff; font-size:29px; }
.products-section { padding-top: 62px; }
@media (max-width: 800px) {
    .header { padding: 0 4%; gap: 10px; }
    .desktop-nav { display:none; }
    .catalog-hero { padding: 48px 6% 20px; }
    .category-ribbon { justify-content: flex-start; padding: 22px 6% 35px; gap: 27px; }
    .store-mega-menu { display:none; }
}
@media (max-width: 480px) {
    .catalog-heading h1 { font-size: 43px; }
    .catalog-heading p { max-width: 310px; line-height: 1.7; }
}


/* Refined TechStore visual system — premium, calm and responsive */
:root {
    --bg: #fbfbfa;
    --surface: #f3f3f1;
    --card: #ffffff;
    --text: #171717;
    --muted: #777773;
    --line: #e9e9e5;
    --accent: #2457d6;
    --hero: #f3f3f1;
    --shadow: 0 18px 50px rgba(20, 20, 20, .065);
}
html { scroll-padding-top: 76px; }
body { letter-spacing: -.012em; }
.announcement {
    background: #171717;
    color: #f8f8f6;
    padding: 9px 16px;
    font-size: 11px;
    letter-spacing: .025em;
}
.announcement a { color: #fff; text-underline-offset: 3px; }
.header {
    height: 64px;
    background: rgba(251,251,250,.94);
    border-bottom: 1px solid rgba(0,0,0,.055);
}
html[data-theme="dark"] .header { background: rgba(25,25,27,.94); }
.logo { font-size: 21px; font-weight: 760; letter-spacing: -1.25px; }
.desktop-nav { font-size: 12px; font-weight: 520; gap: clamp(18px,2.6vw,38px); }
.desktop-nav a:hover, .store-nav-trigger:hover { color: var(--accent); }
.header-actions .icon-button, .header-actions .cart-button {
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background .2s, border-color .2s;
}
.header-actions .icon-button:hover, .header-actions .cart-button:hover {
    background: var(--surface);
    border-color: var(--line);
}
.catalog-hero {
    padding-top: clamp(76px, 10vw, 132px);
    padding-bottom: 45px;
    text-align: center;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(225,229,239,.42), transparent 58%),
      var(--bg);
}
.catalog-heading .eyebrow { color: #777; letter-spacing: .19em; }
.catalog-heading h1 {
    max-width: 900px;
    margin: 17px auto 15px;
    font-size: clamp(48px, 7.2vw, 94px);
    font-weight: 680;
    letter-spacing: -.078em;
    line-height: .99;
}
.catalog-heading p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(14px,1.5vw,17px);
    line-height: 1.8;
}
.category-ribbon {
    gap: clamp(28px,4.5vw,68px);
    padding: 34px 5% 62px;
}
.category-ribbon-item { gap: 12px; transition: transform .22s ease; }
.category-ribbon-item:hover { transform: translateY(-4px); }
.category-ribbon-item strong { font-size: 12px; font-weight: 560; }
.ribbon-art { width: 62px; height: 66px; }
.products-section {
    padding: 86px max(5%, calc((100% - 1260px)/2));
    background: #f5f5f3;
}
html[data-theme="dark"] .products-section { background: #18181a; }
.section-heading { margin-bottom: 34px; }
.section-heading h2 {
    font-size: clamp(34px,4vw,50px);
    font-weight: 660;
    letter-spacing: -.065em;
}
.section-heading > p { max-width: 330px; font-size: 13px; line-height: 1.8; }
.product-controls { margin-bottom: 30px; }
.filter-button {
    padding: 10px 16px;
    border-color: #e5e5e1;
    background: rgba(255,255,255,.75);
    font-size: 11px;
    transition: all .2s ease;
}
.filter-button.active { background: #191919; border-color: #191919; color: #fff; }
.search-input {
    width: 245px;
    min-height: 40px;
    padding: 11px 17px;
    border-color: #e4e4e0;
    background: rgba(255,255,255,.85);
}
.product-grid { gap: 20px; }
.product-card {
    border: 1px solid rgba(0,0,0,.055);
    border-radius: 19px;
    box-shadow: 0 2px 10px rgba(0,0,0,.018);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,0,0,.1);
    box-shadow: 0 22px 48px rgba(0,0,0,.085);
}
.product-art {
    height: 245px;
    background: linear-gradient(145deg, #f5f5f3, #ececea);
}
.product-image { padding: 22px; }
.product-info { padding: 19px 19px 18px; }
.product-category {
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.product-info h3 { margin: 8px 0 7px; font-size: 16px; font-weight: 650; }
.product-description { font-size: 12px; line-height: 1.7; }
.product-price { font-size: 16px; letter-spacing: -.025em; }
.add-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 22px;
    transition: transform .2s, opacity .2s;
}
.add-button:hover { transform: scale(1.07); opacity: .86; }
.premium-showcase {
    margin: 28px auto;
    width: min(1240px, calc(100% - 10%));
    min-height: 510px;
    padding: clamp(38px,6vw,76px);
    border-radius: 28px;
    gap: clamp(28px,5vw,70px);
}
.premium-showcase h2, .premium-audio h2 {
    font-size: clamp(38px,5vw,64px);
    font-weight: 660;
    letter-spacing: -.07em;
}
.premium-showcase-copy p, .premium-audio-copy p {
    max-width: 420px;
    font-size: 14px;
}
.premium-image-wrap { height: 370px; border-radius: 22px; }
.premium-laptop { background: #e9e9e6; }
.premium-audio {
    width: min(1240px, calc(100% - 10%));
    margin: 28px auto;
    border-radius: 28px;
    padding: clamp(38px,6vw,76px);
}
.premium-audio-image { border-radius: 22px; }
.premium-benefits { padding: 100px 7%; }
.premium-benefit-card {
    border-radius: 20px;
    padding: 32px 28px;
}
.premium-cta {
    width: min(1240px, calc(100% - 10%));
    margin: 30px auto 70px;
    border-radius: 28px;
    padding: 92px 25px;
}
.promo-section { border-radius: 26px; }
.footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
}
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
@media (max-width: 800px) {
    .catalog-hero { padding: 66px 6% 26px; }
    .category-ribbon { padding: 24px 6% 42px; }
    .products-section { padding: 58px 5%; }
    .product-art { height: 205px; }
    .premium-showcase, .premium-audio {
        width: calc(100% - 8%);
        margin: 20px auto;
        border-radius: 22px;
    }
    .premium-benefits { padding: 68px 5%; }
    .premium-cta { width: calc(100% - 8%); margin-bottom: 42px; }
}
@media (max-width: 480px) {
    .catalog-hero { padding-top: 54px; }
    .catalog-heading h1 { font-size: clamp(43px,12vw,58px); }
    .category-ribbon { gap: 24px; }
    .products-section { padding: 48px 4%; }
    .product-grid { gap: 11px; }
    .product-art { height: 165px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 13px; }
    .product-description { font-size: 10px; }
    .premium-showcase, .premium-audio { padding: 30px 6%; }
}


/* Additional electronics category illustrations */
.ribbon-tablet span {
    width: 34px;
    height: 46px;
    border: 2px solid #777984;
    border-radius: 6px;
    background: linear-gradient(145deg, #e8edf7, #9baecb);
    box-shadow: 5px 3px 0 -2px #c1cad8;
}
.ribbon-watch span {
    width: 31px;
    height: 31px;
    border: 5px solid #697386;
    border-radius: 10px;
    background: linear-gradient(145deg, #dce6f4, #a7b6ce);
    position: relative;
}
.ribbon-watch span::before,
.ribbon-watch span::after {
    content: "";
    position: absolute;
    left: 7px;
    width: 8px;
    height: 13px;
    background: #aab5c7;
    z-index: -1;
}
.ribbon-watch span::before { top: -16px; border-radius: 5px 5px 0 0; }
.ribbon-watch span::after { bottom: -16px; border-radius: 0 0 5px 5px; }


/* Apple-inspired latest products carousel */
.latest-section {
    padding: 76px max(5vw, 24px) 88px;
    background: #f5f5f7;
    color: #1d1d1f;
    overflow: hidden;
}
.latest-heading {
    max-width: 1440px;
    margin: 0 auto 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}
.latest-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 700;
}
.latest-heading h2 span { color: #77777d; font-weight: 600; }
.latest-controls { display: flex; gap: 10px; flex-shrink: 0; }
.latest-arrow {
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: #e5e5ea; color: #45454a; font-size: 30px;
    line-height: 1; cursor: pointer; transition: background .2s, transform .2s;
}
.latest-arrow:hover { background: #d4d4da; transform: scale(1.05); }
.latest-track {
    max-width: 1440px; margin: 0 auto; display: flex; gap: 20px;
    overflow-x: auto; overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; padding: 4px 2px 18px;
}
.latest-track::-webkit-scrollbar { display: none; }
.latest-card {
    flex: 0 0 clamp(290px, 31vw, 410px); min-height: 500px;
    position: relative; display: flex; flex-direction: column;
    overflow: hidden; border-radius: 28px; scroll-snap-align: start;
    background: #fff; color: #1d1d1f;
    box-shadow: 0 5px 22px rgba(0,0,0,.075);
    transition: transform .25s, box-shadow .25s;
}
.latest-card:nth-child(3n + 1) { background: #111; color: #fff; }
.latest-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.latest-card-copy { padding: 28px 28px 0; position: relative; z-index: 1; }
.latest-kicker { color: #d34b16; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.latest-card:nth-child(3n + 1) .latest-kicker { color: #ff8a35; }
.latest-card h3 { margin: 9px 0 8px; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.08; letter-spacing: -.04em; }
.latest-card p { margin: 0; font-size: 15px; line-height: 1.5; color: inherit; opacity: .78; }
.latest-price { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }
.latest-image-wrap {
    flex: 1; min-height: 270px; margin: 18px 18px 16px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 18px;
}
.latest-image-wrap img {
    width: 100%; height: 100%; max-height: 330px; object-fit: contain;
    mix-blend-mode: multiply; transition: transform .45s;
}
.latest-card:nth-child(3n + 1) .latest-image-wrap img { mix-blend-mode: normal; }
.latest-card:hover .latest-image-wrap img { transform: scale(1.045); }
.latest-placeholder {
    width: 100%; height: 100%; min-height: 250px; display: grid;
    place-items: center; font-size: 100px;
    background: radial-gradient(circle at 50% 45%, #fff 0, #e9e9ee 72%);
}
.latest-card:nth-child(3n + 1) .latest-placeholder {
    background: radial-gradient(circle at 50% 45%, #444 0, #151515 72%);
}
.latest-add {
    position: absolute; right: 24px; bottom: 22px; z-index: 2;
    width: 42px; height: 42px; border: 0; border-radius: 50%;
    background: #fff; color: #111; font-size: 25px; cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.latest-add:hover { transform: scale(1.06); }
.latest-loading { padding: 24px; color: #777; }
@media (max-width: 700px) {
    .latest-section { padding: 52px 18px 60px; }
    .latest-heading { align-items: start; }
    .latest-heading h2 { font-size: 29px; max-width: 290px; }
    .latest-heading h2 span { display: block; margin-top: 4px; }
    .latest-controls { gap: 6px; }
    .latest-arrow { width: 38px; height: 38px; font-size: 26px; }
    .latest-track { gap: 14px; margin-right: -18px; padding-right: 18px; }
    .latest-card { flex-basis: min(84vw, 350px); min-height: 455px; border-radius: 23px; }
    .latest-card-copy { padding: 23px 22px 0; }
    .latest-image-wrap { min-height: 235px; }
}


/* Apple-inspired latest product cards and product detail page */
.latest-card { cursor: pointer; }
.latest-card:focus-visible { outline: 3px solid #1769e0; outline-offset: 3px; }
.latest-card-copy { pointer-events: none; }
.latest-add { pointer-events: auto; }
.latest-card:nth-child(3n + 2) .latest-image-wrap img,
.latest-card:nth-child(3n) .latest-image-wrap img { mix-blend-mode: normal; }
.latest-card:nth-child(3n + 1) .latest-image-wrap { background: #111; }
.latest-card:nth-child(3n + 2) .latest-image-wrap { background: #fff; }
.latest-card:nth-child(3n) .latest-image-wrap { background: #080808; }
.latest-card:nth-child(3n) { background: #050505; color: #fff; }
.latest-card:nth-child(3n) .latest-kicker { color: #ff8a35; }
.latest-image-wrap img { object-fit: contain; }

.product-detail-page { background: #fff; color: #1d1d1f; }
.detail-header { position: relative; }
.detail-nav { display: flex; gap: 28px; color: #666; font-size: 14px; }
.product-detail-main { max-width: 1240px; margin: 0 auto; padding: 34px 28px 90px; }
.detail-back { display: inline-block; color: #6e6e73; font-size: 14px; margin-bottom: 28px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 64px; align-items: start; }
.detail-image-stage { min-height: 570px; border-radius: 28px; background: #f5f5f7; display: grid; place-items: center; padding: 36px; overflow: hidden; }
.detail-product-image { width: 100%; height: 500px; object-fit: contain; }
.detail-image-fallback { min-height: 300px; display: grid; place-items: center; color: #777; font-size: 28px; }
.detail-product-copy { padding: 28px 0; }
.detail-eyebrow { color: #c44c1b; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.detail-product-copy h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -.045em; margin: 12px 0; }
.detail-brand { color: #777; margin: 0 0 20px; }
.detail-price-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.detail-price-row strong { font-size: 27px; }
.detail-discount { background: #e8f5eb; color: #18763a; padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.detail-tax-note { color: #777; font-size: 13px; margin-top: 4px; }
.detail-description { font-size: 16px; line-height: 1.8; margin: 28px 0; white-space: pre-line; }
.detail-stock { color: #16803c; font-size: 14px; margin: 18px 0; }
.detail-stock.out-of-stock { color: #bd3030; }
.detail-add-button { width: 100%; min-height: 54px; border: 0; border-radius: 28px; background: #1769e0; color: #fff; font-weight: 650; cursor: pointer; }
.detail-add-button:disabled { opacity: .55; cursor: not-allowed; }
.detail-specs { margin-top: 42px; border-top: 1px solid #e7e7eb; padding-top: 24px; }
.detail-specs h2 { font-size: 21px; margin: 0 0 16px; }
.detail-specs dl { margin: 0; }
.detail-specs dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.detail-specs dt { color: #777; }
.detail-specs dd { margin: 0; text-align: right; }
.detail-loading, .detail-error { padding: 60px 20px; text-align: center; color: #666; }
.detail-error h1 { color: #222; }
.detail-error a { color: #1769e0; }
.detail-footer { text-align: center; padding: 30px; background: #f5f5f7; color: #777; font-size: 13px; }
@media (max-width: 760px) {
  .detail-nav { display: none; }
  .product-detail-main { padding: 24px 18px 60px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .detail-image-stage { min-height: 350px; border-radius: 20px; }
  .detail-product-image { height: 310px; }
  .detail-product-copy { padding-top: 8px; }
  .detail-product-copy h1 { font-size: 36px; }
}

/* Apple-inspired TechStore all-products collection */
.products-section { background: #f5f5f7; color: #1d1d1f; }
.products-section .section-heading h2 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.065em; line-height: 1; font-weight: 750; }
.products-section .section-heading > p { color: #6e6e73; }
.products-section .eyebrow { color: #77777d; }
.product-controls { display: block; margin: 34px 0 30px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.filter-button { padding: 10px 17px; border: 1px solid #dedee2; border-radius: 24px; background: #fff; color: #5e5e63; font-size: 12px; transition: background .2s, color .2s, border-color .2s; }
.filter-button:hover { border-color: #1d1d1f; color: #1d1d1f; }
.filter-button.active { border-color: #1d1d1f; background: #1d1d1f; color: #fff; }
.search-input { width: min(100%, 340px); border-radius: 24px; background: #fff; border-color: #dedee2; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.apple-product-card { border: 0; border-radius: 25px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.045); cursor: pointer; }
.apple-product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.apple-product-card:focus-visible { outline: 3px solid #1769e0; outline-offset: 3px; }
.apple-product-art { height: 300px; margin: 0; background: #fff; padding: 22px; }
.apple-product-art .product-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.apple-product-card:hover .product-image { transform: scale(1.045); }
.apple-product-art .product-emoji { font-size: 100px; }
.apple-product-info { padding: 22px 24px 24px; }
.apple-product-info .product-category { color: #b44b20; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700; }
.apple-product-info h3 { margin: 8px 0; font-size: 24px; letter-spacing: -.04em; line-height: 1.15; }
.apple-product-info .product-description { min-height: 42px; color: #6e6e73; font-size: 13px; line-height: 1.55; }
.apple-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.apple-product-footer .product-price { font-size: 16px; }
.apple-details-link { border: 0; padding: 0; background: transparent; color: #06c; font-size: 13px; cursor: pointer; }
.apple-details-link:hover { text-decoration: underline; }
.apple-buy-button { width: 100%; min-height: 42px; margin-top: 16px; border: 0; border-radius: 22px; background: #0071e3; color: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.apple-buy-button:hover { background: #0077ed; }
.apple-buy-button:disabled { background: #a5a5aa; cursor: not-allowed; }
@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apple-product-art { height: 260px; }
}
@media (max-width: 650px) {
  .products-section .section-heading h2 { font-size: 40px; }
  .filter-buttons { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-button { flex: 0 0 auto; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .apple-product-art { height: 280px; }
  .apple-product-info { padding: 19px; }
}

/* Compact latest-products carousel sizing */
.latest-section { padding-top: 52px; padding-bottom: 58px; }
.latest-heading { margin-bottom: 20px; }
.latest-heading h2 { font-size: clamp(27px, 2.6vw, 36px); }
.latest-card {
  flex-basis: clamp(250px, 28vw, 340px);
  height: 440px;
  min-height: 440px;
  border-radius: 23px;
}
.latest-card-copy { padding: 22px 22px 0; }
.latest-card h3 { font-size: clamp(22px, 1.9vw, 27px); margin: 7px 0 6px; }
.latest-card p {
  font-size: 13px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.latest-price { margin-top: 8px; font-size: 13px; }
.latest-image-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 210px;
  max-height: 210px;
  margin: 14px 14px 14px;
}
.latest-image-wrap img { max-height: 210px; }
.latest-placeholder { min-height: 180px; font-size: 76px; }
.latest-add { width: 36px; height: 36px; right: 18px; bottom: 16px; font-size: 22px; }
@media (max-width: 700px) {
  .latest-section { padding: 40px 16px 46px; }
  .latest-heading h2 { font-size: 27px; }
  .latest-card { flex-basis: min(78vw, 310px); height: 400px; min-height: 400px; border-radius: 20px; }
  .latest-card-copy { padding: 19px 18px 0; }
  .latest-card h3 { font-size: 23px; }
  .latest-card p { font-size: 12px; -webkit-line-clamp: 3; line-clamp: 3; }
  .latest-image-wrap { height: 190px; max-height: 190px; margin: 12px; }
  .latest-image-wrap img { max-height: 190px; }
}


/* Dedicated Audio category page */
.audio-main { max-width: 1320px; margin: 0 auto; padding: 34px 28px 90px; }
.audio-intro { padding: 54px 0 66px; border-bottom: 1px solid #e8e8ed; }
.audio-intro h1 { margin: 10px 0; font-size: clamp(54px, 8vw, 92px); line-height: 1; letter-spacing: -.07em; }
.audio-intro p { max-width: 560px; color: #6e6e73; font-size: 17px; line-height: 1.7; }
.audio-catalogue { padding-top: 54px; }
.audio-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:28px; }
.audio-heading h2 { margin:8px 0 0; font-size:clamp(26px,3vw,38px); letter-spacing:-.045em; }
.audio-count,.audio-stock { color:#6e6e73; font-size:13px; }
.audio-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.audio-product-card { cursor:pointer; }
.audio-product-card:focus-visible { outline:3px solid #1769e0; outline-offset:3px; }
.audio-product-card .product-image { width:100%; height:100%; object-fit:contain; }
.audio-product-card .product-emoji { font-size:100px; }
@media(max-width:760px) {
 .audio-main { padding:24px 18px 60px; }
 .audio-intro { padding:42px 0 48px; }
 .audio-heading { align-items:start; flex-direction:column; }
 .audio-grid { grid-template-columns:1fr; }
}


/* Product variant selector */
.detail-variant-options { margin: 22px 0 18px; }
.detail-variant-field { display:flex; flex-direction:column; gap:9px; max-width:420px; color:#1d1d1f; font-size:14px; font-weight:600; }
.detail-variant-field select { width:100%; min-height:48px; padding:0 14px; border:1px solid #d2d2d7; border-radius:12px; background:#fff; color:#1d1d1f; font:inherit; font-weight:400; }
.detail-variant-field select:focus { outline:2px solid #0071e3; outline-offset:2px; }
.detail-stock.out-of-stock { color:#c62828; }


/* Dynamic Admin-managed category labels and live product counts */
.category-ribbon-count {
    color: var(--muted, #7b8494);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}
.category-ribbon-loading {
    width: 100%;
    color: var(--muted, #7b8494);
    text-align: center;
    font-size: 13px;
}


/* Product color selector (preserved from main) */
.detail-color-picker { margin: 26px 0 22px; }
.detail-color-heading { display:flex; align-items:center; gap:12px; margin-bottom:13px; font-size:14px; }
.detail-color-heading span { color:#6e6e73; }
.detail-color-options { display:flex; align-items:center; gap:12px; }
.detail-color-option { width:38px; height:38px; padding:4px; border:1px solid #c8c8ce; border-radius:50%; background:#fff; cursor:pointer; }
.detail-color-option span { display:block; width:100%; height:100%; border-radius:50%; background:var(--variant-color); border:1px solid rgba(0,0,0,.12); }
.detail-color-option.selected { outline:2px solid #0071e3; outline-offset:3px; border-color:#fff; }
.detail-color-option:focus-visible { outline:3px solid #0071e3; outline-offset:3px; }
