/* Tyre Shop - website styles. Section banners below tell you which page/part each block styles.
 * Colours come from the variables at the top, so changing a colour there changes it everywhere. */

/* ============================================================
 * Colour variables: light theme (default)
 * ============================================================ */
:root {
    --bg:#f4f7fc;
    --p:#fff;
    --p2:#f8fbff;
    --l:#dbe5f3;
    --t:#0f1f45;
    --t2:#2a3c66;
    --m:#5d6f94;
    --g:#FFC20E;
    --b:#0b2347;
    --lnk:#0b2347;
    --prc:#0b2347;
    --hd:#0b2347;
    --navc:#fff;
    --admb:#ffffff77;
    --imbg:radial-gradient(circle at 50% 40%,#fff,#dce9fc 78%);
    --inbg:#fff;
    --inb:#c3d3ec;
    --tagbg:#e3eeff;
    --tagc:#0b2347;
    --sh:0 16px 38px #0a3a8a2b;
    --shd:#0a2a6e55;
    --bsh:0 2px 10px #0a3a8a14;
    --ft:#0b2347;
    --ftc:#d3e0ff;
    --ok:#087a3c;
    --err:#d6334a;
    --mgb:#0b2347;
    --herop:#40537d;
    --h1i:linear-gradient(90deg,#0b2347,#1d4f9a);
    --herobg:radial-gradient(900px 500px at 85% 10%,#cfe2ff,transparent 70%),radial-gradient(700px 400px at 0 100%,#fff1b8,transparent 70%),linear-gradient(180deg,#f7faff,#e9f1ff);
}

/* ============================================================
 * Colour variables: dark theme
 * ============================================================ */
html[data-theme=dark] {
    --bg:#05070d;
    --p:#0c1220;
    --p2:#111a2e;
    --l:#1b2742;
    --t:#e9eefb;
    --t2:#c4cde4;
    --m:#8d99b8;
    --b:#1f6bff;
    --lnk:#FFC20E;
    --prc:#FFC20E;
    --hd:#0b2347;
    --navc:#c4cde4;
    --admb:#1b2742;
    --imbg:radial-gradient(circle at 50% 40%,#1c2a4d,#0a0f1d 72%);
    --inbg:#080c17;
    --inb:#26345a;
    --tagbg:#1f6bff22;
    --tagc:#8db4ff;
    --sh:0 18px 44px #000a;
    --shd:#000a;
    --bsh:none;
    --ft:#0b2347;
    --ftc:#9aa6c4;
    --ok:#43d17a;
    --err:#ff6b73;
    --mgb:#ffd24d;
    --herop:#aab5d2;
    --h1i:linear-gradient(90deg,#ffe28a,#FFC20E,#ff9d00);
    --herobg:radial-gradient(900px 500px at 85% 20%,#0b2a7a66,transparent 70%),radial-gradient(700px 400px at 0 100%,#ffc20e14,transparent 70%),#05070d;
}

/* ============================================================
 * Light / dark switch button
 * ============================================================ */
.thb {
    background:none;
    border:1px solid var(--admb);
    border-radius:50%;
    width:36px;
    height:36px;
    color:var(--navc);
    cursor:pointer;
    display:grid;
    place-items:center;
    padding:0;
}
.thb svg {
    width:18px;
    height:18px;
}
.thb .sun {
    display:none;
}
html[data-theme=dark] .thb .sun {
    display:block;
}
html[data-theme=dark] .thb .moon {
    display:none;
}

/* ============================================================
 * Base styles: reset, page, links, images
 * ============================================================ */
.box, .card, .mc, .feat div {
    box-shadow:var(--bsh);
}
* {
    box-sizing:border-box;
}
html {
    scroll-behavior:smooth;
}
body {
    margin:0;
    font:15px/1.55 'Segoe UI',system-ui,Arial,sans-serif;
    background:var(--bg);
    color:var(--t);
}
a {
    color:inherit;
    text-decoration:none;
}
.w {
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}
img, svg {
    max-width:100%;
}

/* ============================================================
 * Header and desktop navigation
 * ============================================================ */
header {
    background:var(--hd);
    backdrop-filter:blur(14px);
    position:sticky;
    top:0;
    z-index:30;
    border-bottom:1px solid var(--l);
}
header:after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-1px;
    height:1px;
    background:linear-gradient(90deg,transparent,var(--g),transparent);
}
header .w {
    display:flex;
    align-items:center;
    gap:24px;
    height:70px;
}
.logo img {
    height:52px;
    width:auto;   /* keep the picture's own shape (the width/height attributes in the HTML only reserve space) */
    display:block;
}
nav {
    margin-left:auto;
    display:flex;
    gap:22px;
    align-items:center;
}
nav a {
    color:var(--navc);
    font-weight:500;
}
nav a:hover {
    color:var(--g);
}
nav .adm {
    font-size:12px;
    border:1px solid var(--admb);
    border-radius:99px;
    padding:3px 11px;
    color:var(--navc);
}
#bd {
    background:var(--g);
    color:#1a1300;
    border-radius:99px;
    padding:1px 7px;
    font-size:12px;
    font-weight:800;
    margin-left:4px;
}

/* ============================================================
 * Buttons
 * ============================================================ */
.btn {
    background:linear-gradient(135deg,#ffd24d,var(--g));
    color:#1a1300;
    border:0;
    border-radius:10px;
    padding:12px 24px;
    font-weight:700;
    cursor:pointer;
    font-size:15px;
    display:inline-block;
    transition:.2s;
    box-shadow:0 6px 22px #ffc20e33;
}
.btn:hover {
    transform:translateY(-1px);
    box-shadow:0 10px 30px #ffc20e55;
}
.btn.b {
    background:var(--b);
    color:#fff;
    box-shadow:0 6px 22px #1f6bff44;
}
.btn.o {
    background:none;
    border:1.5px solid var(--l);
    color:var(--t);
    box-shadow:none;
}
.btn.o:hover {
    border-color:var(--g);
    color:var(--g);
}
.btn:disabled {
    opacity:.5;
}

/* ============================================================
 * Home page: hero banner with search box
 * ============================================================ */
.hero {
    position:relative;
    overflow:hidden;
    background:var(--herobg);
    padding:70px 0 80px;
    border-bottom:1px solid var(--l);
}
#cv {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:.7;
}
.hg {
    position:relative;
    display:grid;
    grid-template-columns:1.15fr 1fr;
    gap:30px;
    align-items:center;
}
.eyebrow {
    display:inline-flex;
    gap:10px;
    align-items:center;
    border:1px solid #1b2742;
    background:#06143a;
    border-radius:99px;
    padding:6px 14px;
    font-size:13px;
    color:#cfd9f7;
    margin-bottom:18px;
}
.eyebrow img {
    height:18px;
    width:auto;
}
.hero h1 {
    font-size:clamp(34px,5.4vw,64px);
    line-height:1.04;
    margin:0 0 16px;
    letter-spacing:-.02em;
}
.hero h1 i {
    font-style:normal;
    background:var(--h1i);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}
.hero p {
    color:var(--herop);
    max-width:520px;
    font-size:17px;
    margin:0 0 26px;
}
.sb {
    display:flex;
    gap:8px;
    background:var(--p);
    border:1px solid var(--inb);
    padding:8px;
    border-radius:14px;
    max-width:560px;
    box-shadow:0 0 0 4px #1f6bff14,var(--sh);
}
.sb input {
    flex:1;
    min-width:0;
    background:none;
    border:0;
    color:var(--t);
    font-size:16px;
    padding:10px 12px;
    outline:0;
    margin:0;
}
.hv {
    position:relative;
    display:grid;
    place-items:center;
}
.hv:before {
    content:"";
    position:absolute;
    width:80%;
    aspect-ratio:1;
    border-radius:50%;
    background:radial-gradient(circle,#1f6bff55,transparent 65%);
    filter:blur(10px);
}
.hv svg {
    position:relative;
    width:min(440px,100%);
    height:auto;
    animation:sp 60s linear infinite;
    filter:drop-shadow(0 30px 40px var(--shd));
}
@keyframes sp {
    to {
        transform:rotate(360deg);
    }
}
@media(prefers-reduced-motion:reduce) {
    .hv svg, #cb::after {
        animation:none;
    }
}

/* ============================================================
 * Rim-size chips
 * ============================================================ */
.chips {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:18px 0;
}
.chip {
    background:var(--p);
    border:1px solid var(--l);
    border-radius:99px;
    padding:6px 15px;
    cursor:pointer;
    font-size:14px;
    color:var(--t2);
    transition:.2s;
}
.chip:hover, .chip.on {
    background:var(--g);
    color:#1a1300;
    border-color:var(--g);
}

/* ============================================================
 * Home page: statistics strip
 * ============================================================ */
.stats {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    background:var(--l);
    border-bottom:1px solid var(--l);
}
.stats div {
    background:var(--p);
    padding:22px 20px;
    text-align:center;
}
.stats b {
    display:block;
    font-size:26px;
    color:var(--prc);
}
.stats span {
    color:var(--m);
    font-size:13px;
}

/* ============================================================
 * Sections and headings
 * ============================================================ */
section {
    padding:54px 0;
}
h2 {
    font-size:30px;
    margin:0 0 20px;
    letter-spacing:-.01em;
}
h2:after {
    content:"";
    display:block;
    width:46px;
    height:3px;
    background:var(--g);
    margin-top:10px;
    border-radius:2px;
}

/* ============================================================
 * Tyre cards (product grid)
 * ============================================================ */
.grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}
.card {
    background:linear-gradient(180deg,var(--p2),var(--p));
    border:1px solid var(--l);
    border-radius:16px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:.25s;
}
.card:hover {
    transform:translateY(-5px);
    border-color:#ffc20e66;
    box-shadow:var(--sh),0 0 0 1px #ffc20e22;
}
.card .im {
    background:var(--imbg);
    padding:12px;
}
.card .im svg,
.card .im img {
    width:100%;
    height:210px;
}
.card .bd {
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:4px;
    flex:1;
    border-top:1px solid var(--l);
}
small, .m {
    color:var(--m);
}
.pr {
    font-size:22px;
    font-weight:800;
    color:var(--prc);
}
.tag {
    display:inline-block;
    background:var(--tagbg);
    color:var(--tagc);
    border-radius:6px;
    padding:2px 8px;
    font-size:12px;
    font-weight:600;
    margin:2px 4px 0 0;
}

/* ============================================================
 * Model cards on the home page
 * ============================================================ */
.mc {
    display:block;
    background:var(--p);
    border:1px solid var(--l);
    border-radius:14px;
    padding:18px;
    transition:.2s;
}
.mc:hover {
    border-color:var(--g);
    transform:translateY(-3px);
}
.mc b {
    display:block;
    font-size:16px;
}

/* ============================================================
 * "Why Tyre Shop" feature blocks
 * ============================================================ */
.feat {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
}
.feat div {
    background:var(--p);
    border:1px solid var(--l);
    border-top:2px solid var(--g);
    border-radius:14px;
    padding:22px;
    color:var(--m);
}
.feat b {
    display:block;
    font-size:17px;
    color:var(--t);
    margin-bottom:6px;
}

/* ============================================================
 * Tyre page: pictures and thumbnails
 * ============================================================ */
.two {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:34px;
}
.views {
    display:grid;
    gap:12px;
}
.views .main {
    background:var(--imbg);
    border:1px solid var(--l);
    border-radius:18px;
    padding:16px;
}
.views .main svg,
.views .main img {
    width:100%;
    height:400px;
}
.thumbs {
    display:flex;
    gap:10px;
}
.thumbs div {
    flex:1;
    background:var(--p);
    border-radius:12px;
    padding:6px;
    cursor:pointer;
    border:2px solid var(--l);
}
.thumbs div.on {
    border-color:var(--g);
}
.thumbs svg,
.thumbs img {
    width:100%;
    height:80px;
}

/* ============================================================
 * Boxes, tables and form fields
 * ============================================================ */
.box {
    background:var(--p);
    border:1px solid var(--l);
    border-radius:16px;
    padding:24px;
    overflow-x:auto;
}
table {
    width:100%;
    border-collapse:collapse;
}
td, th {
    padding:11px 8px;
    border-bottom:1px solid var(--l);
    text-align:left;
}
input, textarea, select {
    width:100%;
    padding:12px 13px;
    background:var(--inbg);
    border:1px solid var(--inb);
    color:var(--t);
    border-radius:10px;
    font:inherit;
    margin-top:5px;
    outline:0;
}
input:focus, textarea:focus {
    border-color:var(--g);
}
label {
    display:block;
    margin:13px 0 0;
    font-weight:600;
    font-size:14px;
    color:var(--t2);
}
.q {
    display:inline-flex;
    align-items:center;
    border:1px solid var(--inb);
    border-radius:10px;
    background:var(--inbg);
}
.q button {
    border:0;
    background:none;
    color:var(--t);
    width:36px;
    height:38px;
    font-size:18px;
    cursor:pointer;
}
.q span {
    min-width:28px;
    text-align:center;
}
.ok {
    color:var(--ok);
    font-weight:600;
}
.err {
    color:var(--err);
    font-weight:600;
}

/* ============================================================
 * Login box and tabs
 * ============================================================ */
.au {
    max-width:440px;
    margin:0 auto;
}
.tabs {
    display:flex;
    gap:6px;
    margin-bottom:10px;
}
.tabs button {
    flex:1;
    background:var(--bg);
    color:var(--m);
    border:1px solid var(--l);
    border-radius:10px;
    padding:10px;
    cursor:pointer;
    font-weight:600;
}
.tabs button.on {
    background:var(--g);
    color:#1a1300;
    border-color:var(--g);
}

/* ============================================================
 * Footer
 * ============================================================ */
footer {
    background:var(--ft);
    color:#fff;
    padding:44px 0 30px;
    margin-top:30px;
    border-top:1px solid var(--l);
}
footer {
    background:
        radial-gradient(circle at 92% 110%, #ffffff14 0 90px, transparent 91px),
        radial-gradient(circle at 38% -8%, #ffffff14 0 80px, transparent 81px),
        radial-gradient(#ffffff0d 1px, transparent 1px) 0 0/6px 6px,
        #0b2347;
}
footer b {
    color:#fff;
}
footer .pay {
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:12px;
}
footer .pay svg {
    height:26px;
    width:auto;
}
footer .fl {
    margin-top:22px;
    font-size:14px;
    display:flex;
    flex-wrap:wrap;
    gap:6px 18px;
}
footer .fl a:not(:last-child)::after {
    content:"\2022";
    margin-left:18px;
    color:var(--g);
}
footer img {
    height:40px;
    width:auto;
    margin:0 18px 14px 0;
}
footer a:hover {
    color:var(--g);
}

/* ============================================================
 * Floating WhatsApp button
 * ============================================================ */
.wa {
    position:fixed;
    left:16px;
    bottom:16px;
    background:#25d366;
    color:#fff;
    width:52px;
    height:52px;
    border-radius:50%;
    display:grid;
    place-items:center;
    font-size:24px;
    box-shadow:0 6px 20px #0008;
    z-index:9;
}

/* ============================================================
 * Chat assistant: open button, panel, messages
 * ============================================================ */
#cb {
    position:fixed;
    right:18px;
    bottom:18px;
    width:64px;
    height:64px;
    border-radius:50%;
    border:2px solid var(--g);
    background:#0c1220;
    cursor:pointer;
    z-index:20;
    display:grid;
    place-items:center;
    padding:0;
    box-shadow:0 8px 26px #000a;
}
/* Pulsing yellow ring around the chat button. Only transform and opacity change, so the browser animates it on the graphics chip. */
#cb::after {
    content:"";
    position:absolute;
    inset:-2px;
    border-radius:50%;
    background:#FFC20E88;
    z-index:-1;
    animation:pl 2.6s infinite;
    pointer-events:none;
}
@keyframes pl {
    0%, 100% {
        transform:scale(1);
        opacity:.55;
    }
    50% {
        transform:scale(1.4);
        opacity:0;
    }
}
#cp {
    position:fixed;
    right:18px;
    bottom:90px;
    width:330px;
    height:min(430px,calc(100vh - 130px));
    background:var(--p);
    border:1px solid var(--l);
    border-radius:18px;
    box-shadow:0 20px 70px #000c;
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:21;
}
#cp.on {
    display:flex;
}
#ch, #ch b {
    color:#fff;
}
#ch small {
    color:#cdd9f7;
}
.dots span {
    display:inline-block;
    width:7px;
    height:7px;
    margin:0 2px;
    border-radius:50%;
    background:var(--m);
    animation:dt 1.2s infinite;
}
.dots span:nth-child(2) {
    animation-delay:.2s;
}
.dots span:nth-child(3) {
    animation-delay:.4s;
}
@keyframes dt {
    0%, 80%, 100% {
        opacity:.25;
        transform:translateY(0);
    }
    40% {
        opacity:1;
        transform:translateY(-3px);
    }
}
#ch {
    background:linear-gradient(135deg,#0b1e57,#0c1220);
    padding:13px 15px;
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:2px solid var(--g);
}
#ch b {
    flex:1;
}
#ch small {
    display:block;
    font-weight:400;
    color:#aab5d2;
}
#ch button {
    background:none;
    border:0;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}
#cm {
    flex:1;
    overflow-y:auto;
    padding:13px;
    background:var(--bg);
    display:flex;
    flex-direction:column;
    gap:9px;
}
.mg {
    max-width:86%;
    padding:10px 13px;
    border-radius:14px;
    word-wrap:break-word;
}
.mg.a {
    background:var(--p2);
    border:1px solid var(--l);
    border-bottom-left-radius:4px;
}
.mg.u {
    background:var(--b);
    color:#fff;
    align-self:flex-end;
    border-bottom-right-radius:4px;
}
#cf {
    display:flex;
    gap:8px;
    padding:10px;
    border-top:1px solid var(--l);
    background:var(--p);
}
#cf input {
    margin:0;
}
#cf button {
    padding:0 16px;
}
.card .im {
    position:relative;
}

/* ============================================================
 * Wishlist heart and compare checkbox on cards; compare bar
 * ============================================================ */
.hrt {
    position:absolute;
    top:10px;
    right:10px;
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid var(--l);
    background:var(--p);
    color:var(--m);
    font-size:17px;
    cursor:pointer;
    display:grid;
    place-items:center;
}
.hrt.on {
    color:#ff4d6d;
    border-color:#ff4d6d;
}
.cmp {
    position:absolute;
    left:10px;
    bottom:8px;
    font-size:12px;
    color:var(--m);
    cursor:pointer;
    background:var(--p);
    border-radius:6px;
    padding:2px 8px;
}
.cmp input {
    width:auto;
    margin:0 4px 0 0;
    vertical-align:middle;
}
#cmpbar {
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:14px;
    background:var(--p2);
    border:1px solid var(--g);
    border-radius:99px;
    padding:8px 10px 8px 18px;
    gap:12px;
    align-items:center;
    z-index:25;
    display:none;
    box-shadow:0 10px 40px #000c;
}
#cmpbar .btn {
    padding:7px 16px;
}
#cmpbar button.o {
    background:none;
    border:0;
    color:var(--m);
    cursor:pointer;
}

/* ============================================================
 * Search filters
 * ============================================================ */
.flt {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:end;
    background:var(--p);
    border:1px solid var(--l);
    border-radius:14px;
    padding:14px;
    margin-bottom:6px;
}
.flt label {
    margin:0;
    font-size:12px;
    color:var(--m);
    flex:1;
    min-width:110px;
}
.flt select, .flt input {
    margin-top:4px;
}
.two {
    align-items:start;
}

/* ============================================================
 * My Account page: profile form and avatar
 * ============================================================ */
.prof .ph, .prof .ph b {
    color:#fff;
}
.prof .ph .m {
    color:#cfe0ff;
}
.prof .ph {
    display:flex;
    gap:16px;
    align-items:center;
    padding:20px 24px;
    margin:-24px -24px 6px;
    background:linear-gradient(120deg,#0b1e57,#0c1220);
    border-bottom:2px solid var(--g);
    border-radius:16px 16px 0 0;
}
.av {
    width:68px;
    height:68px;
    border-radius:50%;
    background:linear-gradient(135deg,#ffd24d,#FFC20E);
    color:#1a1300;
    font-size:30px;
    font-weight:800;
    display:grid;
    place-items:center;
    flex:none;
    box-shadow:0 0 0 4px #ffc20e33;
}
.pst {
    margin-top:6px;
}
.fg {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 16px;
}
.prof h3 {
    margin:24px 0 2px;
    font-size:12px;
    letter-spacing:1.6px;
    text-transform:uppercase;
    color:var(--g);
    border-bottom:1px solid var(--l);
    padding-bottom:6px;
}
.prof h3 small {
    text-transform:none;
    letter-spacing:0;
    font-weight:400;
}
@media(max-width:560px) {
    .fg {
        grid-template-columns:1fr;
    }
    .prof .ph {
        margin:-15px -15px 6px;
        padding:16px;
    }
}

/* ============================================================
 * My Account page: order cards
 * ============================================================ */
details.oc summary {
    cursor:pointer;
    list-style:none;
}
details.oc summary::-webkit-details-marker {
    display:none;
}
details.oc[open] summary {
    margin-bottom:10px;
}
.mg {
    line-height:1.6;
}
.mg p {
    margin:0 0 10px;
}
.mg p:last-child, .mg ul:last-child {
    margin-bottom:0;
}
.mg ul {
    margin:0 0 12px;
    padding-left:20px;
}
.mg li {
    margin:4px 0;
}
.mg b {
    color:var(--mgb);
}
.mg.u b {
    color:#fff;
}

/* ============================================================
 * Responsive: tablets
 * ============================================================ */
@media(max-width:900px) {
    .hg, .two {
        grid-template-columns:1fr;
    }
    .hv {
        order:-1;
    }
    .hv svg {
        width:240px;
    }
    .hero {
        padding:34px 0 44px;
    }
    section {
        padding:34px 0;
    }
    .views .main svg,
.views .main img {
        height:300px;
    }
    .stats {
        grid-template-columns:repeat(2,1fr);
    }
}

/* ============================================================
 * Responsive: phones
 * ============================================================ */
@media(max-width:560px) {
    body {
        font-size:14px;
    }
    header .w {
        height:62px;
        gap:10px;
    }
    .logo img {
        height:42px;
    }
    .sb {
        flex-wrap:wrap;
    }
    .sb .btn {
        width:100%;
    }
    h2 {
        font-size:23px;
    }
    .grid {
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }
    .card .im svg,
.card .im img {
        height:130px;
    }
    .card .bd {
        padding:11px;
    }
    .pr {
        font-size:18px;
    }
    .tag {
        font-size:11px;
    }
    .views .main svg,
.views .main img {
        height:230px;
    }
    .thumbs svg,
.thumbs img {
        height:58px;
    }
    .box {
        padding:15px;
    }
    td, th {
        padding:8px 4px;
    }
    .hero p {
        font-size:15px;
    }
    #cp {
        right:8px;
        left:8px;
        width:auto;
        bottom:80px;
        height:min(68vh,440px);
    }
    #cb {
        right:12px;
        bottom:12px;
        width:56px;
        height:56px;
    }
    .wa {
        left:12px;
        bottom:12px;
        width:46px;
        height:46px;
    }
}

/* ============================================================
 * Mobile slide-in menu and header icons
 * ============================================================ */
header .w.hrow {
    display:flex;
    align-items:center;
    gap:14px;
    height:68px;
}
.mbtn, .dh, .df, .bdp {
    display:none;
}
#mn {
    margin-left:auto;
    display:flex;
    gap:4px;
    align-items:center;
}
#mn a {
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 12px;
    border-radius:10px;
    color:var(--navc);
    font-weight:500;
    white-space:nowrap;
}
#mn a:hover {
    background:#ffffff1f;
    color:var(--g);
}
.ni {
    width:19px;
    height:19px;
    flex:none;
}
#mn .adm {
    border:1px solid var(--admb);
    border-radius:99px;
    padding:6px 14px;
    font-size:13px;
}
.adm .i-out {
    display:none;
}
.adm.out .i-out {
    display:block;
}
.adm.out .i-adm {
    display:none;
}
#wc {
    background:var(--g);
    color:#1a1300;
    border-radius:99px;
    padding:0 7px;
    font-size:12px;
    font-weight:800;
}
.hr {
    display:flex;
    align-items:center;
    gap:10px;
}
.ic {
    position:relative;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:50%;
    color:var(--navc);
}
.ic:hover {
    background:#ffffff1f;
}
.ic .ni {
    width:23px;
    height:23px;
}
.ic #bd {
    position:absolute;
    top:0;
    right:-2px;
    margin:0;
    font-size:11px;
    padding:1px 6px;
}

/* ============================================================
 * Responsive: tablets (menu)
 * ============================================================ */
@media(max-width:900px) {
    header {
        backdrop-filter:none;
    }
    header .w.hrow {
        display:grid;
        grid-template-columns:44px 1fr auto;
        height:62px;
        gap:8px;
    }
    .mbtn {
        display:grid;
    }
    .mbtn svg {
        width:22px;
        height:22px;
    }
    .logo {
        justify-self:center;
    }
    .logo img {
        height:46px;
    }
    .hr {
        justify-self:end;
    }
    #mn {
        position:fixed;
        top:0;
        left:0;
        bottom:0;
        width:min(310px,84vw);
        margin:0;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        background:linear-gradient(180deg,#0a2a6e,#06143a);
        transform:translateX(-105%);
        transition:transform .28s ease;
        z-index:60;
        overflow-y:auto;
        box-shadow:0 0 40px #000a;
    }
    body.nav-open #mn {
        transform:none;
    }
    .dh {
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:14px 16px;
        border-bottom:2px solid var(--g);
    }
    .dh img {
        height:50px;
        width:auto;
    }
    .dh svg {
        width:20px;
        height:20px;
    }
    #mn a {
        padding:15px 20px;
        border-radius:0;
        font-size:16px;
        border-bottom:1px solid #ffffff1a;
        color:#fff;
    }
    #mn .adm {
        border:0;
        border-radius:0;
        padding:15px 20px;
        font-size:16px;
        margin-top:8px;
        border-top:1px solid #ffffff1a;
    }
    .df {
        display:block;
        padding:18px 20px;
        color:#a9bbe6;
        font-size:13px;
        margin-top:auto;
    }
    .bdp {
        display:block;
        position:fixed;
        inset:0;
        background:#000a;
        z-index:55;
        opacity:0;
        pointer-events:none;
        transition:opacity .25s;
    }
    body.nav-open .bdp {
        opacity:1;
        pointer-events:auto;
    }
    body.nav-open {
        overflow:hidden;
    }
}

/* ============================================================
 * Responsive: very small phones
 * ============================================================ */
@media(max-width:380px) {
    .logo img {
        height:40px;
    }
    .hr {
        gap:6px;
    }
}

/* ============================================================
 * Home page: interactive 3D tyre
 * ============================================================ */
.hv:before {
    display:none;
}
.hv svg {
    animation:none;
    filter:none;
}
.hv {
    flex-direction:column;
    gap:4px;
}
#h3d {
    width:min(470px,100%);
    aspect-ratio:1;
    position:relative;
    z-index:2;
}
#h3d canvas {
    width:100%;
    height:100%;
    display:block;
    outline:none;
}
.hint {
    opacity:.7;
    font-size:12px;
}

/* ============================================================
 * Price block: MRP, price, "you save", sale badge
 * ============================================================ */
.mrp {
    color:#d6334a;
    text-decoration:line-through;
    font-size:15px;
    margin-right:6px;
    font-weight:600;
}
.sv {
    color:var(--ok);
    font-weight:700;
    display:block;
    font-size:13px;
}
.pbk {
    line-height:1.25;
}
.bsale {
    position:absolute;
    top:10px;
    left:10px;
    background:#d6334a;
    color:#fff;
    border-radius:6px;
    padding:3px 9px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.3px;
    z-index:2;
}

/* ============================================================
 * "Do not pay before contacting us" warning
 * ============================================================ */
.warnb {
    background:#fff3cd;
    border:1px solid #ffc20e;
    color:#6b4e00;
    border-radius:10px;
    padding:9px 12px;
    font-size:13px;
    margin:12px 0;
}
html[data-theme=dark] .warnb {
    background:#3a2f0a;
    color:#ffd24d;
}

/* ============================================================
 * WhatsApp slide-to-contact button
 * ============================================================ */
.sl {
    position:relative;
    height:54px;
    flex:1 1 260px;
    min-width:240px;
    max-width:420px;
    border-radius:99px;
    background:linear-gradient(90deg,#118a46,#25d366);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    user-select:none;
    box-shadow:0 6px 18px #25d36640;
}
.slt {
    color:#fff;
    font-weight:700;
    font-size:14px;
    padding-left:46px;
    pointer-events:none;
    white-space:nowrap;
}
.slc {
    letter-spacing:-2px;
    margin-left:4px;
    animation:slb 1.2s infinite;
}
@keyframes slb {
    0%, 100% {
        opacity:.3;
    }
    50% {
        opacity:1;
    }
}
.slh {
    position:absolute;
    left:4px;
    top:4px;
    width:46px;
    height:46px;
    border-radius:50%;
    background:#fff;
    color:#1fb355;
    display:grid;
    place-items:center;
    cursor:grab;
    touch-action:none;
    box-shadow:0 2px 8px #0004;
}
#mn a.salel {
    color:#ffd24d;
    font-weight:700;
}

/* ============================================================
 * FAQ accordion
 * ============================================================ */
.faq details {
    border-bottom:1px solid var(--l);
    padding:14px 0;
}
.faq details:last-child {
    border-bottom:0;
}
.faq summary {
    cursor:pointer;
    font-weight:600;
    list-style:none;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
}
.faq summary::-webkit-details-marker {
    display:none;
}
.faq summary::after {
    content:'+';
    color:var(--g);
    font-size:24px;
    line-height:1;
    transition:transform .2s;
}
.faq details[open] summary::after {
    transform:rotate(45deg);
}
.faq p {
    margin:10px 0 0;
    color:var(--t2);
}

/* ============================================================
 * Loading placeholder for the 3D tyre
 * ============================================================ */
.tph {
    width:min(100%,420px);
    aspect-ratio:1;
    margin:auto;
    border-radius:50%;
    background:radial-gradient(circle,#232a3a 0 36%,#0d1018 37% 100%);
    animation:tph 1.3s ease-in-out infinite;
}
@keyframes tph {
    50% {
        opacity:.55;
    }
}


/* ============================================================
 * Cookie consent banner (shown only when analytics is enabled)
 * ============================================================ */
#cc {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--p);
    color: var(--t);
    border: 1px solid var(--l);
    border-radius: 14px;
    box-shadow: var(--sh);
}

#cc p {
    margin: 0;
    flex: 1 1 260px;
}

#cc a {
    color: var(--lnk);
}


/* Product photos (uploaded from the admin panel) sit inside the same boxes as the drawn tyres */
.card .im img,
.views .main img,
.thumbs img {
    display: block;
    object-fit: contain;
}


/* Keeps the page body at least one screen tall while tall screens load, so the footer does not jump (layout shift). */
html.tall #app {
    min-height: 100vh;
}

/* Cookie banner link: underlined so it does not rely on colour alone (accessibility). */
#cc a {
    text-decoration:underline;
}
