/* Theme Name: Couponzmart Homepage & SEO Description: Homepage experience and landing-page directory for Couponzmart. Author: Couponzmart Template: newcoupons Version: 1.8.2 Text Domain: couponzmart-child */  /* Coupon status fallback: prevent copying a paused/expired code and guide visitors to the live alternative. */ body.czm-coupon-inactive .coupon-sidebar{display:none!important} .czm-coupon-status-notice{margin:0 0 22px;padding:20px 22px;border:1px solid #f0d591;border-right:5px solid #d69b18;border-radius:14px;background:#fff9e9;color:#263238;line-height:1.8} /* ==========================================================================    إصلاح 2026-11-25 — المرحلة أ: بحث واحد فقط (تكرار البحث على الجوال)    التشخيص: القالب الأب (newcoupons/header.php) يخرج نموذجين بنفس المعرّف    id="header-search": الأول في الترويسة الرئيسية (العنصر النائب الطويل) وهو    الذي يضيف إليه مقتطف HFCM رقم 1 حقل post_type المخفي والإكمال التلقائي،    والثاني داخل .mobile-header ويُخرَج فقط عندما يكون wp_is_mobile() صحيحاً    (العنصر النائب القصير «ابحث هنا عن كوبون أو متجر..») وبلا إكمال تلقائي.    الحل: إخفاء نموذج الجوال المكرر فقط، والإبقاء على النموذج الأول.    ========================================================================== */ .mobile-header form#header-search, .mobile-header .header-search-input{display:none!important} #header-search input[type="text"],#header-search .prompt{min-height:48px;font-size:16px} #header-search button[type="submit"]{min-height:48px} /* ==========================================================================    تحديث 2026-11-25 — المرحلة ج: لغة تصميم موحّدة للصفحات الداخلية (الجوال أولاً)    عرض فقط؛ لا يغيّر أي محتوى أو رابط أو كود خصم. خفيف: CSS فقط.    ========================================================================== */ html,body{overflow-x:hidden} img{max-width:100%;height:auto} @media (max-width:767px){body{padding-bottom:72px}} /* بطاقات الكوبونات والمتاجر: حواف نظيفة وظل خفيف ومساحة لمس مريحة. */ .coupon-item,.store-listing-item,.coupon-listing-item{border-radius:14px!important;box-shadow:0 4px 18px rgba(16,24,40,.07)!important;overflow:hidden} .coupon-item a,.coupon-item button,.store-listing-item a,.store-listing-item button{min-height:44px} .coupon-item h3,.store-listing-item h3{font-size:17px;line-height:1.5} /* صفحة الكوبون المفرد: صندوق الكود وأزرار النسخ والتسوق بارزة وسهلة اللمس. */ #coupon-sidebar .coupon-summary{background:#fff;border:1px solid #e6e8ec;border-radius:16px;padding:20px;margin-bottom:20px} #tobecopied.code-text{font-size:20px!important;font-weight:700;text-align:center;min-height:54px;border-radius:12px;letter-spacing:1px} .single-coupon-container .btn,#coupon-sidebar .btn{min-height:48px;padding:12px 18px;border-radius:12px;font-size:16px} .single-coupon-container .coupon-item{margin-bottom:20px} .single-coupon-container .post-content p{font-size:16px;line-height:1.8} /* صفحة المتجر والتصنيف: جدول الكوبونات قابل للتمرير أفقياً داخل الصفحة. */ .tax-coupon_store table,.tax-coupon_category table{display:block;max-width:100%;overflow-x:auto;font-size:15px} .tax-coupon_store table th,.tax-coupon_store table td,.tax-coupon_category table th,.tax-coupon_category table td{padding:10px 8px} /* نتائج البحث: إزالة نشرة الشريط الجانبي المكررة (تبقى نشرة التذييل). */ body.search #secondary .widget_mailpoet_form,body.search #secondary [id^="mailpoet_form-"],body.search .widget-area .widget_mailpoet_form,body.search .sidebar .widget_mailpoet_form{display:none!important} body.error404 #secondary .widget_mailpoet_form,body.error404 #secondary [id^="mailpoet_form-"],body.error404 .widget-area .widget_mailpoet_form,body.error404 .sidebar .widget_mailpoet_form{display:none!important} /* نتائج البحث وصفحة 404: عناوين واضحة وأهداف لمس لا تقل عن 44px. */ body.search .coupon-item,body.error404 .coupon-item{margin-bottom:16px} body.search h1,body.error404 h1{font-size:26px;line-height:1.4} body.search .pagination a,body.search .pagination span,body.error404 .pagination a,.page-numbers{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center} body.error404 #header-search input[type="text"],body.error404 #header-search .prompt{min-height:48px} /* قائمة المتاجر: تباعد مريح وبطاقات متسقة. */ .post-type-archive-store .store-listing-item,.archive-store .store-listing-item{margin-bottom:16px}  /* ==========================================================================    إصلاح 2026-11-25 (قبل الجمعة البيضاء): اتجاه الصفحات الإنجليزية LTR    السبب: ملف rtl.css في القالب الأب يُحمَّل في كل الصفحات ويفرض    direction: rtl !important حتى في الصفحات الإنجليزية (html lang="en-*").    القواعد التالية تعيد الاتجاه إلى LTR في الصفحات الإنجليزية فقط، ولا تمس    الصفحات العربية (lang="ar").    ========================================================================== */  /* إلغاء فرض RTL من القالب الأب في الصفحات الإنجليزية. */ html[lang^="en"] body { direction: ltr !important; } html[lang^="en"] body * { direction: ltr !important; }  /* شبكة المحتوى والشريط الجانبي في صفحات المتاجر والكوبونات. */ html[lang^="en"] .site-content, html[lang^="en"] .site-content .ui.grid, html[lang^="en"] .content-area, html[lang^="en"] #coupon-sidebar, html[lang^="en"] .single-coupon-container { direction: ltr !important; }  /* بطاقات الكوبونات وحبة نسخ الكود في القالب الأب. */ html[lang^="en"] .coupon-item, html[lang^="en"] .single-coupon-container .coupon-code { direction: ltr !important; }  /* أعمدة الفوتر في الصفحات الإنجليزية. */ html[lang^="en"] .site-footer, html[lang^="en"] .site-footer .sidebar-footer.ui.grid, html[lang^="en"] .site-footer #footer-2 ul { direction: ltr !important; text-align: left !important; }  /* الفوتر: عدم قصّ أو إخفاء أي عنصر في قوائم الفوتر، بما فيه العنصر الأخير. */ .site-footer #footer-2, .site-footer #footer-2 .widget, .site-footer #footer-2 .widget_nav_menu, .site-footer #footer-2 .widget_nav_menu ul { height: auto !important; max-height: none !important; overflow: visible !important; } .site-footer .widget_nav_menu ul li:last-child, .site-footer .widget_nav_menu ul li:last-child a { display: block !important; visibility: visible !important; opacity: 1 !important; }  .czm-coupon-status-notice strong{display:block;margin-bottom:5px;color:#855d00;font-size:18px} .czm-coupon-status-notice p{margin:0 0 12px} /* إصلاح 2026-11-25: أعمدة الفوتر في الصفحة الرئيسية الإنجليزية (سطح المكتب).    أعمدة الفوتر مثبتة بـ grid-column صريح (footer-1 عمود 3، footer-2 عمود 2)    فلا يكفي تغيير الاتجاه؛ تُبادَل الأعمدة صراحة على الشاشات الكبيرة فقط    حتى لا يتأثر ترتيب الجوال (عمود واحد). صندوق الاشتراك (footer-4) يبقى كما هو. */ @media (min-width: 701px) {   html[lang^="en"] .home .site-footer #footer-1 { grid-column: 1 !important; }   html[lang^="en"] .home .site-footer #footer-2 { grid-column: 2 !important; } }  .czm-coupon-status-notice a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:9px;background:#176b48;color:#fff;font-weight:700;text-decoration:none} .czm-coupon-status-notice a:hover{background:#105439;color:#fff}  /* Comments are disabled sitewide; remove the theme login-only comment panel. */ #respond.comment-respond, .comment-respond { display:none !important; }  /* English homepage footer: preserve left-to-right reading order. */ body.page-id-2870 footer { direction: ltr; text-align: left; } body.page-id-2870 footer p, body.page-id-2870 footer li { direction: ltr; text-align: left; }  /* English store cards: use LTR labels and separate retailer marks from names. */ body.page-id-2870 .czm-home-stores { direction: ltr; } body.page-id-2870 .czm-home-stores .czm-home-store { direction: ltr; } body.home .czm-home-major-stores .czm-major-store { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; padding: 12px; text-align: center; } body.home .czm-home-major-stores .czm-major-store__logo { position: static; display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin: 0; } body.home .czm-home-major-stores .czm-major-store__logo img { width: auto; max-width: 100%; max-height: 46px; object-fit: contain; } body.home .czm-home-major-stores .czm-major-store strong { display: block; position: static; width: 100%; line-height: 1.3; }  body.page-id-2870 .czm-home-stores .czm-home-store__info { flex: 1 1 auto; min-width: 0; } body.page-id-2870 .czm-home-stores .czm-home-store__info strong { display: -webkit-box; overflow: hidden; white-space: normal; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; } body.page-id-2870 .czm-home-stores .czm-home-store__mark { flex: 0 0 42px; }  /* ========================================================================== إصلاح 2026-11-25 — البند 1أ: ترويسة الجوال بلا قصّ (الشعار الأصفر + البحث). التشخيص: في الشريط البنفسجي يظهر شعار الموقع (صورة فيها نص أصفر) فوق حبة البحث، وتقيّد قواعد القالب الأب والمقتطف رقم 1 ارتفاع منطقة الشعار بينما تتكدس الترويسة الرئيسية مع ترويسة الجوال المكررة (.mobile-header)، فيظهر الشعار سطرًا مقصوصًا عموديًا إلى نصفه. الحل: ترويسة واحدة مكدّسة، منطقة شعار بارتفاع طبيعي وظهور كامل، والبحث بعرض كامل تحتها. ========================================================================== */ @media (max-width: 767px) {   #masthead .mobile-header { display: none !important; }   #masthead.primary-header { display: block !important; }   #masthead.primary-header > .container {     display: flex !important; flex-wrap: wrap !important; align-items: center;     gap: 10px 12px; width: 100% !important; max-width: 100% !important;     padding: 10px 14px 14px !important; overflow: visible !important;   }   #masthead .logo_area {     float: none !important; flex: 0 0 auto !important; width: auto !important;     height: auto !important; max-height: none !important; margin: 0 !important;     overflow: visible !important; line-height: 0 !important; text-align: start !important;   }   #masthead .logo_area img {     display: block !important; width: auto !important; max-width: 150px !important;     height: auto !important; max-height: 44px !important;   }   #masthead .title_area { height: auto !important; overflow: visible !important; }   #masthead .title_area .site-title { line-height: 1.3 !important; height: auto !important; overflow: visible !important; }   #masthead .title_area .site-description { line-height: 1.4 !important; }   #masthead #header-search {     display: flex !important; flex: 1 1 100% !important; order: 2;     width: 100% !important; max-width: none !important; margin: 0 !important;   }   #masthead #header-search .header-search-input { min-width: 0; width: 100%; } }  /* ========================================================================== إصلاح 2026-11-25 — البند 2: تنبيه نسخ ثابت لا يمكن تفويته (يعمل باللمس). ========================================================================== */ #czm-copy-toast {   position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));   transform: translate(-50%, 16px); z-index: 999999;   max-width: calc(100vw - 32px); padding: 13px 22px; border-radius: 999px;   background: #0a7d4d; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4;   text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);   opacity: 0; visibility: hidden; pointer-events: none;   transition: opacity .18s ease, transform .18s ease, visibility .18s; } #czm-copy-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }  /* ========================================================================== إصلاح 2026-11-25 — البند 4: بطاقات صفحة المتاجر بلا تداخل (شبكة عمودين). التشخيص: شعار المتجر يتجاوز منطقة الشعار ذات الارتفاع الثابت في بطاقات قالب المتاجر (templates/store-az.php) فيغطي اسم المتجر ورابط «استعرض الأكواد والعروض». الحل: منطقة شعار مستقلة بارتفاع ثابت ومحتوى محصور (overflow:hidden) مع صورة contain، والاسم والرابط في تدفق طبيعي تحتها دون أي تموضع مطلق. ========================================================================== */ .czm-stores-page .czm-store-card > a {   display: flex !important; flex-direction: column !important; min-height: 0 !important; } .czm-stores-page .czm-store-card .czm-store-logo {   display: flex !important; align-items: center !important; justify-content: center !important;   flex: none !important; width: 100% !important; height: 86px !important;   min-height: 86px !important; padding: 9px 12px !important;   overflow: hidden !important; position: static !important; } .czm-stores-page .czm-store-card .czm-store-logo img {   display: block !important; width: auto !important; max-width: 100% !important;   height: auto !important; max-height: 62px !important; object-fit: contain !important;   position: static !important; margin: 0 auto !important; } .czm-stores-page .czm-store-card .czm-store-name {   display: block !important; position: static !important; float: none !important;   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .czm-stores-page .czm-store-card .czm-store-link-label {   display: block !important; position: static !important; float: none !important; } @media (max-width: 560px) {   .czm-stores-page .czm-store-card .czm-store-logo { height: 75px !important; min-height: 75px !important; padding: 7px !important; }   .czm-stores-page .czm-store-card .czm-store-logo img { max-height: 54px !important; } } /* شبكة المتاجر في القالب الأب (احتياطي): الشعار في منطقة مستقلة محصورة. */ .store-grid-listing-item .store-thumb-link .store-thumb {   overflow: hidden !important; position: static !important; } .store-grid-listing-item .store-thumb-link .store-thumb img {   object-fit: contain !important; } /* === Navigation overhaul 2026-11-26 (Decisions 1+2) === */ .czm-nav-extras{display:contents} .mobile-header{display:none!important} /* Language pill */ .czm-lang-pill{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1.5px solid #6d28d9;border-radius:999px;padding:3px;flex:0 0 auto;box-shadow:0 1px 4px rgba(0,0,0,.10);line-height:1} .czm-lang-pill__globe{font-size:15px;padding-inline-start:5px} .czm-lang-pill__seg{display:inline-flex;align-items:center;justify-content:center;min-height:38px;min-width:46px;padding:4px 12px;border-radius:999px;color:#4c1d95;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap} .czm-lang-pill__seg:hover{color:#6d28d9} .czm-lang-pill__seg.is-current{background:#6d28d9;color:#fff;cursor:default} /* Desktop nav: one line, labels as authored */ .secondary-header .main-nav .st-menu{display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:center;gap:2px;list-style:none;margin:0;padding:0} .secondary-header .main-nav .st-menu>li{position:relative;flex:0 0 auto} .secondary-header .main-nav .st-menu>li>a{display:flex;align-items:center;min-height:48px;padding:10px 15px;color:#fff!important;text-transform:none!important;font-size:15px;font-weight:600;letter-spacing:0;white-space:nowrap;text-decoration:none} .secondary-header .main-nav .st-menu>li>a:hover{background:rgba(255,255,255,.14)} .secondary-header .main-nav .st-menu>li.current-menu-item>a,.secondary-header .main-nav .st-menu>li.current_page_item>a,.secondary-header .main-nav .st-menu>li.current-menu-parent>a,.secondary-header .main-nav .st-menu>li.current-menu-ancestor>a{background:#fff;color:#5b21b6!important;border-radius:8px 8px 0 0;box-shadow:inset 0 -3px 0 #facc15} .secondary-header .main-nav .st-menu>li.menu-item-has-children>a::after{content:"▾";margin-inline-start:6px;font-size:11px;line-height:1} /* Dropdowns */ .secondary-header .main-nav .st-menu .sub-menu{position:absolute;top:100%;inset-inline-start:0;min-width:235px;background:#fff;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.20);padding:6px;margin:0;list-style:none;display:none;z-index:999} .secondary-header .main-nav .st-menu>li:hover>.sub-menu,.secondary-header .main-nav .st-menu>li:focus-within>.sub-menu,.secondary-header .main-nav .st-menu>li.czm-open>.sub-menu{display:block} .secondary-header .main-nav .st-menu .sub-menu li{position:relative} .secondary-header .main-nav .st-menu .sub-menu li a{display:flex;align-items:center;min-height:44px;padding:10px 14px;color:#1f2937!important;text-transform:none!important;font-size:14.5px;font-weight:500;white-space:nowrap;border-radius:8px;text-decoration:none} .secondary-header .main-nav .st-menu .sub-menu li a:hover{background:#f3e8ff;color:#5b21b6!important} .secondary-header .main-nav .st-menu .sub-menu li.current-menu-item>a{background:#ede9fe;color:#5b21b6!important;font-weight:700} /* Hamburger (mobile only) */ .czm-hamburger{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:44px;height:44px;flex:0 0 auto;background:#fff;border:1.5px solid #6d28d9;border-radius:12px;cursor:pointer;padding:0} .czm-hamburger span{display:block;width:20px;height:2.5px;background:#5b21b6;border-radius:2px} /* Mobile panel */ .czm-panel__overlay{position:fixed;inset:0;background:rgba(17,24,39,.55);z-index:998} .czm-mobile-panel{position:fixed;top:0;bottom:0;inset-inline-end:0;width:min(340px,88vw);background:#fff;z-index:999;box-shadow:0 0 40px rgba(0,0,0,.25);overflow-y:auto;display:flex;flex-direction:column;visibility:hidden;transition:transform .25s ease,visibility .25s ease} html[dir="rtl"] .czm-mobile-panel{transform:translateX(-105%)} html[dir="ltr"] .czm-mobile-panel{transform:translateX(105%)} body.czm-panel-open .czm-mobile-panel{transform:translateX(0);visibility:visible} .czm-panel__head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb} .czm-panel__title{font-size:18px;font-weight:800;color:#1f2937} .czm-panel__close{width:44px;height:44px;border:0;background:#f3f4f6;border-radius:10px;font-size:26px;line-height:1;color:#374151;cursor:pointer} .czm-panel__lang{padding:14px 16px 4px;display:flex;justify-content:center} .czm-panel__country{padding:10px 16px} .czm-panel__country-label{display:block;font-size:13px;font-weight:700;color:#6b7280;margin-bottom:6px} .czm-panel__country-slot select{width:100%;min-height:44px;border:1.5px solid #d1d5db;border-radius:10px;padding:8px 10px;font-size:15px;background:#fff} .czm-panel__nav{padding:6px 8px 24px} .czm-panel__menu{list-style:none;margin:0;padding:0} .czm-panel__menu>li{position:relative;border-bottom:1px solid #f3f4f6} .czm-panel__menu>li>a{display:flex;align-items:center;min-height:48px;padding:10px 12px;color:#111827;font-size:16px;font-weight:600;text-decoration:none} .czm-panel__menu>li>a:hover{color:#5b21b6} .czm-panel__menu>li.current-menu-item>a,.czm-panel__menu>li.current_page_item>a{color:#5b21b6;font-weight:800} .czm-panel__menu .sub-menu{display:none;list-style:none;margin:0;padding:0 0 6px;background:#faf5ff;border-radius:10px} .czm-panel__menu li.open>.sub-menu{display:block} .czm-panel__menu .sub-menu li a{display:flex;align-items:center;min-height:44px;padding:8px 16px;color:#374151;font-size:15px;text-decoration:none} .czm-panel__menu .sub-menu li a:hover{color:#5b21b6}/* 2026-11-26 Item B: Polylang language items in the secondary menu duplicate the header language pill; the current-language item renders as an empty white box (white background with white link text). Hide them; the pill remains the language switcher. */ li.lang-item{display:none!important} /* 2026-11-26 Item B: language pill reading order - current language first after the globe, in both languages (Arabic already reads that way; English now does too). */ .czm-lang-pill__globe{order:0} .czm-lang-pill__seg.is-current{order:1} .czm-lang-pill__seg:not(.is-current){order:2}  .czm-panel__menu .sub-menu li.current-menu-item>a{color:#5b21b6;font-weight:700} .czm-acc-toggle{position:absolute;top:2px;inset-inline-end:0;width:44px;height:44px;border:0;background:transparent;color:#5b21b6;font-size:16px;cursor:pointer} .czm-panel__menu li.open>.czm-acc-toggle{transform:rotate(180deg)} /* Medium widths: tighten the desktop nav so it stays on one line */ @media (max-width:1400px){.secondary-header .main-nav .st-menu>li>a{padding:10px 12px;font-size:14.5px}} @media (max-width:1100px){.secondary-header .main-nav .st-menu>li>a{padding:10px 9px;font-size:14px}} /* Mobile layout */ @media (max-width:860px){ .czm-hamburger{display:inline-flex} .secondary-header{display:none} .primary-header .container{flex-wrap:wrap;gap:8px} .primary-header .logo_area{order:1;flex:0 0 auto} .czm-lang-pill{order:2;margin-inline-start:auto} .czm-hamburger{order:3} .primary-header #header-search{order:4;flex:1 1 100%} .primary-header .container>*:not(.logo_area):not(#header-search):not(.czm-lang-pill):not(.czm-hamburger){order:5;flex:1 1 100%} .czm-lang-pill__seg{min-height:38px} } 

/* ============================================================ */
/* 🌟 PREMIUM UNIFIED STORE LOGO & CARD ENHANCEMENTS            */
/* ============================================================ */
.czm-store-card, .store-thumb, .header-store-thumb {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}
.czm-store-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 28px rgba(91, 33, 182, 0.12) !important;
    border-color: #a78bfa !important;
}

/* Unified Logo Stage Container */
.czm-store-logo, .store-thumb a, .header-store-thumb a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 90px !important;
    max-height: 90px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden !important;
}

/* Normalized Logo Dimensions */
.czm-store-logo img, 
.store-thumb img, 
.header-store-thumb img,
.czm-store-card img {
    max-width: 100% !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.03)) !important;
    transition: transform 0.25s ease !important;
}

.czm-store-card:hover .czm-store-logo img {
    transform: scale(1.08) !important;
}

/* Sidebar Popular Stores Grid Polish */
.widget_grid_stores .store-thumb {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 70px !important;
}
.widget_grid_stores .store-thumb img {
    max-height: 50px !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* ==========================================================
   GLOBAL STORE WIDGET LOGO REDESIGN (REPLACES OVALS SITE-WIDE)
   Modern, crisp, responsive store cards with clear logos
   ========================================================== */

/* 1. Ensure widget container has zero horizontal overflow */
.widget_grid_stores,
.widget.widget_grid_stores,
#secondary .widget_grid_stores {
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 18px 16px !important;
}

.widget_grid_stores .widget-content,
#secondary .widget_grid_stores .widget-content {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* 2. Global Reset for Grid Stores Widget (Semantic UI reset) */
.widget_grid_stores .ui.grid,
.widget.widget_grid_stores .ui.grid,
#secondary .widget_grid_stores .ui.grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.widget_grid_stores .ui.grid > .column,
.widget.widget_grid_stores .ui.grid > .column,
#secondary .widget_grid_stores .ui.grid > .column,
.widget_grid_stores .ui.grid > .column:not(.row) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* 3. Modern Square / Rounded Card replacing the 67px dashed oval */
.widget_grid_stores .store-thumb,
.widget.widget_grid_stores .store-thumb,
.mohsen-stores .store-thumb,
#secondary .widget_grid_stores .store-thumb,
.single-coupon-sidebar .widget_grid_stores .store-thumb {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important; /* Replaces 67px */
    padding: 6px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Hover Effect */
.widget_grid_stores .store-thumb:hover,
.widget.widget_grid_stores .store-thumb:hover,
#secondary .widget_grid_stores .store-thumb:hover {
    transform: translateY(-2px) !important;
    border-color: #7c3aed !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12) !important;
}

/* 4. Link container inside card */
.widget_grid_stores .store-thumb a,
.widget_grid_stores .store-thumb a.ui.image,
.widget.widget_grid_stores .store-thumb a,
#secondary .widget_grid_stores .store-thumb a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* 5. Logo Image Styling - Sharp, contained, proportional */
.widget_grid_stores .store-thumb img,
.widget.widget_grid_stores .store-thumb img,
.mohsen-stores .store-thumb img,
#secondary .widget_grid_stores .store-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important; /* Remove 67px from image */
    display: block !important;
    margin: auto !important;
    transition: transform 0.25s ease !important;
}

.widget_grid_stores .store-thumb:hover img,
#secondary .widget_grid_stores .store-thumb:hover img {
    transform: scale(1.06) !important;
}

/* Popular stores widget consistency */
.widget_popular_stores .store-thumb,
.widget.widget_popular_stores .store-thumb {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}


/* 2026-11-30: darken the global link green (#00979d, 3.6:1 on white) to meet WCAG 4.5:1 contrast (#007c80 = 5.0:1). Approved fix item 1. To revert, delete this block. */
a { color: #007c80; }
