/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/
/* =====================================================
HARD & FLUFFY – OPTIMIZED & SAFE ALL-IN-ONE CSS
===================================================== */
.site-header, 
.ct-header-container, 
#main {
    contain: layout style !important;
}

/* =====================
1. DESKTOP HEADER & MAIN CLS FIX (0.000 SHIFT TARGET)
===================================================== */
.site-header {
    min-height: 125px !important;
}

.ct-header-row {
    min-height: 125px !important;
}

[data-column="middle"] {
    min-height: 70px !important;
    display: flex;
    align-items: center;
}

/* =====================
2. MOBILE HERO & CATEGORIES (CLS KILLER)
===================================================== */
@media (max-width: 767px) {
  .elementor-element-150185d,
  .hero-banner {
    min-height: 280px !important;
    aspect-ratio: 16 / 9 !important;
    contain: layout style !important;
    display: block !important;
  }

  .elementor-element-150185d img,
  img[alt="Website Hero pic"] {
    width: 100% !important;
    height: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .elementor-element-918d22d,
  .elementor-element-bc8bac2 {
    min-height: 323px !important;
    aspect-ratio: 1 / 1 !important;
    contain: layout style !important;
  }
}

/* =====================
3. HERO BANNER & OVERLAY (DESKTOP & GENERAL)
===================================================== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  background-image: url('https://hardfluffy.com/wp-content/uploads/2026/07/Hard-Fluffy-Egypt-Luxury-Mattresses-Furniture-Hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 769px) {
  .hero-banner {
    min-height: 450px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 150, 0, 0.55), rgba(255, 80, 0, 0.78));
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-content h1,
.hero-content h2,
.hero-content p {
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}

.hero-content h1 span,
.hero-content h2 span {
  color: #ff9900 !important;
}

/* =====================
4. HERO CTA BUTTONS
===================================================== */
.hero-cta-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 32px;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: 0.35s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
}

.hero-cta:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.hero-cta,
.hero-cta span {
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero-cta span {
  position: relative;
  z-index: 2;
}

/* =====================
5. GLOBAL IMAGES & PREVENT TRANSLATE
===================================================== */
img {
  max-width: 100%;
  height: auto;
}

.notranslate,
h1.brand,
.site-title {
  -webkit-user-select: auto;
}

/* =====================
6. WOOCOMMERCE CHECKOUT & CART UX
===================================================== */
.woocommerce-checkout #payment ul.payment_methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  border: 1px solid #eee !important;
  border-radius: 14px !important;
  background: #fff !important;
  overflow: hidden;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  display: flex !important;
  padding: 16px 14px !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: rgba(22,163,74,0.35);
  box-shadow: 0 0 0 2px rgba(22,163,74,0.12);
}

.woocommerce-checkout #payment ul.payment_methods li:has(input:checked)::after {
  content: "\2714  دفع آمن 100% • توصيل سريع لكل أنحاء مصر • بدون أي رسوم خفية";
  display: block;
  margin: 10px 14px;
  padding: 10px;
  background: #eff6ff;
  border-radius: 10px;
  direction: rtl;
  text-align: right;
}

.woocommerce-checkout-review-order-table .order-total bdi,
.woocommerce-cart .cart_totals .order-total bdi {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #111 !important;
}

.woocommerce-checkout-review-order-table .woocommerce-Price-amount,
.woocommerce-cart .cart_totals .woocommerce-Price-amount {
  font-weight: 800;
}

/* =====================
7. SHIPPING UX & BUTTONS
===================================================== */
.woocommerce .shipping-calculator-form {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.shipping-calculator-button,
a.shipping-calculator-button {
  color: #ff6600 !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.shipping-calculator-button:hover,
a.shipping-calculator-button:hover {
  color: #e65c00 !important;
}

.ct-shipping-heading,
.woocommerce-shipping-destination {
  cursor: default !important;
  user-select: none;
  pointer-events: none;
  opacity: 0.9;
  font-weight: 700;
}

.ct-shipping-heading {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 900 !important;
  font-size: 18px !important;
}

label[for*="free_shipping"],
.woocommerce-shipping-methods label {
  font-weight: 800 !important;
  color: #111 !important;
}

/* =====================
8. BUTTONS (SINGLE PRODUCT, SHOP LOOP & ADDED TO CART)
===================================================== */
.single-product .single_add_to_cart_button.button {
  background: linear-gradient(180deg, #f58220 0%, #e06d10 100%) !important;
  color: #ffffff !important;
    font-size: 16px !important;
  font-weight: 800 !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(245, 130, 32, 0.4) !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  margin-top: 10px !important;
}

.single-product .single_add_to_cart_button.button:hover {
  background: linear-gradient(180deg, #e06d10 0%, #c85000 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(245, 130, 32, 0.5) !important;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button.add_to_cart_button,
.woocommerce .product .add_to_cart_button,
.woocommerce button.button,
.woocommerce a.button {
  background-image: none !important;
  background: #f58220 !important;
  background-color: #f58220 !important;
  color: #ffffff !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.35) !important;
  transition: all 0.25s ease !important;
  --theme-button-background-initial-color: #f58220 !important;
  --theme-button-text-initial-color: #ffffff !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce .product .add_to_cart_button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background-image: none !important;
  background: #d96b0d !important;
  background-color: #d96b0d !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(217, 107, 13, 0.45) !important;
  --theme-button-background-hover-color: #d96b0d !important;
  --theme-button-text-hover-color: #ffffff !important;
}

a.added_to_cart.wc-forward {
  display: inline-block !important;
  background: linear-gradient(180deg, #ff9a1f 0%, #ff6a00 100%) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 0 #c85000, 0 10px 20px rgba(255,106,0,.35);
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  transform: translateY(0);
  transition: all .2s ease;
  animation: haf-cart-pulse 1.5s infinite;
}

a.added_to_cart.wc-forward:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #c85000, 0 14px 24px rgba(255,106,0,.45);
}

a.added_to_cart.wc-forward:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #c85000, 0 4px 8px rgba(255,106,0,.30);
}

@keyframes haf-cart-pulse {
  0% {
    box-shadow: 0 6px 0 #c85000, 0 10px 20px rgba(255,106,0,.35);
  }
  50% {
    box-shadow: 0 6px 0 #c85000, 0 0 0 10px rgba(255,122,0,.15), 0 0 0 20px rgba(255,122,0,.08), 0 10px 25px rgba(255,106,0,.55);
  }
  100% {
    box-shadow: 0 6px 0 #c85000, 0 10px 20px rgba(255,106,0,.35);
  }
}

/* =====================
9. NAVIGATION MENU FIX (BLOCKSY)
===================================================== */
.ct-header,
.ct-header-navigation,
.site-header {
  overflow: visible !important;
}

.main-menu li {
  position: relative;
}

@media (min-width: 1000px) {
  .main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;
  }

  .main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* =====================
10. HERO IMAGE FIX & BUNDLE BUILDER
===================================================== */
.hero-img-fix img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
}

@media (min-width: 769px) {
    .hero-img-fix img {
        height: 450px !important;
    }
}

#site-navigation ul li.menu-item-bundle-builder a {
    position: relative;
    background: #e74c3c !important;
    color: #fff !important;
    border-radius: 20px;
    padding: 6px 15px !important;
    margin-top: 5px;
}

#haf-bundle-builder {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 15px auto;
    border: 1px solid #eaeaea;
}

#haf-bundle-builder .haf-bb-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

#haf-bundle-builder .haf-bb-select:focus {
    border-color: #e67e22;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

#haf-bundle-builder label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    display: block;
}

#haf-bundle-builder .haf-bb-btn-add {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#haf-bundle-builder .haf-bb-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* =====================
11. FONTS & CLS STABILITY
===================================================== */
body, p {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1 { font-size: 27px; font-weight: 700; line-height: 1.3; min-height: 34px; }
h2 { font-size: 25px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 23px; font-weight: 700; line-height: 1.3; }
h4 { font-size: 20px; font-weight: 700; line-height: 1.3; }
h5 { font-size: 18px; font-weight: 700; line-height: 1.3; }
h6 { font-size: 16px; font-weight: 700; line-height: 1.3; }

.woocommerce ul.products li.product h2, 
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.products .product h2,
.products .product .woocommerce-loop-product__title {
    font-family: 'Cairo', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product h2, 
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .products .product h2,
    .products .product .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
}

/* =====================
12. WISHLIST BUTTONS (FIXED & COMPACT)
===================================================== */
.wcboost-wishlist-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: fit-content !important;
  background: #fff !important;
  color: #e53935 !important;
  border: 1.5px solid #e53935 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  margin-top: 10px !important;
  min-height: 0 !important;
  cursor: pointer !important;
  transition: all .2s ease;
}

.wcboost-wishlist-button svg {
  fill: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 20px !important;
  width: 16px !important;
  height: 16px !important;
  margin-left: 6px !important;
}

.wcboost-wishlist-button:hover {
  background: #fdecea !important;
  transform: translateY(-1px);
}

.wcboost-wishlist-button.added {
  background: #e53935 !important;
  color: #fff !important;
  border-color: #e53935 !important;
}

.wcboost-wishlist-button.added:hover {
  background: #c62828 !important;
}

/* =====================
13. FIX QUANTITY BOX ALIGNMENT
===================================================== */
.quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

.quantity input.qty {
    order: 2 !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.quantity span.ct-decrease,
.quantity button.minus {
    order: 1 !important;
}

.quantity span.ct-increase,
.quantity button.plus {
    order: 3 !important;
}

.quantity span.ct-increase svg,
.quantity span.ct-decrease svg {
    display: none !important;
}

.quantity span.ct-decrease::after {
    content: "–" !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #111 !important;
}

.quantity span.ct-increase::after {
    content: "+" !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #111 !important;
}

.quantity span.ct-increase,
.quantity span.ct-decrease,
.quantity button.plus,
.quantity button.minus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 100% !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* =====================
14. FIX MOBILE OFF-CANVAS DRAWER & MENU
===================================================== */
.ct-off-canvas,
#off-canvas,
[data-id="off-canvas"] {
    display: block !important;
    visibility: visible !important;
    z-index: 999999 !important;
}

.ct-drawer-open body {
    overflow: hidden !important;
}

.ct-header-trigger,
.mobile-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    cursor: pointer !important;
    z-index: 9999 !important;
}