/* =========================================================
   JAMNA ELECTRIC — Premium e-commerce theme
   Mobile-first, modern, professional
   ========================================================= */

:root {
    --primary: #0f172a;
    --primary-dark: #020617;
    --accent: #facc15;
    --accent-dark: #eab308;
    --highlight: #ef4444;
    --success: #10b981;
    --info: #2563eb;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --border: #e5e7eb;
    --soft: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

main { flex: 1; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== TOP STRIP ========== */
.top-strip {
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 0.4px;
}
.top-strip span { color: var(--accent); font-weight: 600; }

/* ========== HEADER ========== */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}
.brand-mark {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 12px;
    display: grid; place-items: center;
    color: var(--primary);
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}
.brand-text small {
    display: block;
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
    display: none;
}
.header-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--soft);
    transition: var(--transition);
}
.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.header-search::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.55;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-action {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.header-action:hover {
    background: var(--soft);
    color: var(--primary);
}
.cart-badge {
    background: var(--highlight);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    position: absolute;
    top: 4px;
    right: 4px;
}

.menu-toggle {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 1.2rem;
}

/* ========== NAV ========== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
}
.main-nav.open { display: block; }
.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.main-nav li a {
    display: block;
    padding: 12px 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--soft);
    transition: var(--transition);
}
.main-nav li a:hover, .main-nav li a.active {
    background: var(--soft);
    color: var(--primary);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-accent {
    background: var(--accent);
    color: var(--primary);
}
.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-ghost {
    background: var(--soft);
    color: var(--text);
}
.btn-ghost:hover { background: var(--border); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.18) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 4rem;
    position: relative;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(250, 204, 21, 0.15);
    color: var(--accent);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 1.8rem;
    max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.6rem;
}
.hero-stats div { text-align: left; }
.hero-stats strong {
    display: block;
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 800;
}
.hero-stats span { font-size: 0.8rem; opacity: 0.8; }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-visual img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}
.hero-visual img:hover { transform: rotate(0); }
.hero-float {
    position: absolute;
    background: #fff;
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}
.hero-float-1 {
    top: 12%; left: -2%;
    color: var(--success);
}
.hero-float-2 {
    bottom: 10%; right: -2%;
    animation-delay: 1.5s;
}
.hero-float .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========== SECTION HEAD ========== */
.section {
    padding: 3rem 0;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.section-head p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 4px;
}
.section-head a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.section-head a:hover { color: var(--info); }

/* ========== CATEGORY GRID ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.category-card .ico {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--soft), #fff);
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    transition: var(--transition);
}
.category-card:hover .ico {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transform: scale(1.05);
}
.category-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}
.category-card span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--soft);
    overflow: hidden;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.07); }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--highlight);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.product-badge.bestseller { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--primary); }
.product-badge.deal { background: var(--highlight); }
.product-badge.stock { background: #f97316; }

.product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-brand {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}
.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.45em;
}
.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--success);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
    align-self: flex-start;
}
.product-rating .star { font-size: 0.7rem; }
.product-rating-count {
    color: var(--muted);
    font-size: 0.74rem;
    margin-left: 6px;
    font-weight: 500;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.product-price .current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}
.product-price .mrp {
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: line-through;
}
.product-price .save {
    font-size: 0.78rem;
    color: var(--success);
    font-weight: 700;
}
.product-stock {
    font-size: 0.74rem;
    color: var(--highlight);
    font-weight: 600;
    margin-top: auto;
    padding-top: 8px;
}

/* ========== BANNER STRIP ========== */
.feature-strip {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.feature-item {
    display: flex;
    gap: 12px;
    align-items: center;
}
.feature-item .ico {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--soft);
    display: grid; place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.feature-item h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.feature-item span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ========== PRODUCT LISTING ========== */
.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.listing-toolbar {
    background: #fff;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}
.listing-toolbar .count {
    font-size: 0.9rem;
    color: var(--muted);
}
.listing-toolbar .count strong { color: var(--primary); }
.listing-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--soft);
    cursor: pointer;
    font-weight: 500;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.filter-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text);
}
.filter-pill:hover {
    border-color: var(--primary);
}
.filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== PRODUCT DETAIL PAGE ========== */
.breadcrumb {
    font-size: 0.84rem;
    color: var(--muted);
    padding: 1rem 0;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.gallery-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumbs button {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
    background: #fff;
    padding: 0;
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover {
    border-color: var(--primary);
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}
.detail-info .brand-line {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.detail-rating .badge {
    background: var(--success);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}
.detail-rating .reviews {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    border-right: 1px solid var(--border);
    padding-right: 12px;
}
.detail-rating .views {
    color: var(--highlight);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.detail-rating .live-dot {
    width: 8px; height: 8px;
    background: var(--highlight);
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.detail-price .current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.detail-price .mrp {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
}
.detail-price .discount {
    background: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}
.detail-savings {
    color: var(--success);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.detail-tax {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 1.4rem;
}

.stock-line {
    background: #fef2f2;
    color: var(--highlight);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fecaca;
}

.qty-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.4rem;
}
.qty-block label {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-control button {
    width: 38px; height: 38px;
    background: var(--soft);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    height: 38px;
    font-weight: 600;
    background: #fff;
    color: var(--primary);
}
.qty-control input:focus { outline: none; }

.detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 1.6rem;
}

.feature-list {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1.4rem;
}
.feature-list h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.feature-list ul { list-style: none; }
.feature-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.9rem;
    color: var(--text);
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}

.policy-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}
.policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.policy-item .ico { font-size: 1.5rem; }
.policy-item h6 {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
}
.policy-item span {
    font-size: 0.74rem;
    color: var(--muted);
    display: block;
}

.product-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.product-description h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.product-description p {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== CART PAGE ========== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
}
.cart-items {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--soft);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.35;
}
.cart-item-brand {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}
.cart-item-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cart-item-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}
.cart-item-mrp {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.85rem;
}
.cart-item-discount {
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cart-item-remove {
    color: var(--highlight);
    font-size: 0.85rem;
    font-weight: 600;
    background: none;
    padding: 4px 0;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-summary {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.4rem;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.cart-summary h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.92rem;
}
.summary-row.savings { color: var(--success); font-weight: 600; }
.summary-row.total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    padding: 14px 0;
    border-top: 1px dashed var(--border);
    margin-top: 6px;
    border-bottom: none;
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}
.cart-empty h2 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.4rem;
}
.cart-empty p {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

/* ========== CHECKOUT ========== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
}
.checkout-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.4rem;
}
.checkout-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-card h3::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.form-group label .req { color: var(--highlight); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: var(--transition);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.form-group textarea {
    resize: vertical;
    min-height: 90px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-error {
    color: var(--highlight);
    font-size: 0.82rem;
    margin-top: 4px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1.2rem;
    border: 2px solid var(--success);
    border-radius: var(--radius);
    background: #f0fdf4;
}
.payment-option .check {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}
.payment-option h5 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}
.payment-option p {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}
.cod-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--soft);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.order-mini {
    background: var(--soft);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 1rem;
}
.order-mini-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.85rem;
}
.order-mini-row:last-child { border-bottom: none; }
.order-mini-row img {
    width: 40px; height: 40px;
    border-radius: 6px;
    object-fit: cover;
}
.order-mini-row .name {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}
.order-mini-row .qty {
    color: var(--muted);
    font-size: 0.78rem;
}
.order-mini-row .price {
    font-weight: 700;
    color: var(--primary);
}

/* ========== ORDER SUCCESS ========== */
.success-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}
.success-icon {
    width: 96px;
    height: 96px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.4rem;
    font-size: 3rem;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.success-wrap h1 {
    color: var(--primary);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 8px;
}
.success-wrap > p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}
.success-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.6rem;
    text-align: left;
    margin-bottom: 1.4rem;
}
.success-card .order-id {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    padding: 1rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.4rem;
    text-align: center;
}
.success-card .order-id span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.75;
    font-weight: 600;
}
.success-card .order-id strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.92rem;
}
.success-detail-row.heading {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    padding-bottom: 10px;
}
.success-detail-row span:first-child { color: var(--muted); }

/* ========== CONTACT / ABOUT ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary), #1e293b);
    color: #fff;
    padding: 3rem 0 2.4rem;
    text-align: center;
}
.page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 8px;
}
.page-header p {
    opacity: 0.85;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 2.4rem 0;
}
.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: var(--transition);
}
.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.info-card .ico {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius);
    display: grid; place-items: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}
.info-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.info-card p, .info-card a {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.6;
}
.info-card a:hover { color: var(--info); }

.about-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.4rem;
    margin-top: 1.4rem;
}
.about-content h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}
.about-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.6rem;
}
.value-item {
    padding: 1rem;
    background: var(--soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}
.value-item h5 {
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 700;
}
.value-item p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--primary);
    color: #cbd5e1;
    padding: 3rem 0 1.4rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h5 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.footer-col p, .footer-col a {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.8;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-brand p {
    margin: 12px 0;
    opacity: 0.85;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.4rem;
    text-align: center;
    font-size: 0.84rem;
    opacity: 0.75;
}
.footer-bottom strong { color: var(--accent); }

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.payment-icons span {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ========== RECENT ORDER POPUP ========== */
.recent-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 200;
    max-width: 320px;
    border: 1px solid var(--border);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.recent-popup.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.recent-popup img {
    width: 44px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.recent-popup .text {
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
}
.recent-popup .text strong { color: var(--primary); }
.recent-popup .text span {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 2px;
}
.recent-popup .close-btn {
    color: var(--muted);
    font-size: 1rem;
    padding: 4px;
    line-height: 1;
}

/* ========== ALERT ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .feature-strip { grid-template-columns: repeat(4, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-strip { grid-template-columns: repeat(4, 1fr); }
    .detail-actions { grid-template-columns: 1fr 1fr; }
    .cart-item { grid-template-columns: 110px 1fr; gap: 1rem; padding: 1.2rem; }
}

@media (min-width: 768px) {
    .header-search { display: block; }
    .menu-toggle { display: none; }
    .main-nav { display: block; border-bottom: none; background: transparent; }
    .main-nav ul { flex-direction: row; padding: 0; gap: 4px; }
    .main-nav li a {
        padding: 8px 14px;
        border-bottom: none;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
    }
    .main-nav-wrap {
        background: #fff;
        border-bottom: 1px solid var(--border);
    }
    .main-nav-wrap .container { padding: 6px 1.5rem; }
    .hero-inner {
        grid-template-columns: 1.1fr 1fr;
        padding: 4rem 0 5rem;
    }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.4rem; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .product-detail { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .cart-layout { grid-template-columns: 1.6fr 1fr; }
    .checkout-layout { grid-template-columns: 1.4fr 1fr; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .product-name { font-size: 0.95rem; }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .product-info { padding: 14px; }
    .product-name { font-size: 1rem; }
    .product-price .current { font-size: 1.15rem; }
    .about-content { padding: 2.4rem; }
    .info-grid { grid-template-columns: repeat(3, 1fr); }
    .value-grid { grid-template-columns: repeat(3, 1fr); }
}
