/* ============================================================
   COCO ELITE - MODERN DESIGN SYSTEM
   Storefront styles
   Brand: deep coconut green + warm amber accent
============================================================ */

:root {
    --ce-green-900: #0b3d24;
    --ce-green-700: #146c43;
    --ce-green-600: #198754;
    --ce-green-500: #23a06a;
    --ce-green-400: #43c08a;
    --ce-green-100: #e4f5ec;
    --ce-accent: #ffb703;
    --ce-accent-soft: rgba(255, 183, 3, .18);
    --ce-dark: #0f1f18;
    --ce-bg: #f4f8f6;
    --ce-surface: #ffffff;
    --ce-glass: rgba(255, 255, 255, .9);
    --ce-border: #e4ebe7;
    --ce-text: #17271f;
    --ce-muted: #64766d;
    --ce-radius-sm: 10px;
    --ce-radius: 16px;
    --ce-radius-lg: 24px;
    --ce-shadow-sm: 0 2px 10px rgba(15, 44, 31, .06);
    --ce-shadow: 0 14px 34px -12px rgba(15, 44, 31, .18);
    --ce-shadow-lg: 0 30px 60px -22px rgba(15, 44, 31, .30);
    --ce-gradient: linear-gradient(135deg, #0e6b3d 0%, #1e9e68 55%, #3cc584 100%);
    --ce-font: 'Plus Jakarta Sans', 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* ============================================================
   GLOBAL
============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ce-font);
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(60, 197, 132, .12), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(255, 183, 3, .08), transparent 55%),
        var(--ce-bg);
    background-attachment: fixed;
    color: var(--ce-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

::selection {
    background: var(--ce-green-600);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ce-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--ce-green-500), var(--ce-green-700));
    border-radius: 20px;
    border: 2px solid var(--ce-bg);
}

a {
    text-decoration: none;
    transition: color .25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.02em;
    color: var(--ce-text);
}

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

.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all .28s cubic-bezier(.22, .68, .35, 1.15);
}

.btn-success {
    background: var(--ce-gradient);
    border: none;
    box-shadow: 0 8px 20px -8px rgba(25, 135, 84, .55);
    color: #fff;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #0c5c31 0%, #17895a 60%, #2fb178 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(25, 135, 84, .65);
    color: #fff;
}

.btn-outline-success {
    border: 2px solid var(--ce-green-600);
    color: var(--ce-green-700);
    background: var(--ce-surface);
}

.btn-outline-success:hover {
    background: var(--ce-green-600);
    border-color: var(--ce-green-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(25, 135, 84, .5);
}

.btn-warning {
    color: #3d2e00;
    font-weight: 600;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(255, 193, 7, .6);
}

/* ============================================================
   NAVBAR
============================================================ */

.navbar {
    --bs-navbar-color: rgba(255, 255, 255, .9);
    --bs-navbar-hover-color: var(--ce-accent);
    --bs-navbar-active-color: var(--ce-accent);
    background: var(--ce-gradient);
    box-shadow: 0 6px 24px -10px rgba(15, 40, 27, .25);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.navbar-brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
}

/* Never render list bullets in the navbar (devtools reports li::marker) */
.navbar-nav,
.navbar-nav li {
    list-style: none !important;
}

.navbar-nav li::marker {
    content: none !important;
}

/* Navbar theme toggle */
.navbar .theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ce-gradient);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(15, 44, 31, .55);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    cursor: pointer;
}

.navbar .theme-toggle:hover {
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 14px 26px -8px rgba(15, 44, 31, .65);
}

/* Floating WhatsApp button - bottom-right */
.ce-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 26px -8px rgba(18, 140, 65, .55);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.ce-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 32px -8px rgba(18, 140, 65, .65);
    color: #fff;
}

.nav-link {
    font-weight: 600;
    margin-left: 12px;
    position: relative;
    color: rgba(255, 255, 255, .92) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 100%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--ce-accent);
    transition: right .3s ease;
}

.nav-link:hover::after {
    right: 12px;
}

.nav-link:hover {
    color: var(--ce-accent) !important;
}

.dropdown-menu {
    border: none;
    border-radius: var(--ce-radius-sm);
    box-shadow: var(--ce-shadow);
    padding: 8px;
    margin-top: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 500;
    transition: all .2s ease;
}

.dropdown-item:hover {
    background: var(--ce-green-100);
    color: var(--ce-green-700);
    transform: translateX(3px);
}

/* ============================================================
   HERO (background-image variant)
============================================================ */

.hero-section {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(8, 40, 24, .88) 0%, rgba(12, 60, 36, .66) 45%, rgba(12, 60, 36, .35) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section h1 {
    color: #fff;
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

.hero-section p {
    color: rgba(255, 255, 255, .92);
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-section .btn {
    padding: 14px 38px;
    font-size: 18px;
    border-radius: 999px;
}

/* Homepage hero image (floating coconut) */

.hero-img {
    filter: drop-shadow(0 30px 40px rgba(15, 60, 38, .28));
    animation: ceFloat 5s ease-in-out infinite;
}

@keyframes ceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ============================================================
   CARDS
============================================================ */

.card {
    border: 1px solid var(--ce-border);
    border-radius: var(--ce-radius);
    background: var(--ce-surface);
    box-shadow: var(--ce-shadow-sm);
    transition: transform .32s cubic-bezier(.22, .68, .35, 1.15), box-shadow .32s ease, border-color .32s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ce-shadow);
    border-color: rgba(25, 135, 84, .35);
}

.card img {
    height: 220px;
    object-fit: cover;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 14px;
    background: var(--ce-surface);
    transition: transform .4s ease;
}

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

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--ce-surface);
    border-top: 1px solid var(--ce-border);
    border-radius: 0 0 var(--ce-radius) var(--ce-radius) !important;
    padding: 1rem 1.25rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.05rem;
}

/* ============================================================
   PRODUCTS
============================================================ */

.product-card {
    overflow: hidden;
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

.price {
    color: var(--ce-green-600);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

/* ============================================================
   WHY CHOOSE US
============================================================ */

.why-us i {
    color: var(--ce-green-600);
    margin-bottom: 15px;
    font-size: 2.2rem;
    background: var(--ce-green-100);
    width: 64px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    border-radius: 18px;
    transition: all .3s ease;
}

.why-us:hover i {
    background: var(--ce-gradient);
    color: #fff;
    transform: translateY(-4px) rotate(-4deg);
}

.why-us h5 {
    margin-top: 10px;
    font-weight: 700;
}

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

.about-section {
    background: var(--ce-gradient);
    color: #fff;
    border-radius: var(--ce-radius-lg);
    box-shadow: var(--ce-shadow-lg);
}

.about-section h2,
.about-section h3,
.about-section h4 {
    color: #fff;
}

.about-section img {
    border-radius: var(--ce-radius);
    box-shadow: var(--ce-shadow);
}

/* ============================================================
   BLOG SECTION
============================================================ */

.blog-card img {
    height: 250px;
    object-fit: cover;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ce-shadow);
}

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

.contact-box {
    background: var(--ce-surface);
    padding: 32px;
    border-radius: var(--ce-radius);
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow-sm);
    transition: all .3s ease;
}

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

/* ============================================================
   LOGIN / REGISTER
============================================================ */

.auth-card {
    max-width: 500px;
    margin: auto;
    background: var(--ce-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 36px;
    border-radius: var(--ce-radius-lg);
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow-lg);
}

/* ============================================================
   CART
============================================================ */

.cart-table {
    background: var(--ce-surface);
    border-radius: var(--ce-radius);
    overflow: hidden;
    box-shadow: var(--ce-shadow-sm);
}

.cart-table img {
    width: 80px;
    border-radius: var(--ce-radius-sm);
}

/* ============================================================
   PROFILE
============================================================ */

.profile-card {
    background: var(--ce-surface);
    padding: 24px;
    border-radius: var(--ce-radius);
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow-sm);
}

.profile-image {
    border: 3px solid var(--ce-green-500);
    box-shadow: var(--ce-shadow);
}

/* ============================================================
   NEWSLETTER
============================================================ */

.newsletter {
    background: var(--ce-dark);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 20% 0%, rgba(60, 197, 132, .25), transparent 60%);
}

.newsletter h2, .newsletter h3 {
    color: #fff;
}

.newsletter input {
    height: 52px;
    border-radius: 12px;
    border: none;
    padding-left: 18px;
}

.newsletter .btn {
    height: 52px;
    border-radius: 12px;
}

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

footer {
    background: linear-gradient(180deg, #0f1f18 0%, #0a1611 100%);
    color: #fff;
    padding: 56px 0 24px;
    border-top: 4px solid var(--ce-gradient);
    position: relative;
}

footer a {
    color: #b9c8c0;
    transition: all .25s ease;
}

footer a:hover {
    color: var(--ce-accent);
    padding-left: 4px;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
}

footer h5::after {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--ce-gradient);
    margin-top: 8px;
}

footer.bg-dark hr.bg-light {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, .18) !important;
    opacity: 1;
}

/* Green banner sections keep white headings/text in both themes */
section.bg-success.text-white h1,
section.bg-success.text-white h2,
section.bg-success.text-white h3,
section.bg-success.text-white h4,
section.bg-success.text-white h5,
section.bg-success.text-white h6,
section.bg-success.text-white p,
section.bg-success.text-white .lead,
section.bg-success.text-white small {
    color: #fff;
}

/* ============================================================
   SECTION TITLES
============================================================ */

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--ce-gradient);
    margin: 12px auto 0;
}

/* ============================================================
   FORMS (shared modern inputs)
============================================================ */

.form-control,
.form-select {
    border-radius: var(--ce-radius-sm);
    border: 1px solid var(--ce-border);
    padding: 12px 14px;
    transition: all .25s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ce-green-500);
    box-shadow: 0 0 0 4px rgba(35, 160, 106, .16);
}

/* ============================================================
   BADGES
============================================================ */

.badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ============================================================
   PAYMENT POPUP (SweetAlert2)
============================================================ */

.payment-popup {
    border-radius: 20px;
    padding: 28px;
    font-family: var(--ce-font);
    box-shadow: var(--ce-shadow-lg);
}

.payment-title {
    color: var(--ce-green-700);
    font-size: 28px;
    font-weight: 800;
}

.payment-btn {
    background: var(--ce-gradient) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 11px 26px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 10px 24px -8px rgba(25, 135, 84, .6) !important;
}

.payment-btn:hover {
    transform: translateY(-2px) !important;
}

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

@media (max-width: 991px) {

    .hero-section h1 {
        font-size: 45px;
    }

    .navbar-nav {
        text-align: center;
        padding: 12px 0;
    }

    .navbar-collapse {
        background: rgba(11, 61, 36, .97);
        border-radius: 0 0 var(--ce-radius) var(--ce-radius);
        padding: 0 12px 14px;
    }

}

@media (max-width: 768px) {

    .hero-section {
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 35px;
    }

    .hero-section p {
        font-size: 18px;
    }

}

@media (max-width: 576px) {

    .hero-section h1 {
        font-size: 30px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .btn {
        width: 100%;
    }

}

/* ============================================================
   DARK MODE (Bootstrap 5.3 color modes)
============================================================ */

[data-bs-theme="dark"] {
    --ce-bg: #0c1210;
    --ce-surface: #141d19;
    --ce-glass: rgba(20, 29, 25, .92);
    --ce-border: #26322c;
    --ce-text: #d1d5db;
    --ce-muted: #8fa69b;
    --ce-green-600: #2fbd82;
    --ce-green-700: #3fcf92;
    --ce-green-100: rgba(160, 166, 162, .15);
    --ce-shadow-sm: 0 2px 10px rgba(0, 0, 0, .4);
    --ce-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6);
    --ce-shadow-lg: 0 30px 60px -22px rgba(0, 0, 0, .75);

    /* Bootstrap component surfaces -> full dark adaptation */
    --bs-body-bg: var(--ce-bg);
    --bs-body-bg-rgb: 12, 18, 16;
    --bs-body-color: var(--ce-text);
    --bs-secondary-bg: var(--ce-surface);
    --bs-tertiary-bg: var(--ce-surface);
    --bs-card-bg: var(--ce-surface);
    --bs-card-cap-bg: var(--ce-surface);
    --bs-modal-bg: var(--ce-surface);
    --bs-popover-bg: var(--ce-surface);
    --bs-offcanvas-bg: var(--ce-surface);
    --bs-dropdown-bg: var(--ce-surface);
    --bs-table-bg: var(--ce-surface);
    --bs-list-group-bg: var(--ce-surface);
    --bs-accordion-bg: var(--ce-surface);
    --bs-toast-bg: var(--ce-surface);
    --bs-border-color: var(--ce-border);
    --bs-border-color-translucent: var(--ce-border);
    --bs-heading-color: var(--ce-text);
    --bs-emphasis-color: var(--ce-text);
    --bs-secondary-color: var(--ce-muted);
    --bs-secondary-color-rgb: 143, 166, 155;
    --bs-light-rgb: 12, 18, 16;
    --bs-light: #0c1210;
}

/* Keep .text-light readable on dark surfaces (--bs-light-rgb is now dark) */
[data-bs-theme="dark"] .text-light {
    color: var(--ce-text) !important;
}

/* Semantic text colors -> readable light variants on dark surfaces
   (local bootstrap build lacks the dark palette) */
[data-bs-theme="dark"] .text-success { color: #75b798 !important; }
[data-bs-theme="dark"] .text-primary { color: #6ea8fe !important; }
[data-bs-theme="dark"] .text-info { color: #6edff6 !important; }
[data-bs-theme="dark"] .text-warning { color: #ffda6a !important; }
[data-bs-theme="dark"] .text-danger { color: #ea868f !important; }
[data-bs-theme="dark"] .text-secondary { color: #a9b8b0 !important; }

[data-bs-theme="dark"] .navbar {
    background: linear-gradient(135deg, #0a5c33 0%, #14754a 55%, #259a66 100%);
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--ce-surface);
}

[data-bs-theme="dark"] .newsletter {
    background: #0a1210;
}

[data-bs-theme="dark"] .hero-section::before {
    background: linear-gradient(120deg, rgba(4, 20, 12, .92) 0%, rgba(8, 36, 22, .78) 45%, rgba(8, 36, 22, .55) 100%);
}

/* Light utility classes -> adaptive surfaces in dark mode */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--ce-bg) !important;
}

/* Guarantee hero text stays readable on the dark-adapted bg-light surface */
[data-bs-theme="dark"] section.bg-light h1,
[data-bs-theme="dark"] section.bg-light p,
[data-bs-theme="dark"] section.bg-light .lead {
    color: var(--ce-text) !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--ce-surface) !important;
}

[data-bs-theme="dark"] .card-img-top {
    background-color: var(--ce-surface);
}
