@charset "UTF-8";

/* ==========================================================================
   Product Detail Page Styles
   ========================================================================== */

/* --- Common Layout ---------------------------------------------------- */
.l-main {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--color-bg);
}

@media (max-width: 767px) {
    .l-main {
        padding-top: 80px;

    }

}

.c-section-title {
    font-family: var(--font-mincho);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.c-section-title--center {
    font-family: var(--font-mincho);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.c-section-title--center::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Breadcrumb ------------------------------------------------------- */
.p-breadcrumb {
    padding: 10px 20px;
    margin-bottom: 20px;
    margin-top: 100px;

}

.p-breadcrumb__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.p-breadcrumb__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
    font-family: var(--font-gothic);
}

.p-breadcrumb__item:not(:last-child)::after {
    content: ">";
    margin: 0 15px;
    opacity: 0.5;
}

.p-breadcrumb__item a:hover {
    text-decoration: underline;
}

/* --- Product Main Area ------------------------------------------------ */
.p-product-main {
    margin-bottom: 80px;
}

.p-product-main__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 1024px) {
    .p-product-main__inner {
        flex-direction: row;
        gap: 60px;
    }
}

/* Left: Gallery */
.p-product-main__gallery {
    flex: 1;
}

.p-product-main__img-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 4px;
}

/* Right: Info */
.p-product-main__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-product-main__title {
    font-family: var(--font-mincho);
    font-size: 24px;
    font-weight: 100;
    line-height: 1.4;
    margin-bottom: 15px;
}

@media (min-width: 1024px) {
    .p-product-main__title {
        font-size: 32px;
    }
}

.p-product-main__catch {
    font-family: var(--font-shippori);
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.p-product-main__price-area {
    margin-bottom: 30px;
}

.p-product-main__price {
    font-family: var(--font-gothic);
    font-size: 28px;
    font-weight: 700;
    text-align: right;
    color: #231815;
}

.p-product-main__tax,
.tax {
    font-size: 14px;
    font-weight: 400;
}

.p-product-taxbox {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.p-product-taxbox .p-product-main__price {
    text-align: center;
}

/* Cart & Quantity */

.p-product-main__cart-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* Stepper */
.c-quantity-stepper {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 50px;
}

.c-quantity-stepper__btn {
    width: 40px;
    background: #fff;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.c-quantity-stepper__btn:hover {
    background: #f0f0f0;
}

.c-quantity-stepper__input {
    width: 50px;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    text-align: center;
    font-size: 16px;
    font-family: var(--font-gothic);
    -moz-appearance: textfield;
}

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

/* Add to Cart Button */
.c-btn-cart {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font-gothic);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

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

/* Favorite Button */
.c-btn-fav {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-gothic);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.3s;
}

.c-btn-fav:hover {
    background: #f9f9f9;
}

.p-product-main__desc {
    font-size: 15px;
    line-height: 1.8;
}

/* --- Features Section (Details) --------------------------------------- */
.p-product-feat {
    background-color: #fff;
    padding: 60px 0;
    margin-bottom: 80px;
}

.p-product-feat__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-product-feat__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Removed 2-column layout media query */

.p-product-feat__slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.p-product-feat__img-wrap {
    position: relative;
    width: 100%;
    /* Aspect ratio for the container */
    padding-top: 66.66%;
    /* 3:2 aspect ratio */
}

/* Slides (fading) */
.p-product-feat__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.p-product-feat__img.is-active {
    opacity: 1;
    z-index: 2;
}

/* Slider Navigation */
.p-product-feat__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    /* Increased inset */
    z-index: 3;
    pointer-events: none;
    /* Allow clicks to pass through container */
}

.c-slider-btn {
    width: 50px;
    /* Larger buttons */
    height: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    /* More transparent */
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background-color 0.3s, color 0.3s;
    pointer-events: auto;
    /* Re-enable clicks on buttons */
}

.c-slider-btn:hover {
    background-color: #fff;
    color: var(--color-accent);
}

.p-product-feat__text {
    flex: 1;
}

.p-product-feat__head {
    font-family: var(--font-mincho);
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

/* --- Spec Table ----------------------------------------------------- */
.p-product-spec {
    padding: 0 20px 80px;
}

.p-product-spec__inner {
    max-width: 800px;
    margin: 0 auto;
}

.c-spec-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.c-spec-table th,
.c-spec-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.c-spec-table th {
    width: 30%;
    background-color: #f9f9f9;
    font-weight: 500;
}

@media (max-width: 767px) {
    .p-breadcrumb {
        display: none;

    }

    .c-spec-table th,
    .c-spec-table td {
        display: block;
        width: 100%;
    }

    .c-spec-table th {
        background: none;
        padding-bottom: 5px;
        color: #888;
        font-size: 12px;
        border-bottom: none;
    }

    .c-spec-table td {
        padding-top: 5px;
    }

    .p-product-main__inner {
        max-width: 90%;
    }

    .p-product-main__title {
        font-size: 20px;
    }

    .p-product-main__catch {
        font-size: 14px;
        margin-bottom: 10px;
    }

}

/* --- Related Products (CSS Scroll Snap) ------------------------------- */
.p-related-products {
    padding: 0 20px 80px;
}

.p-related-products__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.c-snap-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* hide scrollbar for clean look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.c-snap-slider::-webkit-scrollbar {
    display: none;
}

.c-snap-slider__item {
    flex: 0 0 70%;
    /* SP: Show 1.x items */
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .c-snap-slider {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .c-snap-slider__item {
        flex: auto;
    }
}

/* Reusing common product card styles if present in index.html, else defined here */
.c-product-card {
    text-align: left;
}

.c-product-card__img {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    background: #e0e0e0;
}

.c-product-card__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.3s;
}

.c-product-card:hover .c-product-card__img img {
    transform: scale(1.05);
}

.c-product-card__name {
    font-size: 15px;
    font-family: var(--font-mincho);
    margin-bottom: 5px;
    line-height: 1.4;
}

.c-product-card__price {
    font-family: var(--font-gothic);
    font-weight: 700;
    font-size: 15px;
}

.item-cart__count {
    width: 100%;
    max-width: 180px;
    text-align: left;
    margin: 0 auto 20px auto;
    display: flex;
    /* justify-content: unset; */
    align-items: center;
    gap: 10px;
}

.p-product-main__cart-area .skubutton {
    width: 100%;
    width: 400px;
    max-width: 400px;
    padding: 15px;
    background-color: var(--color-accent) !important;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font-gothic);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}


@media (max-width: 469px) {
    .p-product-main__cart-area .skubutton {
        width: 200px;
    }

}