/* =========================================================
   SareeBazaar Deals – Main Stylesheet
   Bootstrap 5.3 + Custom theme (maroon / saffron / gold)
   ========================================================= */

:root {
  --maroon:      #8B1A4A;
  --maroon-dark: #5e1032;
  --saffron:     #FF6B35;
  --gold:        #D4A017;
  --gold-light:  #FFF3CD;
  --cream:       #FFF9F5;
  --text-dark:   #1a1a2e;
  --border:      #f0dde6;
  --deal-green:  #198754;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
}

h1,h2,h3,.font-display {
  font-family: 'Playfair Display', serif;
}

/* ── Disclosure bar ──────────────────────────────────────── */
.disclosure-bar {
  background: var(--maroon-dark);
  color: #f8d7e8;
  font-size: .8rem;
}
.disclosure-bar a { color: #ffb3d1; text-decoration: underline; }

/* ── Navbar ──────────────────────────────────────────────── */
#mainNavbar {
  background: linear-gradient(135deg, var(--maroon) 0%, #c0386e 100%);
  box-shadow: 0 2px 20px rgba(139,26,74,.3);
  padding: .75rem 0;
}
#mainNavbar .navbar-brand { color: #fff; font-weight: 800; font-size: 1.35rem; }
#mainNavbar .navbar-brand:hover { color: #ffe4ef; }
.brand-emoji { font-size: 1.4rem; }
.brand-text  { font-family: 'Playfair Display', serif; letter-spacing: -.3px; }
#mainNavbar .nav-link { color: rgba(255,255,255,.85); font-weight: 600; border-radius: 8px; padding: .4rem .85rem !important; transition: all .2s; }
#mainNavbar .nav-link:hover, #mainNavbar .nav-link.active { color: #fff; background: rgba(255,255,255,.15); }
.btn-amz { background: #FF9900; color: #111 !important; font-weight: 700; border-radius: 8px; padding: .45rem 1.1rem; font-size: .88rem; transition: all .2s; border: none; }
.btn-amz:hover { background: #e68a00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,153,0,.35); }
#mainNavbar .navbar-toggler { border-color: rgba(255,255,255,.3); }
#mainNavbar .navbar-toggler-icon { filter: invert(1); }

/* ── Hero banner ─────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--maroon) 0%, #c0386e 50%, #e85d8e 100%);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-section h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.2; }
.hero-section .lead { color: rgba(255,255,255,.85); }
.hero-badge { background: var(--gold); color: #111; font-weight: 700; padding: .35rem .9rem; border-radius: 20px; font-size: .8rem; display: inline-block; margin-bottom: 1rem; }
.hero-stats { background: rgba(255,255,255,.12); border-radius: 16px; padding: 1rem 1.5rem; backdrop-filter: blur(8px); }
.hero-stats .stat-val { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stats .stat-lbl { font-size: .75rem; color: rgba(255,255,255,.75); }

/* ── Product grid ────────────────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--maroon);
  position: relative;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--saffron));
  border-radius: 2px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139,26,74,.15);
  border-color: #e8aec5;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f9f0f4;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg,#fce4f0,#fff3f9);
}

.discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--deal-green), #14a044);
  color: #fff; font-weight: 800;
  padding: .3rem .6rem; border-radius: 8px;
  font-size: .8rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(25,135,84,.3);
}
.hot-deal-badge {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #dc3545, #c01a2a);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: .25rem .5rem; border-radius: 6px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.7;} }

.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-title {
  font-size: .9rem; font-weight: 700; line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .5rem;
}
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--maroon); }
.price-original { font-size: .85rem; color: #9e9e9e; text-decoration: line-through; margin-left: .4rem; }
.savings-text { font-size: .78rem; color: var(--deal-green); font-weight: 700; }

.star-rating { color: #f5a623; font-size: .8rem; }
.review-count { color: #999; font-size: .75rem; margin-left: .25rem; }

.btn-buy {
  background: linear-gradient(135deg, var(--maroon), #c0386e);
  color: #fff; border: none; border-radius: 10px;
  padding: .55rem 1rem; font-weight: 700; font-size: .88rem;
  width: 100%; transition: all .2s; margin-top: auto;
}
.btn-buy:hover {
  background: linear-gradient(135deg, var(--maroon-dark), #a02558);
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139,26,74,.3);
}
.btn-buy i { font-size: .8rem; }

.free-ship-badge { font-size: .72rem; color: var(--deal-green); font-weight: 600; }

/* ── Loading skeleton ────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:8px; }
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }
.skeleton-img { aspect-ratio:3/4; }
.skeleton-text { height:14px; margin-bottom:8px; }
.skeleton-text.w-75{width:75%;} .skeleton-text.w-50{width:50%;} .skeleton-text.w-90{width:90%;}

/* ── Pagination ──────────────────────────────────────────── */
.pagination-wrap .page-link {
  color: var(--maroon); border-color: var(--border);
  border-radius: 8px !important; margin: 0 2px;
  font-weight: 600;
}
.pagination-wrap .page-link:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.pagination-wrap .page-item.active .page-link { background: var(--maroon); border-color: var(--maroon); }
.pagination-wrap .page-item.disabled .page-link { opacity: .4; }

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.filter-bar .form-select, .filter-bar .form-control {
  border-color: var(--border); border-radius: 10px; font-size: .88rem;
}
.filter-bar .form-select:focus,.filter-bar .form-control:focus { border-color:var(--maroon); box-shadow:0 0 0 3px rgba(139,26,74,.12); }
.btn-filter { background:var(--maroon); color:#fff; border:none; border-radius:10px; font-weight:600; padding:.45rem 1.2rem; }
.btn-filter:hover { background:var(--maroon-dark); color:#fff; }

/* ── Blog cards ──────────────────────────────────────────── */
.blog-card { border:1px solid var(--border); border-radius:16px; overflow:hidden; background:#fff; transition:transform .25s,box-shadow .25s; height:100%; }
.blog-card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(139,26,74,.12); }
.blog-card img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.blog-card .card-body { padding:1.25rem; }
.blog-card .card-title { font-family:'Playfair Display',serif; font-size:1.05rem; font-weight:700; color:var(--text-dark); }
.blog-tag { background:#fce4f0; color:var(--maroon); font-size:.72rem; font-weight:700; padding:.2rem .55rem; border-radius:20px; display:inline-block; }
.blog-meta { font-size:.78rem; color:#999; }
.read-more { color:var(--maroon); font-weight:700; font-size:.85rem; text-decoration:none; }
.read-more:hover { color:var(--saffron); }

/* ── Policy pages ────────────────────────────────────────── */
.policy-page { max-width:820px; margin:0 auto; }
.policy-page h1 { font-size:2rem; color:var(--maroon); margin-bottom:.5rem; }
.policy-page h2 { font-size:1.3rem; color:var(--maroon); margin-top:2rem; margin-bottom:.75rem; }
.policy-page .last-updated { font-size:.85rem; color:#999; margin-bottom:2rem; }
.policy-page p,.policy-page li { line-height:1.8; color:#444; }

/* ── No-results state ────────────────────────────────────── */
.empty-state { text-align:center; padding:4rem 2rem; }
.empty-state .empty-icon { font-size:5rem; display:block; margin-bottom:1rem; }
.empty-state h3 { color:var(--maroon); margin-bottom:.5rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background:linear-gradient(135deg,#1a0a12 0%,#2d0f20 100%); color:#c0a0b0; }
.footer-brand { color:#fff; display:flex; align-items:center; }
.footer-heading { color:#fff; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:.8rem; margin-bottom:1rem; }
.footer-links { margin:0; }
.footer-links li { margin-bottom:.4rem; }
.footer-links a { color:#b090a0; text-decoration:none; font-size:.88rem; transition:color .2s; }
.footer-links a:hover { color:#fff; }
.footer-divider { border-color:#3d1a2a; margin:1.25rem 0; }
.disclosure-block { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); color:#b090a0; }

/* ── Alerts / notices ────────────────────────────────────── */
.alert-deals { background:linear-gradient(135deg,var(--gold-light),#fff9e8); border:1px solid var(--gold); border-radius:12px; }

/* ── Scroll-to-top ───────────────────────────────────────── */
#scrollTop { position:fixed; bottom:24px; right:24px; background:var(--maroon); color:#fff; border:none; width:44px; height:44px; border-radius:50%; font-size:1.1rem; display:none; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 16px rgba(139,26,74,.4); z-index:9999; transition:opacity .2s; }
#scrollTop.show { display:flex; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:768px) {
  .hero-section { padding:2rem 0 1.5rem; }
  .hero-section h1 { font-size:1.6rem; }
  .hero-stats { padding:.75rem 1rem; }
  .product-card { border-radius:12px; }
  .section-title { font-size:1.4rem; }
}
