/* ============================================================
   ShopEcommerce — Grostore Medical/Organic Redesign
   Primary: Teal/Mint | Accent: Orange | Clean, light, modern
   ============================================================ */

/* ── Google Font import ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
    --primary:        #0e9f8c;
    --primary-dark:   #0d7a6a;
    --primary-light:  #1abc9c;
    --primary-soft:   #e6f7f4;
    --accent:         #f97316;
    --accent-hover:   #ea580c;
    --navy:           #0f172a;
    --navy-light:     #1e293b;
    --light-bg:       #f0fdfa;
    --white:          #ffffff;
    --text-dark:      #0f172a;
    --text-body:      #334155;
    --text-muted:     #64748b;
    --border-color:   #e2e8f0;
    --border-light:   #f1f5f9;
    --success:        #10b981;
    --danger:         #ef4444;
    --warning:        #f59e0b;
    --info:           #06b6d4;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--text-body);
}

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

/* ── Top Bar ─────────────────────────────────────────────────────────────── */
.top-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.5rem 0;
}
.top-bar i {
    font-size: 0.75rem;
    color: var(--primary);
    margin-right: 0.35rem;
}

/* ── Main Navbar ─────────────────────────────────────────────────────────── */
.main-navbar {
    background-color: var(--white) !important;
    padding: 0.85rem 0;
    transition: box-shadow 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--navy) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.navbar-brand-logo i {
    color: var(--primary);
    font-size: 1.4rem;
}

.main-navbar .nav-link {
    color: var(--navy) !important;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-soft);
}

.navbar-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--navy);
    background: transparent;
    border: 1.5px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}
.navbar-icon-btn:hover {
    background-color: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.navbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}
.navbar-phone i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
}

.menu-trigger {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
    border: none;
    transition: background-color 0.2s ease;
}
.menu-trigger:hover {
    background: var(--primary);
}

.cart-badge {
    font-size: 0.6rem !important;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    background-color: var(--accent) !important;
    position: absolute;
    top: -4px;
    right: -4px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    transition: all 0.35s ease;
}

.btn-primary-custom {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}
.btn-primary-custom:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-teal {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}
.btn-teal:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    background-color: var(--white);
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* ── Product Card ────────────────────────────────────────────────────────── */
.product-card {
    border: 1px solid var(--border-light);
    border-radius: 0;
}
.product-img-link {
    display: block;
    text-decoration: none;
}
.product-img-wrapper {
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
    position: relative;
    border-radius: 0;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.04);
}
.badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background-color: var(--danger);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-soldout {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(15,23,42,0.85);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0;
    letter-spacing: 0.05em;
}
.product-name-link {
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
.product-name {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}
.product-price {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}
.product-price-old {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: line-through;
    opacity: 0.7;
}
.product-stock {
    margin-bottom: 0.5rem;
}
.product-stock span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}
.btn-add-cart {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    transition: all 0.2s ease;
}
.btn-add-cart:hover {
    background-color: var(--primary-dark);
}
.btn-out-of-stock {
    background-color: var(--border-color);
    color: var(--text-muted);
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .product-img-wrapper { height: 130px; }
    .product-name { font-size: 0.72rem; -webkit-line-clamp: 2; }
    .product-price { font-size: 0.82rem; }
    .product-price-old { font-size: 0.68rem; }
    .product-card .card-body { padding: 0.6rem !important; }
    .btn-add-cart,
    .btn-out-of-stock { font-size: 0.68rem; padding: 0.35rem 0.4rem; }
    .badge-sale,
    .badge-soldout { font-size: 0.55rem; padding: 0.2rem 0.4rem; }
    .product-stock span { font-size: 0.65rem; }
}

/* ── Hero Section V2 ─────────────────────────────────────────────────────── */
.hero-section-v2 {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f4 40%, #ffffff 100%);
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

/* Decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}
.hero-blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(14,159,140,0.35) 0%, transparent 70%);
    top: -80px;
    right: -60px;
}
.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 70%);
    bottom: -60px;
    left: 30%;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.45rem 1rem 0.45rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    width: fit-content;
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
}

/* Heading */
.hero-heading-v2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-sub-v2 {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

/* Trust row */
.hero-trust-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}
.trust-item i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Visual area */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}
.hero-image-main {
    position: relative;
    z-index: 2;
}
.hero-image-main img {
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(14,159,140,0.15);
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}
.hero-image-main::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 2px dashed var(--primary);
    border-radius: 32px;
    opacity: 0.25;
    z-index: -1;
}

/* Floating cards */
.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    border: 1px solid var(--border-light);
}
.hero-float-card strong {
    display: block;
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}
.hero-float-card small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.hero-float-card-1 {
    top: 10%;
    left: -10%;
}
.hero-float-card-2 {
    bottom: 18%;
    left: -5%;
}
.hero-float-card-3 {
    top: 25%;
    right: -5%;
}

.float-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.float-icon.teal {
    background: var(--primary);
    color: var(--white);
}
.float-avatars {
    display: flex;
    align-items: center;
}
.float-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -10px;
    object-fit: cover;
}
.float-avatars img:first-child {
    margin-left: 0;
}
.avatar-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 2px solid var(--white);
}

/* ── Search Filter Bar ───────────────────────────────────────────────────── */

.search-filter-bar {
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    padding: 1.25rem;
    margin-top: -40px;
    position: relative;
    z-index: 20;
    border: 1px solid var(--border-light);
}
.search-filter-bar * {
    border-radius: 0 !important;
}
.search-filter-bar .stat-box {
    background: var(--navy);
    color: var(--white);
    border-radius: 0;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
}
.search-filter-bar .stat-box h4 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .search-filter-bar {
        margin-top: 0;
        padding: 1rem;
        border-radius: 0 !important;
    }
    .search-filter-bar * {
        border-radius: 0 !important;
    }
    .search-filter-bar .stat-box {
        padding: 0.75rem 1rem;
        min-width: auto;
        margin-bottom: 1rem;
        border-radius: 0 !important;
    }
    .search-filter-bar .stat-box h4 {
        font-size: 1.35rem;
    }
    .search-filter-bar .form-select,
    .search-filter-bar .form-control,
    .search-filter-bar .btn {
        border-radius: 0 !important;
        font-size: 0.8rem;
    }
    .search-filter-bar .row.g-2 > div {
        margin-bottom: 0.5rem;
    }
}

/* ── Promo Banner Grid ───────────────────────────────────────────────────── */
.promo-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: transform 0.35s ease;
    height: 100%;
}
.promo-card:hover {
    transform: translateY(-4px);
}
.promo-card .badge-tag {
    display: inline-block;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.promo-card .badge-tag.teal {
    background: var(--primary);
}
.promo-card h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.promo-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.promo-card .promo-img {
    position: absolute;
    bottom: 0;
    right: 0;
    max-height: 80%;
    max-width: 60%;
    object-fit: contain;
    pointer-events: none;
}

.promo-card-dark {
    background: var(--navy);
    color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promo-card-dark h3 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
}
.promo-card-dark .percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.promo-bg-mint { background: linear-gradient(135deg, #e6f7f4 0%, #f0fdfa 100%); }
.promo-bg-pink { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); }
.promo-bg-blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }

/* ── Category Large Card ─────────────────────────────────────────────────── */
.category-large-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
}
.category-large-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.2) 50%, transparent 100%);
    border-radius: 16px;
}
.category-large-card .content {
    position: relative;
    z-index: 1;
    color: var(--white);
}
.category-large-card h4 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}
.category-large-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.72rem;
    margin-bottom: 0;
}

/* ── Category Sidebar ─────────────────────────────────────────────────────── */
.category-sidebar {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: box-shadow 0.35s ease;
}
.category-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.category-sidebar-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.category-sidebar-title i {
    color: var(--primary);
    font-size: 0.85rem;
}
.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-menu-item {
    margin-bottom: 0.35rem;
}
.category-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: var(--text-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.category-menu-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
    border-color: rgba(14,159,140,0.08);
    transform: translateX(2px);
}
.category-menu-link.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14,159,140,0.25);
}
.category-menu-link.active .category-icon {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}
.category-menu-link.active .category-chevron {
    color: var(--white);
}
.category-menu-link.active .category-badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}
.category-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.category-menu-link:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}
.category-chevron {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}
.category-menu-link:hover .category-chevron {
    transform: translateX(3px);
    color: var(--primary);
}
.category-badge {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
    line-height: 1;
}

/* ── Section Title ───────────────────────────────────────────────────────── */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 2.5rem;
}
.section-accent-line {
    width: 48px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    margin-bottom: 2.5rem;
    display: block;
}

/* ── Feature Strip ───────────────────────────────────────────────────────── */
.feature-strip {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 2.5rem 0;
}
.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.35s ease;
}
.feature-item:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.main-footer {
    background-color: var(--light-bg);
    color: var(--text-body);
    padding: 6rem 0 2.5rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-light);
}
.main-footer h5 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Poppins', sans-serif;
}
.main-footer a {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.main-footer a:hover {
    color: var(--primary);
    padding-left: 0.35rem;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0 !important;
    background-color: var(--white);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.35s ease;
}
.footer-social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
    background-color: var(--primary-soft);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.cta-banner h3 {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

/* ── Auth Pages ──────────────────────────────────────────────────────────── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: var(--light-bg);
}
.auth-card {
    max-width: 440px;
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 4rem;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert-success { background-color: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger  { background-color: #fef2f2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background-color: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background-color: #ecfeff; color: #155e75; border-left: 4px solid var(--info); }

/* ── Form Controls ───────────────────────────────────────────────────────── */
.form-control, .form-select {
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    transition: all 0.2s ease;
    color: var(--text-body);
    background-color: var(--white);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 159, 140, 0.1);
    outline: none;
}

/* ── Side Menu Links (offcanvas) ─────────────────────────────────────────── */
.side-menu-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1.5px solid var(--border-color);
    background: var(--white);
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}
.side-menu-link i {
    color: var(--primary);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}
.side-menu-link:hover {
    background-color: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateX(3px);
}
.side-menu-link:hover i {
    color: var(--primary-dark);
}

/* ── Admin Sidebar ───────────────────────────────────────────────────────── */
.admin-sidebar {
    background-color: var(--navy);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    padding-top: 1.5rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary);
}

/* ── Age Gate ────────────────────────────────────────────────────────────── */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.age-gate-card {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* ── Responsive Tweaks ───────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .hero-float-card-1 { left: -5%; }
    .hero-float-card-2 { left: 0; }
    .hero-float-card-3 { right: 0; }
}
@media (max-width: 991.98px) {
    .hero-heading-v2 { font-size: 2.8rem; }
    .hero-section-v2 { padding: 4rem 0 3rem; min-height: auto; }
    .hero-blob-1 { width: 300px; height: 300px; }
}
@media (max-width: 767.98px) {
    .hero-heading-v2 { font-size: 2.1rem; }
    .hero-section-v2 { padding: 3rem 0 2.5rem; }
    .hero-sub-v2 { font-size: 0.92rem; }
    .hero-actions .btn-lg { padding: 0.65rem 1.25rem; font-size: 0.8rem; }
    .trust-item { font-size: 0.7rem; }
    .product-img-wrapper { height: 180px; }
    .section-title { font-size: 1.4rem; }
    .search-filter-bar { margin-top: 1rem; }
}
@media (max-width: 575.98px) {
    .hero-heading-v2 { font-size: 1.75rem; }
    .hero-section-v2 { padding: 2.5rem 0 2rem; }
    .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.75rem 0.35rem 0.4rem; }
    .hero-trust-row { gap: 1rem; }
    .trust-item i { width: 30px; height: 30px; font-size: 0.75rem; }
    .btn-lg { padding: 0.65rem 1.5rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
}

/* ============================================================
   Product Detail Page — KA NITE CARE Redesign
   ============================================================ */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--light-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
    font-size: 0.78rem;
    font-weight: 500;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary-dark);
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Gallery */
.pd-gallery-wrap {
    position: sticky;
    top: 100px;
}
.pd-main-image {
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-badge-sale {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 30px;
    z-index: 2;
}
.pd-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--light-bg);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14,159,140,0.15);
}

/* Product Info */
.pd-info {
    padding-top: 0.5rem;
}
.pd-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}
.pd-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.pd-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.pd-rating .stars {
    color: #f59e0b;
    font-size: 0.85rem;
}
.pd-rating .count {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.pd-price-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.pd-price {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.pd-price-old {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}
.pd-save {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger);
    background: #fef2f2;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}
.pd-short-desc {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Meta Grid */
.pd-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.pd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}
.pd-meta-item i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.pd-meta-item small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.pd-meta-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.3;
}

/* Cart Form */
.pd-cart-form {
    margin-bottom: 1.5rem;
}
.pd-qty-wrap {
    margin-bottom: 1rem;
}
.pd-qty-wrap label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.pd-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}
.pd-qty-control input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    padding: 0.6rem 0;
    background: transparent;
    outline: none;
}
.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--light-bg);
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.qty-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.pd-btn-cart {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.pd-btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14,159,140,0.25);
}
.pd-btn-disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}
.pd-btn-disabled:hover {
    background: var(--border-color);
    transform: none;
    box-shadow: none;
}

/* Trust Row */
.pd-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-trust-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Tabs */
.pd-tabs-wrap {
    margin-top: 3.5rem;
}
.pd-tabs-nav {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    border-bottom: 2px solid var(--border-light);
}
.pd-tabs-nav li {
    margin: 0;
}
.pd-tabs-nav button {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.85rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}
.pd-tabs-nav button:hover {
    color: var(--primary);
}
.pd-tabs-nav button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.pd-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.pd-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pd-description {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.8;
    max-width: 720px;
}
.pd-description p {
    margin-bottom: 1rem;
}
.pd-description ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.pd-description li {
    margin-bottom: 0.4rem;
}

/* Related Products */
.pd-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 991.98px) {
    .pd-title { font-size: 1.7rem; }
    .pd-price { font-size: 1.6rem; }
    .pd-gallery-wrap { position: static; }
}
@media (max-width: 575.98px) {
    .pd-title { font-size: 1.35rem; }
    .pd-price { font-size: 1.4rem; }
    .pd-meta-grid { grid-template-columns: 1fr; }
    .pd-tabs-nav { overflow-x: auto; }
    .pd-tabs-nav button { padding: 0.7rem 1rem; white-space: nowrap; }
    .pd-trust { gap: 1rem; }
}

/* ============================================================
   Category Cards — Equal Grid Redesign
   ============================================================ */

.cat-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}
.cat-card-img {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    overflow: hidden;
}
.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.3) 45%, transparent 100%);
    border-radius: 16px;
    transition: background 0.35s ease;
}
.cat-card:hover .cat-card-overlay {
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 55%, transparent 100%);
}
.cat-card-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    width: 100%;
}
.cat-card-content h4 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif;
}
.cat-card-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 260px;
}
.cat-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.cat-card:hover .cat-card-btn {
    background: var(--primary-dark);
    transform: translateX(3px);
}

@media (max-width: 767.98px) {
    .cat-card-img { min-height: 220px; padding: 1.25rem; }
    .cat-card-content h4 { font-size: 1.05rem; }
    .cat-card-content p { font-size: 0.72rem; margin-bottom: 0.75rem; }
}

/* ============================================================
   Mobile Layout Fixes — Cart, Checkout, Nav, Footer
   ============================================================ */

/* Navbar mobile menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        border-top: 1px solid var(--border-light);
        padding: 1rem 0;
        margin-top: 0.5rem;
    }
    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
    }
    .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-collapse .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background: var(--light-bg);
        border-radius: 0;
    }
    .navbar-collapse .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
}

/* Cart page mobile */
@media (max-width: 767.98px) {
    .cart-table thead { display: none; }
    .cart-table tbody tr {
        display: block;
        border: 1px solid var(--border-light);
        border-radius: 0;
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--white);
    }
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }
    .cart-table tbody td:last-child { border-bottom: none; }
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.75rem;
    }
    .cart-table tbody td.ps-4 { padding-left: 0 !important; }
    .cart-table .d-flex.align-items-center.gap-3 {
        flex-direction: row;
        gap: 0.75rem !important;
    }
    .cart-product-name {
        font-size: 0.82rem;
        max-width: 180px;
    }
}

/* Checkout mobile */
@media (max-width: 767.98px) {
    #delivery-map { height: 240px !important; border-radius: 0 !important; }
    .checkout-summary { position: static !important; }
    .checkout-summary .list-unstyled li {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }
    .promo-input-group input,
    .promo-input-group button {
        border-radius: 0 !important;
    }
}

/* Footer mobile */
@media (max-width: 575.98px) {
    .main-footer { padding: 2rem 0 1.5rem; margin-top: 2rem; }
    .main-footer h5 { margin-bottom: 0.75rem; font-size: 0.75rem; }
    .main-footer .row.g-4 > div { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-color); }
    .main-footer .row.g-4 > div:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .main-footer a { font-size: 0.78rem; margin-bottom: 0.3rem; text-decoration: none !important; }
    .footer-social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 0 !important;
    }
    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
        text-align: center;
    }
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
    .footer-brand-text {
        font-size: 0.82rem;
        line-height: 1.6;
        margin-bottom: 1rem !important;
    }
}
