/* ==========================================================================
   TROPICORE SPORT — "Playful Pop" design system
   Vibrant, rounded, sticker-y sports-retail look built around #FF8040.
   Every original selector/class is preserved and restyled — no HTML,
   JS, or class-name changes here, values only.
   ========================================================================== */

:root {
    /* ---- Brand core ---- */
    --primary: #FF8040;
    --primary-rgb: 255, 128, 64;
    --primary-dark: #E85A21;   /* hover state */
    --primary-darker: #C2461A; /* active / pressed */
    --primary-light: #FFA671;  /* lighter accent, secondary hovers */
    --primary-pale: #FFE3CE;   /* badge / chip backgrounds */
    --primary-wash: #FFF4EA;   /* page background wash (default pages) */
    --primary-wash-soft: #FFFAF5;

    /* ---- Neutrals (warm, not pure grey/black) ---- */
    --ink: #26190F;
    --ink-soft: #6E6259;
    --ink-faint: #A79C90;
    --surface: #FFFFFF;
    --surface-alt: #FFF9F4;
    --border: #F1E3D6;
    --border-soft: #EDEDED;

    /* ---- Legacy variable names kept alive (used by existing selectors) ---- */
    --menu: var(--surface);
    --menufont: var(--ink);
    --herobg: var(--primary-wash);
    --hero-shadow: rgba(232, 90, 33, .28);
    --hero-shadow-2: rgba(232, 90, 33, .35);
    --hero-title: var(--ink);
    --faq-header: var(--primary-pale);
    --faq-body: var(--surface-alt);
    --sale-badge: #FF4D4D;

    /* ---- Shape language: pill buttons, big soft radii ---- */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* ---- Shadows (soft, warm-tinted, no harsh black) ---- */
    --shadow-sm: 0 4px 14px rgba(38, 25, 15, .06);
    --shadow-md: 0 12px 28px rgba(38, 25, 15, .10);
    --shadow-lg: 0 20px 46px rgba(38, 25, 15, .16);
    --shadow-brand: 0 12px 26px rgba(255, 128, 64, .28);

    /* ---- Type ---- */
    --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Hanken Grotesk', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */

* {
    scrollbar-color: var(--primary-light) var(--primary-wash);
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--herobg);
    -webkit-font-smoothing: antialiased;
}

#pageContent {
    flex: 1;
}

/* ---- Headings: clear H1-H6 hierarchy on the display face ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.1rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; }

p {
    color: var(--ink-soft);
}

a {
    color: var(--primary-dark);
}

    a:hover {
        color: var(--primary);
    }

::selection {
    background: var(--primary);
    color: #fff;
}

.text-muted {
    color: var(--ink-soft) !important;
}

/* Focus ring, brand-coloured everywhere */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), .35);
    outline-offset: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: var(--radius-pill);
    transition: all .2s ease;
}

/* Bootstrap primary/light/outline used inline across pages — reskin them
   so every button on the site reads as one system. */
.btn-light {
    background: var(--surface);
    color: var(--primary-dark);
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

    .btn-light:hover,
    .btn-light:focus {
        background: var(--surface);
        color: var(--primary-darker);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, .75);
    color: #fff;
    background: transparent;
}

/* Btn Light (hero primary CTA — filled brand pill) */
.btn-hero-light {
    transition: all .22s ease;
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-brand);
}

    .btn-hero-light:hover,
    .btn-hero-light:focus {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(255, 128, 64, .34);
    }

/* Btn (hero secondary CTA — tinted outline pill) */
.btn-hero {
    transition: all .22s ease;
    background-color: var(--primary-pale);
    color: var(--primary-darker);
    border: 2px solid transparent;
    font-weight: 700;
}

    .btn-hero:hover,
    .btn-hero:focus {
        background-color: var(--primary-light);
        color: #fff;
        transform: translateY(-2px);
    }

.gradient-btn {
    background: linear-gradient(135deg, var(--primary), #FFB067);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.send-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: var(--radius-pill);
    width: 100%;
    font-weight: 700;
    font-family: var(--font-display);
    min-height: 48px;
    box-shadow: var(--shadow-brand);
    transition: all .2s ease;
}

    .send-btn:hover,
    .send-btn:focus {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(255, 128, 64, .34);
    }

.send-btn-hero {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-family: var(--font-display);
    transition: .2s ease;
}

    .send-btn-hero:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
    }

/* Generic buttons rendered by JS (Add To Cart etc. use send-btn already) */
button {
    font-family: var(--font-body);
}

/* ==========================================================================
   BADGES / PILLS / STICKERS
   ========================================================================== */

.salebadge {
    background-color: var(--sale-badge);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: .03em;
    border-radius: var(--radius-pill);
    padding: .4em .75em;
    transform: rotate(-4deg);
    box-shadow: var(--shadow-sm);
}

.salebadgefont {
    color: var(--sale-badge);
    font-weight: 800;
}

.badge {
    font-size: 12px;
    font-family: var(--font-display);
    border-radius: var(--radius-pill);
}

#saleBadge.bg-danger {
    background-color: var(--sale-badge) !important;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: .03em;
    border-radius: var(--radius-pill);
    transform: rotate(-4deg);
    box-shadow: var(--shadow-sm);
}

.category-badge {
    background: var(--primary-pale);
    color: var(--primary-darker);
    border: 2px solid transparent;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all .2s ease;
}

    .category-badge:hover {
        background: var(--primary-light);
        color: #fff;
        opacity: 1;
        transform: translateY(-1px);
    }

    /* ACTIVE STATE */
    .category-badge.active {
        background: var(--primary);
        color: #fff;
        box-shadow: var(--shadow-brand);
    }

#cartCount.bg-danger {
    background-color: var(--sale-badge) !important;
}

/* ==========================================================================
   TEXT / UTILITY HELPERS (existing classes, restyled)
   ========================================================================== */

.gradient-text {
    color: var(--ink);
    opacity: 1;
}

.pagepadding {
    padding-top: 130px;
    padding-bottom: 70px;
}

.fontmain {
    color: var(--primary);
}

.menubg {
    background-color: var(--menu);
    box-shadow: 0 2px 18px rgba(38, 25, 15, .06);
}

.menufont {
    color: var(--menufont);
}

.bg {
    background-color: var(--primary);
}

.shadowmy {
    text-shadow: 0 1px 3px rgba(38, 25, 15, .55), 0 2px 8px rgba(38, 25, 15, .35);
}

.green {
    color: var(--primary);
}

.logosizemenu {
    width: 90px;
    height: 36px;
    object-fit: contain;
}

.logosize {
    width: 140px;
    height: 100%;
}

/* WHY-US soft cloud blobs, now brand-tinted */
.why-us {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

    .why-us::before,
    .why-us::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        filter: blur(80px);
        z-index: 0;
    }

    .why-us::before {
        top: -120px;
        left: -120px;
        background: rgba(255, 128, 64, .22);
    }

    .why-us::after {
        bottom: -150px;
        right: -150px;
        background: rgba(255, 166, 113, .28);
    }

    .why-us .container {
        position: relative;
        z-index: 2;
    }

.why-card {
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: all .2s ease;
}

    .why-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: transparent !important;
    }

    .why-icon i,
    .why-card i {
        color: var(--primary);
        font-size: 28px;
    }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.navbar {
    z-index: 1050;
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: .5px;
}

.nav-link {
    color: var(--menufont) !important;
    font-weight: 600;
    font-family: var(--font-display);
    padding: 8px 16px !important;
    border-radius: var(--radius-pill);
    transition: all .2s ease;
}

    .nav-link:hover {
        color: var(--primary) !important;
        background: var(--primary-pale);
    }

#mainMenu .fa-cart-shopping {
    color: var(--ink);
    transition: color .2s ease;
}

#mainMenu a:hover .fa-cart-shopping {
    color: var(--primary);
}

/* ==========================================================================
   HERO — split layout: copy left, visual right
   ========================================================================== */

.herobg {
    opacity: 1;
}

.hero {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--primary);
    min-height: 600px;
    position: relative;
    background:
        radial-gradient(560px 380px at 88% 18%, rgba(255, 128, 64, .16), transparent 70%),
        radial-gradient(420px 320px at 8% 85%, rgba(255, 166, 113, .18), transparent 70%),
        var(--herobg);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-illustration {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(38, 25, 15, .18));
}

.hero h1 {
    color: var(--hero-title);
    font-size: 40px;
}

.hero p.lead {
    font-family: var(--font-body);
    font-size: 1.15rem;
}

.hero::after {
    min-height: 60vh;
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

    .cta-section h3 {
        color: #fff;
    }

    .cta-section p {
        max-width: 600px;
        margin: auto;
        opacity: .95;
        color: #fff;
    }

    .cta-section .btn-outline-light:hover {
        background: #fff;
        color: var(--primary-dark);
    }

/* ==========================================================================
   CATEGORY CARDS (home)
   ========================================================================== */

.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: .25s ease;
    background: var(--surface);
    border: 1px solid var(--border-soft);
}

.category-img {
    border-radius: var(--radius-lg);
    transition: .35s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

    .category-card:hover .category-img {
        transform: scale(1.05);
    }

/* ==========================================================================
   PRODUCT CARDS (shop grid) — pure white card + image area (HARD RULE)
   ========================================================================== */

.product-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eeeeee !important;
    transition: all .25s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-pale) !important;
    }

    .product-card:focus,
    .product-card:active,
    .product-card:hover,
    a:focus,
    a:active {
        outline: none !important;
        box-shadow: none;
    }

    .product-card:hover {
        box-shadow: var(--shadow-lg);
    }

.img-wrapper {
    padding-top: 10px;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    background: #ffffff;
    aspect-ratio: 1 / 1;
}

.product-img {
    width: 60%;
    object-fit: contain;
}

.product-card h6 {
    font-family: var(--font-display);
}

.product-card .fw-bold,
.product-card .fw-semibold {
    color: var(--ink);
}

.product-desc {
    font-size: 14px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* Price styling — brand accent on non-sale price too, for consistency */
.product-card .fw-bold:not(.text-muted) {
    color: var(--primary-dark);
    font-family: var(--font-display);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE — white image frame (HARD RULE)
   ========================================================================== */

.product-image-frame {
    background: #ffffff;
    border-radius: var(--radius-lg);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #f2f2f2;
    position: relative;
}

.product-main-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
}

#productCategory {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .06em;
}

#productTitle {
    font-family: var(--font-display);
}

#productPrice {
    font-family: var(--font-display);
    font-size: 1.4rem;
}

#productPrice .fw-bold:not(.text-muted) {
    color: var(--primary-dark);
}

#productPrice .text-danger {
    color: var(--sale-badge) !important;
}

/* ==========================================================================
   FEATURES (About page)
   ========================================================================== */

.feature {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--border-soft);
    transition: all .2s ease;
}

    .feature:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .feature i {
        font-size: 32px;
        color: var(--primary);
        margin-bottom: 10px;
        background: var(--primary-pale);
        width: 64px;
        height: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

/* ==========================================================================
   ABOUT
   ========================================================================== */

.mission-box {
    background: var(--primary-pale);
    border-radius: var(--radius-lg);
    padding: 44px;
    margin-top: 60px;
}

    .mission-box h4 {
        color: var(--primary-darker);
    }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
}

.icon {
    color: var(--primary);
    font-size: 20px;
    margin-right: 10px;
}

.uen-box {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

#mapContainer iframe {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
}

/* Contact / form inputs everywhere — pill, brand focus ring */
.form-control,
.form-select {
    border-radius: var(--radius-pill);
    border: 2px solid var(--border);
    padding: 12px 20px;
    font-family: var(--font-body);
    background: #fff;
    transition: all .2s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .16);
    }

textarea.form-control {
    border-radius: var(--radius-md);
}

/* ==========================================================================
   POLICY / TERMS PAGES
   ========================================================================== */

.policy-box {
    max-width: 900px;
    margin: auto;
}

.policy-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 34px;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

    .policy-card p {
        text-align: justify;
        line-height: 1.7;
        color: var(--ink-soft);
    }

.accordion-button {
    font-weight: 700;
    font-family: var(--font-display);
}

    .accordion-button:not(.collapsed) {
        color: var(--primary-darker);
    }

.accordion-item {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--ink) !important;
    color: #fff !important;
    margin-top: 0;
}

    footer h4,
    footer h6 {
        color: #fff !important;
        font-family: var(--font-display);
    }

    footer h6 .fontmain {
        color: var(--primary-light) !important;
    }

    footer p,
    footer a,
    footer .small,
    footer .text-muted {
        color: rgba(255, 255, 255, .78) !important;
        text-decoration: none;
    }

        footer a:hover {
            color: var(--primary-light) !important;
        }

    footer ul {
        padding-left: 0;
    }

    footer li {
        margin-bottom: 8px;
    }

    footer hr {
        border-color: rgba(255, 255, 255, .14) !important;
    }

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 20px;
    justify-content: center !important;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

#faqAccordion .accordion-button {
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: none;
    border-radius: var(--radius-md) !important;
}

    #faqAccordion .accordion-button:not(.collapsed) {
        background-color: var(--faq-header) !important;
        color: var(--primary-darker);
        box-shadow: none;
    }

    #faqAccordion .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }

#faqAccordion .accordion-body {
    background-color: var(--faq-body);
    color: var(--ink-soft);
}

/* ==========================================================================
   SORT DROPDOWN (shop.html)
   ========================================================================== */

.sort-wrapper {
    width: 220px;
}

.custom-sort,
#sortSelect {
    appearance: none;
    border-radius: var(--radius-pill);
    padding: 10px 40px 10px 18px;
    font-weight: 600;
    font-family: var(--font-display);
    border: 2px solid var(--border);
    background: #fff;
    color: var(--ink);
    transition: 0.2s ease;
}

    .custom-sort:focus,
    #sortSelect:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .16);
    }

.sort-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media(max-width:768px) {

    .pdtop {
        padding-top: 20px;
    }

    #pageContent {
        padding-left: 15px;
        padding-right: 15px;
    }

    .logosizemenu {
        width: 120px;
        height: 48px;
        object-fit: contain;
    }

    h1 { font-size: 2rem; }

    /* Left align everything */
    footer {
        padding-left: 15px;
        padding-right: 15px;
        text-align: left;
        border-radius: 0;
    }

        footer .row > div {
            margin-bottom: 20px;
        }

        footer .col-md-4 {
            width: 100%;
        }

        footer .col-md-2:nth-of-type(2) {
            width: 50%;
            float: left;
        }

        footer .col-md-2:nth-of-type(1),
        footer .col-md-2:nth-of-type(3) {
            width: 50%;
            float: left;
        }

        footer h6 {
            font-size: 15px;
            margin-bottom: 8px;
        }

        footer ul li {
            margin-bottom: 6px;
        }

    .footer-bottom {
        clear: both;
        margin-top: 20px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .14);
        text-align: center;
    }

    .cta-section {
        margin-left: -15px;
        margin-right: -15px;
    }

    .hero {
        margin-left: -15px;
        margin-right: -15px;
    }

        .hero h1 {
            color: var(--hero-title);
            font-size: 30px;
        }

    .why-us {
        margin-left: -15px;
        margin-right: -15px;
    }

    .pmobile {
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }

    .mission-box {
        padding: 28px;
    }

    .product-image-frame {
        height: 300px;
    }
}
