/* ==========================================================================
   PUMA-STYLE PRODUCT DETAIL PAGE (PDP) STYLESHEET
   Clean Gallery, Precision Size Selector, Japanese Craft Touch
   ========================================================================== */

.pdp-breadcrumb-wrap {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}

.pdp-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 860px) {
    .pdp-container {
        padding: 0 16px;
    }
    .pdp-workspace {
        padding: 16px 0 60px;
    }
    .pdp-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .pdp-gallery-col,
    .pdp-info-col {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .pdp-info-col {
        padding: 24px 18px;
    }
    .pdp-main-image-frame {
        width: 100%;
        min-height: 280px;
        padding: 0;
        box-sizing: border-box;
    }
    .pdp-thumb-strip {
        justify-content: center;
    }
}

.pdp-workspace {
    padding: 48px 0 90px;
    background: #fafafa;
}

.pdp-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: flex-start;
}

/* ==========================================================================
   Left Column: Gallery Showcase
   ========================================================================== */
.pdp-gallery-col {
    position: sticky;
    top: 96px;
}

.pdp-badge-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pdp-badge {
    background: var(--color-sumi);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 2px;
}

.pdp-badge-japan {
    background: #ffffff;
    border: 1px solid var(--color-border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 2px;
    color: var(--color-sumi);
}

.pdp-main-image-frame {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    height: 480px;
    margin-bottom: 18px;
    overflow: hidden;
}

.pdp-featured-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdp-featured-image:hover {
    transform: scale(1.05);
}

.pdp-thumb-strip {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.thumb-btn {
    width: 80px;
    height: 80px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

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

.thumb-btn.is-active, .thumb-btn:hover {
    border-color: var(--color-sumi);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pdp-craft-highlight {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 2px;
}

.craft-kanji {
    font-family: var(--font-kanji);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-vermilion);
    border: 2px solid var(--color-vermilion);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pdp-craft-highlight strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-sumi);
}

.pdp-craft-highlight p {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Right Column: Product Purchase Info (PUMA Style)
   ========================================================================== */
.pdp-info-col {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 36px 32px;
    border-radius: 2px;
}

.pdp-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pdp-brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-vermilion);
}

.pdp-model-code {
    font-size: 11px;
    color: var(--color-muted);
}

.pdp-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-sumi);
    margin-bottom: 6px;
}

.pdp-subtitle {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 20px;
}

/* Price Box */
.pdp-price-box {
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.pdp-price-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-sumi);
    letter-spacing: -0.5px;
}

.pdp-tax-note {
    font-size: 11px;
    color: var(--color-muted);
}

/* Stock Banner */
.pdp-stock-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 12px;
    margin-bottom: 26px;
}

.pdp-stock-banner.is-ready {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.pdp-stock-banner.is-preorder {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Option Sections (Colors & Sizes) */
.pdp-option-section {
    margin-bottom: 24px;
}

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

.option-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-sumi);
}

.option-current-val {
    font-size: 12px;
    color: var(--color-muted);
}

.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-sumi);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.size-guide-link:hover {
    color: var(--color-vermilion);
}

/* Color Swatches */
.color-swatch-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch-item {
    cursor: pointer;
    position: relative;
}

.color-swatch-item input {
    position: absolute;
    opacity: 0;
}

.color-pill {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.color-swatch-item input:checked ~ .color-pill {
    border-color: var(--color-sumi);
    background: var(--color-sumi);
    color: #ffffff;
}

/* Size Grid Selector (PUMA Style Square Blocks) */
.pdp-size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 540px) {
    .pdp-size-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .pdp-size-tile {
        padding: 10px 4px;
    }
    .pdp-size-tile .size-num {
        font-size: 15px;
    }
}

.pdp-size-tile {
    border: 1px solid var(--color-border);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.15s ease;
    position: relative;
    user-select: none;
}

.pdp-size-tile input {
    position: absolute;
    opacity: 0;
}

.pdp-size-tile .size-num {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-sumi);
}

.pdp-size-tile .size-sub-cm {
    font-size: 10px;
    color: var(--color-muted);
}

.pdp-size-tile:hover:not(.is-out-of-stock) {
    border-color: var(--color-sumi);
}

.pdp-size-tile.is-selected {
    border-color: var(--color-sumi);
    background: var(--color-sumi);
}

.pdp-size-tile.is-selected .size-num,
.pdp-size-tile.is-selected .size-sub-cm {
    color: #ffffff;
}

.pdp-size-tile.is-out-of-stock {
    opacity: 0.38;
    background: #f7f7f7;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-selection-feedback {
    font-size: 12px;
    color: var(--color-muted);
    font-style: italic;
    min-height: 18px;
}

.size-selection-feedback.is-ready {
    color: #2e7d32;
    font-style: normal;
    font-weight: 600;
}

/* CTA Action Buttons */
.pdp-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.pdp-add-cart-btn {
    height: 52px;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.pdp-wa-btn {
    height: 48px;
    font-size: 12px;
}

/* Perks List */
.pdp-perks-list {
    padding: 18px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #444444;
}

/* Accordions (PUMA Style) */
.pdp-accordions {
    display: flex;
    flex-direction: column;
}

.pdp-accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.pdp-acc-trigger {
    width: 100%;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-sumi);
    text-align: left;
    background: none;
    cursor: pointer;
}

.acc-chevron {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.pdp-accordion-item.is-open .acc-chevron {
    transform: rotate(180deg);
}

.pdp-acc-body {
    padding-bottom: 18px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
    display: none;
}

.pdp-accordion-item.is-open .pdp-acc-body {
    display: block;
}

.specs-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    font-size: 12px;
}

.specs-table th {
    text-align: left;
    width: 35%;
    padding: 8px 0;
    color: var(--color-sumi);
    font-weight: 600;
    border-bottom: 1px solid #eeeeee;
}

.specs-table td {
    padding: 8px 0;
    color: var(--color-muted);
    border-bottom: 1px solid #eeeeee;
}

/* Related Products Section */
.pdp-related-section {
    padding: 70px 0 90px;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

.related-header {
    margin-bottom: 32px;
}

.related-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-sumi);
}

/* Responsive */
@media (max-width: 960px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .pdp-gallery-col {
        position: static;
    }
    .pdp-main-image-frame {
        min-height: 320px;
        padding: 30px;
    }
}
