/* Kids Daily Adventures: custom theme styles. Loaded from resources/views/app.blade.php. */

/* Product gallery: keep main image box square, no gap above image */
.aspect-square{min-height:0}
@media (min-width:768px){.flex-1.aspect-square{align-self:flex-start}}

/* Animated logo: shows kda-logo-animated.svg in place of the header/footer logo image */
img[alt="Kids Daily Adventures"][src*="/uploads/branding/"]{content:url("../kda-logo-animated.svg");width:auto!important;max-width:none!important;height:46px!important}
header img[alt="Kids Daily Adventures"][src*="/uploads/branding/"],footer img[alt="Kids Daily Adventures"][src*="/uploads/branding/"]{height:54px!important}
@media (max-width:767px){img[alt="Kids Daily Adventures"][src*="/uploads/branding/"]{height:40px!important}header img[alt="Kids Daily Adventures"][src*="/uploads/branding/"]{height:44px!important}footer img[alt="Kids Daily Adventures"][src*="/uploads/branding/"]{height:50px!important}}

/* Page background: soft colour wash */
main.min-h-screen{background:radial-gradient(900px 420px at 0% 0%,rgba(1,149,231,.13),transparent 70%),radial-gradient(900px 480px at 100% 6%,rgba(251,158,12,.13),transparent 70%),radial-gradient(1000px 600px at 50% 60%,rgba(25,171,86,.07),transparent 70%),linear-gradient(180deg,#f3f9ff 0%,#fffdf7 45%,#fff6f4 100%)!important}

/* ===== Brand colour and design pass (matches the logo palette) ===== */
/* 2. Announcement bar */
div.bg-\[\#f1f3f5\].border-b{background:#11264e!important;border-color:#11264e!important;color:#fff!important}
html body #app div.bg-\[\#f1f3f5\].border-b :is(a,span,button){color:#fff!important}
html body #app div.bg-\[\#f1f3f5\].border-b a:hover{color:#fb9e0c!important}
/* 3. Section headings with a coloured bar */
main section h2.font-extrabold{position:relative;padding-bottom:10px}
main section h2.font-extrabold::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:4px;border-radius:4px;background:#0195e7}
main section .justify-center>h2.font-extrabold::after{left:50%;transform:translateX(-50%)}
main>section:nth-of-type(4n+2) h2.font-extrabold::after{background:#ed2727}
main>section:nth-of-type(4n+3) h2.font-extrabold::after{background:#fb9e0c}
main>section:nth-of-type(4n) h2.font-extrabold::after{background:#19ab56}
/* 4. Trust tiles */
div.rounded-xl.bg-white.border.p-4.flex-1>div:first-child{background:rgba(1,149,231,.12)!important;color:#0195e7!important}
div.rounded-xl.bg-white.border.p-4.flex-1:nth-child(2)>div:first-child{background:rgba(251,158,12,.14)!important;color:#e08600!important}
div.rounded-xl.bg-white.border.p-4.flex-1:nth-child(3)>div:first-child{background:rgba(25,171,86,.12)!important;color:#19ab56!important}
div.rounded-xl.bg-white.border.p-4.flex-1:nth-child(4)>div:first-child{background:rgba(237,39,39,.1)!important;color:#ed2727!important}
/* 5. Menu bar */
button.bg-\[\#f0f2f5\].rounded-t-lg{background:#0195e7!important;color:#fff!important}
button.bg-\[\#f0f2f5\].rounded-t-lg:hover{background:#0284cf!important}
a[class*="hover:text-[var(--brand-primary"]:hover{color:#ed2727!important}
/* 6. Sale price */
article.product-card span.font-bold.text-gray-900.whitespace-nowrap{color:#ed2727!important}
/* 7. Navy footer */
footer div.bg-white.rounded-3xl{background:#11264e!important;border-color:#11264e!important}
html body #app footer div.rounded-3xl :is(p,a,span,li,h2,h3,h4,h5,div){color:#dbe6f5!important}
html body #app footer div.rounded-3xl :is(h2,h3,h4,h5){color:#fff!important}
html body #app footer div.rounded-3xl a:hover{color:#fb9e0c!important}
html body #app footer div.rounded-3xl .inline-flex.px-3.py-1,html body #app footer div.rounded-3xl .inline-flex.px-3.py-1 *{color:#11264e!important}
footer div.rounded-3xl [class*="border-t"],footer div.rounded-3xl [class*="border-gray"]{border-color:rgba(255,255,255,.15)!important}
footer img[alt="Kids Daily Adventures"]{background:#fff;border-radius:14px;padding:4px 10px;box-sizing:content-box}
footer div.rounded-3xl{--brand-primary:#dbe6f5;--brand-link:#dbe6f5;--brand-primary-hover:#fb9e0c}
/* 8. Softer, rounder product cards */
article.product-card{border-radius:20px!important;box-shadow:0 6px 18px rgba(17,38,78,.08)!important}
article.product-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(17,38,78,.15)!important}

/* ===== Product page ===== */
/* Order buttons: Order Now first, full width, logo navy */
main div.grid.grid-cols-2.w-full.max-w-full>:nth-child(2){order:-1;grid-column:1/-1;height:54px!important;background:#11264e!important;color:#fff!important;font-size:16px;letter-spacing:.04em;border-radius:12px;box-shadow:0 8px 20px rgba(17,38,78,.25)}
main div.grid.grid-cols-2.w-full.max-w-full>:nth-child(2):hover{background:#0b1b3a!important}
main div.grid.grid-cols-2.w-full.max-w-full>:nth-child(1){background:#fff!important;color:#11264e!important;border:2px solid #11264e;border-radius:12px;box-shadow:none}
main div.grid.grid-cols-2.w-full.max-w-full>:nth-child(3){background:#0b7a3e!important;color:#fff!important;border-radius:12px}
main div.grid.grid-cols-2.w-full.max-w-full>:nth-child(3):hover{background:#096632!important}
main div.grid.grid-cols-2.w-full.max-w-full>:nth-child(4){background:#fff!important;color:#11264e!important;border:2px solid #cbd5e1;border-radius:12px;box-shadow:none;grid-column:1/-1}
/* Trust strip under the buttons */
main div.grid.grid-cols-2.w-full.max-w-full:has(>:nth-child(4))::before,main div.grid.grid-cols-2.w-full.max-w-full:has(>:nth-child(4))::after{white-space:pre;grid-column:auto;order:9;margin-top:6px;padding:10px 14px;border:1px solid #e5edf7;border-radius:12px;background:#f7fbff;font-size:13px;line-height:2;color:#11264e;font-weight:600;overflow:hidden;text-overflow:ellipsis}
main div.grid.grid-cols-2.w-full.max-w-full:has(>:nth-child(4))::before{content:"\1F69A \00A0 \00A0 Free delivery over \09F3 10,000\A \26A1 \00A0 \00A0 Fast delivery"}
main div.grid.grid-cols-2.w-full.max-w-full:has(>:nth-child(4))::after{content:"\1F4B5 \00A0 \00A0 Cash on delivery\A \2705 \00A0 \00A0 100% authentic product"}
/* Price in red, with a save tag filled in by kda-custom.js */
main div.flex.items-baseline{--brand-primary:#ed2727}
html body #app main span.text-3xl.font-bold{color:#ed2727!important}
main div.flex.items-baseline[data-kda-save]::after{content:attr(data-kda-save);align-self:center;background:#ed2727;color:#fff;font-weight:700;font-size:12px;line-height:1;padding:6px 10px;border-radius:999px}
/* Colour option dots (names set by kda-custom.js) */
main button[data-kda-color]>span:first-child{background-color:var(--kda-c)!important}
main button[data-kda-color="black"]{--kda-c:#111}main button[data-kda-color="white"]{--kda-c:#fff}main button[data-kda-color="red"]{--kda-c:#ed2727}main button[data-kda-color="blue"]{--kda-c:#0195e7}main button[data-kda-color="purple"]{--kda-c:#7c3aed}main button[data-kda-color="orange"]{--kda-c:#fb9e0c}main button[data-kda-color="green"]{--kda-c:#19ab56}main button[data-kda-color="yellow"]{--kda-c:#facc15}main button[data-kda-color="pink"]{--kda-c:#ec4899}main button[data-kda-color="grey"],main button[data-kda-color="gray"]{--kda-c:#9ca3af}
/* No reviews yet: hide the empty stars and the divider after them */
main [data-kda-noreview],main [data-kda-noreview]+span.text-gray-300{display:none!important}

/* ===== Checkout ===== */
/* Place Order button: logo navy, with the amount readable in yellow */
main button.bg-gray-900.w-full.rounded-xl{background:#11264e!important;--brand-primary:#ffd23f}
main button.bg-gray-900.w-full.rounded-xl:hover{background:#0b1b3a!important}
/* Drop the second "Official Checkout" header bar */
main>header.bg-white.border-b{display:none!important}

/* ===== Shop page ===== */
/* Hide the rating filter while products have no ratings */
main form.space-y-6>div:has(>ul [class*="amber"]),main form.space-y-6>div:has(>ul [class*="amber"])+div.h-px{display:none!important}

/* ===== Footer social links (added by kda-custom.js) ===== */
.kda-social{display:flex;gap:10px;margin-top:16px}
html body #app footer .kda-social a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;color:#fff!important;transition:background .2s,transform .2s}
html body #app footer .kda-social a:hover{background:#fb9e0c;color:#11264e!important;transform:translateY(-2px)}

/* ===== Product page layout ===== */
/* Gallery stays in view while the details column scrolls */
@media (min-width:1024px){main.max-w-\[1440px\].overflow-x-hidden{overflow-x:clip!important;overflow-y:visible!important}main div.grid.lg\:grid-cols-2>div:first-child{position:sticky;top:96px;align-self:start}}
/* Centre the description text instead of leaving the right side empty */
main div.max-w-4xl:has(.product-description-content){margin-left:auto;margin-right:auto}

/* ===== Footer contact details (added by kda-custom.js) ===== */
.kda-contact{margin-top:16px;display:grid;gap:6px;font-size:13px;line-height:1.5}
html body #app footer .kda-contact,html body #app footer .kda-contact a{color:#dbe6f5!important}
html body #app footer .kda-contact a:hover{color:#fb9e0c!important}

/* Checkout wording in English: city picker placeholder (text is built into the page bundle) */
main button[aria-haspopup="listbox"]>span.truncate.text-gray-400{font-size:0!important}
main button[aria-haspopup="listbox"]>span.truncate.text-gray-400::before{content:"Select city / area";font-size:14px}
