/*
Theme Name: Saudi Codes
Theme URI: https://saudicoodes.com
Author: Saudi Codes
Description: قالب عربي سريع لمنصة سعودي كودز.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: saudi-codes
*/
:root{--green:#087a55;--green-dark:#07533e;--green-soft:#eaf8f2;--gold:#c7962d;--ink:#17211d;--muted:#66736d;--line:#dfe8e3;--bg:#f7faf8;--white:#fff;--radius:18px;--shadow:0 12px 35px rgba(7,83,62,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;direction:rtl;background:var(--bg);color:var(--ink);font-family:"Tahoma","Arial",sans-serif;line-height:1.7}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input{font:inherit}.c{width:min(1180px,calc(100% - 32px));margin-inline:auto}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;z-index:9999;top:10px;right:10px;background:#fff;padding:10px 16px;border-radius:8px}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.header-row{height:76px;display:grid;grid-template-columns:250px minmax(260px,600px) 1fr;align-items:center;gap:32px}.brand{display:flex;align-items:center;gap:11px}.custom-logo{display:block;max-height:48px;width:auto}.brand-mark{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:var(--green);color:#fff;font-size:23px;font-weight:900}.brand-copy{display:flex;flex-direction:column;line-height:1.25}.brand-copy strong{font-size:21px;color:var(--green-dark)}.brand-copy small{font-size:11px;color:var(--muted);margin-top:3px}.search-form{display:flex;width:100%;height:48px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.2s}.search-form:focus-within{border-color:var(--green);box-shadow:0 0 0 4px rgba(8,122,85,.1)}.search-form input{min-width:0;flex:1;border:0;outline:0;padding:0 17px;background:transparent;color:var(--ink)}.search-form button{border:0;background:var(--green);color:#fff;min-width:52px;padding:0 16px;cursor:pointer;font-weight:800}.search-form button span{font-size:22px}.search-form button b{display:none}.menu-toggle{display:none}.primary-nav{background:#fff;border-top:1px solid #f1f4f2}.nav-row{height:48px;display:flex;align-items:center;gap:30px}.nav-row a{height:48px;display:flex;align-items:center;font-size:14px;font-weight:800;color:#35423c;border-bottom:3px solid transparent}.nav-row a:hover,.nav-row a:focus{color:var(--green);border-color:var(--green)}
.hero{background:linear-gradient(180deg,#eef9f4 0,#f7faf8 100%);border-bottom:1px solid var(--line)}.hero-inner{min-height:390px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:54px 0}.eyebrow{display:inline-flex;color:var(--green);background:var(--green-soft);border:1px solid #cceade;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:900}.hero h1{max-width:760px;font-size:clamp(34px,5vw,56px);line-height:1.2;margin:15px 0 12px;letter-spacing:-1.5px}.hero p{max-width:650px;color:var(--muted);font-size:18px;margin:0 0 25px}.hero-search{width:min(700px,100%)}.hero-search .search-form{height:62px;border-radius:17px;box-shadow:var(--shadow)}.hero-search .search-form button{min-width:100px}.hero-search .search-form button span{display:none}.hero-search .search-form button b{display:inline}.trust-row{display:flex;gap:22px;flex-wrap:wrap;justify-content:center;margin-top:19px;color:#4f6259;font-size:13px}.trust-row span::first-letter{color:var(--green)}
.home-sections{padding:10px 0 60px}.home-section{padding:54px 0}.home-section+.home-section{border-top:1px solid var(--line)}.soft-section{margin-inline:-24px;padding-inline:24px;background:#f0f7f3;border-radius:26px;border:1px solid #e0eee7!important}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:23px}.section-head span{font-size:12px;color:var(--green);font-weight:800}.section-head h2{font-size:28px;line-height:1.3;margin:4px 0 0}.section-head>a{color:var(--green);font-size:14px;font-weight:900}.store-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.store-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 12px;text-align:center;display:flex;align-items:center;flex-direction:column;transition:.2s}.store-card:hover{transform:translateY(-3px);border-color:#afd9c7;box-shadow:var(--shadow)}.store-avatar{width:58px;height:58px;border-radius:17px;background:var(--green-soft);color:var(--green-dark);display:grid;place-items:center;font-size:23px;font-weight:900;margin-bottom:10px}.store-avatar.large{width:86px;height:86px;border-radius:24px;font-size:36px;flex:0 0 auto;margin:0}.store-card strong{font-size:14px}.store-card small{font-size:11px;color:var(--muted);margin-top:3px}
.coupon-list{display:grid;gap:13px}.coupon-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:17px;display:grid;grid-template-columns:68px minmax(0,1fr) 180px;align-items:center;gap:18px;box-shadow:0 4px 14px rgba(18,44,34,.03)}.coupon-card:hover{border-color:#add8c5}.coupon-logo{width:68px;height:68px;border-radius:15px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;overflow:hidden}.coupon-logo img{width:100%;height:100%;object-fit:contain;padding:7px}.coupon-logo span{font-size:25px;font-weight:900;color:var(--green)}.coupon-labels{display:flex;align-items:center;gap:8px}.type-badge{font-size:11px;font-weight:900;background:var(--green);color:#fff;border-radius:999px;padding:3px 9px}.verified{font-size:11px;color:var(--green);font-weight:800}.coupon-info h2,.coupon-info h3{font-size:17px;line-height:1.45;margin:7px 0 3px}.coupon-info h2 a:hover,.coupon-info h3 a:hover{color:var(--green)}.coupon-info p{margin:0;color:var(--muted);font-size:12px}.coupon-action{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.coupon-action code{width:100%;height:39px;display:grid;place-items:center;border:1px dashed #8dcab1;border-radius:10px;background:var(--green-soft);color:var(--green-dark);font:900 17px Arial;letter-spacing:1px}.coupon-action button,.btn-primary{border:0;border-radius:10px;background:var(--green);color:#fff;padding:10px 15px;font-weight:900;cursor:pointer;flex:1;text-align:center}.coupon-action button:hover,.btn-primary:hover{background:var(--green-dark)}.coupon-action button.copied{background:#176d4e}.coupon-action>a:not(.btn-primary){width:100%;text-align:center;color:var(--green);font-size:11px;font-weight:800}.deal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.deal-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px}.deal-badge{font-size:11px;font-weight:900;color:#795a12;background:#fff6d9;border-radius:999px;padding:4px 9px}.deal-card h3{font-size:17px;line-height:1.5;margin:14px 0 5px}.deal-card p{font-size:13px;color:var(--muted);margin:0 0 15px}.deal-card .btn-primary{display:inline-flex}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:12px}.category-card>span{grid-row:1/3;width:46px;height:46px;background:var(--green-soft);border-radius:13px;display:grid;place-items:center;font-size:21px}.category-card strong{font-size:14px}.category-card small{color:var(--muted);font-size:11px}.category-card:hover{border-color:#afd9c7}.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.guide-card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}.guide-image{height:145px;background:var(--green-soft);display:grid;place-items:center;overflow:hidden;color:var(--green);font-weight:900}.guide-image img{width:100%;height:100%;object-fit:cover}.guide-card>div{padding:16px}.guide-card small{color:var(--muted);font-size:11px}.guide-card h3{font-size:15px;line-height:1.5;margin:6px 0}.guide-card p{font-size:12px;color:var(--muted);margin:0}
.archive-shell,.archive{padding:38px 0 65px}.archive-hero{padding:31px;background:var(--green-dark);color:#fff;border-radius:24px;margin-bottom:25px}.archive-hero h1{font-size:36px;margin:10px 0 5px}.archive-hero p{margin:0 0 19px;color:#d8ebe3}.archive-search{max-width:650px}.archive-hero .eyebrow{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2);color:#fff}.pagination{margin-top:25px}.nav-links{display:flex;justify-content:center;gap:7px}.page-numbers{padding:7px 12px;background:#fff;border:1px solid var(--line);border-radius:9px}.page-numbers.current{background:var(--green);color:#fff}.crumb{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;margin-bottom:18px;overflow:hidden}.store-hero{display:flex;align-items:center;gap:22px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:27px;margin-bottom:32px}.store-hero h1{font-size:34px;margin:7px 0}.store-hero p{margin:5px 0 0;color:var(--muted)}.term-description p{margin:0;color:var(--muted)}.empty-state{grid-column:1/-1;background:#fff;border:1px dashed #bad7ca;border-radius:14px;padding:22px;text-align:center;color:var(--muted)}
.site-footer{background:#082e24;color:#d7e9e2;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:44px}.footer-grid section{display:flex;flex-direction:column;gap:8px}.footer-brand{font-size:25px;font-weight:900;color:#fff}.footer-grid h2{font-size:14px;color:#fff;margin:0 0 7px}.footer-grid p,.footer-grid span,.footer-grid a{font-size:12px;color:#b9d0c7;margin:0}.footer-grid a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:35px;padding-top:18px;display:flex;justify-content:space-between;font-size:11px;color:#91aea3}
.single-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px}.post-cover{margin:-25px -25px 24px}.post-cover img{display:block;width:100%;max-height:440px;object-fit:cover}.post-content h1{font-size:36px;line-height:1.35}.post-meta{font-size:12px;color:var(--muted);display:flex;gap:15px}.entry-content{font-size:17px}.entry-content h2{margin-top:35px}.entry-content a{color:var(--green);text-decoration:underline}.article-coupon-card{border:1px solid #b7dccb;background:var(--green-soft);border-radius:16px;padding:18px;margin:22px 0;display:flex;justify-content:space-between;gap:16px}.article-coupon-card__copy{display:flex;flex-direction:column}.article-coupon-card__copy span,.article-coupon-card__copy small{font-size:12px;color:var(--muted)}.article-coupon-card__actions{display:flex;gap:7px;align-items:center}.article-coupon-card__code{border:0;border-radius:10px;background:var(--green);color:#fff;padding:9px;cursor:pointer}.article-coupon-card__code span{display:none}.article-coupon-card__link{color:var(--green);font-weight:800;font-size:12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gcard h2{font-size:18px}.archive-pagination ul{display:flex;list-style:none;gap:7px;padding:0;justify-content:center}
@media(max-width:900px){.header-row{grid-template-columns:1fr auto;height:66px}.header-search{display:none}.menu-toggle{display:flex;align-items:center;flex-direction:column;justify-content:center;width:46px;height:46px;border:1px solid var(--line);border-radius:12px;background:#fff}.menu-toggle span{display:block;width:20px;height:2px;background:var(--ink);margin:2px}.menu-toggle b{font-size:8px;margin-top:2px}.primary-nav{display:none;position:absolute;top:66px;right:0;left:0;box-shadow:var(--shadow)}.primary-nav.is-open{display:block}.nav-row{height:auto;display:grid;gap:0;padding:9px 16px}.nav-row a{height:44px;border-bottom:1px solid var(--line)}.store-grid{grid-template-columns:repeat(3,1fr)}.guide-grid{grid-template-columns:repeat(2,1fr)}.single-layout{grid-template-columns:1fr}.singleside{display:none}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.c{width:min(100% - 22px,1180px)}.brand-copy strong{font-size:17px}.brand-copy small{display:none}.hero-inner{min-height:330px;padding:40px 0}.hero h1{font-size:34px}.hero p{font-size:15px}.hero-search .search-form{height:56px}.trust-row{gap:8px 13px;font-size:11px}.home-section{padding:38px 0}.soft-section{margin-inline:-5px;padding-inline:12px}.section-head{align-items:center}.section-head h2{font-size:22px}.section-head>a{font-size:11px}.store-grid{grid-template-columns:repeat(2,1fr);gap:9px}.store-card{padding:14px 8px}.coupon-card{grid-template-columns:52px 1fr;padding:13px;gap:11px}.coupon-logo{width:52px;height:52px}.coupon-action{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.coupon-action code{width:auto}.coupon-action>a:not(.btn-primary){grid-column:1/-1}.deal-grid,.category-grid,.guide-grid,.grid{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,1fr);gap:9px}.category-card{display:flex;flex-direction:column;text-align:center;padding:13px}.category-card>span{margin-bottom:7px}.guide-grid{display:flex;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}.guide-card{min-width:78%;scroll-snap-align:start}.archive-shell,.archive{padding-top:20px}.archive-hero{padding:22px;border-radius:18px}.archive-hero h1,.post-content h1{font-size:27px}.store-hero{align-items:flex-start;padding:20px}.store-avatar.large{width:62px;height:62px;font-size:25px}.store-hero h1{font-size:25px}.footer-grid{grid-template-columns:1fr 1fr;gap:28px 18px}.footer-grid section:first-child{grid-column:1/-1}.footer-bottom{display:grid;gap:5px}.article-coupon-card{display:block}.article-coupon-card__actions{margin-top:12px;flex-wrap:wrap}}
.coupon-detail-hero{display:grid;grid-template-columns:86px minmax(0,1fr) 210px}.coupon-detail-hero .store-avatar img{width:100%;height:100%;object-fit:contain}.detail-action{justify-content:stretch}.detail-action .btn-primary{width:100%}.coupon-body{max-width:900px;margin-inline:auto}.coupon-body .entry-content>p:first-child{font-size:18px}.coupon-body .notice{background:var(--green-soft);border:1px solid #b7dccb;border-radius:14px;padding:15px}@media(max-width:620px){.coupon-detail-hero{grid-template-columns:62px 1fr}.coupon-detail-hero .detail-action{grid-column:1/-1;width:100%}}
