/* ============================================================
   WOKESDL BASE
   Shared colours, type, spacing and the site header / store strip /
   footer used on every storefront page.
   ============================================================ */

:root {
    --sdl-black: #000;
    --sdl-surface: #111;
    --sdl-tile: #161616;
    --sdl-line: #2a2a2a;
    --sdl-line-strong: #444;
    --sdl-white: #fff;
    --sdl-text-muted: #9a9a9a;
    --sdl-text-dim: #6b6b6b;
    --sdl-red: #c31c30;
    --sdl-red-hover: #a51627;

    --sdl-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --sdl-gutter: 16px;
    --sdl-max: 1280px;
    --sdl-header-h: 56px;
}

@media (min-width: 900px) {
    :root {
        --sdl-gutter: 32px;
        --sdl-header-h: 64px;
    }
}

/* Shared building blocks */
.sdl-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sdl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--sdl-red);
    background: var(--sdl-red);
    color: var(--sdl-white);
    font-family: var(--sdl-font);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sdl-btn:hover {
    background: var(--sdl-red-hover);
}

.sdl-input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--sdl-line-strong);
    background: transparent;
    color: var(--sdl-white);
    font-family: var(--sdl-font);
    font-size: 14px;
    border-radius: 0;
    outline: none;
}

.sdl-input::placeholder {
    color: var(--sdl-text-dim);
}

.sdl-input:focus {
    border-color: var(--sdl-white);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sdl-white);
    cursor: pointer;
    position: relative;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
}

/* ============ SITE HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--sdl-black);
    font-family: var(--sdl-font);
}

.site-header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--sdl-header-h);
    padding: 0 calc(var(--sdl-gutter) - 10px);
    border-bottom: 1px solid var(--sdl-line);
}

.site-header__left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.site-header__logo {
    display: block;
    line-height: 0;
}

.site-header .site-header__logo img {
    height: 22px;
    width: auto;
    max-width: none;
}

@media (min-width: 900px) {
    .site-header .site-header__logo img {
        height: 28px;
    }
}

.site-header__actions {
    justify-self: end;
    display: flex;
    align-items: center;
}

.bag-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--sdl-red);
    color: var(--sdl-white);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.bag-count[hidden] {
    display: none;
}

.site-header__search {
    display: flex;
    gap: 8px;
    padding: 10px var(--sdl-gutter);
    border-bottom: 1px solid var(--sdl-line);
    background: var(--sdl-black);
}

.site-header__search[hidden] {
    display: none;
}

.site-header__search .sdl-input {
    flex: 1;
    min-height: 40px;
}

/* ============ STORE STRIP ============ */
.store-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px var(--sdl-gutter);
    background: var(--sdl-surface);
    color: var(--sdl-text-muted);
    font-family: var(--sdl-font);
    font-size: 12px;
}

.store-strip__current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.store-strip .flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 1px;
}

.store-strip a,
.store-strip a:visited {
    color: var(--sdl-red);
    text-decoration: none;
    letter-spacing: 0.04em;
}

/* ============ SITE FOOTER ============ */
.site-footer {
    background: var(--sdl-black);
    color: var(--sdl-white);
    font-family: var(--sdl-font);
    font-size: 13px;
    margin-top: 48px;
    border-top: 1px solid var(--sdl-line);
}

.site-footer a,
.site-footer a:visited {
    color: inherit;
    text-decoration: none;
}

.site-footer__inner {
    max-width: var(--sdl-max);
    margin: 0 auto;
}

.site-footer__block {
    padding: 20px var(--sdl-gutter);
    border-bottom: 1px solid var(--sdl-line);
}

.site-footer__newsletter p {
    margin: 0 0 12px;
}

.site-footer__newsletter form {
    display: flex;
    max-width: 480px;
}

.site-footer__newsletter .sdl-input {
    flex: 1;
    min-width: 0;
    border-right: 0;
}

.site-footer__links details {
    border-bottom: 1px solid var(--sdl-line);
}

.site-footer__links summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--sdl-gutter);
    cursor: pointer;
    list-style: none;
}

.site-footer__links summary::-webkit-details-marker {
    display: none;
}

.site-footer__links summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.site-footer__links details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.site-footer__links ul {
    list-style: none;
    margin: 0;
    padding: 0 var(--sdl-gutter) 16px;
    display: grid;
    gap: 12px;
    color: var(--sdl-text-muted);
}

.site-footer__links a:hover {
    color: var(--sdl-white);
}

.site-footer__heading {
    margin: 0 0 12px;
}

.site-footer__socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-footer__socials a {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.site-footer__socials svg {
    width: 100%;
    height: 100%;
}

.site-footer__socials a[aria-label="X"] svg,
.site-footer__socials a[aria-label="TikTok"] svg {
    width: 18px;
    height: 18px;
}

.site-footer__row > div + div {
    margin-top: 20px;
}

.site-footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 34px;
    padding: 4px 6px;
    background: var(--sdl-white);
    border-radius: 4px;
    box-sizing: border-box;
}

.pay-chip img,
.pay-chip svg {
    max-width: 100%;
    max-height: 100%;
}

.site-footer__legal {
    padding: 20px var(--sdl-gutter) 32px;
    color: var(--sdl-text-dim);
    font-size: 12px;
}

.site-footer__legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 12px;
}

.site-footer__legal nav a {
    color: var(--sdl-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Desktop: link groups sit side by side, always open */
@media (min-width: 900px) {
    .site-footer__links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 12px 0;
        border-bottom: 1px solid var(--sdl-line);
    }

    .site-footer__links details {
        border-bottom: 0;
    }

    .site-footer__links summary {
        cursor: default;
        pointer-events: none;
    }

    .site-footer__links summary::after {
        display: none;
    }

    .site-footer__row > div + div {
        margin-top: 0;
    }

    .site-footer__row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 32px;
    }
}

.site-header__search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* Some older pages centre or pad <body>; the header and footer always span the full width. */
.site-header,
.site-footer {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    align-self: stretch;
    box-sizing: border-box;
    text-align: left;
}

.site-header *,
.site-footer * {
    box-sizing: border-box;
}

/* Some pages style every <button>; keep header and footer controls as designed. */
.site-header .icon-btn {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: inherit;
}

.site-footer .sdl-btn {
    width: auto;
    margin: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: normal;
    box-shadow: none;
}
