/* HCT CLIENT02 (Fujin Việt Nam) — Trang chi tiết sản phẩm: 2 cột trên cùng (album ảnh trái, thông tin phải).
 * Phong cách tham khảo: flat/minimal kiểu WooCommerce cổ điển (Porto theme) — không dùng
 * card nổi/đổ bóng lớn, phân cách bằng viền mỏng, badge/nút góc vuông, swatch nhỏ gọn.
 */
.hctclient02-product-top{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,1fr);gap:clamp(28px,4vw,64px);align-items:start;margin-bottom:clamp(36px,5vw,56px)}

/* ---------- Gallery / Album ---------- */
.hctclient02-product-top__gallery{display:flex;flex-direction:column;gap:14px;position:sticky;top:24px}
.hctclient02-product-top__main{position:relative;overflow:hidden;border-radius:6px;background:var(--hctclient02-color-surface-soft,#f5f8f6);aspect-ratio:1/1;border:1px solid var(--hctclient02-color-border)}
.hctclient02-product-top__main img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.hctclient02-product-top__main:hover img{transform:scale(1.04)}

.hctclient02-product-top__flag{position:absolute;left:14px;z-index:2;padding:5px 12px;font-size:var(--hctclient02-font-size-xs);font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#fff}
.hctclient02-product-top__flag--sale{top:14px;background:var(--hctclient02-color-danger, #dc2626)}
.hctclient02-product-top__flag--stock{top:14px;background:#2b2b2b}
.hctclient02-product-top__flag--sale ~ .hctclient02-product-top__flag--stock,
.hctclient02-product-top__flag--sale + .hctclient02-product-top__flag--stock{top:48px}

.hctclient02-product-top__thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:10px}
.hctclient02-product-top__thumb{appearance:none;padding:0;overflow:hidden;border:1px solid var(--hctclient02-color-border);border-radius:4px;background:var(--hctclient02-color-surface-soft,#f5f8f6);cursor:pointer;aspect-ratio:1/1;transition:border-color .16s ease}
.hctclient02-product-top__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.hctclient02-product-top__thumb:hover,.hctclient02-product-top__thumb:focus-visible{border-color:var(--hctclient02-color-text)}
.hctclient02-product-top__thumb.is-active{border:2px solid var(--hctclient02-color-heading)}

/* ---------- Info column ---------- */
.hctclient02-product-top__info{display:flex;flex-direction:column;min-width:0}
.hctclient02-product-top__title{margin:0;color:var(--hctclient02-color-heading);font-family:var(--hctclient02-font-family-heading);font-weight:700;font-size:clamp(1.5rem,1.3rem + 1vw,2.05rem);line-height:1.25}

.hctclient02-product-top__rating{display:flex;align-items:center;gap:10px;margin-top:12px}
.hctclient02-product-top__stars{position:relative;font-size:1.05rem;line-height:1;letter-spacing:2px;white-space:nowrap}
.hctclient02-product-top__stars-bg{color:var(--hctclient02-color-border)}
.hctclient02-product-top__stars-fg{position:absolute;top:0;left:0;overflow:hidden;color:#f5a623;white-space:nowrap}
.hctclient02-product-top__rating-count{color:var(--hctclient02-color-text-muted);font-size:var(--hctclient02-text-caption)}

.hctclient02-product-top__divider{height:1px;margin:18px 0;background:var(--hctclient02-color-border)}

.hctclient02-product-top__sapo{margin:18px 0 0;color:var(--hctclient02-color-text-muted);font-size:var(--hctclient02-text-body);line-height:var(--hctclient02-line-height-relaxed,1.7)}

.hctclient02-product-top__meta-list{display:flex;flex-direction:column;gap:6px;margin:18px 0 0;padding:0;list-style:none;font-size:var(--hctclient02-text-meta);color:var(--hctclient02-color-text-muted)}
.hctclient02-product-top__meta-list strong{margin-right:4px;color:var(--hctclient02-color-text)}
.hctclient02-product-top__meta-list a{color:var(--hctclient02-color-primary);text-decoration:none}
.hctclient02-product-top__meta-list a:hover{text-decoration:underline}

/* Buybox: không còn là card riêng — chỉ là phần nội dung tiếp nối tự nhiên trong cột info */
.hctclient02-product-buybox{display:flex;flex-direction:column;margin:0;padding:0}

.hctclient02-product-buybox__divider{height:1px;margin:22px 0;background:var(--hctclient02-color-border)}

.hctclient02-product-buybox__price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px}
.hctclient02-product-buybox__price{margin:0;color:var(--hctclient02-color-heading);font-family:var(--hctclient02-font-family-heading);font-size:clamp(1.5rem,1.3rem + .7vw,1.9rem);font-weight:700;line-height:1}
.hctclient02-product-buybox__old-price{margin:0;color:var(--hctclient02-color-text-muted);font-size:1.05rem;text-decoration:line-through;text-decoration-thickness:1.5px}
.hctclient02-product-buybox__badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:3px;font-size:var(--hctclient02-font-size-xs);font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.hctclient02-product-buybox__badge--sale{background:rgba(220,38,38,.1);color:var(--hctclient02-color-danger, #dc2626)}
.hctclient02-product-buybox__badge--muted{background:var(--hctclient02-color-surface-soft,#f5f8f6);color:var(--hctclient02-color-text-muted)}

.hctclient02-product-buybox__variants{display:flex;flex-direction:column;gap:12px}
.hctclient02-product-buybox__label{color:var(--hctclient02-color-heading);font-size:var(--hctclient02-text-meta);font-weight:700}
.hctclient02-product-buybox__variant-list{display:flex;flex-wrap:wrap;gap:8px}
.hctclient02-product-buybox__variant-option{appearance:none;display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border:1px solid var(--hctclient02-color-border);border-radius:3px;background:#fff;color:var(--hctclient02-color-text-muted);font-size:var(--hctclient02-text-meta);font-weight:400;cursor:pointer;transition:border-color .16s ease,color .16s ease}
.hctclient02-product-buybox__variant-option:hover,.hctclient02-product-buybox__variant-option:focus-visible{border-color:var(--hctclient02-color-text)}
.hctclient02-product-buybox__variant-option.is-active{border-color:var(--hctclient02-color-heading);color:var(--hctclient02-color-heading);font-weight:700}
.hctclient02-product-buybox__variant-thumb{flex:0 0 auto;overflow:hidden;width:28px;height:28px;border-radius:50%;background:var(--hctclient02-color-surface-soft,#f5f8f6)}
.hctclient02-product-buybox__variant-thumb img{display:block;width:100%;height:100%;object-fit:cover}

.hctclient02-product-buybox__actions{display:flex;align-items:stretch;gap:0;flex-wrap:wrap}

/* Ô số lượng: viền vuông mảnh, các ô ngăn cách bằng vạch, không bo góc — đúng kiểu WooCommerce cổ điển */
.hctclient02-product-buybox__qty{display:inline-flex;align-items:stretch;height:54px;border:1px solid var(--hctclient02-color-border);border-radius:0;background:#fff;overflow:hidden}
.hctclient02-product-buybox__qty button{appearance:none;display:grid;place-items:center;width:44px;border:0;background:transparent;color:var(--hctclient02-color-text);cursor:pointer;transition:background-color .16s ease}
.hctclient02-product-buybox__qty button:first-child{border-right:1px solid var(--hctclient02-color-border)}
.hctclient02-product-buybox__qty button:last-child{border-left:1px solid var(--hctclient02-color-border)}
.hctclient02-product-buybox__qty button:hover{background:var(--hctclient02-color-surface-soft,#f5f8f6)}
.hctclient02-product-buybox__qty input{width:54px;border:0;text-align:center;color:var(--hctclient02-color-heading);font-size:1.05rem;font-weight:700;background:transparent}
.hctclient02-product-buybox__qty input::-webkit-outer-spin-button,
.hctclient02-product-buybox__qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Nút thêm giỏ: khối chữ nhật đặc, không bo góc, cao bằng ô số lượng, chiếm phần còn lại */
.hctclient02-product-buybox__add{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:1 1 auto;min-height:54px;margin-left:12px;padding:0 28px;border:0;border-radius:0;background:var(--hctclient02-color-primary);color:#fff;font-size:.92rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;cursor:pointer;transition:background-color .16s ease}
.hctclient02-product-buybox__add:hover:not(:disabled){background:var(--hctclient02-color-primary-hover)}
.hctclient02-product-buybox__add:disabled{cursor:not-allowed;opacity:.5;background:var(--hctclient02-color-text-muted)}

/* ---------- Responsive ----------
 * Sidebar bị ẩn hẳn dưới 1024px (xem hctclient02-layout-system.css), nên trang detail
 * có toàn bộ chiều rộng — 2 cột gallery/info được giữ tới tận 860px mới xuống dòng.
 */
@media(max-width:860px){
    .hctclient02-product-top{grid-template-columns:1fr;gap:26px}
    /* Mobile: thông tin sản phẩm hiện trước, album ảnh xuống sau */
    .hctclient02-product-top__info{order:1}
    .hctclient02-product-top__gallery{order:2;position:static;max-width:520px;margin:0 auto}
}

@media(max-width:600px){
    .hctclient02-product-buybox__actions{flex-direction:column;align-items:stretch}
    .hctclient02-product-buybox__qty{align-self:flex-start}
    .hctclient02-product-buybox__add{width:100%;margin-left:0;margin-top:12px}
    .hctclient02-product-top__thumbs{grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}
}

@media(hover:none){
    .hctclient02-product-top__main:hover img{transform:none}
}
