/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
    --primary: #0ea5e9;
    /* sky-500 */
    --primary-dark: #0284c7;
    /* sky-600 */
    --primary-light: #e0f2fe;
    /* sky-100 */
    --accent: #db2777;
    /* pink-600 */
    --accent-dark: #be185d;
    /* pink-700 */
    --accent-light: #fce7f3;
    /* pink-100 */
    --dark: #000000;
    --text: #111827;
    /* grey-900 */
    --muted: #374151;
    /* grey-700 */
    --border: #e2e8f0;
    /* slate-200 */
    --surface: #f8fafc;
    /* slate-50 */
    --white: #ffffff;
    --success: #10b981;
    --wa-green: #25d366;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, .08), 0 8px 10px -6px rgba(0, 0, 0, .04);
    --shadow-lg: 0 20px 40px -10px rgba(14, 165, 233, .12);
    --shadow-glow: 0 15px 35px -5px rgba(219, 39, 119, .2);
}

/* ─── CTA SECTION ────────────────────────────────── */
.home-cta {
    background-color: var(--accent-dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.4) 0%, rgba(219, 39, 119, 0) 100%);
    pointer-events: none;
}

.cta-headline {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff;
    letter-spacing: -0.03em;
}

.cta-desc {
    opacity: 0.95;
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    color: #fff;
    line-height: 1.6;
}

.cta-btn {
    font-size: 1.1rem !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem 2.5rem !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ─── BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9375rem;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

a {
    color: inherit;
}

/* ─── TOPBAR ─────────────────────────────────────── */
.topbar {
    background: var(--primary);
    color: rgba(255, 255, 255, .9);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    letter-spacing: 0.01em;
    font-weight: 500;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity .2s;
}

.topbar a:hover {
    opacity: 1;
}

/* ─── NAVBAR ─────────────────────────────────────── */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: var(--shadow-sm);
}

.site-nav .container {
    height: 68px;
}

.navbar-brand-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.navbar-brand-logo .n-cyan {
    color: var(--primary);
}

.navbar-brand-logo .n-mgt {
    color: var(--accent);
}

.navbar-brand-logo .n-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 2px 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.search-wrap {
    position: relative;
}

.search-wrap input {
    width: 240px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--dark);
    transition: all .2s;
    outline: none;
}

.search-wrap input::placeholder {
    color: var(--muted);
}

.search-wrap input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.search-wrap .si {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary-brand {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary-brand:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-brand {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.btn-outline-brand:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--surface);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-wa {
    background: #25d366;
    color: #fff;
    border: 1px solid #25d366;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-wa:hover {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

.btn-wa-sm {
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all .2s ease-in-out;
}

.btn-wa-sm:hover {
    background: #1da851;
}

/* ─── PRODUCT CARD ───────────────────────────────── */
.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
    border-color: var(--border);
}

.product-img-wrap {
    position: relative;
    background: #fff;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.03);
}

.product-img-wrap .img-placeholder {
    font-size: 4rem;
    color: var(--border);
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
}

.stock-badge.in {
    background: #dcfce7;
    color: #15803d;
}

.stock-badge.out {
    background: #fee2e2;
    color: #b91c1c;
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 2;
    background: #fff;
}

.cat-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: block;
}

.product-name::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.product-name:hover {
    color: var(--primary);
}

.product-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.product-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* ─── CATEGORY PILLS ─────────────────────────────── */
.cat-tab {
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 99px;
    text-decoration: none;
    transition: all .2s;
    background: #fff;
    white-space: nowrap;
}

.cat-tab:hover,
.cat-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ─── FLASH MESSAGES ──────────────────────────────── */
.flash-bar {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border-bottom: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
    background: var(--primary);
    color: #fff;
    padding: 5rem 0 0;
    margin-top: 5rem;
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #fff !important;
}

.footer-brand .fc {
    color: #fff;
}

.footer-brand .fm {
    color: #fff;
}

.footer-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 1.2rem;
}

.footer-link {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: all .2s;
}

.footer-link:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, .3);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #fff;
}

.search-wrap {
    display: flex;
    width: 400px;
    position: relative;
}

.search-wrap input {
    flex-grow: 1;
    padding: 0.65rem 1rem 0.65rem 1.25rem;
    border-top-left-radius: 99px;
    border-bottom-left-radius: 99px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    background: var(--surface);
    transition: all .2s;
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.search-wrap button {
    border-top-right-radius: 99px;
    border-bottom-right-radius: 99px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 0 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    margin-left: -1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-wrap button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.form-control:focus {
    box-shadow: 0 0 0 4px var(--primary-light);
    border-color: var(--primary);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all .3s;
}

.footer-social a:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

/* ─── MISC ───────────────────────────────────────── */
.text-primary-brand {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-surface {
    background: var(--surface) !important;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 991.98px) {
    .search-wrap input {
        width: 100%;
    }

    .topbar {
        display: none;
    }

    .site-nav .container {
        height: auto;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}
