/* ============================================
   ApnaCart - E-Commerce Stylesheet
   ============================================ */

:root {
    --primary:    #ff6b35;
    --primary-dk: #e85520;
    --secondary:  #2c3e50;
    --success:    #27ae60;
    --danger:     #e74c3c;
    --warning:    #f39c12;
    --light-bg:   #f8f9fa;
    --border:     #e0e0e0;
    --text:       #333333;
    --text-muted: #777777;
    --white:      #ffffff;
    --shadow:     0 2px 15px rgba(0,0,0,.08);
    --radius:     8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--light-bg);
    font-size: 15px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary   { background: var(--primary);   color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,.4); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #1a252f; border-color: #1a252f; transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success   { background: var(--success);   color: #fff; border-color: var(--success); }
.btn-success:hover { background: #219a52; border-color: #219a52; }
.btn-danger    { background: var(--danger);    color: #fff; border-color: var(--danger); }
.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-sm  { padding: 7px 14px;  font-size: 13px; }
.btn-full{ width: 100%; justify-content: center; }

/* ---- NAVBAR ---- */
.navbar {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}
.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.nav-logo span { color: var(--primary); }
.nav-search {
    flex: 1;
    display: flex;
    max-width: 500px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.nav-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.nav-search button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    transition: background .2s;
}
.nav-search button:hover { background: var(--primary-dk); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
    color: rgba(255,255,255,.85);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.cart-link {
    position: relative;
    background: var(--primary);
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 14px;
}
.cart-link:hover { background: var(--primary-dk) !important; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 50px 0; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a5c 100%);
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,107,53,.1);
    border-radius: 50%;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 16px; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 17px; opacity: .85; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.hero-stat strong { display: block; font-size: 22px; font-weight: 800; }
.hero-stat span { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }
.hero-img { text-align: center; }
.hero-img img { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-height: 350px; object-fit: cover; }

/* ---- SECTION HEADER ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ---- CATEGORY CARDS ---- */
.categories { background: var(--white); }
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.category-card {
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--radius);
    background: var(--light-bg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s;
}
.category-card:hover { border-color: var(--primary); background: #fff5f1; transform: translateY(-3px); }
.category-icon { font-size: 32px; margin-bottom: 8px; }
.category-card h4 { font-size: 13px; font-weight: 600; color: var(--secondary); }

/* ---- PRODUCT GRID ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .25s;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}
.product-badge.new   { background: var(--success); }
.product-badge.sale  { background: var(--danger); }
.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: all .2s;
    color: var(--text-muted);
}
.product-wishlist:hover { background: var(--primary); color: #fff; }
.product-card-body { padding: 14px; }
.product-category { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-name a:hover { color: var(--primary); }
.stars { color: var(--warning); font-size: 12px; display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars .count { color: var(--text-muted); font-size: 11px; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.price-current { font-size: 17px; font-weight: 700; color: var(--secondary); }
.price-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 12px; font-weight: 700; color: var(--success); }
.product-card .btn { font-size: 13px; padding: 8px 0; width: 100%; justify-content: center; }

/* ---- PRODUCT DETAIL PAGE ---- */
.product-detail { padding: 30px 0 60px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* IMAGE GALLERY + ZOOM */
.gallery-wrap { position: relative; }
.main-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    cursor: crosshair;
    margin-bottom: 12px;
}
.main-image-wrap img#mainImg {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Magnifier Glass */
.magnifier-glass {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    cursor: none;
    display: none;
    pointer-events: none;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    z-index: 10;
}

/* Zoom Result Panel */
.zoom-result {
    display: none;
    position: absolute;
    left: 105%;
    top: 0;
    width: 380px;
    height: 380px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    z-index: 100;
    overflow: hidden;
}
.main-image-wrap:hover .magnifier-glass,
.main-image-wrap:hover .zoom-result { display: block; }

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s;
}
.video-overlay:hover { background: rgba(0,0,0,.5); }
.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    transition: transform .2s;
    padding-left: 4px;
}
.video-overlay:hover .play-btn { transform: scale(1.1); }

.thumb-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}
.thumb-item.active, .thumb-item:hover { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video {
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

/* Product Info */
.product-info { }
.product-info-brand { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-info h1 { font-size: 26px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; line-height: 1.3; }
.product-info .stars { font-size: 15px; gap: 5px; margin-bottom: 14px; }
.product-info .stars .count { font-size: 13px; }
.price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.price-row .price-current { font-size: 28px; font-weight: 800; color: var(--secondary); }
.price-row .price-original { font-size: 18px; }
.price-row .price-discount { font-size: 14px; background: #e8f8ee; color: var(--success); padding: 4px 10px; border-radius: 4px; }
.price-row .emi { font-size: 13px; color: var(--text-muted); }

.stock-row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.in-stock  { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger);  font-weight: 600; }

.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.qty-label { font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 10px; }
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--light-bg);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    color: var(--secondary);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
    width: 56px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.btn-add-cart { background: var(--primary); color: #fff; }
.btn-buy-now  { background: var(--secondary); color: #fff; }

.features-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.features-list li { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.features-list li i { color: var(--success); }

.delivery-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.delivery-row { display: flex; align-items: center; gap: 10px; }
.delivery-row i { color: var(--success); width: 16px; }

/* ---- VIDEO MODAL ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-content { position: relative; max-width: 800px; width: 95%; }
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.modal-content video { width: 100%; border-radius: var(--radius); display: block; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9998; align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; }

/* ---- REVIEWS ---- */
.reviews-section { margin-top: 50px; }
.reviews-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.rating-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    align-items: center;
}
.big-rating { text-align: center; }
.big-rating .num { font-size: 56px; font-weight: 800; color: var(--secondary); line-height: 1; }
.big-rating .stars { justify-content: center; font-size: 18px; margin: 6px 0; }
.big-rating .total { font-size: 13px; color: var(--text-muted); }
.rating-bars { display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rating-bar-row span { width: 40px; }
.bar-track { flex: 1; background: var(--border); border-radius: 10px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--warning); border-radius: 10px; }

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.review-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: 14px; }
.reviewer-date { font-size: 12px; color: var(--text-muted); }
.verified-badge { font-size: 11px; color: var(--success); display: flex; align-items: center; gap: 3px; }
.review-text { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.review-helpful { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.helpful-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: all .2s; }
.helpful-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Write Review Form */
.write-review { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 20px; box-shadow: var(--shadow); }
.write-review h4 { margin-bottom: 16px; font-size: 16px; }
.star-select { display: flex; gap: 6px; margin-bottom: 14px; font-size: 24px; }
.star-select i { color: var(--border); cursor: pointer; transition: color .15s; }
.star-select i.active { color: var(--warning); }

/* ---- RECOMMENDED ---- */
.recommended-section { margin-top: 50px; }

/* ---- CART PAGE ---- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
.cart-items { background: var(--white); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); overflow: hidden; }
.cart-head { padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 90px; height: 90px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-name a:hover { color: var(--primary); }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; gap: 14px; }
.cart-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 4px; transition: opacity .2s; }
.cart-remove:hover { opacity: .7; }
.cart-subtotal { font-size: 15px; font-weight: 700; color: var(--secondary); white-space: nowrap; }

.cart-summary { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-row.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.summary-row.savings { color: var(--success); }
.cod-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 64px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-cart h3 { font-size: 20px; margin-bottom: 8px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 20px; }

/* ---- CHECKOUT PAGE ---- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
.checkout-form-wrap { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.checkout-form-wrap h2 { font-size: 20px; margin-bottom: 24px; font-weight: 700; }
.form-section { margin-bottom: 28px; }
.form-section h3 { font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--light-bg); display: flex; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    color: var(--text);
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group .error { display: none; font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-group.has-error input { border-color: var(--danger); }
.form-group.has-error .error { display: block; }
.req { color: var(--danger); }

.payment-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all .2s;
}
.payment-option.selected { border-color: var(--primary); background: #fff5f1; }
.payment-option label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.payment-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-option .cod-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; margin-left: 30px; }

.order-summary-box { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.order-summary-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.order-item { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.order-item-img { width: 54px; height: 54px; border-radius: 6px; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-name { font-size: 13px; font-weight: 600; }
.order-item-qty { font-size: 12px; color: var(--text-muted); }
.order-item-price { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ---- SUCCESS PAGE ---- */
.success-page { min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.success-card { background: var(--white); border-radius: 12px; padding: 50px 40px; text-align: center; max-width: 540px; box-shadow: 0 4px 30px rgba(0,0,0,.1); }
.success-icon { width: 80px; height: 80px; background: #e8f8ee; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 36px; color: var(--success); }
.success-card h2 { font-size: 26px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.success-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.order-meta { background: var(--light-bg); border-radius: var(--radius); padding: 20px; margin: 20px 0; text-align: left; }
.order-meta-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.order-meta-row:last-child { margin-bottom: 0; }
.order-meta-row strong { color: var(--secondary); }
.step-tracker { display: flex; justify-content: space-between; margin: 24px 0; position: relative; }
.step-tracker::before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: var(--border); }
.step { text-align: center; flex: 1; position: relative; z-index: 1; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 16px; color: var(--text-muted); }
.step.active .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step-label { font-size: 11px; color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer { background: var(--secondary); color: rgba(255,255,255,.8); margin-top: 60px; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nav-logo { margin-bottom: 12px; display: block; }
.footer-desc { font-size: 13px; line-height: 1.7; opacity: .75; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s; }
.social-link:hover { background: var(--primary); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; text-align: center; font-size: 13px; opacity: .6; }

/* ---- TOAST NOTIFICATION ---- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--secondary);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight .3s ease;
    max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

/* ---- UTILS ---- */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.fw-bold { font-weight: 700; }

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-img { display: none; }
    .hero h1 { font-size: 32px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-layout { grid-template-columns: 1fr; }
    .zoom-result { display: none !important; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-search { display: none; }
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 26px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .action-btns { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-subtotal { display: none; }
    .features-list { grid-template-columns: 1fr; }
}

/* ---- SIZE SELECTION ---- */
.size-selection {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.size-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: block;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.size-option {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1.4;
}

.size-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255,107,53,0.2);
}

.size-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255,107,53,0.35);
}
.size-option.selected::after {
    content: '✓';
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--success);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.size-option.selected:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
}

.size-stock-low {
    display: block;
    font-size: 10px;
    color: #f39c12;
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-stock-out {
    display: block;
    font-size: 10px;
    color: var(--danger);
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-details {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--white);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    margin-top: 8px;
}

/* ---- PAGE BANNER (Interior Pages) ---- */
.page-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a5c 100%);
    padding: 26px 0;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(255,107,53,.12);
    border-radius: 50%;
    pointer-events: none;
}
.page-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.page-banner h1 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.page-banner h1 i { color: var(--primary); }
.page-banner .breadcrumb {
    color: rgba(255,255,255,.65);
    margin-bottom: 0;
    font-size: 13px;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,.65); }
.page-banner .breadcrumb a:hover { color: var(--primary); }
.page-banner .breadcrumb .sep { color: rgba(255,255,255,.3); }
.page-banner .breadcrumb span:last-child { color: rgba(255,255,255,.9); }
.page-banner-meta { font-size: 14px; color: rgba(255,255,255,.75); white-space: nowrap; }

/* ---- CHECKOUT STEPS BAR ---- */
.checkout-steps {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 64px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.checkout-steps-inner { display: flex; align-items: center; font-size: 13px; }
.cstep { display: flex; align-items: center; gap: 5px; }
.cstep.done   { color: var(--success); font-weight: 600; }
.cstep.active { color: var(--primary); font-weight: 700; }
.cstep.pending { color: var(--text-muted); }
.cstep-sep { color: var(--border); margin: 0 12px; font-size: 11px; letter-spacing: 1px; }

/* ---- CATEGORY CARD ICON ANIMATION ---- */
.category-icon { transition: transform .25s ease; display: block; }
.category-card:hover .category-icon { transform: scale(1.25) rotate(-8deg); }

/* ---- PRODUCT CARD BORDER HIGHLIGHT ---- */
.product-card { border: 2px solid transparent; transition: all .25s, border-color .25s; }
.product-card:hover { border-color: rgba(255,107,53,.25); }

/* ---- FOCUS RING ---- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- CART ITEM HOVER ---- */
.cart-item { transition: background .2s; }
.cart-item:hover { background: #fafafa; }

/* ---- SIZE SELECTION BORDER ACCENT ---- */
.size-selection { border-left: 3px solid var(--primary); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: #c8c8c8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- RESPONSIVE PAGE BANNER ---- */
@media (max-width: 640px) {
    .page-banner { padding: 18px 0; }
    .page-banner h1 { font-size: 18px; }
    .page-banner-meta { display: none; }
}
