/* =========================
   Reset & basics
   ========================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  color: #0f172a;
  background: #fff;
  line-height: 1.5;
}

a { color: #0ea5e9; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* =========================
   Layout
   ========================= */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.grid2 { display: grid; gap: 20px; }
@media (min-width: 700px){ .grid2 { grid-template-columns: repeat(2, 1fr); } }

/* =========================
   Hero
   ========================= */
.hero { padding: 60px 0; background: #f0f9ff; }
.hero h1 { font-size: 2rem; margin: 0 0 16px; }
.hero .sub { font-size: 1.1rem; margin-bottom: 20px; }

/* =========================
   Sections
   ========================= */
.section { padding: 60px 0; }
.section.alt { background: #f9fafb; }
.section h2 { font-size: 1.6rem; margin-bottom: 12px; }
.section .sub { color: #475569; margin-bottom: 20px; }

/* =========================
   Cards (generic)
   ========================= */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px){
  .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.card .sub { font-size: 0.95rem; color: #475569; }
.card .price { font-weight: bold; margin: 6px 0; }
.card .badge {
  display: inline-block; padding: 2px 6px; background: #fef08a;
  border-radius: 4px; font-size: 0.8rem; margin: 6px 0;
}

/* Images inside cards (products, deals, blog) */
.blog-thumb img,
.product .image.product-img img,
.card .image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
@media (min-width: 900px){
  .blog-thumb img,
  .product .image.product-img img,
  .card .image img { height: 260px; }
}

/* =========================
   Nav
   ========================= */
.nav { background: #0ea5e9; color: #fff; }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 20px;
}
.nav a { color: #fff; margin-left: 16px; }
.nav a:hover { text-decoration: underline; }

/* Brand lockup */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; line-height: 1.2; }
.brand-logo { height: 1.2em; width: auto; display: block; }
@media (min-width: 900px){ .brand { font-size: 22px; } }
.brand--sm { font-size: 18px; }
.brand--xs { font-size: 16px; }

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  border: 1px solid #0ea5e9; color: #0ea5e9; background: #fff; font-weight: 500;
}
.btn.primary { background: #0ea5e9; color: #fff; }
.btn.primary:hover { background: #0284c7; border-color: #0284c7; }

/* =========================
   Forms
   ========================= */
.form { display: grid; gap: 16px; }
.form label { display: block; font-size: 0.9rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem;
}
.note { padding: 10px; background: #ecfdf5; color: #065f46; border-radius: 6px; }
.err { padding: 10px; background: #fee2e2; color: #b91c1c; border-radius: 6px; }

/* =========================
   Footer
   ========================= */
.footer { background: #0f172a; color: #e2e8f0; padding: 30px 0; font-size: 0.9rem; }
.footer h3 { margin-top: 0; }
.footer .right { text-align: right; }
.footer .social a { color: #7dd3fc; display: inline-flex; }
.footer .social a:hover { color: #bae6fd; }

/* =========================
   Deals grid (3-up like promos)
   ========================= */

   /* 
.deals-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 1000px){ .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .deals-grid { grid-template-columns: 1fr; } }

.deals-grid .card { display: flex; flex-direction: column; }
.deals-grid .card .image { border-radius: 10px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 4/3; }
.deals-grid .card .image img { width: 100%; height: 100%; object-fit: cover; }
.deals-grid .card h3 { margin: 8px 0 6px; }
.deals-grid .card .sub { margin: 0 0 8px; }
.deals-grid .card h3,
.deals-grid .card p,
.deals-grid .card .badge,
.deals-grid .card .muted { margin-bottom: 8px; }
.deals-grid .card p:last-child { margin-top: auto; }*/

/* DEALS (Promos) – no-crop layout */
.deals-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:1rem;
  margin-top:1.2rem;
}

.deal-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 14px 26px rgba(15,23,42,0.06);
  overflow:hidden;
}

.deal-row{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:0;
  align-items:stretch;
}

@media (max-width: 720px){
  .deal-row{ grid-template-columns: 1fr; }
}

.deal-media{
  background:#f8fafc;
  border-right:1px solid rgba(15,23,42,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  min-height:160px;
}

@media (max-width: 720px){
  .deal-media{
    border-right:none;
    border-bottom:1px solid rgba(15,23,42,.06);
    min-height:180px;
  }
}

.deal-media img{
  width:100%;
  height:100%;
  max-height:180px;
  object-fit:contain;     /* KEY: no cropping */
  display:block;
}

.deal-body{
  padding:1rem 1.05rem 1.05rem;
}

.deal-title{
  margin:0 0 .35rem;
  font-size:1.05rem;
  letter-spacing:-.01em;
  color:var(--ink);
}

.deal-desc{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.6;
  max-width: 90ch;
}

.deal-meta{
  margin-top:.75rem;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color:#64748b;
  font-size:.86rem;
}

.deal-badge{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(14,165,233,.22);
  background:rgba(14,165,233,.10);
  color:#0369a1;
  font-weight:900;
  font-size:.78rem;
}

.deal-actions{
  margin-top:.9rem;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}


/* =========================
   Blog thumbs
   ========================= */
.blog-thumb { position: relative; background:#f1f5f9; }
.blog-thumb img { display:block; width:100%; height:auto; }
.blog-thumb.is-video .play-badge{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  background:rgba(0,0,0,.55); color:#fff; border-radius:999px;
  padding:8px 12px; font-weight:700; line-height:1; font-size:14px;
}

/* Images & video inside generic card content */
.card img, .card video { max-width:100%; height:auto; display:block; border-radius:8px; }

/* =========================
   Thankyou.php sticky footer (scoped)
   ========================= */
body > header, body > section { flex-shrink: 0; }
body > section { flex: 1; }
footer.footer { flex-shrink: 0; margin-top: auto; }

/* =========================
   YouTube — “Shorts” grid as promo-style cards (4-up)
   ========================= */
/* === YouTube Shorts grid (smaller, always vertical cards) === */
#yt-shorts-grid,
#yt-shorts-grid.yt-shorts-grid,
.yt-shorts-grid {
  display: grid !important;
  /* 5 across on big screens → smaller cards */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

/* 4 across on laptops/desktops */
@media (max-width: 1280px) {
  #yt-shorts-grid,
  #yt-shorts-grid.yt-shorts-grid,
  .yt-shorts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 3 across on tablets */
@media (max-width: 1024px) {
  #yt-shorts-grid,
  #yt-shorts-grid.yt-shorts-grid,
  .yt-shorts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 2 across on large phones */
@media (max-width: 768px) {
  #yt-shorts-grid,
  #yt-shorts-grid.yt-shorts-grid,
  .yt-shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 across on very small screens */
@media (max-width: 480px) {
  #yt-shorts-grid,
  #yt-shorts-grid.yt-shorts-grid,
  .yt-shorts-grid {
    grid-template-columns: 1fr;
  }
}

/* Card look (match promos) */
#yt-shorts-grid .yt-card,
.yt-shorts-grid .yt-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Keep Shorts vertical 9:16 */
#yt-shorts-grid .yt-card .thumb,
.yt-shorts-grid .yt-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;      /* always vertical */
  background: #f1f5f9;
}
#yt-shorts-grid .yt-card .thumb img,
.yt-shorts-grid .yt-card .thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Tighten text to make the whole card feel smaller */
#yt-shorts-grid .yt-card .meta,
.yt-shorts-grid .yt-card .meta {
  padding: 8px 10px;
}
#yt-shorts-grid .yt-card .meta .title,
.yt-shorts-grid .yt-card .meta .title {
  font-weight: 600;
  font-size: 13px;      /* slightly smaller */
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card,
.newsletter-card {
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:1.5rem 1.6rem;
  box-shadow:0 12px 26px rgba(15,23,42,0.06);
}

.contact-card h3,
.newsletter-card h3 {
  margin-top:0;
  font-size:1.1rem;
  margin-bottom:0.4rem;
}

.contact-card p,
.newsletter-card p {
  font-size:0.9rem;
  color:#4b5563;
  margin-bottom:0.9rem;
}

.contact-row {
  display:flex;
  flex-direction:column;
  gap:0.25rem;
  margin-top:0.75rem;
}

.contact-label {
  font-size:0.8rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#6b7280;
}

.contact-link {
  font-size:0.95rem;
  color:#0f172a;
  text-decoration:none;
  font-weight:500;
}

.contact-link:hover {
  text-decoration:underline;
}

/* Newsletter form */
.newsletter-form {
  margin-top:0.5rem;
}

.newsletter-fields {
  display:flex;
  gap:0.6rem;
  flex-wrap:wrap;
}

.newsletter-fields input[type="email"] {
  flex:1 1 180px;
  min-width:0;
  padding:0.55rem 0.7rem;
  border-radius:999px;
  border:1px solid #cbd5e1;
  font-size:0.9rem;
}

.newsletter-fields button.btn.primary {
  border-radius:999px;
  padding:0.55rem 1.1rem;
  font-size:0.9rem;
}

.newsletter-note {
  font-size:0.8rem;
  color:#6b7280;
  margin-top:0.4rem;
}
