/* KD Shop Rebuild v2 */
body.kd-shop-rebuild .site-header,body.kd-shop-rebuild .ast-primary-header-bar,body.kd-shop-rebuild .main-header-bar{display:none!important}
body.kd-shop-rebuild .site-content{padding-top:0!important}
body.kd-shop-rebuild .content-area,body.kd-shop-rebuild .site-main{margin:0!important}
body.kd-shop-rebuild .entry-header{display:none!important}
body.kd-shop-rebuild .site-content .ast-container{max-width:1440px;padding-left:28px;padding-right:28px}
.kd-site-header{position:relative;z-index:99;background:#fff;border-bottom:1px solid #eee;box-shadow:0 2px 10px rgba(0,0,0,.035)}
.kd-header-main{max-width:1440px;margin:auto;min-height:82px;padding:12px 28px;display:grid;grid-template-columns:245px minmax(240px,1fr) 140px;gap:28px;align-items:center}
.kd-brand{display:flex;align-items:center;gap:11px;text-decoration:none!important;color:#202b3c!important}
.kd-brand-mark{width:44px;height:44px;border-radius:12px;background:#e95543;color:#fff;display:grid;place-items:center;font-weight:900;font-size:17px}
.kd-brand b{display:block;font-size:17px;letter-spacing:.4px}
.kd-brand small{display:block;color:#888;font-size:11px;margin-top:2px}
.kd-header-search{height:46px;display:flex;border:1px solid #e4e4e4;border-radius:8px;overflow:hidden;background:#fff}
.kd-header-search input{border:0!important;box-shadow:none!important;outline:0!important;flex:1;min-width:0;padding:0 15px!important;font-size:14px}
.kd-header-search button{width:54px;border:0;background:#e95543;color:#fff;font-size:25px;cursor:pointer}
.kd-header-cart{justify-self:end;display:flex;align-items:center;gap:8px;text-decoration:none!important;color:#263246!important;font-size:14px;font-weight:700;position:relative}
.kd-header-cart i{font-style:normal;background:#e95543;color:#fff;border-radius:20px;min-width:20px;height:20px;display:grid;place-items:center;font-size:11px}
.kd-category-nav{max-width:1440px;margin:auto;padding:0 28px 13px;display:flex;gap:25px;overflow:auto;white-space:nowrap}
.kd-category-nav a{font-size:13px;font-weight:600;color:#4c5563;text-decoration:none}
.kd-category-nav a:hover{color:#e95543}
.kd-storefront{--kd-ink:#202b3c;--kd-muted:#777;--kd-line:#eee;--kd-accent:#e95543;color:var(--kd-ink);padding:22px 0 45px}
.kd-home-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:34px 38px;margin:0 0 28px;background:linear-gradient(120deg,#fff2ed,#fff);border:1px solid #f4e3dd;border-radius:12px}
.kd-home-hero h1{font-size:clamp(23px,3vw,34px);line-height:1.2;margin:8px 0;color:#202b3c}
.kd-home-hero p{margin:0;color:#747b85}
.kd-home-hero>a,.kd-product-buy,.kd-catalog-toolbar button{display:inline-block;background:#e95543;color:#fff!important;border:0;border-radius:7px;padding:11px 17px;text-decoration:none!important;font-weight:700;white-space:nowrap}
.kd-eyebrow{font-size:11px;letter-spacing:1.4px;color:#e95543;font-weight:800}
.kd-section{margin:28px 0}
.kd-section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}
.kd-section-heading h2{font-size:23px;margin:4px 0 0;color:#202b3c}
.kd-section-heading>a{color:#e95543;text-decoration:none;font-weight:700}
.kd-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.kd-product-card{border:1px solid #eee;border-radius:9px;overflow:hidden;background:#fff;transition:box-shadow .2s,transform .2s;min-width:0}
.kd-product-card:hover{box-shadow:0 7px 22px rgba(0,0,0,.08);transform:translateY(-2px)}
.kd-product-image{display:block;aspect-ratio:1/1;background:#f8f8f8;overflow:hidden}
.kd-product-image img{width:100%;height:100%;object-fit:cover;display:block}
.kd-product-info{padding:11px}
.kd-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:39px;line-height:1.4;text-decoration:none!important;color:#263246!important;font-weight:600;font-size:14px}
.kd-product-sku{font-size:11px;color:#888;margin:6px 0}
.kd-product-price{color:#d94336;font-weight:700;margin:7px 0;font-size:15px}
.kd-tier-prices{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#777;font-weight:400;margin-top:6px}
.kd-tier-prices b{color:#d94336}
.kd-product-meta{display:flex;justify-content:space-between;gap:5px;font-size:11px;color:#888;margin:7px 0}
.kd-product-meta span:first-child{color:#d89b26}
.kd-product-buy{font-size:12px;padding:7px 12px;margin-top:6px}
.kd-empty-products{padding:24px;border:1px dashed #ddd;border-radius:9px;background:#fff;color:#777;text-align:center}
.kd-catalog-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px;flex-wrap:wrap}
.kd-catalog-toolbar>form{display:flex;gap:8px;flex:1;min-width:220px}
.kd-catalog-toolbar input,.kd-phone-filter select{min-height:42px;border:1px solid #ddd;border-radius:7px;padding:8px 12px;background:#fff}
.kd-catalog-toolbar input{width:100%}
.kd-phone-filter{display:flex;align-items:center;gap:8px}
.kd-phone-filter label{font-size:13px;font-weight:600;white-space:nowrap}
.kd-phone-filter select{min-width:190px}
.kd-mobile-bottom{display:none}
@media(max-width:900px){.kd-header-main{grid-template-columns:200px 1fr 110px;gap:14px;padding:10px 18px}.kd-category-nav{padding-left:18px;padding-right:18px}.kd-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}}
@media(max-width:600px){body.kd-shop-rebuild .site-content .ast-container{padding-left:12px;padding-right:12px}.kd-header-main{grid-template-columns:1fr auto;gap:10px;padding:10px 12px}.kd-brand-mark{width:38px;height:38px}.kd-brand b{font-size:14px}.kd-header-search{grid-column:1/-1;grid-row:2;height:41px}.kd-header-cart{grid-column:2;grid-row:1;font-size:0}.kd-header-cart span{font-size:20px}.kd-category-nav{padding:0 12px 10px;gap:18px}.kd-category-nav a{font-size:12px}.kd-storefront{padding-top:12px}.kd-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kd-product-info{padding:8px}.kd-product-name{font-size:12px;min-height:34px}.kd-product-price{font-size:13px}.kd-product-buy{font-size:11px;padding:6px 9px}.kd-home-hero{display:block;padding:20px;margin-bottom:20px}.kd-home-hero h1{font-size:23px}.kd-home-hero>a{margin-top:14px}.kd-section-heading h2{font-size:19px}.kd-catalog-toolbar{display:block}.kd-catalog-toolbar>form,.kd-phone-filter{margin-bottom:10px}.kd-phone-filter{align-items:stretch;flex-direction:column}.kd-phone-filter select{width:100%}.kd-mobile-bottom{position:fixed;z-index:9999;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #eee;display:grid;grid-template-columns:repeat(4,1fr;padding:7px 0 calc(7px + env(safe-area-inset-bottom));box-shadow:0 -3px 14px rgba(0,0,0,.06)}.kd-mobile-bottom a{text-align:center;text-decoration:none;color:#555;font-size:19px;line-height:1.1}.kd-mobile-bottom small{display:block;font-size:10px;margin-top:4px}.site-footer{padding-bottom:70px!important}}


/* V4.1: Product variation buttons styled like the original Kieu Duyen Shop */
.single-product .kd-native-variation-select{display:none!important}
.single-product .kd-variation-picker{display:block;width:100%;margin:8px 0 14px}
.single-product .kd-variation-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:7px;max-height:390px;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px 1px}
.single-product .kd-model-picker .kd-variation-options{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}
.single-product .kd-variation-choice{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:8px 9px;border:1px solid #e6e6e6;border-radius:2px;background:#fff;color:#626b78;font:inherit;font-size:13px;line-height:1.25;text-align:center;white-space:normal;cursor:pointer;box-shadow:none;transition:border-color .15s,background .15s,color .15s}
.single-product .kd-variation-choice:hover{border-color:#ed5948;color:#ed5948;background:#fffaf9}
.single-product .kd-variation-choice.is-selected{border:1.5px solid #ed5948;color:#ed5948;background:#fff8f6;font-weight:700}
.single-product .kd-variation-choice:disabled,.single-product .kd-variation-choice.is-unavailable{opacity:.35;cursor:not-allowed;text-decoration:line-through}
.single-product .kd-color-picker .kd-variation-options{display:flex;flex-wrap:wrap;max-height:none;gap:10px}
.single-product .kd-color-picker .kd-variation-choice{flex:0 0 94px;min-height:118px;flex-direction:column;padding:7px 6px;gap:6px}
.single-product .kd-color-picker .kd-variation-choice img{display:block;width:70px;height:78px;object-fit:cover;border-radius:2px}
.single-product .kd-color-picker .kd-variation-choice span{display:block;font-size:12px}
@media(max-width:600px){
 .single-product .kd-variation-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:330px}
 .single-product .kd-model-picker .kd-variation-options{grid-template-columns:repeat(3,minmax(0,1fr))}
 .single-product .kd-variation-choice{font-size:12px;min-height:36px;padding:7px 5px}
 .single-product .kd-color-picker .kd-variation-choice{flex-basis:86px;min-height:108px}
 .single-product .kd-color-picker .kd-variation-choice img{width:64px;height:68px}
}

/* V4.2: one color/sample is shown and preselected; only phone model requires customer action. */
.single-product form.variations_form select.kd-native-variation-select{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;}
.single-product .kd-variation-picker{margin:7px 0 13px!important;}
.single-product .kd-color-picker .kd-variation-options{display:flex!important;flex-wrap:wrap!important;gap:9px!important;max-height:none!important;overflow:visible!important;}
.single-product .kd-color-picker .kd-variation-choice{appearance:none!important;-webkit-appearance:none!important;display:flex!important;flex:0 0 92px!important;width:92px!important;min-height:116px!important;max-width:92px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:7px!important;border:1px solid #e5e5e5!important;border-radius:4px!important;background:#fff!important;color:#4c5563!important;font-size:12px!important;font-weight:500!important;line-height:1.25!important;box-shadow:none!important;}
.single-product .kd-color-picker .kd-variation-choice.is-selected{border:2px solid #e95543!important;background:#fff!important;color:#e95543!important;font-weight:700!important;}
.single-product .kd-color-picker .kd-variation-choice img{display:block!important;width:68px!important;height:78px!important;object-fit:cover!important;border-radius:2px!important;}
.single-product .kd-model-picker .kd-variation-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;max-height:390px!important;overflow-y:auto!important;padding:2px 3px 8px 1px!important;}
.single-product .kd-model-picker .kd-variation-choice{appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:38px!important;padding:7px 6px!important;border:1px solid #e4e4e4!important;border-radius:3px!important;background:#fff!important;color:#555f6d!important;font-size:12px!important;font-weight:500!important;line-height:1.25!important;text-align:center!important;white-space:normal!important;box-shadow:none!important;}
.single-product .kd-model-picker .kd-variation-choice:hover{border-color:#e95543!important;background:#fff8f6!important;color:#e95543!important;}
.single-product .kd-model-picker .kd-variation-choice.is-selected{border:1.5px solid #e95543!important;background:#fff8f6!important;color:#e95543!important;font-weight:700!important;}
.single-product .kd-model-picker .kd-variation-choice:disabled{opacity:.35!important;}
@media(max-width:600px){.single-product .kd-model-picker .kd-variation-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;max-height:340px!important}.single-product .kd-model-picker .kd-variation-choice{font-size:11px!important;min-height:36px!important;padding:6px 4px!important}.single-product .kd-color-picker .kd-variation-choice{flex-basis:84px!important;width:84px!important;min-height:106px!important}.single-product .kd-color-picker .kd-variation-choice img{width:62px!important;height:68px!important}}


/* V4.2.1 – compact color/sample tiles like the original Kieu Duyen Shop */
.single-product .kd-color-picker .kd-variation-options{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    gap:8px!important;
    max-height:none!important;
    overflow:visible!important;
    padding:2px 0 8px!important;
}
.single-product .kd-color-picker .kd-variation-choice{
    flex:0 0 76px!important;
    width:76px!important;
    max-width:76px!important;
    min-height:92px!important;
    height:auto!important;
    padding:5px!important;
    gap:4px!important;
    border:1px solid #e5e5e5!important;
    border-radius:3px!important;
    background:#fff!important;
    color:#555f6d!important;
    font-size:11px!important;
    font-weight:500!important;
}
.single-product .kd-color-picker .kd-variation-choice img{
    width:58px!important;
    height:62px!important;
    object-fit:cover!important;
    display:block!important;
    border-radius:2px!important;
}
.single-product .kd-color-picker .kd-variation-choice span{
    display:block!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
    line-height:1.2!important;
    font-size:11px!important;
}
.single-product .kd-color-picker .kd-variation-choice.is-selected{
    border:2px solid #e95543!important;
    background:#fff8f6!important;
    color:#e95543!important;
}
@media(max-width:600px){
    .single-product .kd-color-picker .kd-variation-options{gap:6px!important}
    .single-product .kd-color-picker .kd-variation-choice{
        flex-basis:70px!important;width:70px!important;max-width:70px!important;
        min-height:86px!important;padding:4px!important;
    }
    .single-product .kd-color-picker .kd-variation-choice img{
        width:54px!important;height:58px!important;
    }
}


/* V4.2.2 FIX: isolate variation cards from theme button styles */
.kd-variation-picker .kd-variation-options{box-sizing:border-box!important;}
.kd-variation-picker button.kd-variation-choice,
.kd-variation-picker button.kd-variation-choice:hover,
.kd-variation-picker button.kd-variation-choice:focus,
.kd-variation-picker button.kd-variation-choice:active{
  box-sizing:border-box!important;display:flex!important;float:none!important;
  margin:0!important;text-transform:none!important;letter-spacing:normal!important;
  box-shadow:none!important;outline-offset:2px!important;
}
.kd-variation-picker.kd-color-picker .kd-variation-options{
  display:flex!important;flex-flow:row wrap!important;align-items:flex-start!important;
  justify-content:flex-start!important;gap:8px!important;width:100%!important;
}
.kd-variation-picker.kd-color-picker button.kd-variation-choice,
.kd-variation-picker.kd-color-picker button.kd-variation-choice.is-selected{
  flex:0 0 86px!important;width:86px!important;min-width:86px!important;
  max-width:86px!important;height:auto!important;min-height:104px!important;
  max-height:120px!important;padding:6px!important;overflow:hidden!important;
  flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px!important;border:1px solid #dedede!important;border-radius:4px!important;
  background:#fff!important;color:#555!important;font-size:12px!important;
  font-weight:500!important;line-height:1.25!important;
}
.kd-variation-picker.kd-color-picker button.kd-variation-choice.is-selected{
  border:2px solid #e95543!important;background:#fff8f6!important;color:#d94332!important;font-weight:700!important;
}
.kd-variation-picker.kd-color-picker button.kd-variation-choice img{
  display:block!important;flex:0 0 68px!important;width:68px!important;height:68px!important;
  min-width:68px!important;max-width:68px!important;min-height:68px!important;max-height:68px!important;
  margin:0 auto!important;object-fit:cover!important;border-radius:3px!important;
}
.kd-variation-picker.kd-color-picker button.kd-variation-choice span{
  display:block!important;width:100%!important;max-width:100%!important;
  overflow-wrap:anywhere!important;text-align:center!important;font-size:11px!important;
}
.kd-variation-picker.kd-model-picker .kd-variation-options{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;gap:6px!important;width:100%!important;
  max-height:390px!important;overflow-y:auto!important;
}
.kd-variation-picker.kd-model-picker button.kd-variation-choice,
.kd-variation-picker.kd-model-picker button.kd-variation-choice.is-selected{
  flex:initial!important;width:auto!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:36px!important;max-height:none!important;padding:7px 5px!important;
  border:1px solid #dedede!important;border-radius:3px!important;background:#fff!important;
  color:#555!important;font-size:12px!important;font-weight:500!important;
  line-height:1.25!important;text-align:center!important;
}
.kd-variation-picker.kd-model-picker button.kd-variation-choice.is-selected{
  border:1.5px solid #e95543!important;background:#fff8f6!important;color:#d94332!important;font-weight:700!important;
}
@media(max-width:600px){
 .kd-variation-picker.kd-color-picker button.kd-variation-choice,
 .kd-variation-picker.kd-color-picker button.kd-variation-choice.is-selected{
   flex-basis:78px!important;width:78px!important;min-width:78px!important;max-width:78px!important;
   min-height:96px!important;padding:5px!important;
 }
 .kd-variation-picker.kd-color-picker button.kd-variation-choice img{
   flex-basis:62px!important;width:62px!important;height:62px!important;
   min-width:62px!important;max-width:62px!important;min-height:62px!important;max-height:62px!important;
 }
 .kd-variation-picker.kd-model-picker .kd-variation-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
