/* ============================================================
   VIETNAMSMART - SINGLE PRODUCT PAGE STYLES
   ============================================================ */

/* === BREADCRUMB === */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: var(--color-2);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-1);
}

.breadcrumb span {
    margin: 0 6px;
    color: #bbb;
}

/* === PRODUCT TOP === */
.pd-top {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 30px;
    align-items: start;
}

/* Gallery */
.pd-gallery {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px;
}

.pd-gallery-note {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    font-style: italic;
    line-height: 1.45;
}

/* Gallery Main (slider wrapper) */
.pd-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
}

.pd-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

.pd-gallery-prev,
.pd-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: #fff;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
}

.pd-gallery-main:hover .pd-gallery-prev,
.pd-gallery-main:hover .pd-gallery-next {
    opacity: 1;
}

.pd-gallery-prev:hover,
.pd-gallery-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.pd-gallery-prev {
    left: 8px;
}

.pd-gallery-next {
    right: 8px;
}

.pd-gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    z-index: 2;
}

.pd-thumbs-wrapper {
    position: relative;
    /* Removed horizontal padding so buttons float over thumbs */
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.pd-thumbs::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.pd-thumb {
    width: calc((100% - 32px) / 5);
    /* Show max 5 items: 4 gaps of 8px */
    aspect-ratio: 1;
    flex-shrink: 0;
    border: 2px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pd-thumb.active,
.pd-thumb:hover {
    border-color: var(--color-2);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Thumb Slider Buttons */
.pd-thumb-btn {
    position: absolute;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 2px);
    width: 52px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    color: #333;
    font-size: 16px;
    transition: color 0.2s;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    box-shadow: none;
}

.pd-thumb-btn:hover {
    color: var(--color-2);
}

.pd-thumb-btn.prev {
    left: 0px;
    justify-content: flex-start;
    padding-left: 8px;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 100%);
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.pd-thumb-btn.next {
    right: 0px;
    justify-content: flex-end;
    padding-right: 8px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 100%);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

/* Info Panel */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-1);
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Price Row */
.pd-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-price-row .pd-price-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 0;
}

.pd-price-row .pd-price-value {
    text-shadow: 3px 0 0 #ffffff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 2px 2px #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0px 0px 6px #000000;
    z-index: 2;
    color: var(--color-danger);
    font-family: "Oswald", Sans-serif;
    font-size: 26px;
    font-weight: 600;
}

/* Rating inline (next to price) */
.pd-rating-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 5px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
    text-decoration: none;
    cursor: pointer;
}

.pd-rating-inline:hover .pd-rating-text {
    color: var(--color-active);
}

.pd-rating-stars {
    display: flex;
    gap: 2px;
}

.pd-rating-stars i {
    color: #f5a623;
    font-size: 13px;
}

.pd-rating-text {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

/* SKU Row */
.pd-sku-row {
    margin-bottom: 10px;
}

/* Short Description */
.pd-short-desc {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Custom Relation Box */
.custom-relation-box {
    margin-bottom: 20px;
}

.custom-relation-box>strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-1);
}

.custom-relation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.custom-rel-item {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    overflow: hidden;
}

.custom-rel-item:hover {
    border-color: var(--color-active);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.custom-rel-item img.rel-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.custom-rel-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.custom-rel-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.custom-rel-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-danger);
    line-height: 1.3;
    margin-top: 2px;
}

/* Active state */
.custom-rel-item.is-active {
    border-color: var(--color-active);
}

.custom-rel-item.is-active::after {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-active);
    color: #fff;
    font-size: 10px;
    border-radius: 0 4px 0 8px;
    padding-bottom: 1px;
    padding-left: 1px;
}

/* USP List */
.pd-usp {
    background: var(--color-soft-bg);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 15px;
}

.pd-usp li {
    font-size: 13px;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pd-usp li i {
    color: var(--color-4);
    margin-top: 3px;
    font-size: 12px;
}

/* Product meta info */
.pd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.pd-meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pd-meta-row i {
    color: var(--color-2);
    font-size: 12px;
}

.pd-meta-row span+span {
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

.pd-brand-link {
    color: var(--color-2);
    text-decoration: none;
    transition: color 0.2s;
}

.pd-brand-link:hover {
    color: var(--color-1);
}



/* Branch info box (3rd column) */
.pd-branch-box {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 15px;
}

.pd-branch-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-1);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pd-branch-item {
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pd-branch-item i {
    color: var(--color-2);
    margin-top: 3px;
    font-size: 11px;
}

.pd-branch-item strong {
    color: var(--color-1);
}

/* Phone list */
.pd-phones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.pd-phone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fb;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 8px 10px;
    transition: border-color 0.2s;
}

.pd-phone-item:hover {
    border-color: var(--color-2);
}

.pd-phone-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pd-phone-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.pd-phone-name {
    font-size: 12px;
    color: #666;
}

.pd-phone-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-2);
}

/* === DESC + SPEC === */
.pd-mid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-top: 30px;
    align-items: start;
}

/* Spec Table */
.pd-spec-box {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 15px;
}

.section-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-1);
    padding: 14px 20px;
    border-bottom: 2px solid var(--color-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading i {
    color: var(--color-2);
}

h2.section-heading {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.spec-heading-sku {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Spec table from HTML */
.spec-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table-wrap table tr:nth-child(even) {
    background: #f8f9fb;
}

.spec-table-wrap table th,
.spec-table-wrap table td {
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.spec-table-wrap table th:first-child,
.spec-table-wrap table td:first-child {
    font-weight: 600;
    color: var(--color-3);
    width: 40%;
}

.spec-table-wrap table thead th {
    font-weight: 600;
    color: var(--color-3);
}

.spec-table-collapsed {
    max-height: 500px;
    overflow: hidden;
}

.spec-toggle-row {
    padding: 10px;
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, .91) 50%, #fff 55%);
    border-radius: 0 0 8px 8px;
    bottom: 0;
    left: 0;
    margin-bottom: 0;
    padding-top: 80px;
    padding-bottom: 15px;
    position: absolute;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.spec-toggle-btn {
    background: none;
    border: none;
    color: var(--color-2);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spec-toggle-btn:hover {
    color: var(--color-1);
}

/* === PRODUCT DESCRIPTION === */
.pd-desc {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.pd-desc-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-5);
    transition: max-height 0.3s ease;
}

.pd-desc-content-wrap {
    position: relative;
}

.pd-desc-sapo {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-5);
    margin-bottom: 24px !important;
    line-height: 1.6;
}

.pd-toc {
    background-color: #f8f9fb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 24px;
    display: none;
    width: fit-content;
    overflow: hidden;
}

/* Title bar — clickable toggle */
.pd-toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.pd-toc-title:hover {
    background-color: #f0f1f3;
}

.pd-toc-title p {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-1);
    margin: 0 !important;
}

.pd-toc-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Collapsed state */
.pd-toc.collapsed .pd-toc-wrapper {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

.pd-toc.collapsed .pd-toc-title {
    border-bottom-color: transparent;
}

.pd-toc.collapsed .pd-toc-chevron {
    transform: rotate(-90deg);
}

/* Wrapper — scrollable content */
.pd-toc-wrapper {
    max-height: 340px;
    overflow-y: auto;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 1;
}

.pd-toc-wrapper::-webkit-scrollbar {
    width: 4px;
}

.pd-toc-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Item list container */
.pd-toc-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

/* Each item — flat <a> link */
.pd-toc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-5);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    border-left: 3px solid transparent;
}

.pd-toc-item::before {
    content: '•';
    flex: 0 0 auto;
    color: var(--color-2);
    font-weight: 900;
}

.pd-toc-item:hover {
    color: var(--color-2);
    background-color: rgba(0, 0, 0, 0.02);
    border-left-color: var(--color-2);
}

.pd-toc-group {
    display: block;
}

.pd-toc-parent-row {
    display: flex;
    align-items: stretch;
}

.pd-toc-parent-row .pd-toc-item {
    flex: 1 1 auto;
    min-width: 0;
}

.pd-toc-group-toggle {
    width: 38px;
    border: 0;
    border-left: 1px solid #f0f0f0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: background-color 0.2s, color 0.2s;
}

.pd-toc-group-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--color-2);
}

.pd-toc-group-toggle .pd-toc-chevron {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.pd-toc-group.collapsed .pd-toc-group-toggle .pd-toc-chevron {
    transform: rotate(0deg);
}

.pd-toc-children {
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.pd-toc-group.collapsed .pd-toc-children {
    max-height: 0;
    opacity: 0;
}

/* Level indentation */
.pd-toc-item.level-2 {
    padding-left: 18px;
    font-weight: 500;
}

.pd-toc-item.level-3 {
    padding-left: 36px;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.pd-toc-item.level-3:hover {
    color: var(--color-2);
}

.pd-desc-content.collapsed {
    max-height: 700px;
    overflow: hidden;
}

.cps-block-content_btn-showmore {
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, .91) 50%, #fff 55%);
    bottom: 0;
    display: none;
    left: 0;
    margin-bottom: 0;
    padding-top: 80px;
    padding-bottom: 15px;
    position: absolute;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.pd-desc-content.collapsed~.cps-block-content_btn-showmore {
    display: block;
}

.btn-show-more.button__content-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-1);
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-show-more.button__content-show-more div {
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.btn-show-more.button__content-show-more svg {
    fill: var(--color-1);
    transition: fill 0.2s ease;
}

.desc-collapse-row {
    display: block;
    text-align: center;
    padding: 15px 0;
}

.pd-desc-content.collapsed~.desc-collapse-row {
    display: none;
}

.pd-desc-body h2 {
    font-size: 21px;
    font-weight: 700;
    padding: 4px 0px;
    color: var(--color-6);
}

.pd-desc-body h3 {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 0;
    color: var(--color-6);
}

.pd-desc-body h4 {
    font-size: 15px;
    font-weight: 700;
    padding: 8px 0;
    color: var(--color-6);
}

.pd-desc-body p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 10px;
}

.pd-short-desc>p>a,
.pd-desc-body>p>a {
    color: #2962FF;
}

.pd-desc-body ul,
.pd-desc-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.pd-desc-body ul {
    list-style: disc;
}

.pd-desc-body ol {
    list-style: decimal;
}

.pd-desc-body ul li,
.pd-desc-body ol li {
    margin-bottom: 8px;
    padding-left: 4px;
    font-weight: 500;
}

.pd-desc-body img {
    border-radius: 8px;
    margin: 16px auto;
    display: block;
    max-width: 100%;
}

.pd-desc-body .img-caption {
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #888;
    margin-top: -10px;
    margin-bottom: 16px;
}

.pd-desc-body figure {
    width: auto !important;
    max-width: 100% !important;
    margin: 16px auto;
    text-align: center;
}

.pd-desc-body figure img {
    width: 100%;
    height: auto;
}

.pd-desc-body figcaption {
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #888;
    margin-top: 6px;
}

.pd-desc-body table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    margin: 22px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
}

.pd-desc-body table tbody,
.pd-desc-body table thead,
.pd-desc-body table tfoot {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.pd-desc-body table tr:first-child td,
.pd-desc-body table thead th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
}

.pd-desc-body table tr:nth-child(even) td {
    background: #f8fafc;
}

.pd-desc-body table th,
.pd-desc-body table td {
    border: 1px solid #e5e7eb;
    padding: 11px 12px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
}

.pd-tech-people {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
}

.pd-tech-person {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.pd-tech-avatar {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 58px;
    background: #e8f1fb;
    color: var(--color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.pd-tech-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-tech-info {
    min-width: 0;
}

.pd-tech-role {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 86, 166, .08);
    color: var(--color-1);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pd-tech-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-tech-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    text-decoration: none;
}

a.pd-tech-name:hover {
    color: var(--color-1);
}

.pd-tech-title {
    margin-top: 0;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.pd-tech-title:before {
    content: '— ';
    color: #94a3b8;
}

.pd-tech-desc {
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #64748b !important;
}

.pd-tech-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pd-tech-links a {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-1);
    text-decoration: none;
}

.pd-tech-links a:hover {
    text-decoration: underline;
}

/* === DOWNLOADS SECTION === */
.pd-downloads {
    margin-top: 30px;
}

.pd-downloads-body {
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.pd-download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #f8f9fb;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pd-download-item:hover {
    border-color: var(--color-active);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pd-download-item i:first-child {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.pd-download-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-5);
    transition: color 0.2s;
}

.pd-download-item:hover .pd-download-label {
    color: var(--color-2);
}

.pd-download-arrow {
    font-size: 12px;
    color: #bbb;
    transition: color 0.2s, transform 0.2s;
}

.pd-download-item:hover .pd-download-arrow {
    color: var(--color-2);
    transform: translateX(2px);
}

/* === RELATED PRODUCTS GRID === */
.pd-related {
    margin-top: 30px;
}

.pd-review-related-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.pd-review-related-layout .pd-review,
.pd-review-related-layout .pd-related {
    width: 100%;
    max-width: 100%;
}

.pd-review-related-layout .pd-related {
    margin-top: 30px;
}

.pd-related .section-heading {
    background: #fff;
    border: 1px solid #eaeaea;
    border-bottom: 2px solid var(--color-2);
    border-radius: 8px 8px 0 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
}

.related-grid .product-card:nth-child(6) {
    display: none;
}

.related-list-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px;
}

.related-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    color: var(--color-5);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.related-side-item:hover {
    border-color: var(--color-active);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.related-side-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-side-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-side-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.related-side-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.related-side-item:hover .related-side-title {
    color: var(--color-2);
}

.related-side-price,
.related-side-price .woocommerce-Price-amount {
    color: var(--color-danger);
    font-size: 14px;
    font-weight: 700;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-active);
}

.product-img-box {
    position: relative;
    padding-bottom: 100%;
    margin-bottom: 12px;
}

.product-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-5);
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.product-card:hover .product-title {
    color: var(--color-2);
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-price-label {
    font-size: 12px;
    color: #888;
}

.product-price,
.product-price-row .woocommerce-Price-amount {
    color: var(--color-danger);
    font-weight: 700;
    font-size: 16px;
}

/* === REVIEW SECTION === */
.pd-review {
    margin-top: 30px;
    width: calc(100% - 360px);
    max-width: calc(100% - 360px);
}

.review-container {
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
}

.review-container .review-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-1);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Rating Summary */
.rating-summary-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.average-rating-display {
    flex: 0 0 180px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #eee;
    margin-right: 20px;
}

.average-score {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 42px;
    font-weight: 700;
    color: #f5a623;
    margin-right: 5px;
}

.star-icon {
    color: #f5a623;
}

.large-star {
    font-size: 30px;
    vertical-align: middle;
}

.average-label {
    font-size: 13px;
    color: #555;
    margin: 0;
    font-weight: 700;
}

.rating-breakdown {
    flex: 1;
    min-width: 250px;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.star-label {
    width: 30px;
    color: #555;
}

.star-label i {
    color: #f5a623;
    font-size: 12px;
}

.progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
}

.percentage {
    width: 40px;
    text-align: right;
    color: var(--color-2);
    font-weight: 500;
}

.count {
    width: 85px;
    text-align: right;
    color: #777;
    font-size: 12px;
    white-space: nowrap;
}

.submit-review-button-container {
    flex-basis: 150px;
    text-align: center;
    margin-left: auto;
    padding-left: 20px;
}

.submit-review-btn {
    background: var(--color-2);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: var(--font-main);
}

.submit-review-btn:hover {
    background: var(--color-1);
}

/* Review Filters */
.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-filter-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    font-weight: 500;
}

.review-filter-btn:hover {
    border-color: var(--color-2);
    color: var(--color-2);
}

.review-filter-btn.active {
    background: var(--color-2);
    color: #fff;
    border-color: var(--color-2);
}

.review-filter-btn i {
    margin-right: 4px;
}

/* Review Images — Square Thumbnails */
.review-image-attachment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.review-thumb-square {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-thumb-square:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Review Pagination */
.review-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.review-pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.review-pagination button:hover {
    border-color: var(--color-2);
    color: var(--color-2);
}

.review-pagination button.active {
    background: var(--color-2);
    color: #fff;
    border-color: var(--color-2);
}

.review-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Reviews List */
.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

img.avatar {
    border: 1px solid #eee;
    object-fit: cover;
}

.avatar-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-main);
    user-select: none;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

.verified-purchase {
    font-size: 12px;
    color: var(--color-4);
}

.verified-purchase i {
    font-size: 11px;
    margin-right: 3px;
}

.review-rating {
    margin-bottom: 8px;
    color: #f5a623;
    font-size: 13px;
}

.review-body-text p {
    margin: 0 0 10px;
    color: var(--color-5);
    line-height: 1.6;
}

.review-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.review-quick-tags span {
    padding: 4px 9px;
    border: 1px solid #d8e4f5;
    border-radius: 999px;
    background: #f4f8ff;
    color: var(--color-2);
    font-size: 12px;
    font-weight: 600;
}

.review-photos {
    margin-top: 10px;
}

.review-photos img {
    max-width: 80px;
    max-height: 80px;
    border: 1px solid #eee;
    margin-right: 5px;
    cursor: pointer;
    display: inline-block;
}

.review-actions {
    font-size: 12px;
    color: #777;
}

.review-actions a {
    color: var(--color-2);
}

.review-actions a:hover {
    text-decoration: underline;
}

/* Review Reply */
.review-reply {
    margin-top: 15px;
    margin-left: 50px;
    padding-left: 15px;
    border-left: 2px solid #eee;
    padding-top: 10px;
}

.review-reply .review-header {
    margin-bottom: 5px;
}

.admin-badge {
    background: #f5a623;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

.qa-list {
    display: grid;
    gap: 14px;
}

.qa-list .review-item {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px;
    padding: 16px !important;
    margin-bottom: 0 !important;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.qa-list .review-body-text[style] {
    margin-top: 10px !important;
}

.qa-list .review-body-text p {
    font-size: 14px;
}

.qa-reply-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    border: 0;
    background: #eef6ff;
    color: var(--color-1);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.qa-reply-toggle:before {
    content: '\f075';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

.qa-reply-toggle[aria-expanded="true"]:before {
    content: '\f077';
}

.qa-reply-toggle:hover {
    background: #dbeeff;
}

.qa-reply-panel[hidden] {
    display: none !important;
}

.qa-list .review-reply {
    margin-top: 12px;
    margin-left: 22px;
    padding: 14px;
    border-left: 3px solid var(--color-1);
    border-radius: 10px;
    background: #f8fafc;
}

/* Review Popup */
#reviewPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 999;
    display: none;
}

#reviewPopupContent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    z-index: 1000;
    display: none;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
}

#reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    color: var(--color-1);
}

.quick_reviews_tag {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick_reviews_tag input[type="checkbox"] {
    display: none;
}

.quick_reviews_tag span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    background: #f7f7f7;
    color: #555;
    transition: all .2s;
}

.quick_reviews_tag input[type="checkbox"]:checked+span {
    border-color: var(--color-danger);
    background: #fff1f0;
    color: var(--color-danger);
}

.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
    min-height: 80px;
    font-family: var(--font-main);
    font-size: 14px;
}

.wrap-attaddsend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-attach .btn-attach {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--color-2);
    color: var(--color-2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.review-attach .btn-attach i {
    margin-right: 5px;
}

#countContent {
    font-size: 12px;
    color: #888;
}

.list_attach ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.list_attach li {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list_attach li .img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.list_attach li .img-wrap-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list_attach li .img-wrap img.thumb {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.list_attach li .close {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    font-weight: 700;
    z-index: 2;
}

.list_attach .devvn_insert_attach {
    width: 60px;
    height: 60px;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
}

.comment-form-rating {
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.comment-form-rating .stars {
    display: inline-block;
    margin-bottom: 5px;
}

.form_row_reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form_row_reviews p {
    margin: 0;
    flex: 1 1 calc(33.33% - 10px);
    min-width: 150px;
}

.form_row_reviews input[type="text"],
.form_row_reviews input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--font-main);
}

.form-submit .submit {
    background: var(--color-2);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-main);
    transition: background .2s;
}

.form-submit .submit:hover {
    background: var(--color-1);
}

/* === DECORATIVE Q&A FORM === */
.qa-form-deco {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.qa-form-prompt {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.qa-form-prompt-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-2), var(--color-1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qa-form-prompt-icon i {
    font-size: 22px;
    color: #fff;
}

.qa-form-prompt-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-1);
    margin: 0 0 4px !important;
}

.qa-form-prompt-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 !important;
}

.qa-form-input-wrap {
    position: relative;
}

.qa-form-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    padding-right: 130px;
    font-size: 14px;
    font-family: var(--font-main);
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 52px;
    box-sizing: border-box;
}

.qa-form-textarea:focus {
    border-color: var(--color-2);
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.08);
}

.qa-form-textarea::placeholder {
    color: #aaa;
}

.qa-form-send-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-2);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.qa-form-send-btn:hover {
    background: var(--color-1);
}

.qa-form-send-btn:disabled {
    cursor: not-allowed;
}

.qa-form-send-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.qa-form-send-btn:active {
    transform: scale(0.97);
}

.qa-form-send-btn svg {
    width: 16px;
    height: 16px;
}

/* Q&A Toast notification */
.qa-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.qa-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === AUTHOR BOX === */
.pd-author {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pd-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 2px;
}

.author-role {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.author-desc {
    font-size: 13px;
    color: var(--color-5);
    line-height: 1.6;
}

/* === BANK WARNING === */
.bank-warning-inline {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.bank-warning-header {
    background: var(--color-danger);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
}

.bank-warning-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.bank-warning-body .note-text {
    color: var(--color-danger);
    font-weight: 600;
    margin-bottom: 14px;
}

.bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bank-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 14px;
}

.bank-card .bank-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 8px;
}

.bank-card p {
    margin-bottom: 4px;
}

.bank-card strong {
    color: var(--color-5);
}

/* === SPEC POPUP === */
#specPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

#specPopupContent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    z-index: 1000;
    display: none;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

#specPopupContent .section-heading {
    background: #fff;
    border: 1px solid #eaeaea;
    border-bottom: 2px solid var(--color-2);
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

/* === LIGHTBOX === */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pd-lightbox.active {
    display: flex;
}

.pd-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.pd-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pd-lightbox-close:hover {
    opacity: 1;
}

.pd-lightbox-prev,
.pd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pd-lightbox-prev:hover,
.pd-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pd-lightbox-prev {
    left: 20px;
}

.pd-lightbox-next {
    right: 20px;
}

.pd-lightbox-img-wrap {
    position: relative;
    z-index: 1;
    max-width: 85vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.pd-lightbox-img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

.pd-lightbox-counter {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 12px;
}

.pd-lightbox-thumbs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 15px;
    overflow-x: auto;
    max-width: 80vw;
    padding: 4px 0;
}

.pd-lightbox-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pd-lightbox-thumb.active {
    border-color: #fff;
}

.pd-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === MAIN === */
main {
    padding: 0px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .pd-top {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .pd-branch-box {
        grid-column: 1 / -1;
    }

    .pd-mid {
        grid-template-columns: 1fr;
    }

    .pd-review-related-layout {
        grid-template-columns: 1fr;
    }

    .pd-review {
        width: 100%;
        max-width: 100%;
    }

    .pd-spec-box {
        position: relative;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .pd-desc-body {
        padding: 10px;
    }

    .pd-top {
        grid-template-columns: 1fr;
    }

    .pd-phones {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-branch-box {
        position: static;
    }

    .pd-title {
        font-size: 18px;
    }

    .custom-relation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-price-row .pd-price-value {
        font-size: 16px;
    }

    .related-grid {
        gap: 10px;
    }

    .related-grid .product-card:nth-child(6) {
        display: flex;
    }

    .bank-grid {
        grid-template-columns: 1fr;
    }

    .pd-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 14px;
    }

    .rating-summary-section {
        flex-direction: column;
        align-items: stretch;
    }

    .average-rating-display {
        flex: 0;
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .submit-review-button-container {
        margin-left: 0;
        padding-left: 0;
        margin-top: 20px;
        flex-basis: auto;
        text-align: left;
    }

    .review-reply {
        margin-left: 20px;
        padding-left: 10px;
    }

    .form_row_reviews p {
        flex-basis: calc(50% - 8px);
    }

    .pd-lightbox-prev {
        left: 8px;
    }

    .pd-lightbox-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }

    .pd-phone-number {
        font-size: 16px;
    }

    .pd-lightbox-prev,
    .pd-lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
