/*
Theme Name: Yellow Host E-commerce
Description: Modern WooCommerce fashion e-commerce theme with slider, quick order, size/color variations and product video support.
Version: 2.1.1-cart-stable
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: yellow-host-ecommerce
*/
:root{--yh-orange:#ff5a00;--yh-bg:#f5f5f5;--yh-card:#fff;--yh-text:#333;--yh-muted:#777;--yh-border:#e8e8e8}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Arial,Helvetica,sans-serif;background:var(--yh-bg);color:var(--yh-text);font-size:14px}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.yh-container{width:min(1200px,94%);margin:auto}.yh-topbar,.yh-header{background:var(--yh-orange);color:#fff}.yh-topbar{font-size:12px}.yh-topbar-inner{display:flex;justify-content:space-between;padding:5px 0}.yh-header-main{display:flex;align-items:center;gap:18px;padding:9px 0 13px}.yh-logo{width:150px;max-height:52px;object-fit:contain}.custom-logo{max-height:52px;width:auto}.yh-logo-text{font-size:24px;font-weight:800;letter-spacing:-1px}.yh-search{flex:1;display:flex;background:#fff;border-radius:4px;overflow:hidden}.yh-search input{flex:1;border:0;padding:12px 14px;outline:0}.yh-search button{width:52px;border:0;background:#fff;color:var(--yh-orange);font-size:18px;cursor:pointer}.yh-actions{display:flex;gap:15px;align-items:center;font-size:12px}.yh-action{display:flex;align-items:center;gap:5px;white-space:nowrap}.yh-cart-count{background:#fff;color:var(--yh-orange);border-radius:50%;padding:2px 6px;font-weight:700}.yh-nav{background:#fff;border-bottom:1px solid var(--yh-border)}.yh-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:10px 0;overflow:auto}.yh-nav li{white-space:nowrap}.yh-mobile-nav{display:none}.yh-home-layout{display:grid;grid-template-columns:190px 1fr;gap:10px;margin-top:12px}.yh-categories{background:#fff;border-radius:5px;padding:8px 0;border:1px solid var(--yh-border)}.yh-categories h3{font-size:15px;margin:0;padding:9px 14px;border-bottom:1px solid var(--yh-border)}.yh-categories ul{list-style:none;margin:0;padding:0}.yh-categories li a{display:block;padding:7px 14px;font-size:12px}.yh-categories li a:hover{background:#fff4ed;color:var(--yh-orange)}.yh-slider{position:relative;background:#fff;border-radius:6px;overflow:hidden;aspect-ratio:1876/682;min-height:0}.yh-slide{display:none;position:relative;height:100%;aspect-ratio:1876/682}.yh-slide.active{display:block}.yh-slide img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#fff}.yh-slide-placeholder{height:100%;aspect-ratio:1876/682;background:linear-gradient(120deg,#fff0e8,#ffd0b8);display:flex;align-items:center;justify-content:center}.yh-slide-content{position:absolute;left:45px;top:50%;transform:translateY(-50%);max-width:48%}.yh-slide-content h2{font-size:34px;margin:0 0 8px}.yh-slide-content p{font-size:16px}.yh-slider-dots{position:absolute;bottom:12px;left:0;right:0;text-align:center}.yh-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#ddd;margin:0 4px;cursor:pointer}.yh-dot.active{background:var(--yh-orange)}.yh-features{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;margin:12px 0;border:1px solid var(--yh-border)}.yh-feature{padding:13px 7px;text-align:center;border-right:1px solid var(--yh-border);font-size:12px}.yh-feature:last-child{border-right:0}.yh-section{margin:14px 0}.yh-section-head{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:12px 14px;border-bottom:1px solid var(--yh-border)}.yh-section-head h2{font-size:20px;margin:0}.yh-section-head a{color:var(--yh-orange);font-size:12px}.yh-product-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:10px;background:#fff}.yh-product-card{background:#fff;min-width:0;position:relative;border:1px solid transparent;transition:.15s}.yh-product-card:hover{border-color:#ddd;box-shadow:0 3px 12px rgba(0,0,0,.08)}.yh-product-image{position:relative;aspect-ratio:1/1;overflow:hidden;background:#fafafa}.yh-product-image img{width:100%;height:100%;object-fit:cover}.yh-sale{position:absolute;left:6px;top:6px;background:var(--yh-orange);color:#fff;font-size:10px;padding:3px 6px;z-index:2}.yh-product-info{padding:8px}.yh-product-title{font-size:13px;line-height:1.35;height:35px;overflow:hidden;margin-bottom:5px}.yh-price{color:var(--yh-orange);font-size:16px;font-weight:700}.yh-old-price{color:#999;font-size:11px;margin-left:5px}.yh-product-actions{display:flex;gap:5px;margin:8px}.yh-btn{display:inline-block;border:0;border-radius:3px;padding:8px 9px;cursor:pointer;font-weight:700;font-size:11px}.yh-btn-cart{background:#fff1e8;color:var(--yh-orange);border:1px solid #ffd5bf}.yh-btn-buy{background:var(--yh-orange);color:#fff}.yh-btn-full{width:100%}.yh-category-grid{display:grid;grid-template-columns:repeat(8,1fr);background:#fff}.yh-cat-card{padding:10px;text-align:center;border:1px solid var(--yh-border);font-size:11px;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}.yh-cat-card img{width:75px;height:75px;object-fit:cover;border-radius:50%;margin-bottom:0}.yh-cat-placeholder{width:75px;height:75px;border-radius:50%;display:grid;place-items:center;background:#f3f3f3;color:var(--yh-orange);font-size:28px;font-weight:700}.yh-footer{background:#eee;margin-top:35px;padding:35px 0 15px}.yh-footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}.yh-footer h4{margin:0 0 10px}.yh-footer ul{list-style:none;padding:0;margin:0}.yh-footer li{margin:7px 0;font-size:12px;color:#666}.yh-copy{text-align:center;border-top:1px solid #ccc;margin-top:25px;padding-top:15px;font-size:11px;color:#777}.yh-breadcrumb{padding:12px 0;font-size:12px;color:#777}.woocommerce div.product .yh-product-detail{display:grid;grid-template-columns:48% 52%;background:#fff;padding:20px;gap:25px}.yh-video-box{margin-top:18px;border-top:1px solid var(--yh-border);padding-top:15px}.yh-video-frame{width:100%;aspect-ratio:16/9;border:0}.yh-video-mp4{width:100%;display:block}.yh-quick-order{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:99999}.yh-quick-order.open{display:flex}.yh-quick-box{background:#fff;width:min(460px,94%);border-radius:8px;padding:20px;position:relative}.yh-quick-box h3{margin-top:0}.yh-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:25px;cursor:pointer}.yh-field{margin:9px 0}.yh-field label{display:block;font-size:12px;margin-bottom:4px;font-weight:700}.yh-field input,.yh-field textarea{width:100%;border:1px solid #ddd;border-radius:4px;padding:10px}.yh-field textarea{min-height:70px;resize:vertical}.yh-quick-status{font-size:12px;margin-top:8px}.yh-mobile-bottom{display:none}@media(max-width:900px){.yh-container{width:96%}.yh-home-layout{grid-template-columns:1fr}.yh-categories{display:none}.yh-product-grid{grid-template-columns:repeat(3,1fr)}.yh-category-grid{grid-template-columns:repeat(4,1fr)}.yh-features{grid-template-columns:repeat(3,1fr)}.yh-feature:nth-child(n+4){display:none}.yh-header-main{gap:8px}.yh-logo{width:110px}.yh-actions{display:none}.yh-nav{display:none}.yh-mobile-nav{display:block;background:#fff;border-bottom:1px solid #ddd}.yh-mobile-nav ul{display:flex;list-style:none;margin:0;padding:8px;gap:15px;overflow:auto;font-size:12px}.yh-slide,.yh-slide-placeholder{height:auto;aspect-ratio:1876/682}.yh-slide-content{left:20px}.yh-slide-content h2{font-size:24px}.woocommerce div.product .yh-product-detail{grid-template-columns:1fr}}@media(max-width:600px){body{padding-bottom:55px}.yh-topbar{display:none}.yh-header-main{padding:8px 0}.yh-logo{display:none}.yh-search input{padding:10px}.yh-product-grid{grid-template-columns:repeat(2,1fr);gap:5px;padding:6px}.yh-product-title{font-size:12px}.yh-category-grid{grid-template-columns:repeat(4,1fr)}.yh-cat-card img{width:55px;height:55px}.yh-footer-grid{grid-template-columns:repeat(2,1fr)}.yh-mobile-bottom{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);left:0;right:0;bottom:0;background:#fff;border-top:1px solid #ddd;z-index:9999}.yh-mobile-bottom a{padding:8px 3px;text-align:center;font-size:10px}.yh-mobile-bottom span{display:block;font-size:17px;margin-bottom:2px}}

.yh-slider,.yh-slide,.yh-slide-placeholder{min-height:var(--yh-slider-height,360px);height:var(--yh-slider-height,360px)}
.yh-offline-payment{background:#fff7f0;border:1px solid #ffd5bf;padding:12px;border-radius:5px}
.yh-wallet-list{display:grid;gap:8px}
.yh-wallet{display:flex;align-items:center;gap:10px;padding:8px;background:#fff;border:1px solid #eee;border-radius:4px}
.yh-wallet img{width:34px;height:34px;object-fit:contain}
.yh-wallet span{margin-left:auto;font-weight:700;letter-spacing:.5px}
@media(max-width:700px){.yh-wallet{flex-wrap:wrap}.yh-wallet span{margin-left:0;width:100%}}
.yh-field select{width:100%;border:1px solid #ddd;border-radius:4px;padding:10px;background:#fff}
.yh-offline-quick{margin-top:10px}.yh-offline-quick .yh-offline-payment{font-size:12px}.yh-offline-quick .yh-offline-payment p{margin:0 0 8px}.yh-offline-quick .yh-wallet{padding:7px}.yh-offline-quick .yh-wallet span{font-size:13px}

/* Full-image responsive slider: preserve the original 1876x682 design on every device. */
.yh-slider{position:relative;width:100%;height:auto!important;min-height:0!important;aspect-ratio:1876/682;overflow:hidden}
.yh-slide{position:absolute;inset:0;display:none;width:100%;height:100%!important;min-height:0!important;aspect-ratio:auto}
.yh-slide.active{display:block}
.yh-slide img{display:block;width:100%;height:100%!important;max-width:100%;object-fit:contain!important;object-position:center center;background:#fff}
.yh-slide-placeholder{width:100%;height:100%!important;min-height:0!important;aspect-ratio:auto}
@media(max-width:900px){.yh-slider{height:auto!important;min-height:0!important;aspect-ratio:1876/682}.yh-slide{height:100%!important}.yh-slide img{height:100%!important;object-fit:contain!important}.yh-slide-content{display:none}}
@media(max-width:600px){.yh-slider{height:auto!important;min-height:0!important;aspect-ratio:1876/682}.yh-slide img{height:100%!important;object-fit:contain!important}}

.yh-category-section .yh-product-image{min-height:var(--yh-category-height);display:flex;align-items:center;justify-content:center}.yh-category-section .yh-product-image img{max-height:var(--yh-category-height);width:auto;object-fit:contain}@media(max-width:767px){.yh-category-section .yh-product-image{min-height:var(--yh-category-height);}.yh-category-section .yh-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Homepage category layout enhancements */
.yh-home-categories{margin-top:14px}.yh-home-categories .yh-category-grid{grid-template-columns:repeat(8,minmax(0,1fr));}
@media(max-width:900px){.yh-home-layout{grid-template-columns:170px 1fr}.yh-home-categories .yh-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.yh-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:600px){.yh-home-layout{grid-template-columns:1fr}.yh-categories{order:2}.yh-slider{order:1}.yh-home-categories .yh-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.yh-cat-card{padding:7px 3px;font-size:10px}.yh-cat-card img,.yh-cat-placeholder{width:52px;height:52px}.yh-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}

/* Footer development credit */
.yh-development-credit{margin-left:8px;white-space:nowrap}
.yh-development-credit a{font-weight:700;text-decoration:none}
.yh-development-credit a:hover{text-decoration:underline}
@media (max-width:600px){.yh-development-credit{display:block;margin:6px 0 0}}

/* Homepage left sidebar uses Appearance > Menus > Primary Menu. */
.yh-sidebar-menu-list{list-style:none;margin:0;padding:0}.yh-sidebar-menu-list li{margin:0;padding:0}.yh-sidebar-menu-list li a{display:block;padding:7px 14px;font-size:12px;text-decoration:none;color:inherit;border-bottom:1px solid transparent}.yh-sidebar-menu-list li a:hover{background:#fff4ed;color:var(--yh-orange)}.yh-sidebar-menu-list .sub-menu{list-style:none;margin:0;padding:0 0 0 10px}.yh-sidebar-menu-list .menu-item-has-children>a:after{content:'›';float:right;color:#aaa}
@media(max-width:900px){.yh-home-layout{grid-template-columns:170px 1fr}.yh-categories{display:block}.yh-categories h3{font-size:14px}}
@media(max-width:600px){.yh-home-layout{grid-template-columns:1fr}.yh-categories{order:2}.yh-slider{order:1}.yh-sidebar-menu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.yh-sidebar-menu-list li a{padding:8px 10px;font-size:11px}}
/* Prevent duplicate category initials when a category has no thumbnail. */
.yh-cat-card::before,
.yh-cat-card::after,
.yh-cat-card > .yh-cat-placeholder::before,
.yh-cat-card > .yh-cat-placeholder::after{content:none!important;display:none!important}

/* Mobile bottom Categories navigation */
.yh-mobile-footer-categories{display:none}
.yh-bottom-icon{display:block;font-size:30px;line-height:1.05;margin-bottom:5px}
@media(max-width:600px){
  .yh-mobile-footer-categories{display:block;background:#fff;border:1px solid var(--yh-border);border-radius:8px;margin:18px 0;padding:0;scroll-margin-bottom:70px}
  .yh-mobile-footer-categories h3{font-size:22px;margin:0;padding:16px;border-bottom:1px solid var(--yh-border)}
  .yh-mobile-footer-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .yh-mobile-footer-category-grid a{padding:14px 16px;border-bottom:1px solid var(--yh-border);font-size:14px}
  .yh-mobile-footer-category-grid a:nth-child(odd){border-right:1px solid var(--yh-border)}
  .yh-mobile-bottom a{font-size:12px;padding:9px 3px 7px}
  .yh-mobile-bottom .yh-bottom-icon{font-size:29px}
}

/* Professional product cards - responsive desktop and mobile layout */
.yh-product-grid{
  align-items:stretch;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  padding:14px;
}
.yh-product-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #ececec;
  border-radius:8px;
  background:#fff;
}
.yh-product-card>a:first-child{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}
.yh-product-image{
  width:100%;
  aspect-ratio:1/1;
  min-height:0!important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafb;
  overflow:hidden;
}
.yh-product-image img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  object-fit:contain!important;
  object-position:center;
  padding:10px;
}
.yh-product-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:11px 10px 4px;
  flex:1;
}
.yh-product-title{
  font-size:13px;
  line-height:1.45;
  height:38px;
  margin:0;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.yh-price{font-size:15px;line-height:1.5;min-height:24px;white-space:normal}
.yh-price del{color:#999;font-size:12px;margin-right:5px}
.yh-price ins{text-decoration:none;color:var(--yh-orange)}
.yh-product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:10px;
  margin-top:auto;
}
.yh-product-actions .yh-btn{
  width:100%;
  min-height:36px;
  padding:9px 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:11px;
  line-height:1.2;
  white-space:normal;
}
.yh-sale{left:8px;top:8px;border-radius:3px;font-weight:700}
.yh-category-section .yh-product-image{min-height:0!important;height:auto}

@media (max-width:1100px){
  .yh-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:767px){
  .yh-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    padding:9px;
  }
  .yh-product-card{border-radius:6px}
  .yh-product-image{aspect-ratio:1/1}
  .yh-product-image img{padding:8px}
  .yh-product-info{padding:9px 8px 3px}
  .yh-product-title{font-size:12px;height:35px;line-height:1.4}
  .yh-price{font-size:14px;min-height:22px}
  .yh-old-price{font-size:11px}
  .yh-product-actions{gap:5px;margin:8px}
  .yh-product-actions .yh-btn{min-height:34px;font-size:10px;padding:8px 3px}
  .yh-category-section .yh-product-image{aspect-ratio:1/1;min-height:0!important}
}
@media (max-width:380px){
  .yh-product-grid{gap:7px;padding:7px}
  .yh-product-actions{grid-template-columns:1fr;margin:7px}
  .yh-product-actions .yh-btn{min-height:32px}
}


/* =========================================================
   Final responsive product display + mobile footer categories
   ========================================================= */

/* Homepage category product rows: clean four-column layout */
.yh-category-section .yh-product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:12px;
}
.yh-category-section .yh-product-card{
  min-width:0;
  background:#fff;
  border:1px solid #e9eef0;
  border-radius:8px;
  overflow:hidden;
}
.yh-category-section .yh-product-image{
  aspect-ratio:1/1;
  height:auto!important;
  min-height:0!important;
  background:#f7f9fa;
}
.yh-category-section .yh-product-image img{
  width:100%!important;
  height:100%!important;
  max-width:100%;
  max-height:100%;
  padding:12px;
  object-fit:contain!important;
}
.yh-category-section .yh-product-info{
  padding:10px;
}
.yh-category-section .yh-product-title{
  min-height:36px;
  height:36px;
  font-size:13px;
  line-height:1.4;
}
.yh-category-section .yh-price{
  font-size:15px;
  min-height:24px;
}
.yh-category-section .yh-product-actions{
  margin:8px;
  gap:6px;
}
.yh-category-section .yh-product-actions .yh-btn{
  min-height:34px;
  padding:8px 5px;
  font-size:11px;
}

/* Shop/category archive pages */
.woocommerce-page .yh-product-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  padding:12px;
}
.woocommerce-page .yh-product-card{
  border:1px solid #e9eef0;
  border-radius:8px;
  overflow:hidden;
}
.woocommerce-page .yh-product-image{
  aspect-ratio:1/1;
  background:#f7f9fa;
}
.woocommerce-page .yh-product-image img{
  object-fit:contain!important;
  padding:12px;
}

/* Mobile: two balanced product cards, no oversized blank image area */
@media (max-width:767px){
  .yh-category-section .yh-product-grid,
  .woocommerce-page .yh-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:8px;
  }
  .yh-category-section .yh-product-card,
  .woocommerce-page .yh-product-card{
    border-radius:6px;
  }
  .yh-category-section .yh-product-image,
  .woocommerce-page .yh-product-image{
    aspect-ratio:1/1;
    min-height:0!important;
    height:auto!important;
  }
  .yh-category-section .yh-product-image img,
  .woocommerce-page .yh-product-image img{
    padding:8px;
  }
  .yh-category-section .yh-product-info,
  .woocommerce-page .yh-product-info{
    padding:8px;
  }
  .yh-category-section .yh-product-title,
  .woocommerce-page .yh-product-title{
    font-size:12px;
    line-height:1.4;
    height:34px;
    min-height:34px;
  }
  .yh-category-section .yh-price,
  .woocommerce-page .yh-price{
    font-size:14px;
    line-height:1.4;
  }
  .yh-category-section .yh-product-actions,
  .woocommerce-page .yh-product-actions{
    grid-template-columns:1fr 1fr;
    gap:5px;
    margin:7px;
  }
  .yh-category-section .yh-product-actions .yh-btn,
  .woocommerce-page .yh-product-actions .yh-btn{
    min-height:33px;
    font-size:10px;
    padding:7px 2px;
  }
}

/* Small phones: keep buttons usable and cards compact */
@media (max-width:380px){
  .yh-category-section .yh-product-grid,
  .woocommerce-page .yh-product-grid{
    gap:6px;
    padding:6px;
  }
  .yh-category-section .yh-product-actions,
  .woocommerce-page .yh-product-actions{
    grid-template-columns:1fr;
  }
}

/* Mobile footer category list: compact, clean and scroll-safe */
@media (max-width:600px){
  .yh-mobile-footer-categories{
    display:block;
    margin:20px 0 14px;
    border:1px solid #e5e5e5;
    border-radius:8px;
    background:#fff;
    overflow:hidden;
  }
  .yh-mobile-footer-categories h3{
    margin:0;
    padding:14px 16px;
    font-size:20px;
    font-weight:700;
    border-bottom:1px solid #e5e5e5;
  }
  .yh-mobile-footer-category-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .yh-mobile-footer-category-grid a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
    font-size:13px;
    line-height:1.35;
    color:#333;
    border-bottom:1px solid #eee;
  }
  .yh-mobile-footer-category-grid a:nth-child(odd){
    border-right:1px solid #eee;
  }
  .yh-mobile-footer-category-grid a:nth-last-child(-n+2){
    border-bottom:0;
  }
  .yh-mobile-bottom a{
    font-size:12px;
    font-weight:500;
  }
  .yh-mobile-bottom .yh-bottom-icon{
    font-size:28px;
    line-height:1.1;
  }
}

/* Final fix: Homepage category sections must use the same clean product layout as "Just For You". */
.yh-category-section .yh-product-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  padding:10px;
}
.yh-category-section .yh-product-card{
  min-width:0;
  background:#fff;
  border:1px solid transparent;
  border-radius:0;
  overflow:visible;
}
.yh-category-section .yh-product-image{
  position:relative;
  aspect-ratio:1/1;
  width:100%;
  height:auto!important;
  min-height:0!important;
  background:#fafafa;
  overflow:hidden;
}
.yh-category-section .yh-product-image img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  max-height:100%;
  padding:0;
  object-fit:cover!important;
}
.yh-category-section .yh-product-info{padding:8px}
.yh-category-section .yh-product-title{
  font-size:13px;
  line-height:1.35;
  height:35px;
  min-height:0;
  overflow:hidden;
  margin-bottom:5px;
}
.yh-category-section .yh-price{
  color:var(--yh-orange);
  font-size:16px;
  font-weight:700;
  min-height:0;
  line-height:1.3;
}
.yh-category-section .yh-product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:10px;
}
.yh-category-section .yh-product-actions .yh-btn{
  width:100%;
  min-height:36px;
  padding:9px 5px;
  font-size:11px;
}
@media(max-width:1100px){
  .yh-category-section .yh-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:767px){
  .yh-category-section .yh-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    padding:9px;
  }
  .yh-category-section .yh-product-image{aspect-ratio:1/1;height:auto!important;min-height:0!important}
  .yh-category-section .yh-product-image img{padding:8px;object-fit:contain!important}
  .yh-category-section .yh-product-info{padding:9px 8px 3px}
  .yh-category-section .yh-product-title{font-size:12px;height:35px;line-height:1.4}
  .yh-category-section .yh-price{font-size:14px;min-height:22px}
  .yh-category-section .yh-product-actions{gap:5px;margin:8px}
  .yh-category-section .yh-product-actions .yh-btn{min-height:34px;font-size:10px;padding:8px 3px}
}
@media(max-width:380px){
  .yh-category-section .yh-product-grid{gap:7px;padding:7px}
  .yh-category-section .yh-product-actions{grid-template-columns:1fr;margin:7px}
}

/* FINAL FIX: Make every homepage category section match the Just For You display */
.yh-home-layout ~ .yh-category-section .yh-product-grid,
.yh-category-section .yh-product-grid{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:14px !important;
  padding:14px !important;
  align-items:stretch !important;
}
.yh-category-section .yh-product-card{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  height:auto !important;
  background:#fff !important;
  border:1px solid #ececec !important;
  border-radius:8px !important;
  overflow:hidden !important;
}
.yh-category-section .yh-product-card>a:first-child{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  min-width:0 !important;
}
.yh-category-section .yh-product-image{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:1 / 1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#f8fafb !important;
  overflow:hidden !important;
}
.yh-category-section .yh-product-image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  padding:10px !important;
  object-fit:contain !important;
  object-position:center !important;
}
.yh-category-section .yh-product-info{
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
  padding:11px 10px 4px !important;
  flex:1 1 auto !important;
}
.yh-category-section .yh-product-title{
  height:38px !important;
  min-height:38px !important;
  font-size:13px !important;
  line-height:1.45 !important;
  overflow:hidden !important;
}
.yh-category-section .yh-price{
  font-size:15px !important;
  min-height:24px !important;
}
.yh-category-section .yh-product-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:7px !important;
  margin:10px !important;
  margin-top:auto !important;
}
.yh-category-section .yh-product-actions .yh-btn{
  width:100% !important;
  min-height:36px !important;
  padding:9px 5px !important;
  font-size:11px !important;
}
@media (max-width:1100px){
  .yh-category-section .yh-product-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
@media (max-width:767px){
  .yh-category-section .yh-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
    padding:9px !important;
  }
  .yh-category-section .yh-product-image{aspect-ratio:1 / 1 !important;min-height:0 !important;}
  .yh-category-section .yh-product-image img{padding:8px !important;}
  .yh-category-section .yh-product-info{padding:9px 8px 3px !important;}
  .yh-category-section .yh-product-title{font-size:12px !important;height:35px !important;min-height:35px !important;line-height:1.4 !important;}
  .yh-category-section .yh-price{font-size:14px !important;min-height:22px !important;}
  .yh-category-section .yh-product-actions{gap:5px !important;margin:8px !important;}
  .yh-category-section .yh-product-actions .yh-btn{min-height:34px !important;font-size:10px !important;padding:8px 3px !important;}
}
@media (max-width:380px){
  .yh-category-section .yh-product-actions{grid-template-columns:1fr !important;margin:7px !important;}
}

/* v2: Category sections intentionally inherit the exact Just For You product layout. */
.yh-category-section .yh-product-grid,
.yh-category-section .yh-product-card,
.yh-category-section .yh-product-image,
.yh-category-section .yh-product-image img,
.yh-category-section .yh-product-info,
.yh-category-section .yh-product-title,
.yh-category-section .yh-price,
.yh-category-section .yh-product-actions,
.yh-category-section .yh-product-actions .yh-btn{
  /* keep the same structure and sizing as .yh-product-grid / .yh-product-card */
}
.yh-category-section .yh-product-grid{grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:14px !important;padding:14px !important;}
.yh-category-section .yh-product-card{display:flex !important;flex-direction:column !important;min-width:0 !important;height:auto !important;background:#fff !important;border:1px solid #ececec !important;border-radius:8px !important;overflow:hidden !important;}
.yh-category-section .yh-product-card>a:first-child{display:flex !important;flex-direction:column !important;flex:1 !important;min-width:0 !important;}
.yh-category-section .yh-product-image{width:100% !important;aspect-ratio:1/1 !important;height:auto !important;min-height:0 !important;display:flex !important;align-items:center !important;justify-content:center !important;background:#f8fafb !important;overflow:hidden !important;}
.yh-category-section .yh-product-image img{display:block !important;width:100% !important;height:100% !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;object-position:center !important;padding:10px !important;}
.yh-category-section .yh-product-info{display:flex !important;flex-direction:column !important;gap:6px !important;padding:11px 10px 4px !important;flex:1 !important;}
.yh-category-section .yh-product-title{font-size:13px !important;line-height:1.45 !important;height:38px !important;min-height:38px !important;overflow:hidden !important;}
.yh-category-section .yh-price{font-size:15px !important;line-height:1.5 !important;min-height:24px !important;}
.yh-category-section .yh-product-actions{display:grid !important;grid-template-columns:1fr 1fr !important;gap:7px !important;margin:10px !important;margin-top:auto !important;}
.yh-category-section .yh-product-actions .yh-btn{width:100% !important;min-height:36px !important;padding:9px 5px !important;font-size:11px !important;}
@media(max-width:1100px){.yh-category-section .yh-product-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}}
@media(max-width:767px){.yh-category-section .yh-product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important;padding:9px !important;}.yh-category-section .yh-product-image img{padding:8px !important;}.yh-category-section .yh-product-info{padding:9px 8px 3px !important;}.yh-category-section .yh-product-title{font-size:12px !important;height:35px !important;min-height:35px !important;}.yh-category-section .yh-price{font-size:14px !important;min-height:22px !important;}.yh-category-section .yh-product-actions{gap:5px !important;margin:8px !important;}.yh-category-section .yh-product-actions .yh-btn{min-height:34px !important;font-size:10px !important;padding:8px 3px !important;}}
@media(max-width:380px){.yh-category-section .yh-product-actions{grid-template-columns:1fr !important;margin:7px !important;}}


/* FINAL MOBILE CATEGORY PLACEMENT FIX
   On mobile, hide the homepage sidebar category menu completely.
   Categories are shown only in the footer category section. */
@media screen and (max-width: 600px){
  body .yh-home-layout{
    display:block !important;
    grid-template-columns:1fr !important;
  }
  body .yh-home-layout > .yh-categories,
  body .yh-home-layout .yh-categories{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    max-height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
  body .yh-home-layout > .yh-slider{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    grid-column:1 / -1 !important;
  }
  body .yh-mobile-footer-categories{
    display:block !important;
    visibility:visible !important;
  }
}

/* ABSOLUTE MOBILE LAYOUT FIX - v4 */
@media screen and (max-width: 767px), screen and (max-device-width: 767px){
  html body .yh-product-grid,
  html body .yh-category-section .yh-product-grid,
  html body .yh-home-layout ~ .yh-section .yh-product-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:8px !important;
    padding:8px !important;
    overflow:visible !important;
  }
  html body .yh-product-card,
  html body .yh-category-section .yh-product-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex:none !important;
  }
  html body .yh-product-card *{max-width:100%;min-width:0;}
  html body .yh-product-actions{display:grid !important;grid-template-columns:1fr 1fr !important;}
}
@media screen and (max-width:380px){
  html body .yh-product-actions{grid-template-columns:1fr !important;}
}

/* Quick Order price and quantity UI */
.yh-order-price,.yh-order-total{background:#f7fbfc;border:1px solid #d8e8eb;border-radius:5px;padding:10px;font-size:18px;font-weight:700;color:#079bb0}.yh-order-total{color:#008c9f;background:#effbfd}.yh-quick-box{max-height:92vh;overflow-y:auto}.yh-quick-box input[type=number]{font-size:16px}@media(max-width:600px){.yh-quick-box{width:calc(100% - 20px);padding:15px;max-height:88vh}.yh-order-price,.yh-order-total{font-size:16px}}

/* Quick Order product/payment visibility fix */
.yh-quick-product{background:#f7fbfc;border:1px solid #d8e8eb;border-radius:5px;padding:10px;margin:8px 0 12px;font-size:14px;color:#333}.yh-quick-product span{font-weight:700}.yh-wallet-list{display:grid;gap:7px}.yh-wallet{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #eee;border-radius:5px;padding:8px}.yh-wallet img{width:30px;height:30px;object-fit:contain}.yh-wallet span{margin-left:auto;font-weight:700;letter-spacing:.2px}.yh-offline-quick .yh-offline-payment{margin-top:8px}

/* ==========================================================
   YELLOW HOST - PROFESSIONAL SINGLE PRODUCT PAGE FIX
   Prevents footer overlap and keeps product information ordered.
   ========================================================== */
.yh-single-product-page{width:100%;}
.yh-single-product-page .yh-breadcrumb{
  clear:both;
  width:100%;
  margin:0 0 14px;
  padding:10px 0;
  color:#777;
  font-size:13px;
  line-height:1.5;
}
.yh-single-product-page .yh-breadcrumb a{color:#555;}

.yh-product-detail{display:block!important;clear:both!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;}
.yh-product-main{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;
  gap:28px!important;
  width:100%!important;
  align-items:start!important;
  clear:both!important;
  overflow:visible!important;
}
.yh-product-gallery,
.yh-product-summary{
  float:none!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  clear:none!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
}
.yh-product-gallery{overflow:hidden;border:1px solid #e7e7e7;border-radius:10px;}
.yh-product-gallery .woocommerce-product-gallery,
.yh-product-gallery .woocommerce-product-gallery__wrapper{width:100%!important;margin:0!important;float:none!important;}
.yh-product-gallery .woocommerce-product-gallery__image{margin:0!important;}
.yh-product-gallery .woocommerce-product-gallery__image img{width:100%!important;height:auto!important;display:block!important;}
.yh-product-gallery .flex-control-thumbs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important;margin:8px!important;padding:0!important;list-style:none!important;}
.yh-product-gallery .flex-control-thumbs li{width:auto!important;float:none!important;margin:0!important;}
.yh-product-gallery .flex-control-thumbs img{width:100%!important;height:auto!important;display:block!important;border:1px solid #eee;border-radius:5px;}

.yh-product-summary{border:1px solid #e7e7e7;border-radius:10px;background:#fff!important;overflow:visible!important;}
.yh-product-summary-inner{padding:24px!important;}
.yh-product-summary .product_title,
.yh-product-summary h1.product_title{
  display:block!important;
  margin:0 0 14px!important;
  padding:0!important;
  color:#222!important;
  font-size:30px!important;
  line-height:1.25!important;
  font-weight:700!important;
  overflow-wrap:anywhere!important;
}
.yh-product-summary .price{
  display:block!important;
  margin:0 0 18px!important;
  padding:0!important;
  color:#0a9eb3!important;
  font-size:27px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
.yh-product-summary .price del{color:#999!important;font-size:.65em!important;margin-right:8px!important;}
.yh-product-summary .price ins{text-decoration:none!important;color:#0a9eb3!important;}
.yh-product-summary .woocommerce-product-details__short-description{
  width:100%!important;
  margin:0 0 18px!important;
  padding:16px!important;
  background:#f8fafb!important;
  border:1px solid #e8eef0!important;
  border-radius:8px!important;
  color:#444!important;
  font-size:16px!important;
  line-height:1.75!important;
  overflow-wrap:anywhere!important;
}
.yh-product-summary .woocommerce-product-details__short-description p:last-child{margin-bottom:0!important;}
.yh-product-summary form.cart{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  margin:0 0 16px!important;
  padding:0!important;
}
.yh-product-summary form.cart .quantity{float:none!important;margin:0!important;display:flex!important;align-items:center!important;}
.yh-product-summary form.cart .quantity .qty{width:64px!important;height:42px!important;text-align:center!important;border:1px solid #ccc!important;border-radius:5px!important;}
.yh-product-summary form.cart .single_add_to_cart_button{float:none!important;margin:0!important;min-height:42px!important;border:0!important;border-radius:5px!important;background:#7b4cc2!important;color:#fff!important;padding:10px 20px!important;font-weight:700!important;}
.yh-product-meta-clean{margin:4px 0 18px;padding-top:14px;border-top:1px solid #eee;color:#555;font-size:15px;}
.yh-product-meta-clean a{color:#079aae;}
.yh-single-product-actions{display:block!important;width:100%!important;margin:0!important;}
.yh-single-product-actions .yh-btn{width:100%!important;min-height:48px!important;border:0!important;border-radius:5px!important;background:#079fb5!important;color:#fff!important;font-weight:700!important;font-size:15px!important;}
.yh-product-description-area{clear:both!important;width:100%!important;margin:28px 0 0!important;padding:0!important;}
.yh-product-description-area .woocommerce-tabs{width:100%!important;clear:both!important;background:#fff!important;border:1px solid #e7e7e7!important;border-radius:10px!important;padding:0!important;overflow:hidden!important;}
.yh-product-description-area .woocommerce-tabs ul.tabs{display:flex!important;flex-wrap:wrap!important;margin:0!important;padding:0 16px!important;border-bottom:1px solid #e7e7e7!important;list-style:none!important;}
.yh-product-description-area .woocommerce-tabs ul.tabs li{margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
.yh-product-description-area .woocommerce-tabs ul.tabs li a{display:block!important;padding:15px 14px!important;color:#333!important;font-weight:700!important;}
.yh-product-description-area .woocommerce-tabs .woocommerce-Tabs-panel{margin:0!important;padding:22px!important;color:#444!important;font-size:15px!important;line-height:1.8!important;overflow-wrap:anywhere!important;}
.yh-product-description-area .woocommerce-tabs .woocommerce-Tabs-panel h2{font-size:22px!important;color:#222!important;margin:0 0 12px!important;}

/* Footer must always start after the complete product block. */
.yh-product-detail:after,.yh-product-main:after,.yh-product-description-area:after{content:"";display:block;clear:both;}
.yh-footer{clear:both!important;position:relative!important;z-index:1!important;}

@media(max-width:767px){
  .yh-single-product-page{padding-left:12px!important;padding-right:12px!important;}
  .yh-product-main{grid-template-columns:1fr!important;gap:14px!important;}
  .yh-product-gallery{border-radius:8px!important;}
  .yh-product-gallery .flex-control-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:6px!important;}
  .yh-product-summary{border-radius:8px!important;}
  .yh-product-summary-inner{padding:16px!important;}
  .yh-product-summary .product_title,
  .yh-product-summary h1.product_title{font-size:25px!important;line-height:1.28!important;margin-bottom:12px!important;}
  .yh-product-summary .price{font-size:24px!important;margin-bottom:14px!important;}
  .yh-product-summary .woocommerce-product-details__short-description{font-size:15px!important;line-height:1.7!important;padding:13px!important;}
  .yh-product-summary form.cart{gap:8px!important;}
  .yh-product-summary form.cart .quantity .qty{width:62px!important;height:42px!important;}
  .yh-product-summary form.cart .single_add_to_cart_button{flex:1 1 auto!important;min-width:150px!important;}
  .yh-product-description-area{margin-top:16px!important;}
  .yh-product-description-area .woocommerce-tabs ul.tabs{padding:0 8px!important;}
  .yh-product-description-area .woocommerce-tabs ul.tabs li a{padding:12px 9px!important;font-size:13px!important;}
  .yh-product-description-area .woocommerce-tabs .woocommerce-Tabs-panel{padding:16px!important;font-size:14px!important;line-height:1.75!important;}
}
