/*
 Theme Name:   ClipMyDeals Child
 Description:  My Child Theme for ClipMyDeals
 Template:     clipmydeals
 Version:      1.0.0
 Text Domain:  clipmydeals-child
*/
body .cmd-grid-store-logo { transform: none; margin: 20px 0; border-radius: 0 !important; border: none !impoertant; }
body .store-top { margin-top: 0; border: none; border-radius: 0 !important; }
body .cmd-taxonomy-card .card-img, body .cmd-taxonomy-card .card-img-top { width: 100%; height: 80px; object-fit: contain; }
body { background: #fff !important; }
body .cmd-list-layout, body .coupon-content, body .coupon-badge { mask: none !important; }
body .card-text { margin: 0 !important; } 

body .cmd-badge-text { padding: 0 10px !important; }
body .cmd-grid-store-logo { height: 70px !important; object-fit: contain; border-radius: 0 !important; border: none !important; }
body #showCouponModal .cmd-grid-store-logo { width: 75%; border: none !important;  }
body .store-logo-card { height: 60px !important; object-fit: contain; border-radius: 0 !important; margin-bottom: 10px !important; }
body .visit-website img { height: 100px !important; object-fit: contain; }
body .cmd-carousel-layout .cmd-grid-store-logo {  padding: 0 20px; }
body img.store-logo-card-md { display: none !important; } 

@media (max-width: 767px) {
	body .cmd-badge-text * { font-size: 30px !important; }
	body .coupon-badge { border: none !important; }
	body .cmd-badge-text { border-radius: 12px !important; background: none !important; box-shadow: none !important; }
    body .cmd-badge-text h3 { color: #000 !important; }
	body .coupon-content > div { padding: 10px 15px !important; }
	body .coupon-box-list .coupon-content img { display: none !important; } 
	body .coupon-content .coupon-button, body .coupon-content .card-body > div { margin-top: 0 !important; }
    body .coupon-content > div { background: none !important; }
	body .coupon-content .card-body { padding: 0 !important; }
	body .coupon-content .card-title { margin: 0 !important; font-size: 20px; line-height: 26px; }
    body .coupon-content .card-text { font-size: 15px; line-height: 22px; }
	body .coupon-box-list { padding: 12px 0 !important; }
    body .button-main, body .cmd-badge-text { padding: 0 !important; }
	body .coupon-content .card-text p { margin: 8px 0 0 !important; }
    body .coupon-content { padding: 0 20px 0 0 !important; }
    body .modal-header .card-text { text-align: center; }
	body .logo-style img.store-logo-card-md { display: block !important; }   
	body .logo-style .coupon-content .row > a { padding-left: 0 !important; }
}

body .store-img img { width: 128px; height: 128px !important; object-fit: contain; }
body .button-2 .coupon-button { margin: 0 !important; }
body .coupon-content > div { background: none !important; }
body .store-side .widget-area { width: 100% !important; }

@media (max-width: 767px) {
	body .store-img img { height: 50px !important; }
	body .text-m-center { text-align: center !important; }
	body .widget_media_image { text-align: center !important; }
}

body .container-xl {
    max-width: 1300px;
}
@media (min-width: 769px) {
	.store-top .archive-description { max-width: 70%; }
}

.store-side .popularstores_widget .col-6 { display: none !important; }
.store-side .popularstores_widget .col-6:nth-child(1), .store-side .popularstores_widget .col-6:nth-child(2), .store-side .popularstores_widget .col-6:nth-child(3), .store-side .popularstores_widget .col-6:nth-child(4), .store-side .popularstores_widget .col-6:nth-child(5), .store-side .popularstores_widget .col-6:nth-child(6) { display: block !important; }
body .modal-header .elementor-section, body .modal-header .elementor  { display: none !important; }

@media (min-width: 520px) {
.footer-widget ul { display: flex; flex-wrap: wrap; }
.footer-widget ul li { width: 50%; }
.footer-widget .textwidget { padding: 0; }
}   


.dc-stores-layout { display:grid; gap:24px; }
section.dc-stores-wrap.container, section.dc-top-section.container, section.dc-popular-stores.container, section.dc-all-stores.container {
    padding: 0px !important;
    margin: 0px !important;
}


/* ========== Base ========== */
.dc-home { background:#fafafa; }
.dc-home .container { max-width:1200px; margin:0 auto; padding:24px; }
.dc-home .dc-title { font-size:28px; font-weight:700; margin:8px 0 20px; }

/* ========== Stores You Love (Featured + 3×3) ========== */
.dc-featured-card{
  background:#fff; border:1px solid #e9e9e9; border-radius:14px; padding:18px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.dc-featured-head{
  font-size:13px; font-weight:700; text-align:center; padding:8px 10px;
  border:2px dashed #cfcfcf; border-radius:8px; margin-bottom:14px;
}
.dc-featured-logo{ display:flex; align-items:center; justify-content:center; padding:6px 0 10px; }
.dc-featured-logo img{ max-width:120px; height:auto; }
.dc-featured-points{ list-style:none; padding:0; margin:8px 0 0; text-align:center; }
.dc-featured-points li{ font-size:13px; line-height:1.5; }

/* 3 columns always (PHP caps to 9 items) */
.dc-stores-grid{ display:grid; grid-template-columns:repeat(4,1fr) !important; gap:16px; }
.dc-store-card{
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid #ececec; border-radius:12px;
  height:auto; padding:20px; text-decoration:none;
  box-shadow:0 6px 18px rgba(0, 0, 0, .08) !important;
  transition:transform .12s ease, box-shadow .12s ease;
}
.dc-store-card:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.dc-store-card img{ max-height:stretch !important; max-width:100%; object-fit:contain; }
.dc-store-text{ font-size:14px; color:#333; }

/* kill any parent-theme extras in tiles */
.store-card .store-meta,
.store-card .store-offers-count,
.store-card .meta,
.store-card .offers{ display:none !important; }

/* Mobile: Featured above grid, grid to 2 cols */
@media (max-width:767px){
  .dc-stores-layout{ grid-template-columns:1fr; }
  .dc-stores-grid{ grid-template-columns:repeat(2,1fr) !important; }
}

/* ========== Top Categories + Top Deals ========== */
.dc-top-section{ margin-top:48px; }
.dc-top-layout{ display:grid; grid-template-columns:1fr 2fr; gap:20px; }
.dc-top-section .dc-title{ font-size:2rem; font-weight:800; margin:0 0 20px; }

/* ---- Categories card (PNG icons 50×50) ---- */
.dc-category-card{
  background:#fff; border:1px solid #e6e6e6; border-radius:12px;
  box-shadow:0 1px 3px rgba(0,0,0,.05); padding:18px;
}
/* .dc-cat-card-inner{ border:1px solid #ececec; border-radius:12px; padding:18px; } */

/* Optional title-with-icon style (if used) */
.dc-cat-card-title{
  display:grid; grid-template-columns:56px 1fr; align-items:center; gap:10px;
  font-size:16px; font-weight:800; margin:0 0 12px;
}
.dc-cat-title-icon{ width:50px; height:50px; object-fit:contain; display:block; }

/* Category rows (divs, no <ul>) */
.dc-cat-row{
  display:grid; grid-template-columns:56px 1fr; align-items:center; gap:10px;
  padding:10px 12px; border:none; border-radius:10px; background:#fff;
}
.dc-cat-row + .dc-cat-row{ margin-top:10px; }
.dc-cat-icon-img{ width:50px; height:50px; object-fit:contain; display:block; border-radius: 12px !important; border: 1px solid #f6f6f6 !important;}
.dc-cat-text{ font-size:16px; font-weight:600; line-height:1.3; }

/* ---- Deals grid (3×2 cards) ---- */
.dc-top-section .dc-deals-grid{
  display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:16px !important;
}
.dc-top-section .dc-deal-card{
  background:#fff !important; border:1px solid #e6e6e6 !important; border-radius:12px !important;
  padding:14px !important; box-shadow:0 1px 3px rgba(0,0,0,.05) !important;
  transition:transform .12s ease, box-shadow .12s ease;
}
.dc-top-section .dc-deal-card:hover{ transform:translateY(-2px) !important; box-shadow:0 6px 18px rgba(0,0,0,.08) !important; }
.dc-top-section .dc-deal-head{ display:flex !important; align-items:center !important; min-height:47px !important; margin-bottom:8px !important; justify-content: center;}
.dc-deal-body {text-align: center;}
.dc-top-section .dc-deal-head img.dc-deal-logo{ height:67px !important; width:auto !important; max-width:100% !important; display:block; }
.dc-top-section .dc-deal-title{ font-size:16px !important; font-weight:800 !important; margin:0px !important; line-height:1.25 !important; min-height:27px !important; }
.dc-top-section .dc-deal-desc{ font-size:16px !important; color:#666 !important; margin:0px !important; min-height:27px !important; }
.dc-top-section .dc-reveal{ text-decoration:underline !important; font-weight:700 !important; font-size:16px !important; color:#111 !important; }

/* Responsive for Top section */
@media (max-width:980px){
  .dc-top-layout{ grid-template-columns:1fr; }
  .dc-top-section .dc-deals-grid{ grid-template-columns:repeat(2,1fr) !important; }
}
@media (max-width:520px){
  .dc-top-section .dc-deals-grid{ grid-template-columns:repeat(2,1fr) !important; }
}

/* ========== FAQ (details/summary, no JS) ========== */
.dc-faq { margin-top:56px; padding-bottom:40px; }
.dc-faq .dc-title { margin-bottom:14px; }

.dc-faq .dc-faq-item{
  border-bottom:2px solid #ddd; padding:0;
}

/* Hide default summary marker */
.dc-faq .dc-faq-question{ list-style:none; }
.dc-faq .dc-faq-question::-webkit-details-marker{ display:none; }

/* Reset any theme summary/button styles */
.dc-faq .dc-faq-question{
  -webkit-appearance:none; appearance:none;
  border:0 !important; background:transparent !important;
  padding:14px 0 !important; margin:0 !important;
  width:100% !important; cursor:pointer !important;
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  font:inherit !important; color:inherit !important;
  outline:none !important;
}
.dc-faq .dc-faq-qtext{ font-size:17px; font-weight:600; line-height:1.35; }
.dc-faq .dc-faq-icon{ font-size:28px; font-weight:600; line-height:1; transition:transform .2s ease; }

/* Answer body */
.dc-faq .dc-faq-answer{
  padding:6px 0 16px; font-size:15px; color:#444; line-height:1.6;
}

/* Open state: rotate + into × */
.dc-faq .dc-faq-item[open] .dc-faq-icon{ transform:rotate(45deg); }

/* ========== Popular Stores ========== */
.dc-popular-stores { 
  margin-top: 60px; 
  margin-bottom: 70px; 
}

.dc-popular-stores .dc-title {
  font-size:24px;
  font-weight:800;
  margin-bottom:20px;
}

.dc-popular-grid {
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:12px 20px;
}

.dc-popular-item {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: color .2s, text-decoration .2s;
    background: #fff !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05) !important;
    transition: transform .12s ease, box-shadow .12s ease;
    text-align: center;
}

.dc-popular-item:hover {
    background: #822a7f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08) !important;
    color: #fff !important;
    text-decoration: none;
}

/* Responsive */
@media(max-width:1024px){
  .dc-popular-grid { grid-template-columns:repeat(4, 1fr); }
}
@media(max-width:768px){
  .dc-popular-grid { grid-template-columns:repeat(3, 1fr); }
}
@media(max-width:480px){
  .dc-popular-grid { grid-template-columns:repeat(2, 1fr); }
}

footer#colophon {
    box-shadow: none !important;
    font-size: 85%;
}
/*--------------------------------------- Stores CSS ---------------------------------------------*/
/* stores.css - visual styles for stores page */
div#dn-stores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.alpha-filter {
    gap: 10px;
    background: #f6f6f6;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 25px !important;
}
.alpha-filter {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px;
    border-radius: 12px;
    background: #f6f6f6;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Important */
.alpha-filter .alpha-btn {
    flex: 0 0 auto;
    min-width: 48px;
}

/* Hide scrollbar */
.alpha-filter::-webkit-scrollbar {
    height: 6px;
}

.alpha-filter::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
/* Firefox */
.alpha-filter,
.az-filter {
    scrollbar-width: thin;
    scrollbar-color: #80237c #f1f1f1;
}

/* Chrome / Edge / Safari */
.alpha-filter::-webkit-scrollbar,
.az-filter::-webkit-scrollbar {
    height: 8px;
}

.alpha-filter::-webkit-scrollbar-track,
.az-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 20px;
}

.alpha-filter::-webkit-scrollbar-thumb,
.az-filter::-webkit-scrollbar-thumb {
    background: #80237c !important;
    border-radius: 20px;
}

.alpha-filter::-webkit-scrollbar-thumb:hover,
.az-filter::-webkit-scrollbar-thumb:hover {
    background: #6d1d6a !important;
}
.card{background:var(--card-bg); border-radius:12px; padding:18px; box-shadow:0 12px 30px rgba(12,18,28,0.06); margin-bottom:18px;}
.dn-section-title{font-size:22px; font-weight:700; margin:0 0 12px;}
.dn-top-block{display:grid; grid-template-columns:220px 1fr; gap:18px;}
.dn-featured-left{background:#fff; border:1px dashed rgba(0,0,0,0.08); padding:12px; text-align:center; border-radius:10px;}
.dn-featured-left h4{margin:6px 0;}
.store-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
/* .store-card{background:#fff; border-radius:10px; padding:12px; text-align:center; border:1px solid rgba(0,0,0,0.04); transition:transform .14s;} */
.store-card img {
    width: 100%;
    max-height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    height: 120px;
    padding: 20px 20px;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.store-card div {
    text-align: center;
    font-size: 18px;
    color: #000;
}
.store-card .label{font-size:13px; margin-top:8px; color:var(--muted);}

.alpha-bar{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 22px;}
.alpha-btn{padding:8px 10px; border-radius:8px; border:1px solid #eee; background:#fff; cursor:pointer; font-weight:600;}
.alpha-btn.active{background:#111;color:#fff;border-color:#111;}
.stores-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.stores-grid .card{padding:18px; text-align:center; border-radius:12px; border:1px solid rgba(0,0,0,0.04); background:#fff;}
.stores-grid img{max-width:120px; max-height:60px; display:block; margin:0 auto;}
.load-more{display:inline-block; margin:18px auto 0; padding:10px 18px; border-radius:8px; background:var(--brand); color:#fff; border:none; cursor:pointer;}

/* Responsive */
@media (max-width:980px){
  .store-grid{grid-template-columns:repeat(3,1fr);}
  .stores-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .dn-top-block{grid-template-columns:1fr;}
  .store-grid{grid-template-columns:repeat(2,1fr);}
  .stores-grid{grid-template-columns:1fr;}
}

/* ---- Neat pagination styles for Stores page ----
   Assumes the pagination container ID is: #dn-stores-pagination
   Buttons use classes: .page-prev, .page-num, .page-next
   Active page button: .page-num.active
-------------------------------------------------*/

#dn-stores-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center; /* center under the grid */
  margin: 22px 0 36px;
  font-family: inherit;
}

/* Base button look */
#dn-stores-pagination button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  color: #222;
  padding: 6px 10px;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(60,40,70,0.04);
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover / focus */
#dn-stores-pagination button:hover,
#dn-stores-pagination button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60,40,70,0.08);
  outline: none;
}

/* Prev/Next special tweaks */
#dn-stores-pagination .page-prev,
#dn-stores-pagination .page-next {
  padding: 6px 12px;
}

/* Active page (current) — use site purple to match header */
#dn-stores-pagination .page-num.active {
  background: linear-gradient(180deg,#9a2fbf,#732086); /* deep purple gradient */
  color: #fff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(115,32,134,0.14);
}

/* Disabled button (Prev / Next when at ends) */
#dn-stores-pagination button:disabled,
#dn-stores-pagination button[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
  background: #fff;
  color: #999;
}

/* Small screens: allow wrap and increase spacing */
@media (max-width: 600px) {
  #dn-stores-pagination {
    gap: 8px;
    margin: 18px 0 28px;
  }
  #dn-stores-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
  }
}

/* Optional: page number group visual separator (if you want) */
#dn-stores-pagination .page-prev,
#dn-stores-pagination .page-next {
  border-width: 1px;
}

/* Accessibility: focus ring */
#dn-stores-pagination button:focus-visible {
  outline: 3px solid rgba(147, 60, 189, 0.18);
  outline-offset: 3px;
  box-shadow: 0 8px 20px rgba(115,32,134,0.12);
}

/* Optional compact style for many pages:
   make page numbers smaller to avoid overflow */
#dn-stores-pagination .page-num {
  padding: 6px 9px;
  min-width: 34px;
  font-size: 14px;
}
/*---------------------------------------------------  Category Page --------------------------*/
.alpha-items.d-flex.flex-wrap.gap-2 {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    background: #f6f6f6;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 25px !important;
}
a.btn.btn-sm.btn-light {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}
a.btn.btn-sm.btn-secondary.text-white {
    background: #111;
    color: #fff;
    border-color: #111;
    font-size: 16px;
    display: flex;
    align-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 24px;
}
a.btn.btn-sm.btn-primary.text-white {
    background: #111;
    display: flex;
    align-items: center;
}
a.cmd-alpha-link {
    color: #000;
    font-size: 18px;
    font-weight: 600;
}
.card.card_content {
    box-shadow: none !important;
    border: none !important;
}