/* Product Detail */

.pd-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

/* Breadcrumb */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
    margin-bottom: 32px;
}

.pd-breadcrumb-link {
    color: #777;
    text-decoration: none;
}

.pd-breadcrumb-link:hover {
    color: #1a1a1a;
}

.pd-breadcrumb-sep {
    color: #bbb;
}

.pd-breadcrumb-current {
    color: #1a1a1a;
}

/* Main two-column layout */
.pd-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

/* Gallery */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Slideshow */
.pd-slideshow {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f3ef;
}

.pd-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.pd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pd-slide--active {
    opacity: 1;
    pointer-events: auto;
}

.pd-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Arrows */
.pd-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.pd-slide-arrow:hover {
    background: rgba(255,255,255,0.85);
}

.pd-slide-arrow--prev {
    left: 12px;
}

.pd-slide-arrow--next {
    right: 12px;
}

/* Dots */
.pd-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.pd-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.pd-slide-dot--active {
    background: #fff;
}

/* Thumbnail strip */
.pd-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.pd-thumb-btn {
    width: 56px;
    height: 56px;
    border: 1px solid transparent;
    background: none;
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.pd-thumb-btn--active {
    border-color: #1a1a1a;
}

.pd-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pd-gallery-placeholder {
    aspect-ratio: 3 / 4;
    background: #f0ede8;
}

/* Info panel */
.pd-info {
    padding-top: 8px;
}

.pd-name {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 8px;
    color: #1a1a1a;
    letter-spacing: 0.04em;
}

.pd-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.5;
}

.pd-price {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.pd-colors {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.pd-attr-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 4px;
}

/* Price with discount */
.pd-price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.pd-price-discount {
    color: #1a1a1a;
}

/* Selects */
.pd-selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 4px;
}

.pd-select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-select-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #1a1a1a;
}

.pd-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #c8c2ba;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding: 10px 32px 10px 12px;
    font-size: 13px;
    font-family: 'segoe-ui', sans-serif;
    color: #777;
    cursor: pointer;
    width: 100%;
}

.pd-select:focus {
    outline: none;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Custom Options (shoe size / insole) */
.pd-custom-option {
    margin: 0;
    position: relative;
    z-index: 1;
}

.pd-custom-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.pd-custom-checkbox {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.pd-custom-option-label {
    flex: 1;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #1a1a1a;
}

.pd-accordion-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #555;
}

.is-open > .pd-custom-option-header .pd-accordion-chevron,
.is-open > .pd-section-header .pd-accordion-chevron {
    transform: rotate(180deg);
}

.pd-custom-option-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.pd-custom-option.is-open .pd-custom-option-body {
    padding: 16px 0 4px;
}

.pd-custom-option-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 16px;
}

.pd-custom-link {
    color: #1a1a1a;
    text-underline-offset: 2px;
}

.pd-custom-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pd-custom-two-col:last-child {
    margin-bottom: 0;
}

.pd-custom-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-custom-input {
    border: 1px solid #c8c2ba;
    padding: 12px 14px;
    font-size: 13px;
    color: #1a1a1a;
    width: 100%;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.pd-custom-input::placeholder {
    color: #bbb;
}

.pd-custom-input:focus {
    border-color: #1a1a1a;
}

/* File upload */
.pd-file-upload {
    display: flex;
    gap: 0;
}

.pd-file-name {
    flex: 1;
    border: 1px solid #c8c2ba;
    border-right: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #bbb;
    background: #fff;
    outline: none;
    cursor: default;
    box-sizing: border-box;
}

.pd-file-btn {
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.pd-file-input {
    display: none;
}

/* Shipping Date */
.pd-shipping-date {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 0;
}

.pd-date-input {
    color: #bbb;
}

.pd-date-input:valid {
    color: #1a1a1a;
}

/* Divider */
.pd-divider {
    border: none;
    border-top: 1px solid #e0dbd3;
    margin: 20px 0;
}

/* Add to cart */
.pd-btn-cart {
    width: 100%;
    height: 48px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 13px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pd-btn-cart:hover {
    opacity: 0.8;
}

/* Sections (product details / shipping) */
.pd-section {
    margin: 0;
    position: relative;
    z-index: 1;
}

.pd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    padding: 4px 0;
    cursor: pointer;
    user-select: none;
}


.pd-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    padding: 0;
}

.pd-section.is-open .pd-section-body {
    padding: 16px 0 4px;
}

.pd-section-body p {
    margin: 0 0 16px;
}

.pd-section-body p:last-child {
    margin-bottom: 0;
}

.pd-section-desc {
    margin-bottom: 16px;
}

.pd-section-attrs p {
    margin: 0;
    line-height: 1.8;
}

/* Related products */
.pd-related {
    padding-top: 24px;
}

.pd-related-title {
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 32px;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
}

.pd-related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-related-img-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0ede8;
}

.pd-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.pd-related-card:hover .pd-related-img {
    transform: scale(1.03);
}

.pd-related-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e3db;
}

.pd-related-name {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.35;
}

.pd-related-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin-top: -4px;
}

.pd-related-price {
    font-size: 13px;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 900px) {
    .pd-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 600px) {
    .pd-wrap {
        padding: 80px 16px 60px;
    }

    .pd-thumb-btn {
        width: 48px;
        height: 48px;
    }

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