.details-gallery {
    position: relative
}

.details-label-group {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

.details-label {
    font-size: 14px;
    padding: 6px 10px;
    margin-bottom: 6px;
    line-height: 13px;
    border-radius: 3px;
    text-transform: capitalize;
    text-align: center;
    color: var(--white)
}

.details-label:last-child {
    margin-bottom: 0px
}

.details-label.off {
    background: var(--red)
}

.details-label.new {
    background: var(--green)
}

.details-label.sale {
    background: var(--orange)
}

.details-label.feat {
    background: var(--purple)
}

.details-label.rate {
    background: var(--yellow)
}

.details-preview {
    margin-bottom: 16px
}

.details-preview li img {
    width: 100%;
    border-radius: 8px;
    border: 1px dotted #6c757d;
}
.details-preview li img:hover {
    border: 1px solid var(--primary);
    -webkit-box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 10px 6px 17px 3px rgba(0, 0, 0, 0.1);
}

.details-thumb li {
    margin: 0px 8px;
    cursor: pointer
}

.details-thumb li img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--white)
}

.details-thumb .slick-current img {
    border: 1px solid var(--primary)
}

.product-navigation {
    margin-bottom: 25px;
    padding: 20px 25px;
    border-radius: 8px;
    background: var(--white);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.product-navigation li a {
    color: var(--text);
    text-transform: capitalize;
    position: relative;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.product-navigation li a:hover {
    color: var(--primary)
}

.product-navigation li a:hover .product-nav-popup {
    visibility: visible;
    opacity: 1
}

.product-nav-popup {
    position: absolute;
    top: 30px;
    left: 50%;
    z-index: 3;
    width: 100px;
    height: auto;
    visibility: hidden;
    opacity: 0;
    padding: 10px;
    border-radius: 8px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    -webkit-box-shadow: 0px 15px 35px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 15px 35px 0px rgba(0, 0, 0, 0.1);
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.product-nav-popup::before {
    position: absolute;
    content: "";
    z-index: -1;
    top: -3px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    -webkit-transform: rotate(45deg) translateX(-50%);
    transform: rotate(45deg) translateX(-50%);
    background: var(--white);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border)
}

.product-nav-popup img {
    width: 100%
}

.product-nav-popup small {
    font-size: 14px;
    line-height: 18px;
    display: inline-block
}

.details-content {
    padding: 22px 22px;
    border-radius: 8px;
    background: var(--white);
    border: 1px dotted #6c757d;
}
.details-content:hover {
    border: 1px solid var(--primary);
    -webkit-box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 10px 6px 17px 3px rgba(0, 0, 0, 0.1);
}

.details-name {
    font-size: 26px;
    line-height: 34px;
    margin-bottom: 5px;
}

.details-name a {
    color: var(--heading);
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.details-name a:hover {
    color: var(--primary)
}

.details-meta {
    margin-bottom: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start
}

.details-meta p {
    font-size: 13px;
    margin-right: 20px;
    white-space: nowrap;
    color: var(--placeholder)
}

.details-meta span,
.details-meta a {
    margin-left: 5px;
    color: var(--placeholder)
}

.details-meta a:hover {
    text-decoration: underline;
    color: var(--primary)
}

.details-rating {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 15px
}

.details-rating i,
.details-rating a {
    font-size: 15px;
    margin-right: 3px;
    color: var(--gray)
}

.details-rating a {
    margin-left: 8px;
    white-space: nowrap;
    text-transform: capitalize;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.details-rating a:hover {
    color: var(--primary);
    text-decoration: underline
}

.details-rating .active {
    color: var(--yellow)
}

.details-price {
    margin-bottom: 20px
}

.details-price del {
    color: var(--red);
    margin-right: 25px
}

.details-price span {
    color: var(--primary);
    white-space: nowrap
}

.details-price span small {
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize
}

.details-desc {
    margin-bottom: 25px
}

.details-list-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 25px
}

.details-list-group:last-child {
    margin-bottom: 0px
}

.details-list-title {
    font-weight: 500;
    margin-right: 15px;
    color: var(--heading);
    text-transform: capitalize
}

.details-tag-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.details-tag-list li {
    margin-right: 8px
}

.details-tag-list li a {
    font-size: 14px;
    line-height: 12px;
    padding: 8px 10px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    color: var(--text);
    background: var(--chalk);
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.details-tag-list li a:hover {
    color: var(--white);
    background: var(--primary)
}

.details-share-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.details-share-list li {
    margin-right: 8px
}

.details-share-list li a {
    width: 35px;
    height: 35px;
    font-size: 16px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    color: var(--text);
    background: var(--chalk);
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.details-share-list li a:hover {
    color: var(--white);
    background: var(--primary)
}

.details-add-group {
    margin: 45px 0px 15px
}

.details-add-group .product-add,
.details-add-group .action-input {
    padding: 10px 0px;
    color: var(--white);
    background: var(--primary);
    text-transform: uppercase
}

.details-add-group .action-minus i,
.details-add-group .action-plus i {
    background: var(--chalk)
}

.details-action-group {
    display: -ms-grid;
    display: grid;
    grid-gap: 15px;
    -ms-grid-columns: (minmax(200px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    position: relative
}

.details-action-group a {
    padding: 10px 0px;
    border-radius: 8px;
    color: var(--text);
    background: var(--chalk);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.details-action-group a:hover {
    color: var(--primary)
}

.details-action-group a i {
    font-size: 16px;
    margin-right: 8px
}

.details-action-group a span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase
}

.details-wish.active {
    color: var(--white);
    background: var(--primary)
}

.details-wish.active:hover {
    color: var(--white);
    background: var(--primary)
}

.product-details-frame {
    padding: 50px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: var(--white);
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.product-details-frame:last-child {
    margin-bottom: 0px
}

/* Typography cho HTML content từ CKEditor — thoáng, dễ đọc */
.product-details-frame p { margin: 0 0 14px; line-height: 1.75; }
.product-details-frame p:last-child { margin-bottom: 0; }
.product-details-frame h1,
.product-details-frame h2,
.product-details-frame h3,
.product-details-frame h4,
.product-details-frame h5,
.product-details-frame h6 {
    margin: 28px 0 12px;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2937;
}
.product-details-frame h1 { font-size: 24px; }
.product-details-frame h2 { font-size: 20px; }
.product-details-frame h3 { font-size: 18px; }
.product-details-frame h4 { font-size: 16px; }
.product-details-frame h5,
.product-details-frame h6 { font-size: 15px; }
.product-details-frame > *:first-child { margin-top: 0; }
.product-details-frame ul,
.product-details-frame ol {
    margin: 0 0 16px;
    padding-left: 24px;
    line-height: 1.75;
}
.product-details-frame ul li,
.product-details-frame ol li { margin-bottom: 6px; }
.product-details-frame ul ul,
.product-details-frame ol ol,
.product-details-frame ul ol,
.product-details-frame ol ul { margin: 6px 0 6px; }
.product-details-frame strong,
.product-details-frame b { font-weight: 700; color: #111827; }
.product-details-frame em,
.product-details-frame i { font-style: italic; }
.product-details-frame a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.product-details-frame a:hover { filter: brightness(0.9); }
.product-details-frame img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 14px 0;
    display: block;
}
.product-details-frame blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--primary);
    background: #f0f5ff;
    border-radius: 6px;
    color: #4b5563;
    font-style: italic;
}
.product-details-frame table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 14px;
}
.product-details-frame table th,
.product-details-frame table td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
}
.product-details-frame table th { background: #f9fafb; font-weight: 700; color: #1f2937; }
.product-details-frame hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}
.product-details-frame code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #be185d;
}
.product-details-frame pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 14px 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}
.product-details-frame pre code { background: transparent; color: inherit; padding: 0; }
/* Reset inline styles từ CKEditor (font-family Arial, font-size 11pt, color #000) */
.product-details-frame * {
    font-family: inherit !important;
    line-height: inherit !important;
}
.product-details-frame span,
.product-details-frame span * { font-size: inherit !important; }
.product-details-frame strong,
.product-details-frame b,
.product-details-frame strong * { color: #111827 !important; }
.product-details-frame a,
.product-details-frame a * { color: var(--primary) !important; }

.frame-title {
    margin-bottom: 30px;
    text-transform: capitalize
}

.tab-descrip {
    position: relative
}

.tab-descrip ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 25px
}

.tab-descrip ul li {
    margin-bottom: 8px
}

.tab-descrip ul li:last-child {
    margin-bottom: 0px
}

.tab-descrip img {
    width: 100%;
    border-radius: 8px
}

.tab-descrip a {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 80px;
    height: 80px;
    font-size: 22px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
    color: var(--white);
    background: rgba(15, 199, 86, 0.8);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-box-shadow: var(--primary-bshadow);
    box-shadow: var(--primary-bshadow);
    text-shadow: var(--primary-tshadow)
}

.table-bordered {
    margin-bottom: 0px
}

.table-bordered th,
.table-bordered td {
    padding: 12px 25px;
    text-align: left
}

.table-bordered th {
    font-weight: 500
}

.table-bordered td:last-child {
    border-right: 1px solid var(--border)
}

.review-item {
    padding: 45px 45px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: var(--chalk);
    border: 1px solid var(--border)
}

.review-item:last-child {
    margin-bottom: 0px
}

.review-media {
    margin-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start
}

.review-avatar {
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--primary)
}

.review-avatar img {
    width: 65px;
    border-radius: 50%;
    border: 2px solid var(--white)
}

.review-meta {
    text-transform: capitalize
}

.review-meta a {
    color: var(--heading);
    text-transform: capitalize;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.review-meta a:hover {
    color: var(--primary)
}

.review-meta span {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--text)
}

.review-meta span b {
    font-weight: 500;
    color: var(--primary)
}

.review-rating {
    margin-bottom: 10px
}

.review-rating li {
    font-size: 16px;
    margin-right: 5px;
    color: var(--yellow);
    display: inline-block
}

.review-desc {
    margin-bottom: 20px
}

.review-reply {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start
}

.review-reply input {
    width: 100%;
    padding: 7px 18px;
    border-radius: 6px;
    margin-right: 20px;
    background: var(--white)
}

.review-reply button {
    font-size: 15px;
    padding: 6px 15px;
    border-radius: 6px;
    color: var(--white);
    background: var(--primary);
    text-transform: capitalize;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.review-reply button:hover {
    background: var(--heading)
}

.review-reply button i {
    margin-right: 5px
}

.review-reply-list {
    margin-left: 80px;
    margin-top: 35px;
    border-top: 1px solid var(--border)
}

.review-reply-item {
    padding: 30px 0px;
    border-bottom: 1px solid var(--border)
}

.review-reply-item:last-child {
    padding-bottom: 0px;
    border-bottom: none
}

.review-form .btn {
    width: 100%;
    padding: 12px 30px
}

@media (max-width: 991px) {
    .product-navigation {
        margin: 25px 0px
    }
}

@media (max-width: 575px) {
    .details-content {
        padding: 20px
    }

    .details-name {
        font-size: 22px;
        line-height: 30px
    }

    .product-details-frame {
        padding: 20px
    }

    .review-item {
        padding: 20px 15px
    }

    .review-reply {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column
    }

    .review-reply input {
        margin: 0px 0px 15px
    }

    .review-reply-list {
        margin-left: 25px
    }

    .star-rating label {
        margin: 0px 6px
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .review-reply-list {
        margin-left: 30px
    }
}
ul {
    list-style-type: none;
  }

/* ========================================================
   PRODUCT VARIANT SELECTOR — Tách bên dưới meta + trên price box
   ======================================================== */
.product-variant-section {
    margin: 14px 0 14px;
}
.product-variant-section .variant-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.product-variant-section .variant-label i { color: var(--primary); font-size: 13px; }
.product-variant-section .variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}
.variant-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px 7px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
    text-align: left;
    min-height: 56px;
}
.variant-option:hover:not(:disabled) {
    border-color: var(--primary);
    background: #f0f5ff;
}
.variant-option.is-active {
    border-color: var(--primary);
    background: #f0f5ff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.variant-option.is-active::after {
    content: "✓";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.variant-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}
.variant-option .variant-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.25;
    padding-right: 38px;
    padding-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.variant-option.is-active .variant-name {
    padding-left: 20px;
}
.variant-option .variant-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.variant-option:disabled .variant-price {
    color: #9ca3af;
}
/* Discount badge → top-right corner, small */
.variant-option .variant-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(239,68,68,0.25);
}
/* Active state — discount badge giữ nguyên top-right (✓ ở top-left không xung đột) */
/* Out-of-stock: inline tag nhỏ bottom-left */
.variant-option .variant-out {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 1px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Variant tag trong checkout modal */
.checkout-variant-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 3px 10px;
    background: #f0f5ff;
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 12px;
    width: fit-content;
}
.checkout-variant-tag i { font-size: 10px; }

/* ==========================================================
   PRODUCT GALLERY (vanilla JS, no slick) — main img + thumbs
   ========================================================== */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-main-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.18s;
}
.pd-main-img.img-error { opacity: 0.4; }

.pd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #1f2937;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.18s, transform 0.18s;
}
.pd-main-wrap:hover .pd-nav { opacity: 1; }
.pd-nav:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.06); }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }

.pd-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.pd-thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-padding: 4px;
    padding-bottom: 4px;
}
.pd-thumbs::-webkit-scrollbar { height: 4px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.pd-thumbs li {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.18s;
    background: #f9fafb;
}
.pd-thumbs li:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
}
.pd-thumbs li.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.pd-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile: aspect ratio 1:1 cho main image */
@media (max-width: 575px) {
    .pd-main-wrap { aspect-ratio: 1/1; }
    .pd-thumbs li { width: 60px; height: 60px; }
    .pd-nav { width: 32px; height: 32px; opacity: 1; }
}

