/*
 * Kadambam Store — Premium UI / CRO-optimized styles
 * Typography, color psychology, CTAs, trust signals, micro-interactions.
 * No layout or structure changes; visual and UX only.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&family=Dancing+Script:wght@500;600&display=swap');

:root {
    /* Trust + calm (teal) — credibility, clarity */
    --primary: #1a9b82;
    --primary-dark: #157a66;
    --primary-soft: rgba(26, 155, 130, 0.08);
    --primary-soft-hover: rgba(26, 155, 130, 0.14);
    /* Warmth + desire (taupe/brown) — premium, craft */
    --secondary: #6b5b52;
    --secondary-light: #8d7a6f;
    /* Accent — urgency, action */
    --accent: #c4956a;
    --accent-soft: rgba(196, 149, 106, 0.12);
    /* Neutrals — clean, readable */
    --bg-mint: #f7faf9;
    --bg-card: #ffffff;
    --text-main: #1e2321;
    --text-muted: #5c6562;
    --border-subtle: rgba(0, 0, 0, 0.06);
    /* Shadows — depth, premium feel */
    --card-shadow: 0 4px 20px rgba(26, 155, 130, 0.06);
    --card-shadow-hover: 0 20px 50px rgba(26, 155, 130, 0.12);
    --btn-shadow: 0 4px 14px rgba(26, 155, 130, 0.35);
    --btn-shadow-hover: 0 8px 24px rgba(26, 155, 130, 0.4);
    /* WhatsApp — recognition + urgency */
    --wa-green: #25d366;
    --wa-green-dark: #1da851;
    --wa-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    --wa-shadow-hover: 0 8px 28px rgba(37, 211, 102, 0.45);
    /* Motion */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --radius: 24px;
    --radius-sm: 14px;
    --radius-pill: 9999px;
}

/* ---- Typography: hierarchy & readability ---- */
body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    background-color: var(--bg-mint);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.color-secondary { color: var(--secondary) !important; }
.color-primary { color: var(--primary) !important; }

.script-font {
    font-family: 'Dancing Script', cursive;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.display-3, .display-4, .display-5 {
    letter-spacing: -0.03em;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Nav: clean, trustworthy ---- */
.navbar-premium {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: var(--transition);
    min-height: 150px; /* Desktop: slightly taller for larger logo */
}

.navbar-premium .container {
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

@media (max-width: 768px) {
    .navbar-premium {
        padding: 0.75rem 0;
        min-height: 165px;
    }
    
    .navbar-premium .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.navbar-premium .navbar-brand span {
    transition: var(--transition-fast);
}

/* Logo styling - complete logo with slogan and domain name */
.navbar-premium .navbar-brand {
    max-width: calc(100% - 80px); /* Leave space for menu / toggler */
    overflow: hidden;
}

.navbar-premium .navbar-brand .kadambam-logo {
    height: 140px; /* Desktop: slightly larger */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-fast);
}

@media (max-width: 992px) {
    .navbar-premium .navbar-brand .kadambam-logo {
        height: 115px;
    }
}

@media (max-width: 768px) {
    .navbar-premium .navbar-brand .kadambam-logo {
        height: 138px; /* Mobile/tablet: larger for slogan + domain readability */
    }
}

@media (max-width: 576px) {
    .navbar-premium .navbar-brand {
        max-width: calc(100vw - 110px); /* Extra room for hamburger icon */
        flex-shrink: 1;
    }
    
    .navbar-premium .navbar-brand .kadambam-logo {
        height: 125px; /* Mobile: larger for readability */
    }
}

@media (max-width: 400px) {
    .navbar-premium .navbar-brand {
        max-width: calc(100vw - 90px);
    }
    
    .navbar-premium .navbar-brand .kadambam-logo {
        height: 115px; /* Small mobile: still readable without overflow */
    }
}

.navbar-premium .nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.25rem; /* Noticeably larger for desktop */
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    padding: 0.5rem 1rem !important; /* Better touch targets */
}

@media (max-width: 768px) {
    .navbar-premium .nav-link {
        font-size: 1.1rem; /* Still larger than original on mobile */
        padding: 0.5rem 0.75rem !important;
    }
}

.navbar-premium .nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary-soft);
}

/* ---- Hero: emotional pull ---- */
.header-hero {
    padding: 4.5rem 0 4rem;
}

.header-hero .script-font {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.header-hero .display-3 {
    font-size: clamp(2rem, 5vw, 2.85rem);
    margin-bottom: 1.25rem;
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

/* Trust badges: social proof at a glance */
.badge-mint {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition-fast);
}

.badge-mint:hover {
    background: var(--primary-soft-hover);
}

/* ---- Cards: premium, desirable ---- */
.premium-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background: var(--bg-card);
    position: relative;
}

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

/* Category cards: aspiration */
.category-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(30, 35, 33, 0.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem;
    color: #fff;
}

.category-overlay h3 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.category-overlay p {
    opacity: 0.95;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Product cards: value + desire ---- */
.product-image-container {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: var(--bg-mint);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Price badge: emphasis without clutter */
.product-image-container .badge {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Product card body: clear hierarchy */
.premium-card .p-4 h3,
.premium-card .h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.premium-card .text-truncate {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* "View Details" as soft CTA */
.premium-card .color-primary.text-uppercase {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.95;
    transition: var(--transition-fast);
}

.premium-card:hover .color-primary.text-uppercase {
    opacity: 1;
    color: var(--primary-dark) !important;
}

.letter-spacing-1 { letter-spacing: 0.08em; }

/* ---- Buttons: conversion-focused ---- */
.btn-premium {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.75rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--btn-shadow);
}

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

.btn-premium:active {
    transform: translateY(0);
}

/* WhatsApp CTA: high visibility + urgency */
.btn-whatsapp {
    background: var(--wa-green) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--wa-shadow);
    border: none !important;
    position: relative;
}

.btn-whatsapp:hover {
    background: var(--wa-green-dark) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--wa-shadow-hover);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

.btn-whatsapp i {
    font-size: 1.35rem;
    vertical-align: middle;
}

/* Subtle pulse to draw attention to primary CTA (conversion) */
@keyframes ctaGlow {
    0%, 100% { box-shadow: var(--wa-shadow); }
    50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
}

.btn-whatsapp {
    animation: ctaGlow 3s ease-in-out infinite;
}

.btn-whatsapp:hover {
    animation: none;
}

html {
    scroll-behavior: smooth;
}

/* Price display: anchor value */
.price-tag {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* In-stock badge: reduce anxiety */
.bg-green-soft {
    background: rgba(37, 211, 102, 0.12);
    color: #0f7d3d;
}

/* ---- Section titles ---- */
.section-title-container h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
}

/* ---- Breadcrumbs: clarity ---- */
.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb-item a:hover {
    text-decoration: underline !important;
}

/* ---- Product page: tabs ---- */
.product-info-tabs .nav-pills .nav-link {
    color: var(--text-muted);
    background: var(--bg-card);
    font-weight: 600;
    transition: var(--transition-fast);
}

.product-info-tabs .nav-pills .nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.product-info-tabs .nav-pills .nav-link.active {
    background: var(--primary) !important;
    color: #fff !important;
}

.leading-relaxed {
    line-height: 1.85;
}

/* ---- Thumbnails ---- */
.thumbnail-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 76px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.85;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Footer: trust + clarity ---- */
footer.bg-white {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding: 3rem 0 !important;
}

footer .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
}

footer a.color-primary {
    font-weight: 600;
    transition: var(--transition-fast);
}

footer a.color-primary:hover {
    opacity: 0.85;
}

/* ---- Trust microcopy styling ---- */
.text-muted.small i {
    opacity: 0.9;
}

/* ---- Pagination (Bootstrap override) ---- */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
    color: var(--text-main);
    border-color: var(--border-subtle);
}

.pagination .page-link:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---- Animations: subtle, professional ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ---- Empty states ---- */
.fa-box-open.opacity-20,
.fa-search.opacity-20 {
    color: var(--primary) !important;
}

/* ---- Modal / lightbox ---- */
.modal-content.bg-transparent .modal-header {
    padding: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 0.75rem;
}

/* ---- Mobile-first tweaks ---- */
@media (max-width: 767.98px) {
    .header-hero {
        padding: 3rem 0 2.5rem;
    }
    .premium-card:hover {
        transform: translateY(-4px);
    }
    .btn-whatsapp {
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
    }
}
