/* Styles limited to the catalogue purchase link, product detail and cart. */
.catalog-main #product-grid{row-gap:0}
/* Share the six content rows across the cards on each catalogue line. */
.catalog-main #product-grid .product-card{display:grid;grid-template-rows:subgrid;grid-row:span 6;align-items:start;height:auto;margin-bottom:24px;padding-bottom:16px}
.catalog-main #product-grid .product-card:hover,.catalog-main #product-grid .product-actions .btn:hover{transform:none}
.catalog-main #product-grid .product-row{min-width:0;overflow-wrap:anywhere}
.catalog-main #product-grid .product-actions{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:10px;align-items:stretch;align-self:stretch;margin:0}
.catalog-main #product-grid .product-actions .btn{min-width:0;padding:8px 10px;gap:8px;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}
.catalog-main #product-grid .product-actions .link-button{display:grid;align-items:center;text-align:center}
.catalog-main #product-grid .store-catalog-status{display:block;min-height:1.65em;margin:6px 0 0;overflow-wrap:anywhere}
.catalog-main [data-catalog-add]:disabled{opacity:.65;cursor:wait}
@media(max-width:350px){
 .catalog-main #product-grid .product-actions{grid-template-columns:minmax(0,1fr)}
 .catalog-main #product-grid .product-actions .link-button{justify-self:start}
}
.store-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.store-header-cart{position:relative;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:4px;color:var(--green)}
.store-header-cart svg{width:21px;height:21px}
.store-header-cart [data-cart-count]{position:absolute;top:-6px;right:-6px;min-width:19px;padding:0 3px;border-radius:12px;background:var(--green);color:var(--white);font-size:12px;line-height:19px;text-align:center}
.store-old-price{margin-inline-start:10px;font-weight:400;color:var(--muted)}
.store-discount{display:inline-block;margin-inline-start:10px;font-size:14px;font-weight:500;color:var(--green)}
.store-detail-layout{display:grid;gap:clamp(18px,2.2vw,32px);align-items:start;padding-bottom:48px}
.store-detail-layout>.store-detail{width:100%;min-width:0;max-width:none;margin:0;padding:18px 0 0}
.store-product-sidebar{display:grid;gap:14px;min-width:0;padding-top:18px}
.store-product-sidebar>section{border:1px solid var(--line);border-radius:7px;padding:14px 16px}
.store-product-sidebar h2{font-size:24px;line-height:1.2;margin:0 0 8px}
.store-product-sidebar ul{list-style:none;margin:0;padding:0}
.store-product-sidebar li+li{border-top:1px solid var(--line)}
.store-product-sidebar li>a{display:block;padding:9px 0;overflow-wrap:anywhere}
.store-product-sidebar a:hover,.store-product-sidebar a[aria-current]{text-decoration:underline;text-underline-offset:3px}
.store-product-sidebar a.store-related-product{display:flex;gap:10px;align-items:center}
.store-related-product img{width:52px;height:52px;object-fit:contain;border-radius:4px;background:var(--light)}
.store-related-product small{display:block;color:var(--muted)}
.store-detail-heading{margin-bottom:14px}
.store-detail-heading>.eyebrow{margin-bottom:6px}
.store-detail .store-detail-heading h1{font-size:clamp(30px,4.4vw,36px);overflow-wrap:anywhere}
.store-detail .store-metadata{margin:12px 0 0;font-size:var(--note-size,14px);text-align:right;overflow-wrap:anywhere}
.store-product-columns{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:clamp(16px,2.5vw,30px);align-items:start}
.store-product-columns.store-product-without-photo{grid-template-columns:minmax(0,480px)}
.store-detail .v51-product-media>a>img{aspect-ratio:3/2}
.store-detail [data-store-caption]{margin:4px 0 0}
.store-detail [data-store-caption]:empty{display:none}
.store-detail .v51-product-info{min-width:0;margin:0;padding:12px 0 0;border-top:1px solid var(--line)}
.store-detail .v51-product-info>.product-price{margin:0 0 4px;overflow-wrap:anywhere}
.store-detail .v51-product-info>.lead{margin:0;overflow-wrap:anywhere}
.store-detail .v51-product-info>.lead+.product-price{margin-top:6px}
.store-detail .store-summary-clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.store-detail .store-summary-link{display:inline-flex;align-items:center;min-height:32px;color:var(--green);text-decoration:underline;text-underline-offset:3px}
.store-detail .store-sold{margin-top:4px}
.store-detail .v51-product-info .v5-variants{margin:10px 0;padding:10px}
.store-detail .v5-variants select{margin:3px 0 6px}
.store-detail .v5-variants #v5-variant-price{margin:0 0 6px}
.store-detail .v51-product-info>.actions{display:grid;grid-template-columns:minmax(0,1fr)}
.store-detail .v51-product-info .btn{padding-inline:12px;justify-content:center;text-align:center}
.store-detail .store-quantity{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:8px}
.store-detail .store-quantity input{width:76px;text-align:right}
.store-detail .store-buy>button{width:100%}
.store-detail .store-buy{margin:8px 0}
.store-detail .store-buy [role=status]:empty{display:none}
.store-product-body{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.store-detail .store-product-body>.v51-toc{padding:6px 12px;margin-bottom:12px}
.store-detail #thong-tin-san-pham{scroll-margin-top:12px}
.store-detail .v51-product-description :is(h2,h3){margin:18px 0 8px}
.store-detail .v51-product-description>:first-child{margin-top:0}
.store-detail .v51-product-description p{margin-bottom:12px}
.store-detail .v51-related,.store-detail .v5-feedback{margin-block:24px}
.store-detail .v5-feedback form{margin-top:16px;padding-top:16px}
.store-thumbs{display:grid;grid-template-columns:repeat(auto-fill,56px);gap:8px;margin-top:8px}
.store-thumbs a{display:block;border:1px solid var(--line);padding:3px;border-radius:5px;background:var(--light)}
.store-thumbs a[aria-current="true"]{border-color:var(--green);outline:1px solid var(--green)}
.store-thumbs img{width:100%;aspect-ratio:1;object-fit:contain}
.store-gallery-controls{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;margin-top:8px}
.store-gallery-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--green)}
.store-gallery-controls svg{width:20px;height:20px}
.store-gallery-controls button:hover{background:var(--light)}
.v51-lightbox[data-product-gallery]{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0;padding:clamp(12px,2vw,24px)}
.v51-lightbox[data-product-gallery] figure{margin:12px auto 0;max-width:1280px;text-align:center}
.v51-lightbox[data-product-gallery] img{max-height:76dvh}
.v51-lightbox[data-product-gallery]>[role=status]{text-align:center}
.store-buy{margin:16px 0 20px}
.store-quantity label,.store-checkout label{display:block;font-size:15px;line-height:1.7}
.store-cart-edit,.store-cart>.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.store-buy input,.store-cart-edit input,.store-checkout input:not([type=checkbox]),.store-checkout textarea{color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:5px;font:inherit;font-size:16px;min-height:48px;padding:10px}
.store-buy input,.store-cart-edit input{width:84px}
.store-buy [role=status]{font-size:15px;margin-top:8px}
.store-buy .btn:disabled,.store-cart .btn:disabled{opacity:.6;cursor:not-allowed}
.store-cart-row{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.store-cart-row h2{font-size:24px;line-height:1.35;letter-spacing:-.4px}
.store-cart-row img{width:84px;aspect-ratio:1;object-fit:contain;background:var(--light);border-radius:5px}
.store-cart-row>strong{min-width:0;text-align:right;white-space:nowrap}
.store-cart-row p{font-size:15px;overflow-wrap:anywhere}
.store-cart-edit{margin-top:10px}
.store-cart-edit .btn{min-height:44px;padding:8px 12px}
.store-cart-total{display:flex;justify-content:space-between;gap:12px;padding:20px 0;font-size:17px}
.store-cart-change,.store-cart [role=status]{font-size:15px;margin-block:8px}
.store-checkout{margin-top:30px;padding:22px;border:1px solid var(--line);border-radius:7px}
.store-checkout h2{font-size:29px;margin-bottom:18px}
.store-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.store-checkout input:not([type=checkbox]),.store-checkout textarea{width:100%;display:block;margin:6px 0 14px}
.store-checkout .store-consent{display:flex;gap:10px;align-items:flex-start;margin:14px 0}
.store-consent input{width:20px;height:20px;flex-shrink:0;accent-color:var(--green)}
.store-checkout>p{margin:14px 0}
#store-confirmation{margin-top:24px;padding:18px;background:var(--light)}
@media(min-width:1024px){
 #product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .store-detail-layout{grid-template-columns:minmax(0,4fr) minmax(0,1fr);grid-template-rows:auto 1fr;row-gap:0;padding-top:18px}
 .store-detail-layout>.store-detail{grid-area:1 / 1 / 3 / 2;display:grid;grid-template-rows:subgrid;align-self:stretch;padding-top:0}
 .store-detail .store-detail-heading h1{font-size:clamp(36px,3.6vw,42px)}
 .store-detail .store-product-columns:has(.v5-variants) .v51-product-media>a>img{aspect-ratio:4/3;object-fit:cover}
 .store-product-sidebar{grid-area:2 / 2;padding-top:0}
 .store-product-sidebar>section{padding-inline:clamp(10px,1.1vw,16px)}
 .store-related-product img{flex:none;width:clamp(38px,3.6vw,52px);height:auto;aspect-ratio:1}
 .store-related-product span{min-width:0}
}
@media(min-width:1001px) and (max-width:1180px){
 .nav-row:has(>.store-header-actions){gap:12px}
 .nav-row:has(>.store-header-actions) .nav-links{gap:12px}
}
@media(min-width:620px) and (max-width:1023px){.store-product-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .store-detail-layout>.store-detail{padding-top:12px}
 .store-detail-heading{margin-bottom:10px}
 .store-product-columns{grid-template-columns:1fr;gap:14px}
 .store-product-body{margin-top:14px}
}
@media(max-width:560px){
 .store-cart-row{grid-template-columns:64px minmax(0,1fr);gap:12px}
 .store-cart-row>strong{grid-column:2}
 .store-cart-row img{width:64px}
 .store-fields{grid-template-columns:1fr;gap:0}
 .store-checkout{padding:16px}
}
