/* VillaZen / Flatsome child theme — cohesive 2026 visual refresh.
 * Scoped to the custom booking UI so WooCommerce/Flatsome functionality remains intact.
 */
:root{--dl-primary:#214f3b;--dl-primary-dark:#163b2b;--dl-primary-light:#dcebe2;--dl-accent:#c59b5f;--dl-bg:#f6f7f5;--dl-text:#202a24;--dl-text-muted:#68756d;--dl-border:#e3e8e3;--dl-radius:16px;--dl-radius-lg:22px;--dl-shadow:0 8px 28px rgba(23,54,37,.07);--dl-shadow-hover:0 16px 40px rgba(23,54,37,.14)}
body{background:#fff;color:var(--dl-text)}
.container{max-width:1280px}
/* Consistent controls */
.dl-btn,.dl-btn-book-sm,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:10px;font-weight:700;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.dl-btn-primary,.dl-btn-book-sm{background:var(--dl-primary);border-color:var(--dl-primary);color:#fff!important}
.dl-btn-primary:hover,.dl-btn-book-sm:hover{background:var(--dl-primary-dark);border-color:var(--dl-primary-dark);box-shadow:0 6px 18px #214f3b2b}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#dce3dc;border-radius:10px;box-shadow:none}
input:focus,select:focus,textarea:focus{border-color:var(--dl-primary)!important;box-shadow:0 0 0 3px #214f3b14!important;outline:0}
/* Breadcrumb */
.dl-breadcrumb-wrap,.dl-single>.container>.woocommerce-breadcrumb{padding:14px 0;color:#7b867e;font-size:12px}
.dl-breadcrumb-wrap a{color:var(--dl-primary)}
/* Category hero: keep dynamic category image while adding a premium overlay */
body.post-type-archive-product .container>div[style*="linear-gradient"],body.tax-product_cat .container>div[style*="linear-gradient"],body.tax-product_cat .container>div[style*="background-image"]{border-radius:0 0 24px 24px;overflow:hidden}
body.tax-product_cat h1,body.post-type-archive-product h1{letter-spacing:-.7px}
/* Archive layout */
.dl-archive-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start;margin:0 auto}
.dl-filter-panel{position:sticky;top:100px;background:#fff;border:1px solid var(--dl-border);border-radius:18px;padding:22px;box-shadow:0 5px 22px rgba(20,50,32,.045);max-height:calc(100vh - 120px);overflow:auto}
.dl-filter-panel__title{font-size:17px;font-weight:800;color:var(--dl-text);padding:0 0 16px;border-bottom:1px solid var(--dl-border);margin-bottom:18px}
.dl-filter-group{padding-bottom:17px;margin-bottom:17px;border-bottom:1px solid #edf0ed}
.dl-filter-group:last-of-type{border-bottom:0;margin-bottom:0}
.dl-filter-group__label{font-size:13px;font-weight:800;color:#34483a;margin-bottom:10px;letter-spacing:.1px}
.dl-filter-check{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:13px;color:#4e5d53;cursor:pointer}
.dl-filter-check input{accent-color:var(--dl-primary);margin:0}
.dl-filter-panel input:not([type=checkbox]):not([type=radio]),.dl-filter-panel select{width:100%;min-height:42px;padding:9px 11px;background:#fff;font-size:13px}
.dl-filter-panel .dl-btn{min-height:43px}
.dl-count{font-size:13px;color:var(--dl-text-muted)}
/* Grid & product cards */
.dl-property-grid,.entry-content .dl-property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.dl-property-card{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;border:1px solid #e8ece8;border-radius:18px;background:#fff;box-shadow:0 5px 20px rgba(24,52,35,.055);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.dl-property-card:hover{transform:translateY(-5px);border-color:#d2dfd5;box-shadow:var(--dl-shadow-hover)}
.dl-card-img-wrap{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#edf1ed;border-radius:0!important}
.dl-property-card .dl-card-img-wrap img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.dl-property-card:hover .dl-card-img-wrap img{transform:scale(1.045)}
.dl-card-img-wrap:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.25));pointer-events:none}
.dl-cat-badge,.dl-promo-badge{z-index:2;position:absolute;top:13px;left:13px;padding:6px 10px;border-radius:30px;background:rgba(255,255,255,.94);color:#254c37;font-size:10px;font-weight:800;letter-spacing:.25px;box-shadow:0 2px 10px #00000012}
.dl-promo-badge{left:auto;right:13px;background:#c59b5f;color:#fff}
.dl-card-body{display:flex;flex:1;flex-direction:column;padding:17px 17px 15px}
.dl-card-area{display:flex;align-items:center;gap:5px;margin:0 0 8px;color:#718076;font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.dl-card-area-pin{color:var(--dl-accent);font-size:15px}
.dl-card-title{display:-webkit-box;overflow:hidden;min-height:45px;margin:0 0 11px;font-size:16px;font-weight:800;line-height:1.42;letter-spacing:-.25px;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.dl-card-title a{color:#26372c;text-decoration:none}
.dl-card-title a:hover{color:var(--dl-primary)}
.dl-card-meta{display:flex;flex-wrap:wrap;gap:8px 13px;margin:0 0 13px;color:#647268;font-size:12px}
.dl-card-meta>span{display:inline-flex;align-items:center;gap:4px}
.dl-card-meta>span[title="Đánh giá"]{color:#a57935}
.dl-card-amenities{display:flex;flex-wrap:wrap;gap:6px;margin:auto 0 14px}
.dl-am-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:5px 8px;border:1px solid #e8eee9;border-radius:7px;background:#f7f9f7;color:#58665d;font-size:10px;line-height:1.35}
.dl-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px;border-top:1px solid #edf0ed}
.dl-card-price{display:flex;flex-direction:column;gap:2px;min-width:0}
.dl-price-old{color:#909990;font-size:11px;text-decoration:line-through}
.dl-price-main{color:var(--dl-primary);font-size:18px;line-height:1.3;font-weight:800;letter-spacing:-.35px}
.dl-price-contact{color:var(--dl-primary);font-size:14px;font-weight:800}
.dl-card-price small{color:#879189;font-size:10px}
.dl-btn-book-sm{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:9px 13px;border:1px solid var(--dl-primary);border-radius:9px;background:var(--dl-primary);color:#fff!important;font-size:11px;font-weight:800;text-decoration:none!important;white-space:nowrap}
/* Standard WooCommerce archive elements */
.woocommerce .woocommerce-result-count{color:#738076;font-size:13px}
.woocommerce .woocommerce-ordering select{min-height:42px;border:1px solid var(--dl-border);border-radius:10px;background:#fff;font-size:13px}
.woocommerce nav.woocommerce-pagination ul{display:flex;gap:6px;border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;border:1px solid var(--dl-border);border-radius:10px;background:#fff;color:var(--dl-primary)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--dl-primary);border-color:var(--dl-primary);color:#fff}
/* Single product detail */
.dl-single{background:#fff;padding-bottom:55px}
.dl-single>.container{padding-top:24px!important}
.dl-product-grid{grid-template-columns:minmax(0,1fr) 360px!important;gap:34px!important}
.dl-single__gallery{overflow:hidden;border-radius:20px;background:#f0f3f0}
.dl-single__main-img{display:block;width:100%;max-height:580px;object-fit:cover;border-radius:20px}
.dl-single__thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:10px}
.dl-single__thumbs img,.dl-single__thumbs>div{width:100%;height:78px;object-fit:cover;border-radius:10px;overflow:hidden}
.dl-single__title{margin:10px 0 12px;color:#203329;font-size:clamp(26px,3vw,38px);font-weight:800;line-height:1.22;letter-spacing:-.8px}
.dl-single__meta-row{display:flex;flex-wrap:wrap;gap:10px 18px;color:#68766d;font-size:13px}
.dl-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.dl-info-item{padding:16px 10px;border:1px solid var(--dl-border);border-radius:14px;background:#fff;text-align:center}
.dl-info-item__icon{font-size:21px;margin-bottom:5px}
.dl-info-item__value{color:var(--dl-primary);font-size:17px;font-weight:800}
.dl-info-item__label{color:#78847b;font-size:11px}
.dl-section-block,.dl-single .dl-amenities-grid,.dl-single .dl-section-block{border-radius:16px}
.dl-single h2{color:#25392c;font-size:22px!important;font-weight:800!important;letter-spacing:-.3px}
.dl-single .dl-description{color:#4f5e54;line-height:1.85}
.dl-amenities-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dl-amenity-item{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--dl-border);border-radius:11px;color:#4e5d53;font-size:13px}
.dl-related-section{margin-top:44px}
.dl-section-title{font-size:26px;font-weight:800;color:#24382b;margin-bottom:20px}
/* Booking summary/side panel */
.dl-sticky-booking-box,.dl-booking-box,.dl-single .dl-booking-card{border:1px solid #e2e8e2;border-radius:18px;background:#fff;box-shadow:var(--dl-shadow);padding:22px}
/* Header/footer details without replacing the active Flatsome header builder */
#header .header-main{box-shadow:0 2px 18px rgba(24,52,35,.045)}
#header .nav>li>a{font-weight:700;letter-spacing:.05px}
#footer{margin-top:40px}
/* Tablet */
@media(max-width:1100px){.dl-archive-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}.dl-property-grid,.entry-content .dl-property-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dl-product-grid{grid-template-columns:minmax(0,1fr) 320px!important;gap:22px!important}}
@media(max-width:849px){.dl-archive-layout{grid-template-columns:1fr}.dl-filter-panel{position:relative;top:auto;max-height:none;padding:17px}.dl-filter-panel__title{padding-bottom:12px;margin-bottom:12px}.dl-product-grid{grid-template-columns:1fr!important;gap:22px!important}.dl-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dl-single__thumbs{grid-template-columns:repeat(5,minmax(0,1fr))}.dl-single__thumbs img,.dl-single__thumbs>div{height:70px}}
@media(max-width:549px){.dl-property-grid,.entry-content .dl-property-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dl-property-card{border-radius:13px}.dl-card-img-wrap{aspect-ratio:1/0.86}.dl-card-body{padding:11px 10px 10px}.dl-card-title{font-size:12px;line-height:1.4;min-height:34px;margin-bottom:8px}.dl-card-area{font-size:9px;letter-spacing:.2px}.dl-card-meta{gap:5px 8px;font-size:10px;margin-bottom:9px}.dl-card-amenities{gap:4px;margin-bottom:9px}.dl-am-chip{font-size:9px;padding:4px 5px}.dl-card-footer{align-items:stretch;flex-direction:column;gap:8px;padding-top:10px}.dl-price-main{font-size:15px}.dl-btn-book-sm{width:100%;min-height:35px;font-size:10px}.dl-cat-badge,.dl-promo-badge{top:8px;left:8px;padding:5px 7px;font-size:9px}.dl-promo-badge{left:auto;right:8px}.dl-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dl-info-item{padding:12px 7px}.dl-single__title{font-size:26px}.dl-single__thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.dl-single__thumbs img,.dl-single__thumbs>div{height:60px}.dl-amenities-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dl-single h2{font-size:19px!important}.dl-section-title{font-size:22px}}
@media(max-width:360px){.dl-property-grid,.entry-content .dl-property-grid{grid-template-columns:1fr}.dl-card-img-wrap{aspect-ratio:4/3}.dl-card-footer{flex-direction:row;align-items:center}.dl-btn-book-sm{width:auto}}

/* v1.2 finishing pass: product cards, archive controls and accessibility */
.dl-sort-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dl-sort-control .woocommerce-ordering{float:none;margin:0}
.dl-sort-control .woocommerce-ordering select{min-width:175px;max-width:100%;padding:9px 34px 9px 12px;color:#334238}
.dl-property-card{isolation:isolate}
.dl-card-img-wrap{isolation:isolate}
.dl-card-img-wrap img{object-position:center}
.dl-card-rating{position:absolute;z-index:3;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:3px;padding:5px 8px;border-radius:7px;background:rgba(255,255,255,.96);color:#76531e;font-size:11px;font-weight:800;box-shadow:0 2px 9px rgba(0,0,0,.12)}
.dl-card-rating small{font-size:10px;font-weight:600;color:#68756d}
.dl-card-area{min-height:16px;text-transform:none;letter-spacing:0;font-weight:600}
.dl-card-title{min-height:45px}
.dl-card-meta{min-height:18px}
.dl-card-amenities{min-height:27px}
.dl-card-footer{align-items:flex-end}
.dl-btn-book-sm{gap:7px}
.dl-btn-book-sm span{font-size:15px;line-height:1}
.dl-filter-panel__title{display:flex;align-items:center;gap:8px}
.dl-filter-panel input[type=checkbox],.dl-filter-panel input[type=radio]{accent-color:var(--dl-primary)}
.dl-filter-panel button:focus-visible,.dl-filter-panel a:focus-visible,.dl-property-card a:focus-visible{outline:3px solid #c59b5f;outline-offset:3px}
@media(max-width:849px){.dl-sort-control{width:100%;justify-content:space-between}.dl-sort-control .woocommerce-ordering{flex:1}.dl-sort-control .woocommerce-ordering select{width:100%;min-width:0}}
@media(max-width:549px){.dl-card-rating{left:7px;bottom:7px;padding:4px 6px;font-size:10px}.dl-card-rating small{font-size:9px}.dl-card-title{min-height:34px}.dl-card-meta,.dl-card-amenities{min-height:0}.dl-card-footer{align-items:stretch}.dl-sort-control{gap:7px}}

/* v1.4 amenity chips: visible only when amenities are assigned to the property */
.dl-card-amenities{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 12px;min-height:0}
.dl-card-amenities .dl-am-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #dce9df;border-radius:999px;background:#f1f7f2;color:#214d38;font-size:11px;line-height:1.2;white-space:nowrap}
.dl-filter-group .dl-filter-check{display:flex;align-items:center;gap:8px}
.dl-filter-group .dl-filter-check input[type=checkbox]{flex:0 0 auto}


/* Nahinest homepage live filter */
.nh-live-filter-wrap{width:100%;max-width:1240px;margin:0 auto}
.nh-live-filter-form{background:#fff;border:1px solid #e7e5dc;border-radius:18px;padding:26px;box-shadow:0 12px 34px rgba(23,63,50,.07)}
.nh-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.nh-filter-field{display:flex;flex-direction:column;gap:7px;margin:0;color:#173f32;font-size:13px;font-weight:650}
.nh-filter-field input,.nh-filter-field select{width:100%;min-height:46px;border:1px solid #dedfd8;border-radius:9px;background:#fff;padding:10px 12px;color:#29352f;font-size:14px;box-shadow:none}
.nh-filter-field input:focus,.nh-filter-field select:focus{border-color:#b89a56;outline:2px solid rgba(184,154,86,.16)}
.nh-filter-amenities{border:0;border-top:1px solid #ecebe5;margin:22px 0 0;padding:18px 0 0}
.nh-filter-amenities legend{font-weight:700;color:#173f32;padding:0 8px 0 0}
.nh-filter-amenities-list{display:flex;flex-wrap:wrap;gap:10px 18px}
.nh-filter-amenities-list label{display:flex;align-items:center;gap:6px;font-size:13px;color:#45534b}
.nh-filter-actions{display:flex;align-items:center;gap:18px;margin-top:22px}
.nh-filter-submit{background:#173f32!important;color:#fff!important;border:0!important;border-radius:99px!important;padding:14px 24px!important;font-weight:700!important;letter-spacing:.03em}
.nh-filter-submit:hover{background:#245b48!important}
.nh-filter-clear{background:transparent!important;border:0!important;color:#59665f!important;text-decoration:underline;padding:10px 0!important}
.nh-filter-note{margin:14px 0 0;color:#777f78;font-size:12px}
.nh-filter-results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:26px 0 16px;color:#173f32}
.nh-filter-results-toolbar .dl-count{font-size:13px;color:#727b74}
.nh-filter-results-grid{min-height:40px}
.nh-filter-empty{color:#6f7972;padding:14px 0}
.nh-live-filter-wrap .dl-loading{opacity:.55;pointer-events:none}
@media(max-width:849px){.nh-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.nh-live-filter-form{padding:20px}}
@media(max-width:549px){.nh-filter-fields{grid-template-columns:1fr}.nh-filter-actions{align-items:stretch;flex-direction:column;gap:8px}.nh-filter-submit{width:100%}.nh-filter-clear{align-self:center}.nh-filter-results-toolbar{align-items:flex-start;flex-direction:column}}


/* FIX: thẻ sản phẩm hẹp - không để nút xem chi tiết che giá */
.dl-property-card{container-type:inline-size}
@container (max-width: 230px){
  .dl-property-card .dl-card-footer{
    display:flex !important; flex-direction:column !important; align-items:stretch !important;
    justify-content:flex-start !important; gap:9px !important;
  }
  .dl-property-card .dl-card-price{width:100% !important; min-width:0 !important; overflow-wrap:anywhere}
  .dl-property-card .dl-price-main{font-size:16px !important; line-height:1.35 !important; white-space:normal !important}
  .dl-property-card .dl-card-footer .dl-btn-book-sm{
    display:flex !important; width:100% !important; max-width:100% !important;
    min-height:38px !important; box-sizing:border-box !important; margin:0 !important;
    white-space:normal !important; text-align:center !important;
  }
}
/* Fallback cho trình duyệt không hỗ trợ container queries */
@supports not (container-type: inline-size){
  @media (max-width: 849px){
    .dl-property-card .dl-card-footer{flex-direction:column !important;align-items:stretch !important;gap:9px !important}
    .dl-property-card .dl-card-footer .dl-btn-book-sm{width:100% !important;box-sizing:border-box !important}
  }
}


/* v1.8 — single property page rebuilt toward the approved reference layout */
body.single-product .dl-single{width:100%;overflow:hidden}
body.single-product .dl-single>.container{
  width:calc(100% - 48px)!important;
  max-width:1240px!important;
  margin-left:auto!important;margin-right:auto!important;
  padding:28px 0 56px!important;
}
body.single-product .dl-product-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 350px!important;
  gap:28px!important;
  align-items:start!important;
  width:100%;
}
body.single-product .dl-product-grid>div{min-width:0}
body.single-product .dl-single__gallery{
  padding:0;background:#f4f6f3;border:1px solid #e5e9e3;
  border-radius:18px;overflow:hidden;
}
body.single-product .dl-gallery-main{display:block;line-height:0}
body.single-product .dl-single__main-img{
  width:100%;height:clamp(300px,38vw,500px);max-height:none;
  object-fit:cover;object-position:center;border-radius:0;
}
body.single-product .dl-single__thumbs{
  grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;
  margin:0;padding:10px;background:#fff;
}
body.single-product .dl-single__thumbs img,
body.single-product .dl-single__thumbs>div{height:76px;border-radius:9px;cursor:pointer}
body.single-product .dl-single__thumbs img{transition:opacity .18s ease}
body.single-product .dl-single__thumbs img:hover{opacity:.78}
body.single-product .dl-single .dl-single__title{font-size:clamp(25px,2.5vw,34px);line-height:1.2;margin:10px 0;color:#183d30}
body.single-product .dl-single__meta-row{gap:8px 14px;font-size:12px}
body.single-product .dl-info-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0}
body.single-product .dl-info-item{min-width:0;padding:14px 8px;border-radius:12px}
body.single-product .dl-info-item__value{overflow-wrap:anywhere}
body.single-product .dl-booking-box{
  position:sticky;top:24px;padding:20px!important;border:1px solid #e0e7df;
  border-radius:18px;background:#fff;box-shadow:0 12px 36px rgba(22,59,43,.10);
}
body.single-product .dl-booking-heading{padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid #edf0eb}
body.single-product .dl-booking-category{
  display:inline-flex;margin-bottom:8px;padding:5px 9px;border-radius:20px;
  background:#e7f1e9;color:#214f3b;font-size:10px;font-weight:800;letter-spacing:.04em;
}
body.single-product .dl-booking-title{
  margin:0 0 8px!important;color:#203b2e;font-size:23px!important;
  font-weight:800!important;line-height:1.25!important;letter-spacing:-.35px;
}
body.single-product .dl-booking-location{display:flex;flex-wrap:wrap;gap:6px 10px;color:#6a786e;font-size:11px;line-height:1.5}
body.single-product .dl-booking-box__prices{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #edf0eb}
body.single-product .dl-booking-box__price{font-size:27px!important;line-height:1.15;color:#214f3b;font-weight:850}
body.single-product .dl-booking-box__price-label{font-size:11px;color:#7a857c;margin-top:4px}
body.single-product .dl-booking-box .dl-search-field{margin-bottom:12px}
body.single-product .dl-booking-box .dl-search-field label{display:block;margin-bottom:5px;color:#35463a;font-size:12px;font-weight:700}
body.single-product .dl-booking-box input:not([type=hidden]),
body.single-product .dl-booking-box select,
body.single-product .dl-booking-box textarea{
  width:100%;min-height:42px;border:1px solid #dce4dc;border-radius:9px;
  background:#fff;padding:9px 11px;font-size:13px;box-shadow:none;
}
body.single-product .dl-booking-box textarea{min-height:72px}
body.single-product .dl-booking-actions{display:grid;gap:9px;margin-top:14px}
body.single-product .dl-booking-actions .dl-btn{width:100%;min-height:43px;display:flex;align-items:center;justify-content:center;text-align:center}
body.single-product .dl-booking-box>div:last-child{line-height:1.55}
body.single-product .dl-section-block{padding:22px;background:#fff;border:1px solid #e8ece7}
body.single-product .dl-single h2{margin:0 0 14px!important}
body.single-product .dl-single .dl-description{font-size:14px;line-height:1.85}
body.single-product .dl-amenity-item{background:#fff}
@media(max-width:1024px){
 body.single-product .dl-single>.container{width:calc(100% - 32px)!important}
 body.single-product .dl-product-grid{grid-template-columns:minmax(0,1fr) 320px!important;gap:20px!important}
 body.single-product .dl-booking-box{padding:16px!important}
 body.single-product .dl-booking-title{font-size:20px!important}
 body.single-product .dl-info-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:849px){
 body.single-product .dl-single>.container{width:calc(100% - 28px)!important;padding-top:18px!important}
 body.single-product .dl-product-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 body.single-product .dl-booking-box{position:relative;top:auto}
 body.single-product .dl-booking-title{font-size:24px!important}
 body.single-product .dl-single__main-img{height:clamp(230px,58vw,430px)}
 body.single-product .dl-info-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:549px){
 body.single-product .dl-single>.container{width:calc(100% - 22px)!important}
 body.single-product .dl-single__thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px}
 body.single-product .dl-single__thumbs img,body.single-product .dl-single__thumbs>div{height:60px}
 body.single-product .dl-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.single-product .dl-info-item{padding:12px 6px}
 body.single-product .dl-booking-box{padding:16px!important}
 body.single-product .dl-section-block{padding:16px}
}


/* v1.9: product gallery displays the complete photo without cropping */
.dl-single .dl-product-grid{grid-template-columns:minmax(0,1fr) 360px!important;gap:28px!important;align-items:start}
.dl-single__gallery{border:1px solid #e3e9e3;border-radius:16px;padding:8px;background:#f4f6f3;overflow:hidden}
.dl-single__gallery .dl-gallery-main{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(320px,40vw,540px);background:#f4f6f3;border-radius:11px;overflow:hidden}
.dl-single__main-img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;background:#f4f6f3;border-radius:11px}
.dl-single__thumbs{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:8px}
.dl-single__thumbs img,.dl-single__thumbs>div{display:block;width:100%;height:74px;object-fit:cover;border:1px solid #e4e9e4;border-radius:8px;cursor:pointer}
.dl-single__thumbs img:hover{border-color:#24563f}
.dl-single__title{font-size:clamp(25px,2.5vw,34px);line-height:1.22}
.dl-single .dl-booking-box{position:sticky;top:24px;padding:20px;border:1px solid #e1e8e0;border-radius:18px;box-shadow:0 12px 34px rgba(25,55,37,.09)}
.dl-single .dl-booking-box__price{font-size:27px;line-height:1.2;font-weight:850;color:#174d36}
.dl-single .dl-booking-form .dl-search-field{margin:12px 0}
.dl-single .dl-booking-form input,.dl-single .dl-booking-form select,.dl-single .dl-booking-form textarea{width:100%;min-height:43px;border:1px solid #d8e1d8;border-radius:8px;padding:10px 12px;box-sizing:border-box}
.dl-single .dl-booking-actions{display:grid;gap:9px;margin-top:14px}
.dl-single .dl-booking-actions .dl-btn{width:100%;min-height:45px;display:flex;align-items:center;justify-content:center;border-radius:9px;font-weight:800;text-decoration:none}
.dl-single .dl-btn-zalo{background:#0878e8!important;color:#fff!important}
.dl-single .dl-btn-zalo:hover{background:#0668ca!important;color:#fff!important}
.dl-single .dl-info-grid{gap:10px;margin:20px 0}
.dl-single .dl-info-item{padding:14px 8px;border-radius:12px;background:#fff}
.dl-single .dl-section-block{padding:20px!important}
@media(max-width:849px){
 .dl-single .dl-product-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .dl-single .dl-booking-box{position:static}
 .dl-single__gallery .dl-gallery-main{height:clamp(260px,65vw,440px)}
 .dl-single__thumbs{grid-template-columns:repeat(5,minmax(0,1fr))}
 .dl-single__thumbs img,.dl-single__thumbs>div{height:64px}
}
@media(max-width:549px){
 .dl-single__gallery{padding:5px;border-radius:12px}
 .dl-single__gallery .dl-gallery-main{height:270px}
 .dl-single__thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .dl-single__thumbs img,.dl-single__thumbs>div{height:62px}
 .dl-single .dl-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dl-single .dl-booking-box{padding:15px}
}

/* ==========================================================
   NAHINEST PRODUCT PAGE REDESIGN v2.5
   Clear hierarchy, larger gallery, readable sections and booking card
   ========================================================== */
body.single-product { background:#f7f9f7; }
body.single-product .dl-single { color:#20372b; padding-bottom:48px; }
body.single-product .dl-single > .container {
  width:min(1240px, calc(100% - 40px)) !important;
  max-width:1240px !important;
  margin-left:auto !important; margin-right:auto !important;
  padding-top:24px !important;
}
body.single-product .dl-single .dl-product-grid {
  display:grid !important;
  grid-template-columns:minmax(0, 1.65fr) minmax(310px, .78fr) !important;
  gap:28px !important; align-items:start !important;
}
body.single-product .dl-single .dl-product-grid > div:first-child { min-width:0; }
body.single-product .dl-single__gallery {
  background:#fff !important; border:1px solid #e1e8e1 !important;
  border-radius:18px !important; padding:8px !important;
  box-shadow:0 8px 28px rgba(28,63,44,.07) !important;
}
body.single-product .dl-single__gallery .dl-gallery-main {
  height:clamp(360px, 39vw, 540px) !important;
  background:#edf1ec !important; border-radius:12px !important;
}
body.single-product .dl-single__main-img {
  width:100% !important; height:100% !important; object-fit:contain !important;
  object-position:center !important; border-radius:12px !important;
}
body.single-product .dl-single__thumbs {
  display:grid !important; grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:8px !important; margin-top:8px !important;
}
body.single-product .dl-single__thumbs img,
body.single-product .dl-single__thumbs > div {
  height:78px !important; border-radius:9px !important; overflow:hidden;
}
body.single-product .dl-single__title {
  font-size:clamp(26px,2.5vw,36px) !important; line-height:1.2 !important;
  font-weight:800 !important; letter-spacing:-.5px !important;
  color:#183d2e !important; margin:10px 0 12px !important;
}
body.single-product .dl-single__meta-row {
  display:flex !important; flex-wrap:wrap !important; gap:8px 16px !important;
  color:#65756a !important; font-size:13px !important; align-items:center;
}
body.single-product .dl-info-grid {
  display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important; margin:22px 0 26px !important;
}
body.single-product .dl-info-item {
  background:#fff !important; border:1px solid #e2e9e1 !important;
  border-radius:13px !important; min-width:0; padding:15px 10px !important;
  box-shadow:0 3px 12px rgba(25,55,37,.035) !important;
}
body.single-product .dl-info-item__icon { font-size:21px !important; margin-bottom:7px !important; }
body.single-product .dl-info-item__value { font-size:18px !important; font-weight:800 !important; color:#20553d !important; }
body.single-product .dl-info-item__label { font-size:11px !important; line-height:1.4 !important; color:#758177 !important; }
body.single-product .dl-section-block,
body.single-product .dl-single > div:first-child > div[style*="margin:28px 0"] {
  background:#fff; border:1px solid #e2e9e1; border-radius:16px;
  box-shadow:0 5px 20px rgba(25,55,37,.035);
}
body.single-product .dl-section-block { padding:24px !important; margin:24px 0 !important; }
body.single-product .dl-single h2 {
  font-size:21px !important; line-height:1.35 !important; font-weight:800 !important;
  color:#183d2e !important; margin:0 0 16px !important;
}
body.single-product .dl-single .dl-description {
  color:#44564a !important; font-size:14px !important; line-height:1.9 !important;
  overflow-wrap:anywhere;
}
body.single-product .dl-single .dl-description p { margin:0 0 13px !important; }
body.single-product .dl-single .dl-description h2,
body.single-product .dl-single .dl-description h3,
body.single-product .dl-single .dl-description h4 {
  color:#214d38 !important; line-height:1.45 !important; margin:20px 0 9px !important;
}
body.single-product .dl-single .dl-description ul,
body.single-product .dl-single .dl-description ol { padding-left:22px !important; margin:8px 0 16px !important; }
body.single-product .dl-single .dl-description li { margin-bottom:6px !important; }
body.single-product .dl-amenities-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:10px !important; }
body.single-product .dl-amenity-item {
  display:flex !important; align-items:center !important; gap:9px !important;
  min-height:48px; padding:11px 12px !important; border:1px solid #e3eae2 !important;
  border-radius:10px !important; color:#334b3b !important; font-size:13px !important;
}
body.single-product .dl-booking-box {
  top:18px !important; padding:22px !important; border-radius:18px !important;
  border:1px solid #dfe8de !important; box-shadow:0 12px 34px rgba(27,65,44,.10) !important;
}
body.single-product .dl-booking-box__price { font-size:29px !important; }
body.single-product .dl-booking-box .dl-search-field label { font-size:12px !important; }
body.single-product .dl-booking-box input:not([type=hidden]),
body.single-product .dl-booking-box select,
body.single-product .dl-booking-box textarea { min-height:44px !important; border-radius:10px !important; }
body.single-product .dl-booking-actions .dl-btn { min-height:46px !important; border-radius:10px !important; font-weight:800 !important; }
body.single-product .dl-single .dl-booking-box__prices { border-bottom:1px solid #e7ece6 !important; }
@media(max-width:1024px) {
  body.single-product .dl-single > .container { width:calc(100% - 30px) !important; }
  body.single-product .dl-single .dl-product-grid { grid-template-columns:minmax(0,1fr) 320px !important; gap:18px !important; }
  body.single-product .dl-single__gallery .dl-gallery-main { height:clamp(300px,42vw,440px) !important; }
  body.single-product .dl-single__thumbs { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
  body.single-product .dl-single__thumbs img,body.single-product .dl-single__thumbs > div { height:65px !important; }
}
@media(max-width:849px) {
  body.single-product .dl-single .dl-product-grid { grid-template-columns:minmax(0,1fr) !important; }
  body.single-product .dl-single .dl-booking-box { position:relative !important; top:auto !important; }
  body.single-product .dl-single__gallery .dl-gallery-main { height:clamp(260px,65vw,430px) !important; }
  body.single-product .dl-single .dl-amenities-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media(max-width:549px) {
  body.single-product .dl-single > .container { width:calc(100% - 22px) !important; padding-top:14px !important; }
  body.single-product .dl-single__gallery { padding:5px !important; border-radius:13px !important; }
  body.single-product .dl-single__gallery .dl-gallery-main { height:260px !important; }
  body.single-product .dl-single__thumbs { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:6px !important; }
  body.single-product .dl-single__thumbs img,body.single-product .dl-single__thumbs > div { height:58px !important; }
  body.single-product .dl-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  body.single-product .dl-info-item { padding:12px 8px !important; }
  body.single-product .dl-section-block { padding:16px !important; }
  body.single-product .dl-single .dl-amenities-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px !important; }
  body.single-product .dl-amenity-item { font-size:12px !important; padding:9px !important; }
  body.single-product .dl-booking-box { padding:16px !important; }
}

/* ===== v3.2: polished villa detail page ===== */
body.single-product { background:#f5f7f5 !important; }
body.single-product .dl-single { color:#20372b; }
body.single-product .dl-single > .container { max-width:1240px !important; }
body.single-product .dl-product-grid { align-items:start; gap:28px !important; }
body.single-product .dl-single__title { font-size:clamp(25px,2.3vw,36px) !important; line-height:1.22 !important; letter-spacing:-.55px; font-weight:800 !important; color:#173e2d !important; margin:10px 0 12px !important; }
body.single-product .dl-single__meta-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; color:#607267; font-size:13px !important; }
body.single-product .dl-single__meta-row span { display:inline-flex; align-items:center; gap:5px; }
body.single-product .dl-badge { display:inline-flex; align-items:center; border-radius:999px !important; padding:5px 11px !important; font-size:11px !important; font-weight:800 !important; letter-spacing:.2px; }
body.single-product .dl-info-grid { gap:12px !important; margin:22px 0 !important; }
body.single-product .dl-info-item { min-height:94px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; background:#fff; border:1px solid #e1e9e1 !important; border-radius:15px !important; box-shadow:0 3px 12px rgba(20,58,38,.045); padding:15px 10px !important; }
body.single-product .dl-info-item__icon { font-size:22px !important; line-height:1.2; }
body.single-product .dl-info-item__value { font-size:20px !important; line-height:1.2; font-weight:800 !important; color:#1b5a3b !important; }
body.single-product .dl-info-item__label { color:#738176 !important; font-size:11px !important; line-height:1.4; text-align:center; }
body.single-product .dl-section-block { background:#fff !important; border:1px solid #e4ebe4 !important; border-radius:18px !important; box-shadow:0 5px 22px rgba(28,60,40,.045) !important; padding:24px !important; margin:0 0 22px !important; }
body.single-product .dl-section-block > h2,
body.single-product .dl-section-block > h3 { display:flex; align-items:center; gap:9px; color:#173e2d !important; font-size:21px !important; line-height:1.35 !important; font-weight:800 !important; margin:0 0 18px !important; padding-bottom:13px; border-bottom:1px solid #edf1ed; }
body.single-product .dl-single .dl-description { font-size:14px !important; line-height:1.85 !important; color:#47584d !important; }
body.single-product .dl-single .dl-description p { margin:0 0 14px !important; }
body.single-product .dl-single .dl-description ul { list-style:disc; padding-left:22px !important; }
body.single-product .dl-single .dl-description li { padding-left:2px; margin-bottom:7px !important; }
body.single-product .dl-amenity-item { background:#fbfcfb !important; }
body.single-product .dl-booking-box { background:#fff !important; }
body.single-product .dl-related-properties,
body.single-product .related.products,
body.single-product .up-sells { margin:26px 0 !important; padding:22px !important; border:1px solid #e3eae3; border-radius:18px; background:#fff; }
body.single-product .dl-related-properties h2,
body.single-product .related.products > h2,
body.single-product .up-sells > h2 { font-size:21px !important; color:#173e2d !important; font-weight:800 !important; margin:0 0 16px !important; }
body.single-product .dl-related-properties .product,
body.single-product .related.products .product,
body.single-product .up-sells .product { overflow:hidden; border:1px solid #e4eae4; border-radius:14px; background:#fff; padding:8px !important; box-shadow:0 4px 14px rgba(25,60,40,.05); }
body.single-product .related.products .product img,
body.single-product .up-sells .product img { border-radius:9px !important; aspect-ratio:4/3; object-fit:cover; }
body.single-product .related.products .woocommerce-loop-product__title,
body.single-product .up-sells .woocommerce-loop-product__title { font-size:13px !important; line-height:1.45 !important; font-weight:700 !important; color:#244a36 !important; padding:8px 4px 3px !important; }
body.single-product #reviews { background:#fff; border:1px solid #e3eae3; border-radius:18px; padding:24px; margin-top:22px; }
body.single-product #reviews h2,
body.single-product #review_form_wrapper h3 { color:#173e2d !important; font-size:21px !important; font-weight:800 !important; margin:0 0 16px !important; }
body.single-product #review_form { border-top:1px solid #edf1ed; padding-top:18px; }
body.single-product #review_form label { display:block; color:#405448; font-size:13px; font-weight:700; margin:0 0 7px; }
body.single-product #review_form input[type=text],
body.single-product #review_form input[type=email],
body.single-product #review_form textarea { width:100% !important; max-width:100%; border:1px solid #dbe5dc !important; border-radius:10px !important; background:#fbfcfb !important; box-shadow:none !important; padding:12px 13px !important; font-size:14px !important; }
body.single-product #review_form textarea { min-height:120px; }
body.single-product #review_form input:focus,
body.single-product #review_form textarea:focus { border-color:#2d6a4f !important; outline:2px solid rgba(45,106,79,.12); }
body.single-product #review_form .form-submit input[type=submit] { border:0 !important; border-radius:10px !important; background:#236344 !important; color:#fff !important; font-weight:800 !important; padding:12px 20px !important; }
@media(max-width:849px) {
 body.single-product .dl-product-grid { gap:18px !important; }
 body.single-product .dl-single__title { font-size:25px !important; }
 body.single-product .dl-section-block { padding:18px !important; border-radius:15px !important; }
 body.single-product .dl-related-properties, body.single-product .related.products, body.single-product .up-sells, body.single-product #reviews { padding:17px !important; border-radius:15px !important; }
}
@media(max-width:549px) {
 body.single-product .dl-single__title { font-size:23px !important; line-height:1.28 !important; letter-spacing:-.25px; }
 body.single-product .dl-single__meta-row { font-size:12px !important; gap:7px 11px; }
 body.single-product .dl-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 body.single-product .dl-info-item { min-height:88px; }
 body.single-product .dl-section-block { padding:16px !important; margin-bottom:15px !important; }
 body.single-product .dl-section-block > h2, body.single-product .dl-section-block > h3 { font-size:18px !important; margin-bottom:13px !important; }
 body.single-product .dl-single .dl-description { font-size:14px !important; line-height:1.8 !important; }
 body.single-product .dl-related-properties, body.single-product .related.products, body.single-product .up-sells, body.single-product #reviews { padding:14px !important; margin:16px 0 !important; }
 body.single-product .related.products .product, body.single-product .up-sells .product { padding:6px !important; }
 body.single-product .related.products .woocommerce-loop-product__title, body.single-product .up-sells .woocommerce-loop-product__title { font-size:12px !important; }
 body.single-product #review_form textarea { min-height:105px; }
}

/* v3.3 — gallery carousel, lightbox, and social video embeds */
body.single-product .dl-gallery-enhanced { padding:8px !important; }
body.single-product .dl-gallery-stage { position:relative; overflow:hidden; border-radius:13px; background:#edf1ec; }
body.single-product .dl-gallery-stage .dl-gallery-main { display:flex; align-items:center; justify-content:center; width:100%; height:clamp(320px,39vw,540px); margin:0; line-height:0; }
body.single-product .dl-gallery-stage .dl-single__main-img { display:block; width:100%; height:100%; object-fit:contain; }
.dl-gallery-arrow { position:absolute; z-index:3; top:50%; transform:translateY(-50%); width:42px; height:48px; padding:0; border:1px solid rgba(255,255,255,.72); border-radius:12px; background:rgba(17,35,25,.58); color:#fff; font-size:36px; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.16); transition:background .18s ease, transform .18s ease; }
.dl-gallery-arrow:hover { background:rgba(17,35,25,.88); color:#fff; }
.dl-gallery-prev { left:12px; }
.dl-gallery-next { right:12px; }
.dl-gallery-counter { position:absolute; right:12px; top:12px; padding:6px 10px; border-radius:20px; background:rgba(0,0,0,.58); color:#fff; font-size:12px; font-weight:700; }
.dl-gallery-expand { position:absolute; left:12px; bottom:12px; display:flex; align-items:center; gap:6px; border:1px solid rgba(255,255,255,.65); border-radius:8px; padding:8px 11px; background:rgba(0,0,0,.62); color:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.dl-gallery-expand:hover { background:rgba(0,0,0,.82); color:#fff; }
body.single-product .dl-gallery-enhanced .dl-single__thumbs { display:grid !important; grid-template-columns:repeat(7,minmax(0,1fr)) !important; gap:8px !important; margin-top:9px !important; }
.dl-gallery-thumb { position:relative; display:block; min-width:0; width:100%; padding:0; border:2px solid transparent; border-radius:9px; background:#edf1ec; overflow:hidden; cursor:pointer; aspect-ratio:1.35/1; }
.dl-gallery-thumb img { display:block; width:100%; height:100% !important; object-fit:cover; transition:transform .2s ease, opacity .2s ease; }
.dl-gallery-thumb:hover img { transform:scale(1.04); }
.dl-gallery-thumb.is-active { border-color:#2d6a4f; box-shadow:0 0 0 1px #2d6a4f; }
.dl-gallery-more span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; background:rgba(9,24,16,.62); font-size:20px; font-weight:800; }
.dl-gallery-lightbox { position:fixed; z-index:999999; inset:0; display:none; align-items:center; justify-content:center; padding:60px 70px 70px; background:rgba(8,13,10,.94); }
.dl-gallery-lightbox.is-open { display:flex; }
.dl-gallery-lightbox > img { display:block; max-width:min(92vw,1500px); max-height:82vh; width:auto; height:auto; object-fit:contain; box-shadow:0 8px 40px rgba(0,0,0,.28); }
.dl-lightbox-close,.dl-lightbox-arrow { position:absolute; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.12); color:#fff; cursor:pointer; }
.dl-lightbox-close { top:18px; right:22px; width:48px; height:48px; border-radius:50%; font-size:34px; line-height:1; }
.dl-lightbox-arrow { top:50%; transform:translateY(-50%); width:52px; height:64px; border-radius:12px; font-size:48px; line-height:1; }
.dl-lightbox-prev { left:18px; }
.dl-lightbox-next { right:18px; }
.dl-lightbox-close:hover,.dl-lightbox-arrow:hover { background:rgba(255,255,255,.25); color:#fff; }
.dl-lightbox-count { position:absolute; bottom:20px; left:0; right:0; text-align:center; color:#fff; font-size:14px; font-weight:700; }
body.dl-lightbox-active { overflow:hidden; }
.dl-media-section { margin:28px 0 !important; padding:22px !important; }
.dl-video-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.dl-video-card { min-width:0; overflow:hidden; border:1px solid #e2e9e1; border-radius:13px; background:#fff; }
.dl-video-frame { position:relative; width:100%; aspect-ratio:16/9; background:#101510; overflow:hidden; }
.dl-video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.dl-video-label { padding:10px 12px; color:#36513f; font-size:12px; font-weight:700; line-height:1.5; }
@media(max-width:849px) {
 body.single-product .dl-gallery-stage .dl-gallery-main { height:clamp(260px,65vw,430px); }
 body.single-product .dl-gallery-enhanced .dl-single__thumbs { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
 .dl-gallery-thumb { aspect-ratio:1.25/1; }
 .dl-gallery-lightbox { padding:55px 48px 60px; }
 .dl-lightbox-prev { left:7px; }
 .dl-lightbox-next { right:7px; }
 .dl-lightbox-arrow { width:38px; height:50px; font-size:36px; }
}
@media(max-width:549px) {
 body.single-product .dl-gallery-enhanced { padding:5px !important; }
 body.single-product .dl-gallery-stage .dl-gallery-main { height:260px; }
 body.single-product .dl-gallery-enhanced .dl-single__thumbs { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:6px !important; }
 .dl-gallery-thumb { aspect-ratio:1.35/1; border-radius:7px; }
 .dl-gallery-arrow { width:34px; height:40px; border-radius:9px; font-size:30px; }
 .dl-gallery-prev { left:7px; }
 .dl-gallery-next { right:7px; }
 .dl-gallery-expand { left:7px; bottom:7px; padding:6px 8px; font-size:10px; }
 .dl-gallery-counter { top:7px; right:7px; padding:5px 8px; font-size:10px; }
 .dl-gallery-lightbox { padding:48px 40px 55px; }
 .dl-gallery-lightbox > img { max-width:100%; max-height:78vh; }
 .dl-lightbox-close { top:9px; right:9px; width:38px; height:38px; font-size:28px; }
 .dl-lightbox-arrow { width:32px; height:42px; font-size:30px; }
 .dl-lightbox-prev { left:4px; }
 .dl-lightbox-next { right:4px; }
 .dl-media-section { padding:15px !important; }
 .dl-video-grid { grid-template-columns:1fr; gap:12px; }
}


/* v3.3.4 — clearer video cards; preserve native orientation for TikTok */
body.single-product .dl-media-section {
  background:#fff !important;
  border:1px solid #e3eae3 !important;
  border-radius:20px !important;
  box-shadow:0 8px 28px rgba(28,57,39,.06);
}
body.single-product .dl-media-section > h2 {
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:13px;
  margin:0 0 18px !important;
  border-bottom:1px solid #e8eee8;
  color:#164b35 !important;
  font-size:clamp(20px,2.2vw,26px) !important;
  line-height:1.3 !important;
}
body.single-product .dl-video-grid {
  align-items:start;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
body.single-product .dl-video-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  border:1px solid #dfe8df;
  border-radius:16px;
  box-shadow:0 3px 12px rgba(23,52,34,.045);
  transition:box-shadow .2s ease, transform .2s ease;
}
body.single-product .dl-video-card:hover {
  box-shadow:0 8px 22px rgba(23,52,34,.10);
}
body.single-product .dl-video-frame {
  flex:none;
  width:100%;
  aspect-ratio:16/9;
  border-radius:15px 15px 0 0;
  background:#101713;
}
body.single-product .dl-video-frame iframe {
  display:block;
  width:100%;
  height:100%;
}
body.single-product .dl-video-label {
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px 14px;
  color:#234b36;
  font-size:14px;
  line-height:1.45;
}
body.single-product .dl-video-platform {
  color:#748277;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.single-product .dl-video-title {
  color:#173f2d;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  overflow-wrap:anywhere;
}
/* TikTok is vertical video: don't squeeze it into a wide landscape frame. */
body.single-product .dl-video-card--tiktok .dl-video-frame {
  width:min(100%,330px);
  aspect-ratio:9/16;
  height:auto;
  margin:0 auto;
  border-radius:15px 15px 0 0;
}
body.single-product .dl-video-card--tiktok .dl-video-frame iframe {
  width:100%;
  height:100%;
}
body.single-product .dl-video-card--tiktok .dl-video-label {
  border-top:1px solid #edf1ed;
}
@media(max-width:767px) {
  body.single-product .dl-media-section {
    margin:22px 0 !important;
    padding:15px !important;
    border-radius:16px !important;
  }
  body.single-product .dl-video-grid {
    grid-template-columns:1fr;
    gap:14px;
  }
  body.single-product .dl-video-card--tiktok .dl-video-frame {
    width:min(100%,320px);
  }
  body.single-product .dl-video-label {
    padding:11px 12px 13px;
  }
}
