/*
Theme Name: HamaraDeals
Theme URI: https://hamaradeals.com
Author: HamaraDeals
Author URI: https://hamaradeals.com
Description: Custom deals & coupons theme for HamaraDeals.com — India's best deals, coupons & discounts aggregator.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamaradeals
*/

:root {
  --hd-bg: #f0f9ff;
  --hd-text: #0c4a6e;
  --hd-accent: #0ea5e9;
  --hd-accent-dark: #0284c7;
  --hd-rose: #f43f5e;
  --hd-amber-bg: #fff8e1;
  --hd-amber-text: #d97706;
  --hd-slate: #64748b;
  --hd-emerald: #059669;
  --hd-border: #bae6fd;
}
* { box-sizing: border-box; }
body {
  margin:0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--hd-bg);
  color: var(--hd-text);
}
a { text-decoration:none; color: inherit; }
img { max-width:100%; display:block; }

/* Topbar */
.hd-topbar {
  background: var(--hd-text);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.hd-topbar a { color: rgba(255,255,255,.85); margin-left:16px; font-weight:600;}
.hd-topbar a:hover{color:#fff;}

/* Header */
.hd-header { background:#fff; border-bottom:1px solid var(--hd-border); }
.hd-header-inner {
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; gap:20px;
  padding:14px 24px;
}
.hd-logo { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.hd-logo-mark {
  width:40px;height:40px;border-radius:12px;
  background:linear-gradient(135deg,var(--hd-accent),var(--hd-text));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:15px;
}
.hd-logo-name { font-size:22px; font-weight:900; color:var(--hd-text); }
.hd-logo-name span { color: var(--hd-accent); }
.hd-search { flex:1; display:flex; max-width:520px; }
.hd-search input {
  flex:1; border:1.5px solid var(--hd-border); border-radius:10px 0 0 10px;
  padding:10px 14px; font-size:14px; outline:none;
}
.hd-search button {
  border:none; border-radius:0 10px 10px 0; padding:10px 20px;
  background:linear-gradient(135deg,var(--hd-accent),var(--hd-accent-dark));
  color:#fff; font-weight:700; cursor:pointer;
}
.hd-deals-btn {
  margin-left:auto; background:linear-gradient(135deg,var(--hd-accent),var(--hd-accent-dark));
  color:#fff; padding:10px 18px; border-radius:8px; font-weight:700; font-size:14px; white-space:nowrap;
}

.hd-subnav {
  max-width:1200px;margin:0 auto; display:flex; gap:22px; padding:12px 24px;
  font-weight:700; font-size:14px; overflow-x:auto;
}
.hd-subnav a { color: var(--hd-slate); }
.hd-subnav a.active, .hd-subnav a:hover { color: var(--hd-accent); }

/* Filters row */
.hd-filters { max-width:1200px;margin:0 auto; padding:18px 24px 0; }
.hd-filter-group { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.hd-pill {
  display:inline-flex; align-items:center; gap:6px;
  background:#fff; border:1.25px solid var(--hd-border); border-radius:10px;
  padding:8px 16px; font-weight:700; font-size:13px; color:var(--hd-slate);
}
.hd-pill.active { background:var(--hd-text); color:#fff; border-color:var(--hd-text); }
.hd-pill .dot { width:8px;height:8px;border-radius:50%; display:inline-block; }
.hd-pill .count {
  background:var(--hd-accent); color:#fff; border-radius:50px; font-size:11px;
  padding:1px 7px; margin-left:2px;
}
.hd-sort { margin-left:auto; }
.hd-sort select {
  border:1.25px solid var(--hd-border); border-radius:8px; padding:8px 12px;
  font-weight:600; font-size:13px; color:var(--hd-text); background:#fff;
}

/* Section heading */
.hd-section { max-width:1200px; margin:0 auto; padding:24px; }
.hd-section-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.hd-section-head h2 { font-size:20px; font-weight:900; margin:0; display:flex; align-items:center; gap:8px;}
.hd-section-head a { color:var(--hd-accent); font-weight:700; font-size:14px; }

/* Deal grid & card */
.hd-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:20px;
}
.hd-card {
  background:#fff; border:1.25px solid var(--hd-border); border-radius:12px;
  overflow:hidden; display:flex; flex-direction:column;
}
.hd-card-media { position:relative; aspect-ratio:1/1; background:#f8fafc; }
.hd-card-media img { width:100%;height:100%;object-fit:cover; }
.hd-card-noimg { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:48px;}
.hd-badge-discount {
  position:absolute; top:10px; left:10px; background:var(--hd-rose); color:#fff;
  font-size:11px; font-weight:800; border-radius:50px; padding:3px 9px; z-index:2;
}
.hd-badge-store {
  position:absolute; top:10px; right:10px; background:var(--hd-amber-bg); color:var(--hd-amber-text);
  font-size:10px; font-weight:800; border-radius:5px; padding:3px 7px; z-index:2; letter-spacing:.03em;
}
.hd-badge-store.store-flipkart { background:#eff6ff; color:#2874f0; }
.hd-badge-store.store-myntra { background:#ffe4ea; color:#e11d48; }
.hd-badge-store.store-ajio { background:#fde8ef; color:#d4145a; }
.hd-badge-store.store-meesho { background:#f3e8ff; color:#9333ea; }
.hd-badge-store.store-croma { background:#e6fffa; color:#0d9488; }

.hd-card-body { padding:14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.hd-card-title {
  font-size:14px; font-weight:700; color:var(--hd-text); line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.hd-card-meta { font-size:12px; color:var(--hd-slate); }
.hd-card-prices { display:flex; align-items:baseline; gap:8px; }
.price-now { font-size:22px; font-weight:900; color:var(--hd-accent); }
.price-was { font-size:12px; color:var(--hd-slate); text-decoration:line-through; }
.price-save { font-size:11px; color:var(--hd-emerald); font-weight:700; }
.hd-card-actions { margin-top:auto; display:flex; align-items:center; gap:10px; padding-top:8px; }
.btn-get-deal {
  flex:1; text-align:center; background:linear-gradient(135deg,var(--hd-accent),var(--hd-accent-dark));
  color:#fff; font-weight:700; padding:10px; border-radius:8px; font-size:13px;
}
.hd-wishlist {
  background:none; border:1.25px solid var(--hd-border); border-radius:8px; width:38px;height:38px;
  cursor:pointer; font-size:16px; color:var(--hd-rose);
}

.hd-empty { padding:40px 24px; text-align:center; color:var(--hd-slate); }

.hd-post-deal-btn {
  background:var(--hd-text); color:#fff; padding:9px 16px; border-radius:8px; font-weight:700; font-size:13px;
}

/* Footer */
.hd-footer { background:var(--hd-text); color:rgba(255,255,255,.85); margin-top:40px; }
.hd-footer-inner { max-width:1200px;margin:0 auto; padding:48px 24px 24px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; }
.hd-footer h4 { color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.05em; margin:0 0 14px; }
.hd-footer ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; font-size:14px; }
.hd-footer ul a { color:rgba(255,255,255,.75); }
.hd-footer ul a:hover { color:#fff; }
.hd-footer-brand .hd-logo-name { color:#fff; }
.hd-footer-brand p { font-size:13px; color:rgba(255,255,255,.6); line-height:1.6; max-width:280px; }
.hd-footer-bottom {
  border-top:1px solid rgba(255,255,255,.15); padding:18px 24px 28px; max-width:1200px;margin:0 auto;
  font-size:12px; color:rgba(255,255,255,.55); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.hd-disclosure { max-width:1200px;margin:0 auto; padding:0 24px 18px; font-size:12px; color:rgba(255,255,255,.55); }

/* Page content (About/Contact/etc) */
.hd-page { max-width:760px;margin:0 auto; padding:40px 24px; line-height:1.7; }
.hd-page h1 { font-size:30px; font-weight:900; margin-bottom:18px; }

/* Single deal */
.hd-single { max-width:900px;margin:0 auto; padding:32px 24px; display:grid; grid-template-columns:360px 1fr; gap:32px; }
.hd-single-media { border:1.25px solid var(--hd-border); border-radius:14px; overflow:hidden; position:relative; background:#fff;}
.hd-single-media img{width:100%;}
.hd-single-body h1 { font-size:22px; font-weight:800; margin:0 0 10px; }
.hd-single-prices { display:flex; align-items:baseline; gap:12px; margin:12px 0; }
.hd-single-prices .price-now{font-size:32px;}
.hd-single-cta { display:inline-block; margin-top:10px; }
.hd-single-content { margin-top:20px; line-height:1.7; }

@media (max-width: 800px) {
  .hd-header-inner { flex-wrap:wrap; }
  .hd-search { order:3; width:100%; max-width:none; }
  .hd-footer-inner { grid-template-columns:1fr 1fr; }
  .hd-single { grid-template-columns:1fr; }
}
@media (max-width: 480px) {
  .hd-footer-inner { grid-template-columns:1fr; }
}
