
:root {
    --bg:          #ebebeb;
    --white:       #ffffff;
    --black:       #111111;
    --mid:         #f5f5f5;
    --border:      #e0e0e0;
    --accent:      #c8a0a8;   
    --text:        #111111;
    --muted:       #666666;
    --nav-h:       56px;

    --font-brand:  'Fredoka One', cursive;
    --font-head:   'Courier Prime', 'Courier New', monospace;
    --font-body:   'Inter', sans-serif;
    --font-ar:     'Cairo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.ph {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ph::after {
    position: absolute;
    top: 50%;
    left: 50%;

    pointer-events: none;
}
.ph-dark  { background: #2a2a2a; }
.ph-dark::after { color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.25); }
.ph-light { background: #d8d8d8; }

.ph-hero        { aspect-ratio: 16 / 9; max-height: 76vh; }
.ph-square      { aspect-ratio: 1 / 1; }
.ph-portrait    { aspect-ratio: 3 / 4; }
.ph-video       { aspect-ratio: 4 / 3; }
.ph-lineup      { aspect-ratio: 1 / 1; }
.ph-product-hero{ aspect-ratio: 3 / 4; }
.ph-product-life{ aspect-ratio: 3 / 2; }

.card-gray  { background: #c2c2c2; }
.card-ivory { background: #e8dfc8; }
.card-pink  { background: #e8c8cc; }

.ph-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    z-index: 1;
}
.ph-video::after {
    content: '';  
    display: none;
}

.ph-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-44%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 20px;
    border-color: transparent transparent transparent #222;
    z-index: 2;
}

.brand-logo {
    font-family: var(--font-brand);
    letter-spacing: -1px;
}
.section-heading {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}
.left-nav {
    display: flex;
    gap: 30px;
}
.left-nav a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
}
.left-nav a:hover { text-decoration: underline; }

.store-wrap { position: relative; }
.store-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 24px;
    padding: 9px 20px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    min-width: 120px;
    justify-content: space-between;
}
.store-btn .caret { transition: transform .2s; }
.store-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.store-drop {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 14px 14px;
    min-width: 160px;
    display: none;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.store-drop.open { display: block; }
.drop-section a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-family: var(--font-body);
}
.drop-section a:hover { background: var(--mid); }
.drop-section a.active { font-weight: 700; }
.drop-langs {
    display: flex;
    gap: 0;
}
.drop-langs a {
    flex: 1;
    text-align: center;
    font-weight: 600;
}
.drop-divider { height: 1px; background: var(--border); }
.region-currency {
    float: right;
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
    margin-inline-start: 8px;
}
.region-link.active { font-weight: 700; }
.region-label { font-size: 11px; color: var(--muted); margin-inline-end: 4px; }

.hero {
    position: relative;
    overflow: hidden;
}
.hero .ph-hero {
    width: 100%;
}
.hero-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-size: clamp(72px, 14vw, 160px);
    line-height: 1;
    padding-bottom: clamp(20px, 4vw, 60px);
    text-shadow: 0 2px 24px rgba(0,0,0,.4);
    pointer-events: none;
}

.items-section {
    background: var(--white);
    padding: 72px 5vw 100px;
}
.items-section .section-heading {
    text-align: center;
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 52px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto;
}
.card {
    display: block;
    background: var(--white);
}
.card-img-wrap {
    position: relative;
}
.badge-sold {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 6px 10px;
    z-index: 1;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px 8px;
    gap: 8px;
    flex-wrap: wrap;
}
.card-meta h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 36px);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.price-sale {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(16px, 2vw, 26px);
    color: var(--black);
    white-space: nowrap;
}
.price-orig {
    font-family: var(--font-head);
    font-size: clamp(13px, 1.4vw, 18px);
    color: var(--muted);
    text-decoration: line-through;
    white-space: nowrap;
}
.discount-tag {
    background: #e03030;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .04em;
    padding: 3px 7px;
    border-radius: 3px;
    white-space: nowrap;
}

.about-dark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--black);
    color: var(--white);
}
.about-dark-media { overflow: hidden; }
.about-dark-media .ph { height: 100%; min-height: 340px; }
.about-dark-text {
    padding: clamp(40px, 7vw, 90px) clamp(28px, 5vw, 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}
.about-dark-text h2 {
    font-family: var(--font-head);
    font-size: clamp(26px, 3.2vw, 46px);
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.2;
}
.about-dark-text p {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    padding: clamp(48px, 7vw, 100px) 7vw;
    background: var(--bg);
}
.about-intro-text {
    padding-inline-end: 5vw;
}
.about-brand {
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}
.about-intro-text h1 {
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}
.about-intro-text p {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    max-width: 500px;
}
.about-intro-img { overflow: hidden; }

.lineup-heading-wrap {
    padding: clamp(48px, 6vw, 80px) 5vw 28px;
    background: var(--bg);
    text-align: center;
}
.lineup-heading {
    font-size: clamp(38px, 7vw, 80px);
}
.lineup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg);
    padding: 0 5vw clamp(60px, 8vw, 100px);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}
.lineup-card { display: block; text-align: center; }
.lineup-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    margin-top: 12px;
}

.product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: var(--white);
    min-height: calc(100vh - var(--nav-h));
}

.product-gallery { border-inline-end: 1px solid var(--border); }
.product-gallery .ph-product-hero { width: 100%; }
.product-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.other-img {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
}
.product-lifestyle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}
.product-lifestyle-row .ph-product-life { border-inline-end: 1px solid var(--border); }
.product-lifestyle-row .ph-product-life:last-child { border-inline-end: none; }
.lifestyle-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-inline-end: 1px solid var(--border);
}
.lifestyle-img:last-child { border-inline-end: none; }

.buy-box {
    padding: 36px 30px;
    position: sticky;
    top: var(--nav-h);
    align-self: start;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
}
.product-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 52px);
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 16px;
}
.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.product-price-wrap .price-block { gap: 10px; }
.product-price-wrap .price-sale  { font-size: clamp(26px, 3.2vw, 40px); }
.product-price-wrap .price-orig  { font-size: clamp(16px, 1.8vw, 22px); }
.product-price-wrap .discount-tag { font-size: 13px; padding: 4px 9px; }
.price-tax {
    font-size: 13px;
    color: var(--muted);
    align-self: flex-end;
    padding-bottom: 4px;
}
.card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.qty-row {
    display: grid;
    grid-template-columns: 40px 64px 40px 1fr;
    gap: 6px;
    align-items: center;
    margin-bottom: 30px;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.qty-btn:hover { background: var(--mid); }
.qty-input {
    text-align: center;
    border: 1px solid var(--border);
    height: 40px;
    font-size: 16px;
    font-family: var(--font-body);
    border-radius: 3px;
}
.btn-buy, .btn-sold {
    height: 40px;
    border: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 3px;
}
.btn-buy {
    background: var(--black);
    color: var(--white);
}
.btn-buy:hover { background: #333; }
.btn-sold {
    background: var(--accent);
    color: var(--white);
    opacity: 1;
}

.specs-heading {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.specs-table { width: 100%; }
.spec-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    border-bottom: 1px solid var(--border);
}
.spec-row dt, .spec-row dd {
    padding: 11px 4px;
    font-size: 13px;
    line-height: 1.6;
}
.spec-row dt { color: #555; font-weight: 600; }
.spec-row dd { color: var(--text); }

.other-items {
    background: var(--bg);
    padding: 56px 5vw 80px;
    position: relative;
}
.other-items .section-heading {
    font-size: clamp(20px, 3vw, 32px);
    margin-bottom: 28px;
    text-transform: uppercase;
}
.other-items-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.other-items-scroll::-webkit-scrollbar { display: none; }
.other-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    display: block;
}
.other-img-wrap { position: relative; }
.other-img-wrap .ph-square { width: 220px; height: 220px; }
.other-name {
    margin-top: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.3;
}
.other-price {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--muted);
}
.preorder-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    color: var(--muted);
}
.scroll-arrow {
    position: absolute;
    top: 50%;
    inset-inline-end: 4vw;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-arrow:hover { background: var(--mid); }

.faq-section {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 100px) 5vw;
}
.faq-heading {
    font-size: clamp(36px, 6vw, 60px);
    margin-bottom: 48px;
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(15px, 2vw, 18px);
    text-align: start;
    gap: 16px;
}
.faq-q:hover { color: var(--muted); }
.faq-icon { flex-shrink: 0; transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 0 22px; }
.faq-a p { font-size: 15px; line-height: 1.8; color: #333; }

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 5vw 36px;
    text-align: center;
}
.footer-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}
.footer-logo {
    font-size: 40px;
}
.footer-partner {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
}
.footer-partner small {
    font-size: 10px;
    letter-spacing: .18em;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.social-link:hover { opacity: .6; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 16px;
}
.footer-links a {
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #333;
}
.footer-links a:hover { color: var(--black); }
.footer-copy {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.lang-ar {
    font-family: var(--font-ar);
}
.lang-ar .left-nav a,
.lang-ar .store-btn,
.lang-ar .section-heading,
.lang-ar .card-meta h3,
.lang-ar .product-name,
.lang-ar .specs-heading,
.lang-ar .faq-q,
.lang-ar .badge-sold,
.lang-ar .other-name {
    font-family: var(--font-ar);
    text-transform: none;
    letter-spacing: 0;
}
.lang-ar .hero-logo {
    font-family: var(--font-brand); 
}
.lang-ar .footer-logo {
    font-family: var(--font-brand);
}
.lang-ar .badge-sold { left: auto; right: 14px; }
.lang-ar .scroll-arrow { inset-inline-end: 4vw; }
.lang-ar .drop-langs { flex-direction: row-reverse; }

@media (max-width: 900px) {
    .cards-grid,
    .lineup-grid { grid-template-columns: repeat(2, 1fr); }
    .about-dark  { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; padding: 48px 6vw; }
    .about-intro-text { padding-inline-end: 0; margin-bottom: 28px; }
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { border-inline-end: none; border-bottom: 1px solid var(--border); }
    .buy-box { position: static; max-height: none; }
}

@media (max-width: 540px) {
    .top-nav { padding: 0 16px; }
    .left-nav { gap: 16px; }
    .cards-grid,
    .lineup-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .about-dark-text { padding: 32px 20px; }
    .other-card { flex: 0 0 170px; }
    .other-img-wrap .ph-square { width: 170px; height: 170px; }
    .qty-row { grid-template-columns: 36px 56px 36px 1fr; }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    padding: 6px;
}
.cart-nav-btn:hover { opacity: .6; }
.cart-badge {
    position: absolute;
    top: -2px;
    inset-inline-end: -4px;
    background: #e03030;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.cart-page { padding: clamp(40px, 6vw, 80px) 5vw; }
.cart-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 36px; }

.cart-empty {
    max-width: 440px;
    margin: 80px auto;
    text-align: center;
}
.cart-empty-icon {
    color: #ccc;
    margin-bottom: 24px;
}
.cart-empty h2 { font-size: 28px; margin-bottom: 10px; }
.cart-empty p  { color: var(--muted); margin-bottom: 28px; }

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    gap: 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-img img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    display: block;
}
.cart-item-info h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cart-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cart-qty-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-update-btn {
    background: none;
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 3px;
    font-size: 16px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-update-btn:hover { color: var(--black); border-color: var(--black); }
.cart-remove {
    background: none;
    border: none;
    color: var(--muted);
    padding: 4px;
    margin-top: 4px;
}
.cart-remove:hover { color: #e03030; }

.cart-summary, .checkout-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}
.cart-summary h2, .checkout-summary h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.summary-rows { display: flex; flex-direction: column; gap: 0; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}
.discount-row { color: #22a855; font-weight: 600; }
.muted-row    { color: var(--muted); }
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 20px;
    font-weight: 700;
    font-size: 18px;
}
.summary-items { margin-bottom: 20px; }
.summary-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.summary-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
}
.summary-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.summary-item-qty  { font-size: 12px; color: var(--muted); }
.summary-item-price { font-size: 13px; font-weight: 700; white-space: nowrap; }

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.btn-checkout:hover { background: #333; }
.btn-ghost {
    display: block;
    text-align: center;
    padding: 11px;
    border: 1px solid var(--border);
    font-size: 13px;
    border-radius: 4px;
    color: var(--muted);
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 4px;
}
.btn-primary:hover { background: #333; }

.card-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff2f2;
    border: 1.5px solid #f87171;
    border-radius: 8px;
    padding: 14px 16px;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.card-error-banner svg { flex-shrink: 0; margin-top: 1px; }

.checkout-page { padding: clamp(32px, 5vw, 70px) 5vw; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 44px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: start;
}
.checkout-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 28px;
}

.card-icons-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}
.card-icon-wrap {
    border-radius: 6px;
    overflow: hidden;
    transition: opacity .2s, transform .2s;
}
.card-icon-wrap.dim    { opacity: .25; }
.card-icon-wrap.active { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,.18); }

.vcard {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 85.6 / 54;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 22px 26px;
    color: #fff;
    font-family: 'Courier Prime', monospace;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .5s;
}
.vcard-visa       { background: linear-gradient(135deg, #1a1f71 0%, #00337c 100%); }
.vcard-mastercard { background: linear-gradient(135deg, #252525 0%, #3a3a3a 100%); }
.vcard-amex       { background: linear-gradient(135deg, #1a3a6b 0%, #2557d6 100%); }

.vcard-top { display: flex; justify-content: space-between; align-items: center; }
.vcard-chip { flex-shrink: 0; }
.vcard-nfc  { opacity: .7; }
.vcard-number {
    font-size: clamp(16px, 3vw, 22px);
    letter-spacing: .18em;
    text-align: center;
    color: rgba(255,255,255,.9);
}
.vcard-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.vcard-name   { font-size: 14px; letter-spacing: .1em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.vcard-expiry { text-align: end; }
.vcard-exp-label { font-size: 9px; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-bottom: 2px; }
#vcardExpiry  { font-size: 14px; letter-spacing: .1em; }

.pay-form { display: flex; flex-direction: column; gap: 18px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}
.form-group input,
.input-card-wrap input,
.input-cvv-wrap input {
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0 14px;
    font-size: 16px;
    font-family: 'Courier Prime', monospace;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.form-group input:focus,
.input-card-wrap input:focus,
.input-cvv-wrap input:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}
.form-group input.invalid { border-color: #e03030; background: #fff5f5; }

.input-card-wrap, .input-cvv-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-card-wrap input { padding-inline-end: 56px; }
.input-card-badge {
    position: absolute;
    inset-inline-end: 12px;
    pointer-events: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--muted);
}
.input-card-badge[data-type="visa"]::after       { content: 'VISA'; color: #1a1f71; }
.input-card-badge[data-type="mastercard"]::after { content: 'MC';   color: #eb001b; }
.input-card-badge[data-type="amex"]::after       { content: 'AMEX'; color: #2557d6; }

.input-cvv-wrap input { padding-inline-end: 44px; }
.cvv-toggle {
    position: absolute;
    inset-inline-end: 12px;
    background: none;
    border: none;
    color: var(--muted);
    padding: 0;
    cursor: pointer;
}
.cvv-toggle:hover { color: var(--black); }

.btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #181818;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 4px;
}
.btn-pay:hover   { background: #333; }
.btn-pay:active  { transform: scale(.98); }

.checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.success-page {
    max-width: 520px;
    margin: clamp(60px, 10vw, 120px) auto;
    text-align: center;
    padding: 0 5vw;
}
.success-icon { margin-bottom: 28px; }
.success-page h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 14px;
}
.success-page p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .cart-grid      { grid-template-columns: 1fr; }
    .cart-summary   { position: static; }
    .checkout-grid  { grid-template-columns: 1fr; }
    .checkout-summary { order: -1; position: static; }
}
@media (max-width: 540px) {
    .cart-item { grid-template-columns: 80px 1fr 36px; }
    .cart-item-img img { width: 80px; height: 80px; }
    .form-row  { grid-template-columns: 1fr; }
    .vcard     { border-radius: 10px; padding: 16px; }
    .card-icons-row { gap: 8px; }
}
