/*
Theme Name:   OpsDeals Child
Theme URI:    https://opsdeals.com
Description:  OpsDeals Child Theme for Astra
Author:       OpsDeals
Template:     astra
Version:      1.0.0
Text Domain:  opsdeals-child
*/

/* =========================================
   GLOBAL
========================================= */
:root {
  --ops-red:       #D72323;
  --ops-dark:      #1a1a1a;
  --ops-gray:      #2e2e2e;
  --ops-light:     #f4f4f4;
  --ops-border:    #e0e0e0;
  --ops-green:     #2e7d32;
  --ops-orange:    #e65100;
  --ops-text:      #1a1a1a;
  --ops-muted:     #666666;
  --ops-radius:    8px;
  --ops-shadow:    0 2px 12px rgba(0,0,0,0.10);
  --ops-shadow-hover: 0 6px 24px rgba(0,0,0,0.16);
}

body {
  background: var(--ops-light);
  color: var(--ops-text);
}

a { color: var(--ops-red); }
a:hover { color: #a31b1b; }

/* =========================================
   HERO SECTION
========================================= */
.ops-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 60%, #3a1a1a 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ops-hero::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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ops-hero__eyebrow {
  display: inline-block;
  background: var(--ops-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.ops-hero__title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ops-hero__title span {
  color: var(--ops-red);
}

.ops-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.6;
}

.ops-hero__cta {
  display: inline-block;
  background: var(--ops-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: var(--ops-radius);
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(215,35,35,0.4);
}

.ops-hero__cta:hover {
  background: #b01c1c;
  transform: translateY(-2px);
}

/* =========================================
   SECTION HEADINGS
========================================= */
.ops-section {
  padding: 48px 0;
}

.ops-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-section__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ops-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-section__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--ops-red);
  border-radius: 2px;
}

.ops-section__viewall {
  font-size: 13px;
  font-weight: 600;
  color: var(--ops-red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.ops-section__viewall:hover { gap: 8px; color: var(--ops-red); }

/* =========================================
   DEAL CARDS GRID
========================================= */
.ops-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* =========================================
   DEAL CARD
========================================= */
.ops-card {
  background: #fff;
  border-radius: var(--ops-radius);
  box-shadow: var(--ops-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  border: 1px solid var(--ops-border);
}

.ops-card:hover {
  box-shadow: var(--ops-shadow-hover);
  transform: translateY(-3px);
}

.ops-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  z-index: 2;
  color: #fff;
}

.ops-card__badge--hot        { background: var(--ops-red); }
.ops-card__badge--price-drop { background: var(--ops-green); }
.ops-card__badge--limited    { background: var(--ops-orange); }
.ops-card__badge--new        { background: #1565c0; }
.ops-card__badge--editors    { background: #6a1b9a; }

.ops-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #eee;
  display: block;
}

.ops-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2e2e2e, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 48px;
}

.ops-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-card__store {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ops-muted);
}

.ops-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ops-dark);
  line-height: 1.4;
  margin: 0;
}

.ops-card__title a {
  color: inherit;
  text-decoration: none;
}

.ops-card__title a:hover { color: var(--ops-red); }

.ops-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-card__sale {
  font-size: 22px;
  font-weight: 800;
  color: var(--ops-red);
}

.ops-card__original {
  font-size: 14px;
  color: var(--ops-muted);
  text-decoration: line-through;
}

.ops-card__savings {
  font-size: 12px;
  font-weight: 700;
  color: var(--ops-green);
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 3px;
}

.ops-card__coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8e1;
  border: 1px dashed #f9a825;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
}

.ops-card__coupon-label { color: var(--ops-muted); }
.ops-card__coupon-code  { font-weight: 800; color: var(--ops-dark); letter-spacing: 1px; }

.ops-card__expiry {
  font-size: 11px;
  color: var(--ops-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ops-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--ops-border);
}

.ops-card__btn {
  display: block;
  text-align: center;
  background: var(--ops-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.ops-card__btn:hover { background: #b01c1c; }

/* =========================================
   CATEGORY STRIP
========================================= */
.ops-category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.ops-cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  padding: 14px 20px;
  text-decoration: none !important;
  color: var(--ops-dark);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
  min-width: 90px;
  text-align: center;
}

.ops-cat-pill:hover {
  border-color: var(--ops-red);
  color: var(--ops-red);
  box-shadow: 0 2px 8px rgba(215,35,35,0.12);
}

.ops-cat-pill__icon { font-size: 24px; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .ops-hero { padding: 48px 20px 40px; }
  .ops-deals-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .ops-category-strip { gap: 8px; }
  .ops-cat-pill { padding: 10px 14px; min-width: 72px; font-size: 12px; }
}
