/* ─── Single product layout ───────────────────────────── */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 0.5px solid var(--border);
}

/* ─── Gallery ─────────────────────────────────────────── */
.product-gallery {
    display: flex;
    border-right: 0.5px solid var(--border);
    position: sticky;
    top: var(--nav-height);
    align-self: start;
}

.product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    width: 72px;
    flex-shrink: 0;
}

.product-gallery__thumb {
    width: 72px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.15s;
    background: var(--warm-grey);
    flex-shrink: 0;
}

.product-gallery__thumb.is-active {
    border-color: var(--black);
    z-index: 1;
    position: relative;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery__main {
    flex: 1;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--warm-grey);
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-gallery__main:hover img {
    transform: scale(1.02);
}

/* ─── Product info column ─────────────────────────────── */
.product-info {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info__top {}

.product-info__category {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.product-info__name {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 10px;
}

.product-info__description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 280px;
}

.product-info__price {
    font-size: 1.375rem;
    color: var(--black);
    letter-spacing: 0.01em;
    margin-bottom: 28px;
}

.product-info__price .woocommerce-Price-amount { font-size: inherit; }
.product-info__price del { opacity: 0.4; font-size: 1rem; margin-right: 8px; }
.product-info__price ins { text-decoration: none; }

.product-info__tax {
    font-size: 0.6875rem;
    color: var(--text-faint);
    margin-left: 8px;
    font-weight: 400;
}

.product-info__divider {
    height: 0.5px;
    background: var(--border);
    margin-bottom: 24px;
}

/* ─── Options ─────────────────────────────────────────── */
.product-option {
    margin-bottom: 24px;
}

.product-option__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-option__size-guide {
    font-size: 0.625rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}

.product-option__size-guide:hover { color: var(--black); }

/* Colour swatches */
.colour-opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.colour-opt {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: none;
    padding: 0;
    transition: transform 0.15s;
}

.colour-opt:hover { transform: scale(1.1); }

.colour-opt.is-selected::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--black);
}

.colour-opt--black { background: #111; }
.colour-opt--white { background: #e8e8e4; outline: 0.5px solid #ccc; }
.colour-opt--ash   { background: #aaa; }

/* Size grid */
.size-opts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.size-opt {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border: 0.5px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    font-family: inherit;
    text-transform: uppercase;
}

.size-opt:hover:not(.is-unavailable) {
    border-color: var(--black);
    color: var(--black);
}

.size-opt.is-selected {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

.size-opt.is-unavailable {
    color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ─── Product actions ─────────────────────────────────── */
.product-info__actions {
    margin-top: auto;
    padding-top: 8px;
}

.product-info__add-btn {
    width: 100%;
    background: var(--black);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    padding: 16px 32px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.product-info__add-btn:hover { background: #333; }
.product-info__add-btn:disabled { background: #999; cursor: wait; }

.product-info__wishlist {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    padding: 12px 32px;
    cursor: pointer;
    border: 0.5px solid var(--border);
    font-family: inherit;
    text-transform: uppercase;
    transition: all 0.15s;
}

.product-info__wishlist:hover {
    border-color: var(--black);
    color: var(--black);
}

/* ─── Product details strip ───────────────────────────── */
.product-details-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 0.5px solid var(--border);
}

.product-details-block {
    padding: 28px 36px;
    border-right: 0.5px solid var(--border);
}

.product-details-block:last-child { border-right: none; }

.product-details-block__title {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-details-block__body {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ─── Related products ────────────────────────────────── */
.related-products {
    border-top: 0.5px solid var(--border);
    padding: 44px 48px 0;
}

.related-products .section-bar {
    padding: 0 0 22px;
    border-bottom: none;
}

.related-products .product-grid {
    margin: 0 -48px;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .single-product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
        border-right: none;
        border-bottom: 0.5px solid var(--border);
    }

    .product-info {
        padding: 32px 24px;
    }

    .product-details-strip {
        grid-template-columns: 1fr;
    }

    .product-details-block {
        border-right: none;
        border-bottom: 0.5px solid var(--border);
    }

    .product-details-block:last-child { border-bottom: none; }

    .related-products {
        padding: 32px 20px 0;
    }

    .related-products .product-grid {
        margin: 0 -20px;
        grid-template-columns: repeat(2, 1fr);
    }
}
