/* ===== AJIO COUPON — DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --red-light: #fff0f1;
  --black: #1a1a2e;
  --gray-900: #2d2d2d;
  --gray-700: #555;
  --gray-400: #999;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --green: #2d6a4f;
  --green-light: #d8f3dc;
  --orange: #f4a261;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--gray-900); background: var(--white); line-height: 1.6; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Poppins', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section-tag { display: inline-block; background: var(--red-light); color: var(--red); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 50px; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--black); margin-bottom: 0.5rem; }
.section-sub { color: var(--gray-700); font-size: 0.95rem; font-weight: 300; }
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.8rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600; transition: var(--transition); border: none; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(230,57,70,0.35); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-white { background: var(--white); color: var(--red); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }

.badge { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px; }
.badge-red { background: var(--red); color: white; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }

/* HEADER */
.site-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--red); color: white; text-align: center; padding: 0.4rem 1rem; font-size: 0.78rem; font-weight: 500; }
.header-top a { color: white; text-decoration: underline; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.site-logo .logo-text { font-size: 1.5rem; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.site-logo .logo-text span { color: var(--black); }
.main-nav { display: flex; gap: 0.25rem; align-items: center; }
.main-nav a { padding: 0.5rem 0.9rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--red); background: var(--red-light); }
.nav-cta { background: var(--red) !important; color: white !important; border-radius: 8px !important; }
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; }
.mobile-nav { display: none; background: white; border-top: 1px solid var(--gray-100); padding: 1rem 1.5rem; flex-direction: column; gap: 0.25rem; }
.mobile-nav a { display: block; padding: 0.6rem 0.75rem; border-radius: 6px; font-size: 0.9rem; color: var(--gray-700); font-weight: 500; }
.mobile-nav a:hover { background: var(--red-light); color: var(--red); }
.mobile-nav.open { display: flex; }

/* FOOTER */
.site-footer { background: var(--black); color: rgba(255,255,255,0.75); margin-top: 5rem; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-brand .logo-text { font-size: 1.4rem; font-weight: 800; color: var(--red); margin-bottom: 0.75rem; display: block; }
.footer-brand .logo-text span { color: white; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); color: white; text-decoration: none; }
.social-btn:hover { background: var(--red); }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.83rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.disclaimer { background: rgba(255,255,255,0.04); border-top: 1px solid rgba(255,255,255,0.06); padding: 1rem 0; font-size: 0.72rem; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.6; }

/* COUPON CARD */
.coupon-card { background: var(--white); border-radius: var(--radius); border: 1px solid #eee; overflow: hidden; transition: var(--transition); position: relative; box-shadow: var(--shadow-sm); }
.coupon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red); }
.coupon-card-inner { display: flex; align-items: stretch; }
.coupon-card-left { padding: 1.25rem; flex: 1; }
.coupon-card-right { background: var(--red-light); min-width: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; border-left: 2px dashed #f5c0c4; position: relative; }
.coupon-card-right::before, .coupon-card-right::after { content: ''; position: absolute; width: 20px; height: 20px; background: var(--gray-100); border-radius: 50%; }
.coupon-card-right::before { top: -10px; left: -10px; }
.coupon-card-right::after { bottom: -10px; left: -10px; }
.coupon-store { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 0.4rem; }
.coupon-title { font-size: 0.98rem; font-weight: 600; color: var(--black); margin-bottom: 0.5rem; line-height: 1.4; }
.coupon-desc { font-size: 0.8rem; color: var(--gray-700); margin-bottom: 0.75rem; }
.coupon-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.coupon-expiry { font-size: 0.72rem; color: var(--gray-400); }
.coupon-expiry.expiring { color: #e65100; font-weight: 600; }
.coupon-discount { font-size: 1.6rem; font-weight: 800; color: var(--red); text-align: center; line-height: 1; margin-bottom: 0.25rem; }
.coupon-discount-label { font-size: 0.7rem; color: var(--gray-700); text-align: center; margin-bottom: 1rem; }
.code-box { background: white; border: 1.5px dashed var(--red); border-radius: 6px; padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: var(--red); letter-spacing: 0.08em; cursor: pointer; transition: var(--transition); text-align: center; width: 100%; }
.code-box:hover { background: var(--red); color: white; }
.code-box.copied { background: var(--green); border-color: var(--green); color: white; }
.success-rate { font-size: 0.68rem; color: var(--gray-400); text-align: center; margin-top: 0.4rem; }
.coupon-verified { position: absolute; top: 0.75rem; right: 0.75rem; }
.coupons-list { display: flex; flex-direction: column; gap: 1rem; }

/* PRODUCT CARD */
.product-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid #eee; transition: var(--transition); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-img-wrap { position: relative; background: var(--gray-100); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 4rem; }
.product-discount-tag { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--red); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 4px; }
.product-info { padding: 1rem; }
.product-brand { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 0.25rem; }
.product-name { font-size: 0.88rem; font-weight: 500; color: var(--black); margin-bottom: 0.5rem; line-height: 1.4; }
.product-price-wrap { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.product-price { font-size: 1rem; font-weight: 700; color: var(--black); }
.product-mrp { font-size: 0.8rem; color: var(--gray-400); text-decoration: line-through; }
.product-off { font-size: 0.78rem; font-weight: 600; color: var(--green); }
.product-cta { margin-top: 0.75rem; width: 100%; padding: 0.55rem; background: var(--red); color: white; border: none; border-radius: 6px; font-size: 0.82rem; font-weight: 600; transition: var(--transition); cursor: pointer; }
.product-cta:hover { background: var(--red-dark); }

/* BLOG CARD */
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid #eee; transition: var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 1.25rem; }
.blog-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 0.5rem; display: block; }
.blog-title { font-size: 1rem; font-weight: 600; color: var(--black); margin-bottom: 0.5rem; line-height: 1.5; display: block; }
.blog-title:hover { color: var(--red); }
.blog-excerpt { font-size: 0.82rem; color: var(--gray-700); line-height: 1.6; margin-bottom: 0.75rem; }
.blog-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--gray-400); }

/* GRIDS */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* MISC */
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, #1a1a2e 0%, #c1121f 100%); color: white; padding: 3rem 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; font-size: 1rem; font-weight: 300; }

/* BREADCRUMB */
.breadcrumb { display: flex; gap: 0.4rem; align-items: center; font-size: 0.78rem; color: var(--gray-400); padding: 0.75rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .current { color: var(--gray-700); font-weight: 500; }

/* SEARCH BAR */
.search-bar-wrap { background: white; border-radius: 12px; padding: 0.4rem 0.4rem 0.4rem 1.25rem; display: flex; align-items: center; gap: 0.5rem; box-shadow: var(--shadow-md); max-width: 550px; margin: 0 auto; }
.search-bar-wrap input { border: none; outline: none; flex: 1; font-size: 0.9rem; font-family: 'Poppins', sans-serif; color: var(--gray-900); }
.search-bar-wrap button { background: var(--red); color: white; border: none; padding: 0.6rem 1.4rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }

/* FILTER TABS */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab { padding: 0.45rem 1.1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500; border: 1.5px solid #ddd; background: white; color: var(--gray-700); cursor: pointer; transition: var(--transition); }
.filter-tab:hover, .filter-tab.active { background: var(--red); color: white; border-color: var(--red); }

/* STATS */
.stats-bar { background: var(--red); color: white; padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { padding: 0.5rem; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.8rem; font-weight: 800; display: block; line-height: 1; }
.stat-label { font-size: 0.75rem; opacity: 0.85; margin-top: 0.25rem; }

/* CATEGORY TILES */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat-tile { background: white; border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; border: 1px solid #eee; transition: var(--transition); cursor: pointer; text-decoration: none; display: block; }
.cat-tile:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-icon { font-size: 2.2rem; margin-bottom: 0.75rem; display: block; }
.cat-name { font-size: 0.88rem; font-weight: 600; color: var(--black); margin-bottom: 0.2rem; }
.cat-count { font-size: 0.72rem; color: var(--gray-400); }

/* NEWSLETTER */
.newsletter-section { background: linear-gradient(135deg, var(--black) 0%, #3d0000 100%); color: white; padding: 4rem 0; text-align: center; }
.newsletter-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.newsletter-section p { opacity: 0.75; margin-bottom: 2rem; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.newsletter-form input { flex: 1; padding: 0.9rem 1.25rem; border: none; outline: none; font-size: 0.9rem; font-family: 'Poppins', sans-serif; }
.newsletter-form button { background: var(--red); color: white; border: none; padding: 0.9rem 1.5rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; }

/* HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.how-step { text-align: center; padding: 2rem 1rem; }
.how-num { width: 52px; height: 52px; background: var(--red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 1rem; }
.how-step h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.82rem; color: var(--gray-700); line-height: 1.6; }

/* SIDEBAR */
.sidebar-widget { background: white; border-radius: var(--radius); border: 1px solid #eee; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h3 { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--red-light); }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f5f5f5; font-size: 0.83rem; color: var(--gray-700); transition: var(--transition); }
.sidebar-link:hover { color: var(--red); }
.sidebar-link:last-child { border-bottom: none; }

/* TOAST */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--black); color: white; padding: 0.75rem 1.25rem; border-radius: 8px; font-size: 0.83rem; font-weight: 500; box-shadow: var(--shadow-md); transform: translateX(120%); transition: transform 0.3s ease; min-width: 240px; }
.toast.show { transform: translateX(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .coupon-card-inner { flex-direction: column; }
  .coupon-card-right { border-left: none; border-top: 2px dashed #f5c0c4; min-width: unset; }
  .coupon-card-right::before, .coupon-card-right::after { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
}
