
/* Khalifa Bakers - Static Store Fixes + Cart/Checkout (added by automation) */

/* --- Quick fixes --- */
.variations_form select,
.variations select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile product grid fallback (in case theme JS/CSS is missing) */
@media (max-width: 767px) {
  ul.products,
  .products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  ul.products li.product,
  .products li.product {
    width: calc(50% - 12px) !important;
    margin: 0 !important;
  }
  ul.products li.product img,
  .products li.product img {
    width: 100% !important;
    height: auto !important;
  }
}

/* --- Toast / Popup UI --- */
.kb-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 999999;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  max-width: min(92vw, 520px);
  display: flex;
  gap: 10px;
  align-items: center;
}
.kb-toast a.kb-toast-btn,
.kb-toast button.kb-toast-btn {
  border: 0;
  background: #269041;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.kb-toast .kb-toast-msg { flex: 1; }

/* --- Cart/Checkout Pages --- */
.kb-page {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.kb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.kb-header a { text-decoration: none; }
.kb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.kb-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.kb-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kb-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  color: #111;
}
.kb-card {
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}
.kb-table {
  width: 100%;
  border-collapse: collapse;
}
.kb-table th, .kb-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}
.kb-table th { font-weight: 650; }
.kb-qty {
  width: 70px;
}
.kb-row-actions button {
  border: 0;
  background: rgba(0,0,0,0.06);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.kb-total {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  padding-top: 10px;
}
.kb-btn {
  display: inline-block;
  border: 0;
  background: #269041;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}
.kb-btn-secondary {
  background: rgba(0,0,0,0.10);
  color: #111;
}
.kb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 14px;
}
.kb-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kb-form label { font-size: 13px; opacity: 0.9; }
.kb-form input, .kb-form textarea {
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 14px;
}
.kb-form textarea { min-height: 90px; grid-column: 1 / -1; }
.kb-form .kb-full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .kb-form { grid-template-columns: 1fr; }
  .kb-header { align-items: flex-start; }
}


/* --- Homepage spacing + product card polish (added 2026-01) --- */
body.home #content.site-content { padding-top: 0 !important; }
body.home .site-content { margin-top: 0 !important; }
body.home .elementor-element-f7df1cb { padding-top: 18px !important; padding-bottom: 18px !important; }
body.home .elementor-element-230434d5 { padding-top: 10px !important; }

/* Product cards: cleaner + consistent images */
ul.products li.product .product-inner {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06) !important;
}
ul.products li.product .product-thumbnail { padding: 10px !important; }
ul.products li.product .product-thumbnail img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}
ul.products li.product .product-summary { padding: 0 12px 12px 12px !important; }
ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  margin: 6px 0 4px 0 !important;
}
ul.products li.product .price { font-weight: 750 !important; }

/* WhatsApp order button */
a.wa-shop-button,
a#sendbtn.wa-shop-button {
  border-radius: 999px !important;
  padding: 10px 12px !important;
}

/* --- Mobile: sticky order bar --- */
.kb-mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999998;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}
.kb-mobile-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  padding: 12px 10px;
  border-radius: 14px;
}
.kb-mobile-bar a.kb-mbar-secondary {
  background: rgba(0,0,0,0.08);
  color: #111;
}
.kb-mobile-bar a.kb-mbar-primary {
  background: #269041;
  color: #fff;
}

/* --- Floating WhatsApp button (desktop + mobile) --- */
.kb-wa-float {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 999997;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}
.kb-wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 767px) {
  .kb-wa-float { bottom: 92px; }
}

/* ================================
   Home hero / How to order section
   ================================ */
.home .elementor-element-f7df1cb {
  padding-top: 18px !important;
  padding-bottom: 10px !important;
  margin-bottom: 6px !important;
}
.home .elementor-element-f7df1cb .elementor-container {
  gap: 18px !important;
}
.home .elementor-element-f7df1cb .elementor-column {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.06) !important;
}
.home .elementor-element-f7df1cb .razzi-banner {
  border-radius: 14px !important;
  overflow: hidden !important;
  margin: 0 !important;
}
.home .elementor-element-f7df1cb .razzi-banner__featured-image {
  min-height: 240px !important;
  background-size: cover !important;
  background-position: center !important;
}
.home .elementor-element-f7df1cb .razzi-banner-content {
  padding: 16px 14px 6px !important;
}
.home .elementor-element-f7df1cb .razzi-banner-content__title {
  margin: 0 0 8px 0 !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
}
.home .elementor-element-f7df1cb .razzi-banner-content__description {
  opacity: 0.9 !important;
}
.home .elementor-element-f7df1cb ul {
  padding-left: 0 !important;
  list-style: none !important;
  margin: 10px 0 0 0 !important;
}
.home .elementor-element-f7df1cb ul li {
  position: relative !important;
  padding-left: 28px !important;
  margin: 10px 0 !important;
  line-height: 1.35 !important;
}
.home .elementor-element-f7df1cb ul li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  background: rgba(37,211,102,0.16) !important;
  color: #0a7b34 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
}

/* Reduce extra gap before products */
.home .elementor-element-230434d5 {
  padding-top: 8px !important;
}

/* CTA buttons injected by JS */
.kb-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.12);
}
.kb-btn-primary {
  background: #111;
  color: #fff !important;
  border-color: #111;
}
.kb-btn-secondary {
  background: #fff;
  color: #111 !important;
}
@media (max-width: 767px) {
  .home .elementor-element-f7df1cb .elementor-column {
    padding: 14px !important;
  }
  .home .elementor-element-f7df1cb .razzi-banner__featured-image {
    min-height: 190px !important;
  }
}

/* ================================
   Shop page - search + sort bar
   ================================ */
.kb-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 16px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
}
.kb-shop-toolbar input[type="search"] {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  outline: none;
}
.kb-shop-toolbar select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
}
@media (max-width: 560px) {
  .kb-shop-toolbar { flex-direction: column; align-items: stretch; }
}

/* ================================
   Mobile: product pages layout fixes
   ================================ */
@media (max-width: 767px) {
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .entry-summary {
    width: 100% !important;
    float: none !important;
  }
  .single-product div.product .entry-summary {
    padding-left: 0 !important;
    padding-top: 14px !important;
  }
  .single-product div.product .woocommerce-product-gallery {
    margin-bottom: 12px !important;
  }
  .single-product div.product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    max-height: 380px;
    object-fit: contain;
  }
}

/* ================================
   Mobile: product grid (avoid huge cards)
   ================================ */
@media (max-width: 767px) {
  ul.products,
  .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  ul.products li.product,
  .products li.product {
    width: auto !important;
    margin: 0 !important;
  }
  ul.products li.product img,
  .products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
  }
}
@media (max-width: 360px) {
  ul.products,
  .products {
    grid-template-columns: 1fr !important;
  }
}
