/*
 * Shree Agencies – Storefront Stylesheet
 * Modern, clean design with premium feel
 */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    --primary:        #1b5050;
    --primary-dark:   #143c3c;
    --primary-light:  #e8f4f4;
    --secondary:      #fcc824;
    --accent:         #fcc824;
    --success:        #22c55e;
    --danger:         #ef4444;
    --text-dark:      #1e293b;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;
    --bg-light:       #f8fafc;
    --bg-card:        #ffffff;
    --border:         #e2e8f0;
    --border-light:   #f1f5f9;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
    --radius-sm:      8px;
    --radius:         12px;
    --radius-lg:      18px;
    --font-head:      'Plus Jakarta Sans', sans-serif;
    --font-body:      'Inter', sans-serif;
    --transition:     all 0.22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-dark);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Bootstrap overrides ─────────────────────────────────────── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: var(--radius-sm);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(27,80,80,.35);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27,80,80,.25);
}
.btn-outline-secondary { border-radius: var(--radius-sm); font-weight: 500; }
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow);
}
.navbar-brand img.logo {
    height: 46px;
    width: auto;
    border-radius: 8px;
}
.nav-link {
    font-weight: 500;
    font-size: .92rem;
    color: var(--text-dark);
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.page-title {
    background: linear-gradient(135deg, var(--primary) 0%, #2a7a7a 100%);
    padding: 1.5rem 0;
}
.page-title h1 { color: #fff; font-size: 1.4rem; margin-bottom: .25rem; }
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: rgba(255,255,255,.55); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Skeleton Loaders ────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton-img, .skeleton-line, .skeleton-item {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}
.skeleton-img { width: 100%; height: 180px; border-radius: var(--radius) var(--radius) 0 0; }
.skeleton-line { display: block; }
.skeleton-item { height: 44px; border-radius: 0; }

/* ── Product Cards ───────────────────────────────────────────── */
.product-card {
    border-radius: var(--radius) !important;
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
    border: 1px solid var(--border-light) !important;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border) !important;
}
.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}
.product-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.product-card:hover .product-img { transform: scale(1.06); }

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
}

/* Veg/non-veg dot indicator */
.veg-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.veg-badge.veg   { border: 1.5px solid var(--success); }
.veg-badge.non-veg { border: 1.5px solid var(--danger); }
.veg-badge .dot  {
    width: 10px; height: 10px; border-radius: 50%;
}
.veg-badge.veg .dot   { background: var(--success); }
.veg-badge.non-veg .dot { background: var(--danger); }

.product-name-link { text-decoration: none; color: inherit; }
.product-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: .15rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name-link:hover .product-name { color: var(--primary); }

.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-final {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: var(--primary);
}
.price-original {
    font-size: .8rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: .55rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid rgba(27,80,80,.25);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-cart:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27,80,80,.25);
    transform: translateY(-1px);
}
.btn-add-cart:disabled { opacity: .6; cursor: not-allowed; }
.btn-add-cart.added {
    background: var(--success) !important;
    color: #fff !important;
    border-color: var(--success) !important;
}

/* ── Category Sidebar ────────────────────────────────────────── */
.cat-list { display: flex; flex-direction: column; }
.cat-btn {
    display: flex;
    align-items: center;
    padding: .7rem 1.1rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    border-left: 3px solid transparent;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
}
.cat-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: rgba(27,80,80,.4);
}
.cat-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--primary);
}
.cat-count {
    margin-left: auto;
    font-size: .75rem;
    background: var(--border-light);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.cat-btn.active .cat-count {
    background: rgba(27,80,80,.12);
    color: var(--primary);
}

/* ── Search Bar ──────────────────────────────────────────────── */
.search-wrap .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-color: var(--border);
    padding: .6rem 1rem;
    font-size: .9rem;
    box-shadow: none;
    transition: var(--transition);
}
.search-wrap .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,80,80,.12);
}
.search-wrap .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state i {
    font-size: 3rem;
    color: var(--border);
    display: block;
    text-align: center;
}

/* ── Cart Table ──────────────────────────────────────────────── */
.cart-section .table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.cart-section .table td { vertical-align: middle; }

/* ── Product Detail ──────────────────────────────────────────── */
.product-detail-img {
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .25rem .5rem;
    width: fit-content;
}
.qty-control button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}
.qty-control button:hover { background: var(--primary-light); color: var(--primary); }
.qty-control input { width: 42px; text-align: center; border: none; font-weight: 700; font-size: 1rem; }
.qty-control input:focus { outline: none; }

/* ── Order Summary Cards ─────────────────────────────────────── */
.summary-card { border-radius: var(--radius) !important; border-color: var(--border-light) !important; }
.summary-card .card-header { background: none; border-bottom: 1px solid var(--border-light); }

/* ── Footer ──────────────────────────────────────────────────── */
footer h5, footer h6 { color: #fff; font-weight: 700; }
footer .text-muted { color: #94a3b8 !important; }
footer a.text-muted:hover { color: #fff !important; }

/* ── Section heading ─────────────────────────────────────────── */
.section-title {
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 48px; height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Cart badge ──────────────────────────────────────────────── */
#cartCount {
    min-width: 18px;
    height: 18px;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Dropdown ────────────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    padding: .5rem .85rem;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.modal-header  { border-bottom: 1px solid var(--border-light); padding: 1.25rem 1.5rem .75rem; }
.modal-body    { padding: 1rem 1.5rem 1.25rem; }
.modal-footer  { padding: .75rem 1.5rem 1.25rem; }
.form-control, .form-select {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    padding: .55rem .85rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,80,80,.12);
}

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); font-size: .9rem; }

/* ── Checkout Page ───────────────────────────────────────────── */
.checkout-card { border-radius: var(--radius) !important; border-color: var(--border-light) !important; }
.payment-option {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ── Hero Section (Home) ─────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #1b5050 0%, #2a7a7a 60%, #fcc824 100%);
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(252,200,36,.2) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.hero-cover {
    position: absolute; inset: 0;
    object-fit: cover; width: 100%; height: 100%;
    opacity: .12;
    mix-blend-mode: luminosity;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-subtitle {
    color: rgba(255,255,255,.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.9);
    font-size: .88rem;
    font-weight: 500;
}
.hero-meta-item i { font-size: 1.1rem; color: var(--accent); }
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    padding: .8rem 1.8rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transition: var(--transition);
    border: none;
    text-decoration: none;
}
.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    background: #ffe04a;
    color: var(--primary);
}
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: .8rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255,255,255,.5);
    background: transparent;
    text-decoration: none;
    transition: var(--transition);
}
.hero-cta-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.8);
    color: #fff;
}

/* ── Feature Cards (Home) ────────────────────────────────────── */
.feature-card {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    transition: var(--transition);
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; }
.feature-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* ── Sticky navbar scroll effect ─────────────────────────────── */
@media (max-width: 768px) {
    .hero-title  { font-size: 1.9rem; }
    .hero-subtitle { font-size: .95rem; }
    .product-img { height: 155px; }
    .hero-section { min-height: 420px; }
}

/* ── Pagination ──────────────────────────────────────────────── */
.page-link {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border);
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
}
.page-link:hover  { background: var(--primary-light); color: var(--primary); border-color: transparent; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Utilities ───────────────────────────────────────────────── */
.rounded-xl  { border-radius: var(--radius-lg) !important; }
.shadow-card { box-shadow: var(--shadow) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.bg-primary-soft { background: var(--primary-light) !important; }
.text-balance { text-wrap: balance; }
