/* =========================================================
   IPHONE PREMIUM MARKETPLACE
   MAIN STYLE
   ========================================================= */

:root {
    --color-black: #111111;
    --color-dark: #1d1d1f;
    --color-gray-900: #2c2c2e;
    --color-gray-700: #6e6e73;
    --color-gray-500: #86868b;
    --color-gray-300: #d2d2d7;
    --color-gray-200: #e5e5e7;
    --color-gray-100: #f5f5f7;
    --color-white: #ffffff;

    --color-border: #e8e8ea;
    --color-background: #ffffff;
    --color-background-soft: #f7f7f8;

    --container-width: 1180px;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;
    --radius-xl: 36px;

    --shadow-small:
        0 4px 15px rgba(0, 0, 0, 0.04);

    --shadow-medium:
        0 15px 40px rgba(0, 0, 0, 0.07);

    --shadow-large:
        0 25px 70px rgba(0, 0, 0, 0.10);

    --transition:
        all 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


body {
    margin: 0;
    padding: 0;

    background: var(--color-background);
    color: var(--color-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}


h1,
h2,
h3,
h4 {
    color: var(--color-dark);
}


::selection {
    background: var(--color-black);
    color: var(--color-white);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(
        var(--container-width),
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */

.announcement-bar {
    background: var(--color-black);
    color: var(--color-white);

    font-size: 12px;
    line-height: 1.4;

    letter-spacing: 0.02em;
}


.announcement-bar .container {
    min-height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    text-align: center;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.88);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


.nav-container {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;

    color: var(--color-black);

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.07em;
}


.site-logo span {
    margin-left: 3px;

    font-size: 18px;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;
    align-items: center;

    gap: 26px;

    margin-left: auto;
}


.main-navigation a {
    position: relative;

    color: #505054;

    font-size: 14px;
    font-weight: 500;

    transition: var(--transition);
}


.main-navigation a:hover {
    color: var(--color-black);
}


.main-navigation a.active {
    color: var(--color-black);
    font-weight: 700;
}


.main-navigation a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    width: 100%;
    height: 2px;

    margin: auto;

    background: var(--color-black);

    border-radius: 10px;
}


/* =========================================================
   CART NAVIGATION
   ========================================================= */

.cart-navigation {
    display: inline-flex !important;
    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border: 1px solid var(--color-border);

    border-radius: 999px;
}


.cart-navigation:hover {
    border-color: var(--color-black);
}


.cart-count {
    min-width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    background: var(--color-black);
    color: var(--color-white);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    background: transparent;

    border: 0;
}


.mobile-menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    background: var(--color-black);

    border-radius: 10px;

    transition: var(--transition);
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;

    padding:
        80px
        0
        70px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #fafaf9 0%,
            #ffffff 100%
        );
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 70px;
}


.hero-content {
    max-width: 650px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--color-gray-700);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;
    line-height: 1.4;
}


.hero-content h1 {
    margin-bottom: 25px;

    color: var(--color-dark);

    font-size:
        clamp(
            42px,
            6vw,
            76px
        );

    font-weight: 700;

    line-height: 1.02;

    letter-spacing: -0.065em;
}


.hero-description {
    max-width: 600px;

    margin-bottom: 30px;

    color: var(--color-gray-700);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 28px;
}


.btn {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        11px
        20px;

    border: 1px solid transparent;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-dark {
    background: var(--color-black);
    color: var(--color-white);

    border-color: var(--color-black);
}


.btn-dark:hover {
    background: #2c2c2e;
}


.btn-outline {
    background: var(--color-white);
    color: var(--color-black);

    border-color: var(--color-gray-300);
}


.btn-outline:hover {
    border-color: var(--color-black);
}


/* =========================================================
   HERO TRUST
   ========================================================= */

.hero-trust {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 15px 20px;

    color: var(--color-gray-700);

    font-size: 12px;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-visual {
    position: relative;

    min-width: 0;
}


.hero-image-wrapper {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-xl);

    background: var(--color-gray-100);

    box-shadow: var(--shadow-large);
}


.hero-image-wrapper img {
    width: 100%;
    height: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}


/* =========================================================
   HERO FLOATING CARD
   ========================================================= */

.hero-floating-card {
    position: absolute;

    left: 25px;
    bottom: 25px;

    min-width: 210px;

    display: grid;

    gap: 3px;

    padding:
        15px
        18px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    border: 1px solid rgba(0, 0, 0, 0.06);

    border-radius: 18px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(15px);
}


.hero-floating-card span {
    color: var(--color-gray-500);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.hero-floating-card strong {
    font-size: 16px;
}


.hero-floating-card small {
    color: var(--color-gray-700);

    font-size: 11px;
}


/* =========================================================
   SECTION
   ========================================================= */

.section {
    padding:
        90px
        0;
}


.section-soft {
    background: var(--color-background-soft);
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}


.section-header h2 {
    max-width: 700px;

    margin: 0;

    font-size:
        clamp(
            32px,
            4vw,
            50px
        );

    line-height: 1.05;

    letter-spacing: -0.055em;
}


.text-link {
    flex-shrink: 0;

    color: var(--color-black);

    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
}


.text-link:hover {
    opacity: 0.55;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.category-card {
    position: relative;

    min-height: 260px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding: 28px;

    background: var(--color-white);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    transition: var(--transition);
}


.category-card:hover {
    transform: translateY(-5px);

    border-color:
        var(--color-gray-300);

    box-shadow: var(--shadow-medium);
}


.category-number {
    color: var(--color-gray-500);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


.category-card h3 {
    margin:
        35px
        0
        8px;

    font-size: 26px;

    line-height: 1.1;

    letter-spacing: -0.04em;
}


.category-card p {
    max-width: 320px;

    margin: 0;

    color: var(--color-gray-700);

    font-size: 14px;
}


.category-arrow {
    align-self: flex-end;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--color-border);

    border-radius: 50%;

    transition: var(--transition);
}


.category-card:hover .category-arrow {
    background: var(--color-black);
    color: var(--color-white);

    border-color: var(--color-black);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    overflow: hidden;

    background: var(--color-white);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);

    transition: var(--transition);
}


.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.08);
}


.product-image {
    position: relative;

    display: block;

    overflow: hidden;

    background:
        var(--color-gray-100);
}


.product-image img {
    width: 100%;

    aspect-ratio: 1 / 1.05;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.product-card:hover
.product-image img {
    transform: scale(1.035);
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.product-content {
    padding: 19px;
}


.product-tag {
    display: inline-flex;

    padding:
        5px
        8px;

    background:
        var(--color-gray-100);

    border-radius: 999px;

    color:
        var(--color-gray-700);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.product-content h3 {
    margin:
        10px
        0
        3px;

    font-size: 19px;

    line-height: 1.2;

    letter-spacing: -0.03em;
}


.product-content p {
    margin: 0;

    color: var(--color-gray-500);

    font-size: 12px;
}


.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 16px;
}


.product-bottom strong {
    font-size: 14px;
}


.product-add-btn {
    min-height: 34px;

    padding:
        7px
        13px;

    border: 0;

    border-radius: 999px;

    background:
        var(--color-black);

    color:
        var(--color-white);

    font-size: 11px;
    font-weight: 700;

    transition: var(--transition);
}


.product-add-btn:hover {
    background: #333;
}


/* =========================================================
   SPLIT SECTION
   ========================================================= */

.split-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 80px;

    align-items: start;
}


.split-section h2 {
    max-width: 650px;

    margin-bottom: 20px;

    font-size:
        clamp(
            34px,
            4vw,
            54px
        );

    line-height: 1.05;

    letter-spacing: -0.055em;
}


.split-section > div:first-child > p {
    max-width: 600px;

    margin-bottom: 28px;

    color: var(--color-gray-700);

    font-size: 16px;
}


/* =========================================================
   FEATURE LIST
   ========================================================= */

.feature-list {
    border-top:
        1px solid
        var(--color-border);
}


.feature-item {
    display: grid;

    grid-template-columns:
        45px
        minmax(0, 1fr);

    gap: 20px;

    padding:
        22px
        0;

    border-bottom:
        1px solid
        var(--color-border);
}


.feature-item > span {
    color: var(--color-gray-500);

    font-size: 11px;
    font-weight: 700;
}


.feature-item strong {
    display: block;

    margin-bottom: 4px;

    font-size: 16px;
}


.feature-item p {
    margin: 0;

    color: var(--color-gray-700);

    font-size: 13px;
}


/* =========================================================
   PROMO BANNER
   ========================================================= */

.promo-banner {
    padding:
        70px
        0;

    background:
        var(--color-gray-100);
}


.promo-banner-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding:
        55px;

    background:
        var(--color-white);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow-small);
}


.promo-banner h2 {
    max-width: 650px;

    margin:
        0
        0
        10px;

    font-size:
        clamp(
            32px,
            4vw,
            50px
        );

    line-height: 1.05;

    letter-spacing: -0.055em;
}


.promo-banner p {
    margin: 0;

    color:
        var(--color-gray-700);
}


/* =========================================================
   REVIEW GRID
   ========================================================= */

.review-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.review-card {
    padding: 30px;

    background:
        var(--color-white);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);

    transition: var(--transition);
}


.review-card:hover {
    transform: translateY(-4px);

    box-shadow:
        var(--shadow-small);
}


.review-stars {
    margin-bottom: 20px;

    color:
        var(--color-black);

    font-size: 14px;

    letter-spacing:
        0.1em;
}


.review-card p {
    min-height: 110px;

    margin-bottom: 20px;

    color:
        var(--color-gray-700);

    font-size: 15px;
}


.review-card strong {
    display: block;

    font-size: 14px;
}


.review-card small {
    display: block;

    margin-top: 3px;

    color:
        var(--color-gray-500);

    font-size: 11px;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-home {
    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);

    gap: 80px;

    align-items: start;
}


.faq-home h2 {
    margin-bottom: 28px;

    font-size:
        clamp(
            34px,
            4vw,
            52px
        );

    line-height: 1.05;

    letter-spacing: -0.055em;
}


/* =========================================================
   FAQ LIST
   ========================================================= */

.faq-list {
    display: grid;

    gap: 10px;
}


.faq-list details {
    background:
        var(--color-white);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);

    overflow: hidden;
}


.faq-list summary {
    position: relative;

    padding:
        20px
        22px;

    cursor: pointer;

    list-style: none;

    font-size: 15px;
    font-weight: 700;
}


.faq-list summary::-webkit-details-marker {
    display: none;
}


.faq-list summary::after {
    content: "+";

    position: absolute;

    right: 22px;
    top: 50%;

    transform:
        translateY(-50%);

    font-size: 20px;
    font-weight: 400;

    transition: var(--transition);
}


.faq-list details[open]
summary::after {
    content: "−";
}


.faq-list details p {
    margin: 0;

    padding:
        0
        22px
        22px;

    color:
        var(--color-gray-700);

    font-size: 14px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter-section {
    padding:
        75px
        0;

    background:
        var(--color-black);

    color:
        var(--color-white);
}


.newsletter-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.newsletter-inner .eyebrow {
    color:
        #aaaaae;
}


.newsletter-inner h2 {
    margin: 0;

    color:
        var(--color-white);

    font-size:
        clamp(
            30px,
            4vw,
            48px
        );

    line-height: 1.05;

    letter-spacing: -0.05em;
}


.newsletter-form {
    width: min(
        100%,
        480px
    );

    display: flex;

    gap: 8px;
}


.newsletter-form input {
    min-width: 0;
    flex: 1;

    height: 48px;

    padding:
        0
        16px;

    background:
        #242426;

    border:
        1px solid
        #3b3b3e;

    border-radius:
        999px;

    outline: none;

    color:
        var(--color-white);
}


.newsletter-form input::placeholder {
    color:
        #8e8e93;
}


.newsletter-form input:focus {
    border-color:
        #777;
}


.newsletter-form .btn {
    flex-shrink: 0;

    background:
        var(--color-white);

    color:
        var(--color-black);

    border-color:
        var(--color-white);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding:
        65px
        0
        0;

    background:
        #fafafa;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 50px;
}


.footer-grid > div {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}


.footer-brand-column p {
    max-width: 400px;

    margin-top: 14px;

    color:
        var(--color-gray-700);

    font-size: 13px;
}


.footer-grid h3 {
    margin:
        0
        0
        8px;

    font-size: 13px;
}


.footer-grid a:not(.site-logo) {
    color:
        var(--color-gray-700);

    font-size: 13px;

    transition:
        var(--transition);
}


.footer-grid a:not(.site-logo):hover {
    color:
        var(--color-black);
}


.footer-bottom {
    margin-top:
        55px;

    padding:
        20px
        0;

    border-top:
        1px solid
        var(--color-border);

    color:
        var(--color-gray-500);

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    padding-top:
        20px;

    color:
        var(--color-gray-500);

    font-size: 12px;
}


.breadcrumb a {
    color:
        var(--color-dark);

    font-weight: 600;
}


.breadcrumb span {
    color:
        var(--color-gray-300);
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    padding:
        70px
        0
        45px;

    background:
        var(--color-background-soft);
}


.page-hero h1 {
    max-width: 850px;

    margin:
        0
        0
        12px;

    font-size:
        clamp(
            42px,
            6vw,
            68px
        );

    line-height: 1.02;

    letter-spacing: -0.06em;
}


.page-hero p:last-child {
    max-width: 700px;

    margin: 0;

    color:
        var(--color-gray-700);

    font-size: 17px;
}


/* =========================================================
   TOOLBAR / FILTER
   ========================================================= */

.toolbar {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 12px;

    margin-bottom:
        30px;
}


.toolbar label,
.field,
.contact-form label,
.checkout-form label {
    display: grid;

    gap: 7px;

    color:
        var(--color-gray-700);

    font-size: 12px;
    font-weight: 700;
}


.toolbar input,
.toolbar select,
.field select,
.contact-form input,
.contact-form textarea,
.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.tracking-box input {
    width: 100%;

    padding:
        13px
        15px;

    background:
        var(--color-white);

    color:
        var(--color-dark);

    border:
        1px solid
        var(--color-border);

    border-radius:
        13px;

    outline: none;

    transition:
        var(--transition);
}


.toolbar input:focus,
.toolbar select:focus,
.field select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus,
.tracking-box input:focus {
    border-color:
        var(--color-black);

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.04);
}


/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

.product-detail {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);

    gap: 60px;

    align-items: start;
}


.gallery {
    overflow: hidden;

    background:
        var(--color-gray-100);

    border-radius:
        var(--radius-xl);
}


.gallery img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}


.detail-copy h1 {
    margin:
        14px
        0;

    font-size:
        clamp(
            38px,
            5vw,
            64px
        );

    line-height: 1.02;

    letter-spacing: -0.06em;
}


.detail-price {
    margin-bottom:
        18px;

    font-size: 26px;
    font-weight: 800;
}


.detail-copy > p:not(.detail-price) {
    color:
        var(--color-gray-700);
}


/* =========================================================
   SPECIFICATIONS
   ========================================================= */

.spec-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    margin:
        30px
        0;

    border-top:
        1px solid
        var(--color-border);
}


.spec-grid div {
    padding:
        15px
        0;

    border-bottom:
        1px solid
        var(--color-border);
}


.spec-grid small {
    display: block;

    margin-bottom: 3px;

    color:
        var(--color-gray-500);

    font-size: 11px;
}


.spec-grid b {
    font-size: 13px;
}


/* =========================================================
   PROMO PAGE
   ========================================================= */

.promo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.promo-card {
    min-height: 300px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: space-between;

    padding:
        32px;

    background:
        var(--color-white);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    transition:
        var(--transition);
}


.promo-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-medium);
}


.promo-card span {
    color:
        var(--color-gray-500);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
}


.promo-card h2 {
    margin:
        30px
        0
        10px;

    font-size: 32px;

    letter-spacing: -0.04em;
}


.promo-card p {
    max-width: 500px;

    color:
        var(--color-gray-700);
}


/* =========================================================
   REVIEW PAGE
   ========================================================= */

.review-card {
    min-height: 260px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 70px;
}


.contact-form {
    display: grid;

    gap: 18px;
}


.contact-form textarea {
    resize: vertical;

    min-height: 150px;
}


.contact-info {
    display: grid;

    align-content: start;

    gap: 0;
}


.contact-info div {
    padding:
        22px
        0;

    border-bottom:
        1px solid
        var(--color-border);
}


.contact-info span {
    display: block;

    margin-bottom: 4px;

    color:
        var(--color-gray-500);

    font-size: 11px;
}


.contact-info strong {
    font-size: 15px;
}


/* =========================================================
   CART
   ========================================================= */

.cart-items {
    display: grid;

    gap: 0;
}


.cart-row {
    display: grid;

    grid-template-columns:
        90px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    padding:
        18px
        0;

    border-bottom:
        1px solid
        var(--color-border);
}


.cart-row img {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius:
        14px;
}


.cart-row h3 {
    margin: 0;

    font-size: 16px;
}


.cart-row p {
    margin:
        3px
        0;

    color:
        var(--color-gray-500);

    font-size: 13px;
}


.qty-controls {
    display: flex;

    align-items: center;

    gap: 7px;
}


.qty-controls button {
    width: 30px;
    height: 30px;

    padding: 0;

    border:
        1px solid
        var(--color-border);

    border-radius: 8px;

    background:
        var(--color-white);
}


.cart-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top:
        30px;

    padding:
        25px;

    background:
        var(--color-gray-100);

    border-radius:
        var(--radius-medium);
}


.cart-summary > span {
    color:
        var(--color-gray-700);

    font-size: 13px;
}


.cart-summary > strong {
    margin-left: auto;

    font-size: 20px;
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 0.75fr);

    gap: 60px;

    align-items: start;
}


.checkout-form {
    display: grid;

    gap: 18px;
}


.checkout-form textarea {
    resize: vertical;

    min-height: 140px;
}


.checkout-summary {
    padding:
        25px;

    background:
        var(--color-gray-100);

    border-radius:
        var(--radius-medium);
}


.checkout-summary h2 {
    margin-bottom:
        20px;

    font-size: 22px;

    letter-spacing: -0.03em;
}


.checkout-line {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        12px
        0;

    border-bottom:
        1px solid
        var(--color-gray-300);

    font-size: 13px;
}


.checkout-summary > strong {
    display: block;

    margin-top:
        25px;

    font-size: 22px;
}


/* =========================================================
   TRACKING
   ========================================================= */

.tracking-box {
    max-width: 650px;
}


.tracking-box form {
    display: grid;

    gap: 12px;
}


.tracking-result {
    margin-top:
        25px;

    padding:
        25px;

    background:
        var(--color-gray-100);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);
}


.tracking-result strong {
    font-size: 17px;
}


.tracking-result p {
    margin:
        8px
        0
        0;

    color:
        var(--color-gray-700);

    font-size: 14px;
}


/* =========================================================
   LEGAL CONTENT
   ========================================================= */

.prose {
    max-width: 800px;
}


.prose h2 {
    margin:
        35px
        0
        10px;

    font-size: 26px;

    letter-spacing: -0.03em;
}


.prose p {
    color:
        var(--color-gray-700);

    font-size: 15px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty {
    padding:
        45px
        20px;

    color:
        var(--color-gray-500);

    text-align: center;
}


.hidden {
    display: none !important;
}


/* =========================================================
   404
   ========================================================= */

.error-page {
    min-height:
        65vh;

    display: grid;

    place-items: center;

    text-align: center;
}


.error-page .container {
    padding:
        80px
        0;
}


.error-code {
    display: block;

    margin-bottom:
        15px;

    color:
        var(--color-black);

    font-size:
        clamp(
            90px,
            15vw,
            180px
        );

    font-weight: 900;

    line-height: 0.9;

    letter-spacing:
        -0.09em;
}


/* =========================================================
   FORM STATUS
   ========================================================= */

.form-message {
    margin-top:
        10px;

    padding:
        12px
        15px;

    background:
        var(--color-gray-100);

    border-radius:
        12px;

    color:
        var(--color-gray-700);

    font-size: 13px;
}


/* =========================================================
   TOAST
   ========================================================= */

.site-toast {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 2000;

    max-width: 320px;

    padding:
        14px
        18px;

    background:
        var(--color-black);

    color:
        var(--color-white);

    border-radius:
        14px;

    box-shadow:
        var(--shadow-large);

    font-size: 13px;

    opacity: 0;

    transform:
        translateY(15px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.site-toast.show {
    opacity: 1;

    transform:
        translateY(0);
}

/* =========================================================
   PRODUCTS / PRODUCT DETAIL / LEGAL PAGES
   iPhone Premium Marketplace
========================================================= */


/* ---------------------------------------------------------
   PRODUCTS HERO
--------------------------------------------------------- */

.products-hero {
    padding: 90px 0 70px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.08),
            transparent 35%
        ),
        #0b0b0d;
    color: #fff;
}

.products-hero-content {
    max-width: 760px;
}

.products-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.products-hero p {
    max-width: 650px;
    margin: 0;
    color: #b8b8bf;
    font-size: 18px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   BREADCRUMB
--------------------------------------------------------- */

.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e8e8eb;
}

.breadcrumb .container {
    min-height: 54px;
    display: flex;
    align-items: center;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #77777e;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    color: #b6b6bc;
}

.breadcrumb a {
    color: #55555d;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #000;
}


/* ---------------------------------------------------------
   PRODUCTS SECTION
--------------------------------------------------------- */

.products-section {
    padding: 80px 0;
    background: #f7f7f8;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 42px;
}

.products-search,
.products-sort {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.products-search {
    flex: 1;
    max-width: 520px;
}

.products-sort {
    width: 220px;
}

.products-search label,
.products-sort label {
    font-size: 13px;
    font-weight: 700;
    color: #55555c;
}

.products-search input,
.products-sort select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #dedee2;
    border-radius: 12px;
    background: #fff;
    color: #18181b;
    outline: none;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.products-search input:focus,
.products-sort select:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}


/* ---------------------------------------------------------
   PRODUCT LAYOUT
--------------------------------------------------------- */

.products-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.products-filter {
    position: sticky;
    top: 100px;
}

.filter-card {
    padding: 24px;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    background: #fff;
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #ededf0;
}

.filter-heading h2 {
    margin: 0;
    font-size: 20px;
}

.filter-reset {
    border: 0;
    padding: 0;
    background: transparent;
    color: #77777e;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.filter-reset:hover {
    color: #000;
}

.filter-group {
    padding: 22px 0;
    border-bottom: 1px solid #ededf0;
}

.filter-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    margin: 0 0 14px;
    font-size: 14px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 11px 0;
    color: #55555c;
    font-size: 14px;
    cursor: pointer;
}

.filter-group input {
    accent-color: #111;
}


/* ---------------------------------------------------------
   PRODUCT RESULT HEADER
--------------------------------------------------------- */

.products-result-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.products-result-header h2 {
    margin: 8px 0 0;
    font-size: 32px;
    letter-spacing: -.8px;
}

.product-result-count {
    color: #77777e;
    font-size: 14px;
}


/* ---------------------------------------------------------
   PRODUCT GRID
--------------------------------------------------------- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    background: #fff;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #d2d2d6;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
}

.product-info {
    padding: 22px;
}

.product-category {
    display: block;
    margin-bottom: 7px;
    color: #88888f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.product-info h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.3px;
}

.product-variant {
    margin: 8px 0;
    color: #77777e;
    font-size: 14px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 13px 0;
    color: #111;
    font-size: 13px;
    letter-spacing: 1px;
}

.product-rating span {
    color: #77777e;
    letter-spacing: 0;
}

.product-price {
    display: block;
    margin-bottom: 18px;
    color: #111;
    font-size: 20px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 9px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #111;
    color: #fff;
}

.btn-primary:hover {
    background: #2b2b2f;
}

.btn-secondary {
    border-color: #dcdce0;
    background: #fff;
    color: #111;
}

.btn-secondary:hover {
    border-color: #111;
}

.btn-large {
    min-height: 54px;
}

.products-empty {
    padding: 70px 20px;
    text-align: center;
    border: 1px dashed #d5d5d9;
    border-radius: 20px;
    background: #fff;
}

.products-empty h3 {
    margin: 0 0 8px;
}

.products-empty p {
    margin: 0;
    color: #77777e;
}


/* ---------------------------------------------------------
   PRODUCTS CTA
--------------------------------------------------------- */

.products-cta {
    padding: 70px 0;
    background: #fff;
}

.products-cta-card,
.product-detail-cta-card,
.legal-cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 42px;
    border-radius: 24px;
    background: #111;
    color: #fff;
}

.products-cta-card h2,
.product-detail-cta-card h2,
.legal-cta-card h2 {
    margin: 8px 0 10px;
    font-size: clamp(25px, 3vw, 38px);
}

.products-cta-card p,
.product-detail-cta-card p,
.legal-cta-card p {
    margin: 0;
    max-width: 600px;
    color: #bdbdc4;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   PRODUCT DETAIL
--------------------------------------------------------- */

.product-detail-section {
    padding: 80px 0;
    background: #fff;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 70px;
    align-items: start;
}

.product-detail-gallery {
    min-width: 0;
}

.product-detail-main-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    background: #f4f4f5;
}

.product-detail-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 13px;
    background: #f3f3f5;
    cursor: pointer;
}

.product-thumbnail.active {
    border-color: #111;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    margin: 8px 0 15px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.7px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
}

.product-detail-rating > span {
    letter-spacing: 2px;
}

.product-detail-rating strong {
    font-size: 14px;
}

.product-detail-rating a {
    color: #77777e;
    font-size: 14px;
}

.product-detail-price {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 800;
}

.product-detail-description {
    margin: 0 0 32px;
    color: #66666d;
    line-height: 1.8;
    font-size: 16px;
}

.product-option {
    margin-bottom: 28px;
}

.product-option-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
    font-size: 14px;
}

.product-option-heading span {
    color: #88888f;
}

.product-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-button {
    min-width: 85px;
    height: 44px;
    padding: 0 17px;
    border: 1px solid #dcdce0;
    border-radius: 10px;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.option-button.active {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dddde1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.color-option.active {
    border-color: #111;
}

.color-option span {
    width: 16px;
    height: 16px;
    display: block;
    border-radius: 50%;
    background: #222;
    border: 1px solid #bbb;
}

.product-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #dddde1;
    border-radius: 10px;
    overflow: hidden;
}

.quantity-control button {
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.quantity-control input {
    width: 50px;
    height: 42px;
    border: 0;
    border-left: 1px solid #eeeef0;
    border-right: 1px solid #eeeef0;
    text-align: center;
    outline: 0;
}

.product-detail-actions {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12px;
}

.product-benefits {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #e8e8eb;
}

.product-benefits div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #55555c;
    font-size: 14px;
}

.product-benefits strong {
    color: #111;
}


/* ---------------------------------------------------------
   SPECIFICATION
--------------------------------------------------------- */

.product-specification {
    padding: 80px 0;
    background: #f7f7f8;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}

.specification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.specification-item {
    padding: 24px;
    border: 1px solid #e2e2e5;
    border-radius: 16px;
    background: #fff;
}

.specification-item span {
    display: block;
    margin-bottom: 8px;
    color: #88888f;
    font-size: 13px;
}

.specification-item strong {
    font-size: 16px;
}


/* ---------------------------------------------------------
   PRODUCT REVIEWS
--------------------------------------------------------- */

.product-reviews-section {
    padding: 80px 0;
    background: #fff;
}

.product-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-review-card {
    padding: 26px;
    border: 1px solid #e3e3e6;
    border-radius: 18px;
}

.review-stars {
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.product-review-card h3 {
    margin: 0 0 10px;
}

.product-review-card p {
    color: #66666d;
    line-height: 1.7;
}

.product-review-card strong {
    display: block;
    margin-top: 18px;
}


/* ---------------------------------------------------------
   PRODUCT DETAIL CTA
--------------------------------------------------------- */

.product-detail-cta {
    padding: 70px 0;
}


/* ---------------------------------------------------------
   LEGAL HERO
--------------------------------------------------------- */

.legal-hero {
    padding: 85px 0 65px;
    background: #0b0b0d;
    color: #fff;
}

.legal-hero-content {
    max-width: 780px;
}

.legal-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -1.5px;
}

.legal-hero p {
    max-width: 700px;
    margin: 0;
    color: #bdbdc4;
    line-height: 1.8;
    font-size: 17px;
}

.legal-updated {
    margin-top: 24px;
    color: #9e9ea5;
    font-size: 13px;
}

.legal-updated strong {
    color: #fff;
}


/* ---------------------------------------------------------
   LEGAL CONTENT
--------------------------------------------------------- */

.legal-content-section {
    padding: 80px 0;
    background: #f7f7f8;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 45px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 100px;
}

.legal-sidebar-card {
    padding: 24px;
    border: 1px solid #e2e2e5;
    border-radius: 18px;
    background: #fff;
}

.legal-sidebar nav {
    display: grid;
    gap: 5px;
    margin-top: 18px;
}

.legal-sidebar nav a {
    padding: 9px 0;
    color: #65656c;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
}

.legal-sidebar nav a:hover {
    color: #111;
}

.legal-article {
    padding: 48px;
    border: 1px solid #e1e1e4;
    border-radius: 22px;
    background: #fff;
}

.legal-section {
    padding: 0 0 42px;
    margin-bottom: 42px;
    border-bottom: 1px solid #ededf0;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-number {
    display: block;
    margin-bottom: 10px;
    color: #9999a0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.legal-section h2 {
    margin: 0 0 16px;
    font-size: 27px;
    letter-spacing: -.5px;
}

.legal-section p {
    margin: 0 0 16px;
    color: #606067;
    line-height: 1.85;
}

.legal-section ul {
    margin: 15px 0 0;
    padding-left: 22px;
    color: #606067;
}

.legal-section li {
    margin: 9px 0;
    line-height: 1.7;
}

.legal-highlight {
    margin-top: 22px;
    padding: 22px;
    border-left: 4px solid #111;
    border-radius: 10px;
    background: #f5f5f6;
}

.legal-highlight strong {
    display: block;
    margin-bottom: 8px;
}

.legal-highlight p {
    margin: 0;
}

.legal-section code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f1f1f3;
    font-size: .9em;
}

.legal-cta {
    padding: 70px 0;
    background: #fff;
}

.legal-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
