/* Souk USA shop. Phone first; wider screens get more columns. Colours are tokens so the brand drops in later. */
:root { --ink: #1c1f24; --muted: #667085; --line: #e4e7ec; --bg: #f7f8fa; --card: #fff; --brand: #12355b; --accent: #d1422f; --ok: #0a7c42; --warn: #b54708; --radius: 10px; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
h1 { font-size: 1.5rem; margin: 18px 0 12px; } h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted, .hint { color: var(--muted); font-size: .9rem; } .empty { color: var(--muted); padding: 24px 0; }

.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 1.25rem; color: var(--brand); }
.logo .ar { font-size: .85rem; font-weight: 600; color: var(--accent); } .logo:hover { text-decoration: none; }
.search { display: flex; flex: 1 1 220px; order: 3; } .search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.search button { padding: 0 14px; border: 0; background: var(--brand); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; font: inherit; cursor: pointer; }
.links { display: flex; gap: 14px; margin-left: auto; align-items: center; font-weight: 600; } .cartlink b { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .8rem; }
.cats { display: flex; gap: 6px 18px; overflow-x: auto; padding-bottom: 8px; white-space: nowrap; font-size: .95rem; }
@media (min-width: 760px) { .search { order: 0; } }

.hero { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 26px 20px; margin-top: 16px; } .hero h1 { margin: 0 0 6px; font-size: 1.7rem; } .hero p { margin: 0; opacity: .9; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin: 14px 0; } .flash.ok { background: #e7f6ee; color: var(--ok); } .flash.err { background: #fdecea; color: #a12a1b; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } @media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; color: var(--ink); display: block; } .card:hover { text-decoration: none; border-color: #c9ced6; }
.thumb { position: relative; aspect-ratio: 1; background: #f0f2f5; border-radius: 8px; overflow: hidden; margin-bottom: 8px; } .thumb img { width: 100%; height: 100%; object-fit: contain; }
.noimg { width: 100%; height: 100%; min-height: 80px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; background: #f0f2f5; }
.tag { position: absolute; top: 8px; left: 8px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; } .tag.sale { background: var(--accent); } .tag.out { background: #667085; }
.brand { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; } .ctitle { font-weight: 600; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 800; font-size: 1.05rem; } .was { color: var(--muted); font-size: .9rem; } .from { color: var(--muted); font-size: .85rem; }

.crumbs { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.product { display: grid; gap: 22px; margin-top: 10px; } @media (min-width: 820px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; min-height: 200px; } .stage img, .stage video { width: 100%; height: auto; max-height: 82vh; object-fit: contain; } .stage img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: grid; place-items: center; cursor: zoom-out; } .zoom img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; } .zoom button { position: fixed; top: 12px; right: 14px; background: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 22px; line-height: 1; cursor: pointer; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; } .th { width: 64px; height: 64px; flex: none; border: 2px solid var(--line); border-radius: 8px; background: var(--card); padding: 0; overflow: hidden; cursor: pointer; display: grid; place-items: center; } .th.on { border-color: var(--brand); } .th img { width: 100%; height: 100%; object-fit: cover; } .play { font-size: 1.2rem; color: var(--brand); }
.info h1 { margin-top: 2px; } .pprice .price { font-size: 1.6rem; } .pprice { margin: 6px 0 12px; }
.buy { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; } .variants legend { font-weight: 600; margin-bottom: 6px; }
.chip input { position: absolute; opacity: 0; } .chip span { display: inline-block; padding: 7px 12px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--card); } .chip input:checked + span { border-color: var(--brand); font-weight: 600; } .chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; } .chip.off span { color: #a0a6b0; text-decoration: line-through; cursor: not-allowed; }
.intxt { color: var(--ok); font-weight: 600; } .lowtxt { color: var(--warn); font-weight: 600; } .outtxt { color: #a12a1b; font-weight: 600; } .eta { color: var(--muted); font-size: .92rem; } .codnote { color: var(--muted); font-size: .9rem; text-align: center; }
.qty select, .qtyform select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.btn { display: inline-block; padding: 12px 18px; border: 0; border-radius: var(--radius); background: #e9ecf1; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: center; } .btn.primary { background: var(--accent); color: #fff; width: 100%; } .btn:disabled { opacity: .5; cursor: not-allowed; } .btn:hover { text-decoration: none; filter: brightness(.96); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; } .link:disabled { color: #a0a6b0; cursor: not-allowed; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; } .details dt { font-weight: 600; } .details dd { margin: 0; } .about { padding-left: 20px; margin: 0; } .about li { margin-bottom: 6px; }

.cartwrap { display: grid; gap: 18px; } @media (min-width: 860px) { .cartwrap { grid-template-columns: 1fr 320px; align-items: start; } }
.lines { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); } .lines .empty { padding: 20px; margin: 0; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); } .line:last-child { border-bottom: 0; }
.limg { width: 84px; height: 84px; background: #f0f2f5; border-radius: 8px; overflow: hidden; display: block; } .limg img { width: 100%; height: 100%; object-fit: contain; }
.ltitle { font-weight: 600; color: var(--ink); } .lvar { font-size: .92rem; } .lprice { font-weight: 800; white-space: nowrap; }
.lacts { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: .92rem; } .lacts form { margin: 0; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; } .summary h2 { margin: 0; } .sub { font-size: 1.1rem; }
.sline { display: flex; justify-content: space-between; gap: 12px; } .sline.total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; }

.checkout, .track { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.checkout label, .track label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.checkout input, .checkout select, .checkout textarea, .track input { padding: 11px 12px; border: 1px solid #c9ced6; border-radius: 8px; font: inherit; font-weight: 400; width: 100%; background: #fff; }
.hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; } .paybox { background: #f0f5fb; border-radius: 8px; padding: 10px 12px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 14px 0; } .steps li { border-top: 5px solid var(--line); padding-top: 8px; font-size: .9rem; color: var(--muted); } .steps li.done { border-color: var(--ok); color: var(--ink); } .steps li.now b { color: var(--ok); } .steps small { display: block; color: var(--muted); }
.obox { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; } @media (min-width: 700px) { .obox { grid-template-columns: repeat(3, 1fr); } }
.text { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px 18px; margin-top: 16px; max-width: 760px; }
.foot { margin-top: 40px; background: var(--card); border-top: 1px solid var(--line); padding: 22px 0; font-size: .92rem; color: var(--muted); } .foot .wrap { display: grid; gap: 12px; } .foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .cod { font-weight: 700; color: var(--ink); }

/* Accounts, order history, buy it again */
.authbox { max-width: 440px; margin: 24px auto; } .authbox h1 { margin-top: 0; } .narrow { max-width: 440px; }
.checkout label.tick { display: flex; align-items: center; gap: 8px; font-weight: 400; } .checkout label.tick input { width: auto; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 10px 0 16px; overflow-x: auto; } .tabs a { padding: 9px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; } .tabs a.on { color: var(--ink); border-bottom-color: var(--accent); } .tabs a:hover { text-decoration: none; color: var(--ink); }
.ocard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; overflow: hidden; }
.ocard header { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 14px; background: #f0f2f5; border-bottom: 1px solid var(--line); font-size: .92rem; } .ocard header small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .04em; } .ocard .oright { margin-left: auto; text-align: right; }
.ostatus { padding: 12px 14px 0; } .ostatus b { font-size: 1.05rem; } .ocard .line { grid-template-columns: 84px 1fr; }
.btn.again { padding: 8px 14px; margin-top: 8px; font-size: .92rem; background: #ffd814; } .card .btn.again { width: 100%; } div.card a { color: var(--ink); display: block; }
.signout { margin-top: 20px; }
.pick { display: grid; gap: 6px; font-weight: 600; } .pick select { padding: 11px 12px; border: 2px solid var(--line); border-radius: 8px; font: inherit; background: #fff; max-width: 100%; }
/* Colour circles (swatches) */
.variants legend b { font-weight: 400; } .variants + .variants, div > .variants { margin-bottom: 12px; }
.chip.sw span { width: 42px; height: 42px; padding: 0; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 2px #fff; }
.chip.sw input:checked + span { border-color: var(--ink); } .chip.sw.off span { opacity: .35; }

/* Coming soon */
.soon { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--brand); color: #fff; } .soon h1 { font-size: 2.2rem; margin: 0 0 8px; } .soon .big { font-size: 1.4rem; font-weight: 700; margin: 0 0 10px; }
.previewbar { background: #fff4ce; color: #5c4400; text-align: center; padding: 8px 12px; font-size: .92rem; border-bottom: 1px solid #e9d48a; }

/* Product photos: one square frame for every picture, whatever its size or shape, so nothing jumps when the customer changes photo */
.stage { aspect-ratio: 1 / 1; background: #fff; min-height: 0; } .stage img, .stage video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.thumb { background: #fff; } .th { background: #fff; } .th img { object-fit: contain; }
/* Header: profile icon and its menu */
.acct { position: relative; } .acctbtn { display: inline-flex; align-items: center; gap: 6px; } .acctbtn svg { flex: none; }
.acctmenu { display: none; position: absolute; right: 0; top: 100%; width: 290px; max-width: 86vw; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16,24,40,.16); z-index: 30; padding: 6px 0; font-weight: 400; }
.acct:hover .acctmenu, .acct:focus-within .acctmenu { display: block; }
.acctmenu .hello { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--line); } .acctmenu a { display: block; padding: 10px 16px; color: var(--ink); } .acctmenu a:hover { background: #f4f6f9; text-decoration: none; }
.acctmenu a b { display: block; } .acctmenu a small { color: var(--muted); } .acctmenu form { padding: 10px 16px; border-top: 1px solid var(--line); margin-top: 4px; }
/* Add-to-cart pop-up */
.pop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: grid; place-items: start center; padding: 5vh 12px; overflow-y: auto; }
.popbox { background: var(--card); border-radius: 12px; width: 100%; max-width: 820px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.pophead { display: flex; justify-content: center; align-items: center; position: relative; padding: 16px 48px; border-bottom: 1px solid var(--line); font-size: 1.1rem; } .popx { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 10px; color: var(--ink); }
.popmain { display: grid; gap: 18px; padding: 18px; } @media (min-width: 640px) { .popmain { grid-template-columns: 1fr 260px; } }
.popitem { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; } .popitem img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 8px; }
.popside { display: grid; gap: 10px; align-content: start; } .popsub { font-size: 1.02rem; display: flex; justify-content: space-between; gap: 8px; }
.btn.outline { background: #fff; border: 2px solid var(--ink); padding: 10px 18px; } .btn.danger { background: #a12a1b; color: #fff; }
.popalso { text-align: center; margin: 4px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); } .popgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 18px 18px; } @media (min-width: 640px) { .popgrid { grid-template-columns: repeat(4, 1fr); } }
.poperr { padding: 18px; margin: 0; } .savelist { margin-top: 10px; display: block; width: 100%; text-align: center; }
/* Account overview rows, saved addresses */
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 760px; } .inforow { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; } .inforow:last-child { border-bottom: 0; }
@media (max-width: 520px) { .inforow { grid-template-columns: 1fr auto; } .inforow b { grid-column: 1 / -1; } }
.addr { display: flex; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; max-width: 760px; line-height: 1.6; } .addracts { display: grid; gap: 8px; align-content: start; text-align: right; }
.addrpick { margin: 0 0 16px; } .addrcards { display: grid; gap: 10px; margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.addrcard { display: grid; gap: 2px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); font-size: .93rem; } .addrcard:hover { text-decoration: none; border-color: #c9ced6; } .addrcard.on { border-color: var(--brand); } .addrcard.new { place-items: center; color: var(--brand); font-weight: 600; border-style: dashed; }

/* Heart beside Add to cart */
.buyrow { display: flex; gap: 10px; align-items: center; } .buyrow .btn.primary { flex: 1; }
.heart { flex: none; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; } .heart:hover { border-color: #c9ced6; }
.heart.on svg path, .heart:hover svg path { fill: var(--accent); stroke: var(--accent); }
/* My Lists pop-up and pages */
.listrows { padding: 6px 18px; } .listrow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.listpic { width: 56px; height: 56px; border-radius: 8px; background: #f0f2f5; overflow: hidden; } .listpic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.listrow .btn.small b { display: block; } .listrow .btn.small small { font-weight: 400; color: var(--muted); } .btn.small { padding: 8px 14px; font-size: .9rem; width: auto; }
.listfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; } .listnew { display: flex; gap: 8px; margin: 12px 18px; } .listnew input { flex: 1; padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 8px; font: inherit; }
.narrow .listrow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; } .narrow .listnew { margin: 12px 0; } .listtools { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; } .listtools .row { display: flex; gap: 8px; } .listtools input { padding: 8px 10px; border: 1px solid #c9ced6; border-radius: 8px; font: inherit; }
/* Checkout in three steps */
.steps2 { display: grid; gap: 14px; } .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); } .step header h2 { margin: 0; font-size: 1.15rem; } .stepbody { padding: 16px 18px; }
.checkout.plain { background: none; border: 0; padding: 0; } .two { display: grid; gap: 12px; } @media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.addrshow { line-height: 1.6; } .addrlist { display: grid; gap: 0; } .addrrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; align-items: start; cursor: pointer; } .addrrow input { margin-top: 6px; }
.shipline { font-size: 1.05rem; margin-bottom: 4px; } .shipthumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .shipthumbs img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.payline b { font-size: 1.05rem; }
