/*
Theme Name: Couponzy
Theme URI: https://couponzy.shop/
Author: Couponzy
Description: Custom coupon affiliate theme for Couponzy. Designed to work with the Couponzy Core plugin.
Version: 1.0.0
Text Domain: couponzy
*/
:root{
  --cz-primary:#111827;
  --cz-accent:#6d5dfc;
  --cz-bg:#f8fafc;
  --cz-card:#ffffff;
  --cz-text:#111827;
  --cz-muted:#6b7280;
  --cz-border:#e5e7eb;
  --cz-success:#15803d;
  --cz-radius:18px;
  --cz-shadow:0 10px 30px rgba(17,24,39,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cz-bg);color:var(--cz-text);font-family:Tahoma,Arial,sans-serif;direction:rtl}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.cz-container{width:min(1180px,calc(100% - 32px));margin:auto}
.cz-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--cz-border)}
.cz-header-inner{display:flex;align-items:center;gap:28px;min-height:74px}
.cz-brand{font-size:28px;font-weight:800;letter-spacing:-.8px;color:var(--cz-accent)}
.cz-nav{display:flex;gap:20px;font-size:14px;color:#374151}
.cz-nav a:hover{color:var(--cz-accent)}
.cz-header-search{margin-inline-start:auto;min-width:300px}
.cz-search{width:100%;border:1px solid var(--cz-border);background:#fff;border-radius:14px;padding:12px 16px;font-size:15px;outline:none}
.cz-search:focus{border-color:var(--cz-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--cz-accent) 14%, transparent)}
.cz-hero{padding:54px 0 28px}
.cz-hero-box{background:linear-gradient(135deg,color-mix(in srgb,var(--cz-accent) 12%, #fff),#fff);border:1px solid color-mix(in srgb,var(--cz-accent) 18%, var(--cz-border));border-radius:28px;padding:48px 28px;text-align:center}
.cz-hero h1{margin:0 0 12px;font-size:clamp(28px,4vw,46px);line-height:1.2}
.cz-hero p{margin:0 auto 24px;color:var(--cz-muted);max-width:700px;font-size:17px}
.cz-hero .cz-search{max-width:680px;padding:15px 18px}
.cz-section{padding:28px 0}
.cz-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.cz-section h2{font-size:25px;margin:0}
.cz-muted{color:var(--cz-muted)}
.cz-link{color:var(--cz-accent);font-weight:700}
.cz-store-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.cz-store-card,.cz-coupon-card,.cz-content-card{background:var(--cz-card);border:1px solid var(--cz-border);border-radius:var(--cz-radius);box-shadow:var(--cz-shadow)}
.cz-store-card{padding:16px;text-align:center;transition:.2s ease}
.cz-store-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--cz-accent) 35%, var(--cz-border))}
.cz-store-logo{width:72px;height:72px;border-radius:16px;border:1px solid var(--cz-border);background:#fff;object-fit:contain;padding:8px;margin:auto}
.cz-store-logo-fallback{display:grid;place-items:center;font-weight:800;font-size:22px;background:#f3f4f6}
.cz-store-name{margin-top:10px;font-weight:700;font-size:14px}
.cz-coupon-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.cz-coupon-card{padding:18px}
.cz-coupon-row{display:flex;gap:16px;align-items:flex-start}
.cz-coupon-main{flex:1;min-width:0}
.cz-coupon-title{font-size:19px;font-weight:800;margin:0 0 6px}
.cz-coupon-desc{color:var(--cz-muted);font-size:14px;line-height:1.7;margin:0}
.cz-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.cz-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;background:color-mix(in srgb,var(--cz-accent) 10%, #fff);color:var(--cz-accent);font-weight:700}
.cz-verified{margin-top:10px;color:var(--cz-success);font-size:13px;font-weight:700}
.cz-code-wrap{display:flex;gap:8px;margin-top:16px}
.cz-code{flex:1;border:1px dashed #9ca3af;background:#fafafa;border-radius:12px;padding:11px;text-align:center;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:1px}
.cz-btn{border:0;border-radius:12px;background:var(--cz-accent);color:#fff;padding:11px 16px;font-weight:800;cursor:pointer}
.cz-btn:hover{filter:brightness(.96)}
.cz-btn-secondary{background:#111827}
.cz-copy-note{min-height:20px;color:var(--cz-success);font-size:12px;margin-top:7px}
.cz-category-list{display:flex;gap:10px;flex-wrap:wrap}
.cz-category{background:#fff;border:1px solid var(--cz-border);border-radius:999px;padding:10px 16px;font-size:14px}
.cz-store-hero{padding:36px 0 18px}
.cz-store-hero-inner{display:flex;gap:20px;align-items:center;background:#fff;border:1px solid var(--cz-border);border-radius:24px;padding:22px}
.cz-store-hero h1{margin:0 0 8px;font-size:30px}
.cz-featured-offer{border:2px solid var(--cz-accent);padding:24px}
.cz-offer-layout{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:center}
.cz-offer-code{font-size:24px;padding:15px}
.cz-content-card{padding:22px;line-height:1.9}
.cz-footer{margin-top:50px;border-top:1px solid var(--cz-border);background:#fff}
.cz-footer-inner{padding:32px 0;color:var(--cz-muted);font-size:14px}
.cz-empty{padding:28px;border:1px dashed var(--cz-border);border-radius:16px;background:#fff;color:var(--cz-muted);text-align:center}
.cz-admin-hint{font-size:12px;color:var(--cz-muted);margin-top:8px}
@media(max-width:900px){
  .cz-header-inner{flex-wrap:wrap;padding:12px 0}
  .cz-nav{order:3;width:100%;overflow:auto;padding-bottom:4px}
  .cz-header-search{min-width:0;flex:1}
  .cz-store-grid{grid-template-columns:repeat(3,1fr)}
  .cz-coupon-grid{grid-template-columns:1fr}
  .cz-offer-layout{grid-template-columns:1fr}
}
@media(max-width:560px){
  .cz-container{width:min(100% - 20px,1180px)}
  .cz-header-search{width:100%;flex-basis:100%;order:2}
  .cz-brand{font-size:24px}
  .cz-hero{padding-top:24px}
  .cz-hero-box{padding:32px 18px}
  .cz-store-grid{grid-template-columns:repeat(3,1fr);gap:10px}
  .cz-store-card{padding:10px}
  .cz-store-logo{width:58px;height:58px}
  .cz-coupon-row{gap:12px}
  .cz-code-wrap{flex-direction:column}
  .cz-store-hero-inner{align-items:flex-start}
  .cz-store-hero h1{font-size:24px}
}
/* Home banners size */
.cz-home-banners .cz-container {
    max-width: 1200px;
}

.cz-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cz-home-banner img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

@media (max-width: 768px) {
    .cz-banner-grid {
        grid-template-columns: 1fr;
    }
}