/* =========================
   LAYOUT
========================= */

.pdp {
    width: 100%;
    overflow: hidden;
}

/* =========================
   HERO
========================= */

.pdp-hero__grid {
    display: grid;
    grid-template-columns: 750px 630px;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

/* =========================
   GALLERY COMPONENT
========================= */

.product-gallery {
    position: relative;
}

.product-gallery__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    background: #fff;
    color: #d64545;
    font-size: 16px;
    font-weight: 700;
}

.productMainSlider,
.productThumbSlider {
    overflow: hidden;
}

.productMainSlider {
    border-radius: 14px;
}

.productMainSlider .swiper-slide {
    background: #f8f8f8;
    border-radius: 14px;
    overflow: hidden;
}

.main-image-zoom-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: zoom-in;
    height: 760px;
    width: 100%;
}

.main-zoom-image {
    width: 100%;
    display: block;
    transition: transform 0.25s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.productThumbSlider {
    margin-top: 14px;
}

.productThumbSlider .swiper-slide {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.productThumbSlider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #000;
}

.productThumbSlider .swiper-slide img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* =========================
   PRODUCT INFO COMPONENT
========================= */

.pdp-hero__grid .product-information {
    padding-top: 2px;
}

.product-information__breadcrumb {
    font-size: 16px;
    color: #8b8b8b;
    margin-bottom: 8px;
}

.product-information__title {
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin-bottom: 18px;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    background: linear-gradient(-96deg, rgb(253, 61, 107) 0px, rgb(253, 120, 99) 98%, rgb(243, 223, 224) 100%) text;
}

.product-information__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.product-information__rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-information__rating span {
    font-size: 16px;
    color: #666;
}

.stars {
    font-size: 16px;
    letter-spacing: 1.5px;
}

.stars--large {
    font-size: 26px;
    letter-spacing: 2px;
}

.product-information__price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.old-price {
    font-size: 20px;
    color: #a9a9a9;
    text-decoration: line-through;
}

.new-price {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.product-option {
    margin-bottom: 28px;
}

.product-option__label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-option__label span {
    font-weight: 400;
}

.product-option__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.swatches {
    display: flex;
    gap: 10px;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    padding: 0;
}

.swatch.is-active {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.swatch--blue {
    background: #49639d;
}

.swatch--brown {
    background: #8a5728;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sizes button {
    min-width: 52px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    background: #f7f7f7;
    font-size: 16px;
}

.sizes button.is-active,
.sizes button:hover {
    background: #fff1f1;
    border-color: #fb5d5d;
}

.add-to-bag {
    width: 100%;
    height: 54px;
    border: none;
    background: #fb5d5d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.product-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

.quantity-box {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 40px;
    overflow: hidden;
    height: 50px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s ease;
}

.qty-btn:hover {
    background: #fff1f1;
}

.quantity-box input {
    width: 60px;
    height: 48px;
    border: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    outline: none;
}

.quantity-box input::-webkit-outer-spin-button,
.quantity-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    padding: 0;
}

.wishlist-btn:hover {
    background: #f9f9f9;
}

.wishlist-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

.wishlist-btn.is-active {
    border-color: #fb5d5d;
    background: #fff1f1;
}

.product-description {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 28px;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-description p {
    font-size: 16px;
    line-height: 1.55;
    color: #666;
    margin-bottom: 12px;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* =========================
   SIZE GUIDE BUTTON RESET
========================= */
.size-guide {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 16px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================
   SIZE GUIDE MODAL
========================= */
.size-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.size-guide-modal.is-open {
    display: block;
}

.size-guide-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.size-guide-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1420px, calc(100vw - 24px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.size-guide-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #262626;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.size-guide-modal__close:hover {
    background: #f2f2f2;
    transform: rotate(90deg);
}

.size-guide-modal__content {
    /* padding: 28px 12px 12px; */
    overflow-x: auto;
}

/* =========================
   SIZE GUIDE TABLE
========================= */
.size-guide-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.size-guide-table th,
.size-guide-table td {
    border: 1px solid #d3d8de;
    padding: 20px 18px;
    text-align: left;
    vertical-align: middle;
    font-size: 18px;
    line-height: 1.2;
    color: #111827;
}

.size-guide-table th {
    font-weight: 500;
    background: #fff;
}

.size-guide-table td {
    font-weight: 400;
}

.size-guide-table th:first-child,
.size-guide-table td:first-child {
    width: 30%;
}

.size-guide-table tbody td:first-child,
.size-guide-table thead th:first-child {
    font-weight: 600;
}

/* =========================
   REVIEWS SECTION
========================= */

.reviews-summary {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 56px;
    align-items: center;
    background: #f7f7f7;
    padding: 38px 46px;
    margin-bottom: 28px;
}

.reviews-summary__rating p {
    font-size: 16px;
    color: #555;
    margin-bottom: 14px;
}

.reviews-summary__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 36px 1fr 20px;
    gap: 10px;
    align-items: center;
    font-size: 16px;
    color: #555;
}

.rating-bar__track {
    height: 4px;
    background: #dadada;
    position: relative;
}

.rating-bar__fill {
    height: 100%;
    background: #222;
}

.fill-100 {
    width: 100%;
}

.fill-0 {
    width: 0;
}

.fit-title {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
}

.fit-scale {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #777;
}

.fit-scale__track {
    flex: 1;
    height: 4px;
    background: #dadada;
    position: relative;
}

.fit-scale__fill {
    position: absolute;
    top: 0;
    left: 66%;
    width: 62px;
    height: 100%;
    background: #222;
}

.reviews-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 34px;
}

.filter-button {
    width: 136px;
    height: 54px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    color: #4f4f4f;
}

.filter-button span {
    font-size: 18px;
}

.reviews-sort {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviews-sort label {
    font-size: 16px;
    color: #555;
}

.reviews-sort select {
    min-width: 250px;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
}

.review-list {
    display: flex;
    flex-direction: column;
}

.review-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 34px;
    padding: 28px 0 34px;
    border-top: 1px solid #ececec;
}

.review-card__left h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.verified {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.review-card__left ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    color: #777;
}

.review-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-card__top span {
    font-size: 16px;
    color: #888;
}

.review-card__right h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.review-card__right p {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.55;
    color: #555;
}

/* =========================
   TRANSPARENT PRICING
========================= */

.transparent-pricing {
    padding-bottom: 70px;
}

.transparent-pricing__copy {
    max-width: 1040px;
    margin: 0 auto 46px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #777;
}

.transparent-pricing__grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 72px;
    flex-wrap: wrap;
}

.pricing-item {
    min-width: 120px;
    text-align: center;
}

.pricing-item__icon {
    font-size: 40px;
    color: #9a9a9a;
    margin-bottom: 10px;
}

.pricing-item__label {
    font-size: 18px;
    color: #777;
    margin-bottom: 4px;
}

.pricing-item__value {
    font-size: 16px;
    font-weight: 700;
    color: #555;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1440px) {
    .pdp-hero__grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
    }

    .product-information__title {
        font-size: 38px;
    }

    .old-price {
        font-size: 28px;
    }

    .new-price {
        font-size: 32px;
    }
}

@media (max-width: 1100px) {

    .pdp-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .review-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .productThumbSlider .swiper-slide img {
        height: 70px;
    }

    .main-zoom-image {
        transform: none !important;
    }

    .main-image-zoom-wrap {
        cursor: default;
    }

    .product-information__title {
        font-size: 30px;
        max-width: none;
    }

    .product-information__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .filter-button {
        width: 100%;
    }

    .reviews-sort {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-sort select {
        width: 100%;
        min-width: 100%;
    }

    .fit-scale {
        flex-direction: column;
        align-items: stretch;
    }

    .transparent-pricing {
        padding-bottom: 80px;
    }

    .transparent-pricing__grid {
        gap: 32px;
    }

    .size-guide-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 32px);
    }

    .size-guide-modal__content {
        /* padding: 40px 8px 8px; */
    }

    .size-guide-table th,
    .size-guide-table td {
        padding: 14px 12px;
        font-size: 14px;
    }

    .size-guide-modal__close {
        top: 8px;
        right: 12px;
        font-size: 28px;
    }

    .product-actions-row {
        gap: 10px;
    }

    .quantity-box {
        height: 46px;
    }

    .qty-btn,
    .quantity-box input,
    .wishlist-btn {
        height: 46px;
    }

    .qty-btn {
        width: 42px;
    }

    .quantity-box input {
        width: 52px;
    }

    .wishlist-btn {
        width: 46px;
    }
}