/* =========================================================
   STAR BIOCARE - MEDICAL COOL BOX
   HeatX / WarmHer matching layout, typography and spacing
   Product identity: clean medical blue
========================================================= */

:root {
    --red: #087fc2;
    --red-dark: #075a96;
    --ink: #102b54;
    --navy: #092b60;
    --blue: #087fc2;
    --muted: #5e718b;
    --line: #d9e8f5;
    --amber: #70b9e8;
    --section-gap: 80px;
    --page-pad: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body.coolbox-page {
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

.coolbox-page a { color: inherit; text-decoration: none; }
.coolbox-page img { display: block; max-width: 100%; }
.coolbox-page svg { display: block; }
.coolbox-page .page { width: 100%; background: #fff; }
.coolbox-page section,
.coolbox-page .strip { padding-left: 0; padding-right: 0; }

.coolbox-page .container,
.coolbox-page .coolbox-section,
.coolbox-page .strip {
    width: min(1560px, calc(100% - 48px));
    margin-inline: auto;
}

.coolbox-page h1,
.coolbox-page h2,
.coolbox-page h3,
.coolbox-page h4 {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.coolbox-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid #cbddec;
    border-radius: 30px;
    background: rgba(255,255,255,.86);
    color: var(--navy);
    font: 700 15px "DM Sans", sans-serif;
    cursor: pointer;
    transition: .3s ease;
}
.coolbox-page .btn:hover { transform: translateY(-3px); background: #fff; }
.coolbox-page .btn.primary {
    color: #fff;
    background: linear-gradient(110deg, var(--red-dark), var(--red));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(8,127,194,.2);
}
.coolbox-page .btn.primary:hover { box-shadow: 0 16px 28px rgba(8,127,194,.3); }
.coolbox-page :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* HERO - same two-column structure as HeatX */
.coolbox-page .hero.coolbox-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 35px;
    width: 100%;
    margin: 0;
    padding: 65px max(24px, calc((100% - 1560px) / 2)) 95px;
    overflow: hidden;
    background:
        linear-gradient(rgba(8,127,194,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8,127,194,.055) 1px, transparent 1px),
        linear-gradient(110deg, #f2faff 0%, #eaf7fd 48%, #dff2fc 100%);
    background-size: 43px 43px, 43px 43px, 100% 100%;
}
.coolbox-page .hero.coolbox-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 24%;
    bottom: -320px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    filter: blur(16px);
    pointer-events: none;
}
.coolbox-page .hero.coolbox-hero > div:first-child {
    position: relative;
    z-index: 2;
    min-width: 0;
}
.coolbox-page .hero h1 {
    max-width: 720px;
    color: #102f5e;
    font-size: clamp(42px, 4.8vw, 68px);
    line-height: 1.04;
    letter-spacing: -2px;
}
.coolbox-page .hero h1 span {
    background: linear-gradient(90deg, #075a96, #159bd5, #65c2ed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.coolbox-page .tagline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 22px;
    color: #087fc2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}
.coolbox-page .tagline i {
    width: 48px;
    height: 2px;
    background: #087fc2;
}
.coolbox-page .lead {
    max-width: 560px;
    margin-bottom: 26px;
    color: #526d88;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.75;
}
.coolbox-page .lead b { color: #075a96; }
.coolbox-page .btns { display: flex; flex-wrap: wrap; gap: 13px; }
.coolbox-page .hero-img {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 450px;
}
.coolbox-page .hero-img img {
    width: 100%;
    max-width: 620px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 22px;
    filter: drop-shadow(0 22px 28px rgba(20,76,120,.14));
    animation: coolboxFloat 5s ease-in-out infinite;
}
.coolbox-page .hero-img small {
    color: #6b8298;
    font-size: 11px;
    font-style: italic;
    text-align: center;
}
@keyframes coolboxFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* FEATURE STRIP */
.coolbox-page .strip.coolbox-strip {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0;
    width: min(1560px, calc(100% - 48px));
    margin: -48px auto 0;
    padding: 22px 12px;
    background: #fff;
    border: 1px solid #e1edf6;
    border-radius: 20px;
    box-shadow: 0 15px 42px rgba(20,78,118,.09);
}
.coolbox-page .sf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 14px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.coolbox-page .sf:last-child { border-right: 0; }
.coolbox-page .ic {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--blue);
    background: #e8f5fd;
    border: 1px solid #cde7f7;
    border-radius: 50%;
}
.coolbox-page .ic svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.coolbox-page .sf b {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}
.coolbox-page .sf > span:last-child {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

/* SECTIONS + HEADINGS */
.coolbox-page .coolbox-section {
    padding-top: var(--section-gap);
    padding-bottom: 0;
}
.coolbox-page .sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}
.coolbox-page .sec-head h2 {
    position: relative;
    padding-bottom: 12px;
    color: #0c2e60;
    font-size: clamp(32px, 3.6vw, 45px);
    line-height: 1.12;
}
.coolbox-page .sec-head h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #075a96, #35a9df);
}
.coolbox-page .sec-head p {
    max-width: 450px;
    padding-bottom: 5px;
    color: #60768d;
    font-size: 16px;
    line-height: 1.6;
}

/* DESIGNED FOR CARDS */
.coolbox-page .uses {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 20px;
}
.coolbox-page .use {
    overflow: hidden;
    padding: 12px 12px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0ebf4;
    border-radius: 20px;
    box-shadow: 0 7px 22px rgba(13,69,114,.05);
    transition: transform .35s ease, box-shadow .35s ease;
}
.coolbox-page .use:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(8,127,194,.14);
}
.coolbox-page .use img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .5s ease;
}
.coolbox-page .use:hover img { transform: scale(1.04); }
.coolbox-page .use b {
    display: block;
    color: #102e5c;
    font-size: 16px;
    font-weight: 800;
}
.coolbox-page .use span {
    display: block;
    margin-top: 5px;
    color: #6b7f93;
    font-size: 13px;
    line-height: 1.45;
}

/* FEATURES + OVERVIEW */
.coolbox-page .duo {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 24px;
}
.coolbox-page .panel {
    min-width: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0ebf4;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(13,69,114,.055);
    transition: box-shadow .3s ease, transform .3s ease;
}
.coolbox-page .panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 35px rgba(13,69,114,.1);
}
.coolbox-page .panel .sec-head { margin-bottom: 22px; }
.coolbox-page .panel .sec-head h2 { font-size: 30px; }
.coolbox-page .keys {
    display: grid;
    gap: 0;
    list-style: none;
}
.coolbox-page .keys li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e8eff5;
}
.coolbox-page .keys li:first-child { padding-top: 0; }
.coolbox-page .keys li:last-child { border-bottom: 0; padding-bottom: 0; }
.coolbox-page .keys .ic {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}
.coolbox-page .keys .ic svg { width: 24px; height: 24px; }
.coolbox-page .keys li > div { min-width: 0; }
.coolbox-page .keys b {
    display: block;
    color: #102e5c;
    font-size: 15px;
    line-height: 1.35;
}
.coolbox-page .keys li div span {
    display: block;
    margin-top: 4px;
    color: #6b7f93;
    font-size: 13px;
    line-height: 1.5;
}
.coolbox-page .ov {
    margin-bottom: 22px;
    color: #5b7087;
    font-size: 15px;
    line-height: 1.8;
}
.coolbox-page .ov b { color: #075a96; }
.coolbox-page .open {
    width: 100%;
    max-width: 540px;
    max-height: 390px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 18px;
}

/* CHARGING OPTIONS */
.coolbox-page .charging {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    padding: 28px 34px;
    background: linear-gradient(110deg, #eaf7fd, #d9effb);
    border: 1px solid #cfe7f5;
    border-radius: 22px;
}
.coolbox-page .charging h3 {
    padding-right: 30px;
    color: #0c2e60;
    font-size: 21px;
    line-height: 1.35;
    border-right: 1px solid #b6d7ea;
}
.coolbox-page .charging h3 small {
    color: #087fc2;
    font: 700 13px "DM Sans", sans-serif;
    letter-spacing: 1px;
}
.coolbox-page .ch {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #173c68;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.coolbox-page .ch img {
    width: 70px;
    height: 58px;
    padding: 5px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #d4e6f2;
    border-radius: 12px;
}

/* AVAILABLE SIZES */
.coolbox-page .sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}
.coolbox-page .size {
    overflow: hidden;
    padding: 24px 20px 22px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0ebf4;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(13,69,114,.055);
    transition: transform .35s ease, box-shadow .35s ease;
}
.coolbox-page .size:hover {
    transform: translateY(-7px);
    border-color: #a9d7ef;
    box-shadow: 0 18px 35px rgba(8,127,194,.14);
}
.coolbox-page .size img {
    width: 100%;
    height: 190px;
    margin: 0 auto 18px;
    object-fit: contain;
}
.coolbox-page .size h4 {
    display: inline-block;
    padding: 9px 28px;
    color: #fff;
    background: linear-gradient(110deg, #075a96, #159bd5);
    border-radius: 8px;
    font-size: 15px;
    letter-spacing: 1px;
}
.coolbox-page .size p {
    display: table;
    margin: 12px auto 0;
    padding: 7px 15px;
    color: #254768;
    background: #f3f9fd;
    border: 1px solid #dceaf4;
    border-radius: 30px;
    font-size: 12px;
}
.coolbox-page .size p b { color: #075a96; }

/* FOOTER PLACEHOLDER / SITE FOOTER COMPATIBILITY */
.coolbox-page #footer { margin-top: var(--section-gap); }
.coolbox-page footer {
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .coolbox-page .uses { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .coolbox-page .strip.coolbox-strip { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 20px; }
    .coolbox-page .sf:nth-child(3) { border-right: 0; }
    .coolbox-page .sf:nth-child(4) { border-right: 1px solid var(--line); }
    .coolbox-page .duo { grid-template-columns: 1fr; }
    .coolbox-page .charging { justify-content: center; }
    .coolbox-page .charging h3 { width: 100%; padding: 0 0 16px; text-align: center; border-right: 0; border-bottom: 1px solid #b6d7ea; }
}
@media (max-width: 820px) {
    .coolbox-page .hero.coolbox-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 52px;
        padding-bottom: 85px;
    }
    .coolbox-page .hero.coolbox-hero > div:first-child { text-align: center; }
    .coolbox-page .tagline, .coolbox-page .btns { justify-content: center; }
    .coolbox-page .lead { margin-left: auto; margin-right: auto; }
    .coolbox-page .hero-img { min-height: 360px; }
    .coolbox-page .hero-img img { max-height: 420px; }
    .coolbox-page .strip.coolbox-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .coolbox-page .sf { border-right: 0; }
    .coolbox-page .uses { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .coolbox-page .sec-head { display: block; }
    .coolbox-page .sec-head p { margin-top: 12px; }
    .coolbox-page .charging { justify-content: flex-start; }
    .coolbox-page .charging h3 { text-align: left; }
}
@media (max-width: 560px) {
    :root { --section-gap: 56px; }
    .coolbox-page .container,
    .coolbox-page .coolbox-section,
    .coolbox-page .strip.coolbox-strip { width: calc(100% - 32px); }
    .coolbox-page .hero.coolbox-hero { padding: 42px 16px 75px; }
    .coolbox-page .hero h1 { font-size: clamp(38px, 11vw, 50px); }
    .coolbox-page .tagline { font-size: 11px; letter-spacing: 1.6px; }
    .coolbox-page .lead { font-size: 16px; }
    .coolbox-page .btns { width: 100%; }
    .coolbox-page .btns .btn { width: 100%; }
    .coolbox-page .hero-img { min-height: 270px; }
    .coolbox-page .hero-img img { max-height: 320px; }
    .coolbox-page .strip.coolbox-strip { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .coolbox-page .sf {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 13px;
        text-align: left;
        justify-items: start;
        padding: 0;
    }
    .coolbox-page .sf .ic { grid-row: 1 / span 2; }
    .coolbox-page .sf b { align-self: end; }
    .coolbox-page .sf > span:last-child { align-self: start; }
    .coolbox-page .sec-head h2 { font-size: 32px; }
    .coolbox-page .uses { gap: 12px; }
    .coolbox-page .use { padding: 9px 9px 14px; }
    .coolbox-page .use b { font-size: 13px; }
    .coolbox-page .use span { font-size: 11px; }
    .coolbox-page .panel { padding: 20px; }
    .coolbox-page .panel .sec-head h2 { font-size: 27px; }
    .coolbox-page .keys li { align-items: flex-start; gap: 11px; }
    .coolbox-page .keys .ic { flex-basis: 42px; width: 42px; height: 42px; }
    .coolbox-page .keys b { font-size: 13px; }
    .coolbox-page .keys li div span { font-size: 12px; }
    .coolbox-page .charging { flex-direction: column; align-items: flex-start; padding: 22px; }
    .coolbox-page .charging h3 { text-align: left; }
    .coolbox-page .ch { width: 100%; }
    .coolbox-page .sizes { grid-template-columns: 1fr; gap: 16px; }
    .coolbox-page .size img { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    .coolbox-page *, .coolbox-page *::before, .coolbox-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   COOL BOX REFRESH: framed hero, overview photo, charging cards
========================================================= */
.coolbox-page .hero h1 { letter-spacing: -1.7px; }
.coolbox-page .hero-img { position: relative; }
.coolbox-page .hero-img::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(88%, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffffd9 0%, #bfe6fb66 60%, transparent 72%);
}
.coolbox-page .cb-frame {
    width: min(100%, 470px);
    padding: 10px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(12, 65, 99, .18);
    animation: coolboxFloat 7s ease-in-out infinite;
}
.coolbox-page .hero-img .cb-frame img {
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 22px;
    filter: none;
    animation: none;
}
.coolbox-page .cb-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 16px 11px 11px;
    background: #fff;
    border: 1px solid #e3eff7;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(22, 76, 116, .16);
}
.coolbox-page .cb-chip > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #087fc2;
    background: #e7f7ff;
    border-radius: 12px;
}
.coolbox-page .cb-chip svg,
.coolbox-page .ch-ic svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.coolbox-page .cb-chip b { display: block; color: #0b2b59; font-size: 14px; line-height: 1.2; }
.coolbox-page .cb-chip small { display: block; color: #6a8298; font-size: 12px; }
.coolbox-page .cb-chip-1 { left: 2%; top: 16%; }
.coolbox-page .cb-chip-2 { right: 2%; bottom: 18%; }

/* overview photo: rounded corners on the picture itself */
.coolbox-page .open {
    width: auto;
    max-width: 100%;
    height: 380px;
    max-height: none;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(12, 65, 99, .14);
}

/* charging options: heading + two equal cards */
.coolbox-page .charging {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: 22px;
}
.coolbox-page .ch {
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #d4e6f2;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(12, 65, 99, .06);
}
.coolbox-page .ch-ic {
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: linear-gradient(135deg, #075a96, #087fc2);
    border-radius: 15px;
}
.coolbox-page .ch-ic svg { width: 24px; height: 24px; }
.coolbox-page .ch b { display: block; color: #0b2b59; font-size: 16px; }
.coolbox-page .ch small { display: block; color: #5e718b; font-size: 13px; font-weight: 500; }

@media (max-width: 1100px) {
    .coolbox-page .charging { grid-template-columns: 1fr 1fr; }
    .coolbox-page .charging h3 { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
    .coolbox-page .hero-img { min-height: 0; }
    .coolbox-page .cb-frame { width: min(100%, 400px); }
}
@media (max-width: 560px) {
    .coolbox-page .charging { grid-template-columns: 1fr; }
    .coolbox-page .open { height: 280px; }
    .coolbox-page .cb-chip { padding: 8px 12px 8px 8px; gap: 8px; }
    .coolbox-page .cb-chip > span { width: 30px; height: 30px; }
    .coolbox-page .cb-chip b { font-size: 12px; }
    .coolbox-page .cb-chip small { font-size: 10px; }
    .coolbox-page .cb-chip-1 { left: 0; top: 6%; }
    .coolbox-page .cb-chip-2 { right: 0; bottom: 14%; }
}
@media (max-width: 820px) {
    .coolbox-page .sf:nth-child(n) { border-right: 0; }
    .coolbox-page .use:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
