/* ═══════════════════════════════════════════════════
   AMI AMR Support Care Mart — Main Stylesheet
   Design: matches supportcaremart.com
═══════════════════════════════════════════════════ */

:root {
  --primary:       #1a7c3e;
  --primary-dark:  #155f30;
  --primary-light: #e8f5ec;
  --accent:        #e63946;
  --accent-orange: #f4a236;
  --text:          #1a1a2e;
  --text-muted:    #6c757d;
  --border:        #e4e9ef;
  --bg-light:      #f7faf8;
  --card-shadow:   0 2px 16px rgba(0,0,0,.08);
  --radius:        10px;
  --font:          'Hind Siliguri', sans-serif;
}

/* ── Reset & base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body  { font-family: var(--font); color: var(--text); background: #fff; margin: 0; }
a     { color: var(--primary); text-decoration: none; }
img   { max-width: 100%; }

/* Bootstrap overrides */
.btn-primary   { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background-color: var(--primary) !important; }
.border-primary{ border-color: var(--primary) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }
.bg-primary-subtle { background-color: var(--primary-light) !important; }

/* ── Top bar ─────────────────────────────────────── */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: .78rem;
  padding: 5px 0;
}
.topbar a { color: rgba(255,255,255,.85); }

/* ── Header ──────────────────────────────────────── */
.main-header {
  background: #fff;
  border-bottom: 2px solid var(--primary-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  position: sticky; top: 0; z-index: 1000;
}
.brand-logo {
  font-size: 1.25rem; font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -.3px;
}
.brand-logo span { color: var(--accent); }

/* Search */
.search-bar .form-control {
  border-right: 0; border-radius: 8px 0 0 8px;
  border-color: var(--border);
  font-size: .9rem;
}
.search-bar .form-control:focus { border-color: var(--primary); box-shadow: none; }
.search-bar .btn {
  border-radius: 0 8px 8px 0;
  background: var(--primary); border: none; color: #fff;
}

/* Cart badge */
.cart-btn { color: var(--text); padding: .25rem .5rem; font-size: 1.1rem; }
.cart-btn:hover { color: var(--primary); }
.cart-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--accent); color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: .65rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Nav */
.navbar-nav .nav-link { font-weight: 500; color: var(--text) !important; padding: .45rem .75rem; }
.navbar-nav .nav-link:hover { color: var(--primary) !important; }

/* ── Category strip ──────────────────────────────── */
.category-strip { background: #fff; border-bottom: 1px solid var(--border); }
.cat-pill {
  white-space: nowrap; padding: .28rem .9rem; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: .82rem; font-weight: 600; border: 1px solid transparent;
  transition: all .15s;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: #fff; }

/* ── Hero / Banner ───────────────────────────────── */
.banner-img { height: 400px; object-fit: cover; }
.carousel-caption { background: rgba(0,0,0,.48); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.hero-default {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  min-height: 340px; display: flex; align-items: center;
}
@media(max-width:768px) { .banner-img { height: 190px; } }

/* ── Features bar ────────────────────────────────── */
.features-bar { background: var(--primary); }
.feature-item { color: #fff; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .8rem; }
.feature-item i { font-size: 1.3rem; }

/* ── Sections ────────────────────────────────────── */
.section-padding { padding: 3rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--text); }
.section-header h2::before { content:''; display:inline-block; width:4px; height:22px; background: var(--primary); border-radius:4px; margin-right:.5rem; vertical-align:middle; }

/* ── Category cards ──────────────────────────────── */
.cat-card { padding: .7rem .3rem; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--border); transition: all .15s; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow); transform: translateY(-2px); }
.cat-icon-wrap { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto; }
.cat-card-img { width: 100%; height: 100%; object-fit: cover; }

/* ── Product card ────────────────────────────────── */
.product-card { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: all .18s; }
.product-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.13); transform: translateY(-4px); border-color: var(--primary); }
.product-img-wrap { position: relative; overflow: hidden; background: #f8f9fa; aspect-ratio: 1; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-img { transform: scale(1.06); }
.badge-sale { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 9px; border-radius: 4px; }
.badge-featured { position: absolute; top: 8px; right: 8px; background: #7c3aed; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 9px; border-radius: 4px; }
.btn-wishlist { position: absolute; bottom: 8px; right: 8px; background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.btn-wishlist:hover { color: var(--accent); }
.product-body { padding: .85rem; }
.product-title { font-weight: 700; font-size: .88rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.product-title:hover { color: var(--primary); }
.product-desc { font-size: .76rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .3rem 0 0; }
.price-sale { font-weight: 800; color: var(--primary); font-size: 1rem; }
.price-original { font-size: .78rem; color: var(--text-muted); text-decoration: line-through; margin-left: .3rem; }
.btn-add-cart { background: var(--primary); color: #fff; border: none; border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; flex-shrink: 0; }
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ── Info banner ─────────────────────────────────── */
.info-banner { background: linear-gradient(135deg, #7c3aed, #a21caf); }

/* ── Product detail page ─────────────────────────── */
.main-img-wrap { border-radius: 14px; overflow: hidden; background: #f8f9fa; border: 1.5px solid var(--border); }
.main-img-wrap img { width: 100%; object-fit: cover; max-height: 420px; transition: opacity .2s; }
.gallery-thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid var(--border); transition: all .15s; flex-shrink: 0; }
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,124,62,.22); }
.badge-sale-lg { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .88rem; font-weight: 700; padding: 4px 14px; border-radius: 6px; }
.price-block .fs-2 { line-height: 1; }

/* Variant buttons */
.variant-btn { font-size: .84rem; padding: .35rem .8rem; border-radius: 8px; transition: all .15s; }
.variant-btn.active { box-shadow: 0 0 0 3px rgba(26,124,62,.3); }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
.shake { animation: shake .5s; }

/* Qty selector */
.qty-selector { max-width: 120px; border-radius: 8px; overflow: hidden; }
.qty-input { width: 48px; }

/* ── Product HTML description ────────────────────── */
.product-desc-body { line-height: 1.75; color: var(--text); }
.product-desc-body h1 { font-size: 1.8rem; font-weight: 800; margin: 1.5rem 0 .8rem; }
.product-desc-body h2 { font-size: 1.45rem; font-weight: 700; margin: 1.8rem 0 .9rem; color: var(--primary-dark); }
.product-desc-body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.2rem 0 .6rem; }
.product-desc-body p  { margin-bottom: 1rem; }
.product-desc-body ul, .product-desc-body ol { padding-left: 1.6rem; margin-bottom: 1rem; }
.product-desc-body li { margin-bottom: .4rem; }
.product-desc-body img { max-width: 100%; border-radius: 10px; margin: .5rem 0; }
.product-desc-body table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.product-desc-body table th, .product-desc-body table td { padding: .6rem .9rem; border: 1px solid var(--border); text-align: left; }
.product-desc-body table th { background: var(--primary-light); font-weight: 600; }
.product-desc-body blockquote { border-left: 4px solid var(--primary); padding: .75rem 1.25rem; background: var(--primary-light); border-radius: 0 8px 8px 0; margin: 1rem 0; }
.product-desc-body .badge, .product-desc-body .alert { /* inherit bootstrap */ }

/* ── Cart table ──────────────────────────────────── */
.cart-table th { font-size: .8rem; background: #f9fafb; border: none; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.cart-table td { border-color: var(--border); vertical-align: middle; }

/* ── Checkout ────────────────────────────────────── */
.payment-option { border: 2px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; transition: all .15s; }
.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type=radio] { display: none; }
.cursor-pointer { cursor: pointer; }

/* ── Footer ──────────────────────────────────────── */
.main-footer { background: #0f1b14; color: #9ab4a2; }
.footer-title { color: #fff; font-weight: 800; }
.footer-heading { color: #d1e8d8; font-weight: 700; margin-bottom: .9rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .86rem; }
.footer-links a { color: #9ab4a2; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #1e3326; color: #fff; transition: all .15s; }
.social-btn:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom { background: #080f0b; border-top: 1px solid #1e3326; }

/* ── Order success ───────────────────────────────── */
.success-icon { animation: pop .4s; }
@keyframes pop { 0%{transform:scale(0)} 80%{transform:scale(1.15)} 100%{transform:scale(1)} }
.order-number-badge .badge { letter-spacing: .05em; }

/* ── About ───────────────────────────────────────── */
.about-stat { padding: .5rem; }
.feature-box { border: 1.5px solid var(--border); border-radius: 12px; transition: box-shadow .15s; }
.feature-box:hover { box-shadow: var(--card-shadow); }
