/* ======================
   IMPORTS
====================== */
@import url('base.css');
@import url('layout.css');
@import url('components.css');
@import url('pages.css');
@import url('articles.css');
@import url('animations.css');
@import url('pages/gummies-list.css');
@import url('pages/gummy-detail.css');
@import url('pages/faq.css');
@import url('pages/contact.css');
@import url('pages/shop.css');
@import url('pages/cart.css');
@import url('pages/checkout.css');
@import url('pages/order-success.css');
@import url('pages/home-my.css');
@import url('pages/about-us.css');
@import url('components/country-banner.css');
@import url('components/country-switcher.css');
@import url('mobile/mobile.css');

/* ======================
   ROOT VARIABLES
====================== */
:root {
    /* Brand colors */
    --pn-orange: #ff7a00;
    --pn-orange-soft: #fff1e6;
    --pn-blue: #1e4ed8;
    --pn-blue-light: #60a5fa;
    --pn-red: #ef4444;

    --pn-text-dark: #1f2937;
    --pn-text-light: #6b7280;
    --pn-white: #ffffff;
    --pn-border: #e5e7eb;

    --pn-shadow-soft: 0 10px 25px rgba(0,0,0,0.08);

    --font-size-h1: 36px;
    --font-size-h2: 28px;
}

/* ======================
   BASE SAFETY
====================== */
body {
    position: relative;
    overflow-x: hidden;
}

/* ======================
   DESKTOP BREAKPOINT
====================== */
@media (min-width: 768px) {
    :root {
        --font-size-h1: 46px;
        --font-size-h2: 34px;
    }

    .hero h1 {
        font-size: var(--font-size-h1);
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pectin-flex {
        flex-direction: row;
        align-items: center;
    }

    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======================
   MOBILE NAV
====================== */
@media (max-width: 768px) {

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: #fff;
        padding: 80px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 997;
    }

    .main-nav.open {
        right: 0;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 26px;
        height: 3px;
        margin: 5px 0;
        background: var(--pn-orange);
        border-radius: 2px;
    }
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
        font-weight: bold;

}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* ======================
   MINI CART OVERLAY
====================== */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 998;
}

.mini-cart-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ======================
   MINI CART DRAWER
====================== */
.mini-cart {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: right .35s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.mini-cart.open {
    right: 0;
}

.mini-cart-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 18px;
}

.mini-cart-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mini-cart-footer {
    padding: 16px;
    border-top: 1px solid var(--pn-border);
    display: grid;
    gap: 12px;
}

#closeMiniCart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* ======================
   FLOATING CART ICON
====================== */
.floating-cart {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e4ed8;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1001;
}

.floating-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}


.floating-cart::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--pn-blue-light);
    border-radius: 50%;
}

.floating-cart.has-items::after {
    display: none;
}

.floating-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--pn-red);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ======================
   TOAST NOTIFICATION
====================== */
.toast {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: .3s ease;
    z-index: 1002;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-item {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.cart-item img{
    width: 50%;
}

.cart-item h4 {
    font-size: 14px;
    margin: 0 0 6px;
    line-height: 1.4;
}

.cart-price {
    font-weight: 600;
    color: var(--pn-blue);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-control button {
    width: 26px;
    height: 26px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: bold;
}

.qty-control span {
    width: 30px;
    text-align: center;
    font-size: 13px;

    
}

.cart-total {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    font-weight: 600;
    font-size: 16px;
}

.cart-total {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    font-weight: 600;
    font-size: 16px;
}


/* ======================
   MINI CART OPTION UI
====================== */

.cart-item-option {
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item-option.best {
    color: #b45309;
}

.cart-item-option .option-badge {
    background: #fde68a;
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

