/* khayt3d layer on the Prime General theme.
   Real hooks: a.ab-header-offers-btn, h2.ab-footer-subscribe-title, .ab-pgrid */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root{ --k3d-bg:#FBFAF8; --k3d-surface:#FFFFFF; --k3d-ink:#16181D; --k3d-muted:#6E7278; --k3d-line:#EAE6DF; --k3d-brand:#E4572E; --k3d-brand-soft:#FDEBE3; --k3d-foot:#14161A; }

body, button, input, select, textarea{ font-family:'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important; }
body{ background:var(--k3d-bg) !important; color:var(--k3d-ink); font-size:16px; line-height:26px; }

a.ab-header-offers-btn, .ab-header-offers-btn{ display:none !important; }

footer{ background:#14161A !important; }
footer h2, footer h3, footer h4, h2.ab-footer-subscribe-title,
footer .ab-footer-heading, footer .ab-footer-accordion-trigger{ color:#FFFFFF !important; }
footer p, footer span, footer li, footer label{ color:#E8E8EA !important; }
/* theme sets its own link colour at .ab-footer-links a / nav a specificity, so double the footer class */
footer.ab-footer.ab-footer a, footer.ab-footer.ab-footer a:visited{ color:#E8E8EA !important; }
footer.ab-footer.ab-footer a:hover, footer.ab-footer.ab-footer button:hover{ color:var(--k3d-brand) !important; }
footer.ab-footer.ab-footer button{ color:#FFFFFF !important; }
footer input{ background:#FFFFFF !important; color:var(--k3d-ink) !important; }

/* Product grid.
   The theme renders <section class="ab-pgrid"> with fixed-px columns and puts every card
   inside a single <div class="ab-pgrid-wrap"> that does NOT span the grid, so the wrapper
   was locked to one column width and the cards inside it collapsed.
   The wrapper is the element that must span the row and own the card layout. */
section.ab-pgrid > .ab-pgrid-wrap.ab-pgrid-wrap.ab-pgrid-wrap{
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:none !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  align-items:stretch !important;
  gap:20px !important;
}
section.ab-pgrid > .ab-pgrid-wrap.ab-pgrid-wrap.ab-pgrid-wrap > *{
  flex:0 1 320px !important;
  min-width:240px !important;
  max-width:320px !important;
  width:auto !important;
}
.ab-pgrid-card{
  background:var(--k3d-surface) !important;
  border:1px solid var(--k3d-line) !important;
  border-radius:16px !important;
  overflow:hidden !important;
  box-shadow:0 1px 2px rgba(22,24,29,0.05) !important;
  margin:0 !important;
}
.ab-pgrid-card a, .ab-pgrid-link, .ab-pgrid-info-link{ background:transparent !important; border-radius:0 !important; }
.ab-pgrid-media{ border-radius:0 !important; }
.ab-pgrid-name{ font-size:15px !important; line-height:1.5 !important; color:var(--k3d-ink) !important; margin:0 !important; }
.ab-pgrid-price{ font-size:16px !important; color:var(--k3d-brand) !important; font-weight:700 !important; }
.ab-pgrid img{ width:100% !important; height:auto !important; object-fit:cover; border-radius:0 !important; }

/* Product page CTAs: the theme hard-codes red on the add-to-cart and complete-order
   buttons. Target them by their own wrappers so the quantity stepper stays untouched. */
div.p_details_container .mt-5.flex-col-reverse > button{
  background:var(--k3d-brand) !important; border-color:var(--k3d-brand) !important; color:#FFFFFF !important;
}
div.p_details_container .mt-5.flex-col-reverse > button:hover{
  background:#C9451F !important; border-color:#C9451F !important;
}
div.p_details_container .mt-5.flex-row-reverse > button{
  background:transparent !important; border-color:var(--k3d-brand) !important; color:var(--k3d-brand) !important;
}
div.p_details_container .mt-5.flex-row-reverse > button:hover{
  background:var(--k3d-brand-soft) !important; color:var(--k3d-brand) !important;
}
/* the theme paints the button colour on an absolutely positioned ::before overlay,
   so the background-color alone stays hidden under it */
div.p_details_container .mt-5.flex-col-reverse > button::before{ background:var(--k3d-brand) !important; }
div.p_details_container .mt-5.flex-col-reverse > button:hover::before{ background:#C9451F !important; }
div.p_details_container .mt-5.flex-row-reverse > button::before{ background:transparent !important; }
div.p_details_container .mt-5.flex-row-reverse > button:hover::before{ background:var(--k3d-brand-soft) !important; }

header a, header button, header span, header p{ color:var(--k3d-ink); }
header a:hover, header button:hover{ color:var(--k3d-brand); }
header img{ height:34px; width:auto; max-width:none; object-fit:contain; }
@media (min-width:768px){ header img{ height:42px; } }

button[type=submit], .ab-add-to-cart, [class*="checkout"] button{
  background:var(--k3d-brand) !important; color:#FFFFFF !important; border-radius:12px !important;
  border:0 !important; min-height:46px; font-weight:600 !important;
}
button[type=submit]:hover, .ab-add-to-cart:hover{ background:#C9451F !important; }
[class*="price"], .ab-price{ color:var(--k3d-brand) !important; font-weight:700 !important; }
