/* ═══════════════════════════════════════
   LUMO — Product Page
   ═══════════════════════════════════════ */

.product-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px var(--content-padding-x, 32px) 60px;
    box-sizing: border-box;
    min-height: 60vh;
}

/* ── Breadcrumb ── */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--grey-500);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.product-breadcrumb-link {
    color: var(--grey-500);
    text-decoration: none;
    transition: color .15s;
}

.product-breadcrumb-link:hover { color: var(--baseblack-500); }

.product-breadcrumb-sep {
    display: flex;
    align-items: center;
    color: var(--grey-300);
}

.product-breadcrumb-cat-link {
    color: var(--grey-500);
    text-decoration: none;
    transition: color .15s;
}

.product-breadcrumb-cat-link:hover { color: var(--baseblack-500); }

.product-breadcrumb-current {
    color: var(--baseblack-500);
    font-weight: 600;
}

/* ── Main layout ── */
.product-layout {
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 48px;
    align-items: start;
}

/* ─────────────────────────────────────────
   GALLERY
───────────────────────────────────────── */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--grey-50);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-gallery-main:hover img {
    transform: scale(1.04);
}

.product-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-300);
}

/* ── Overlay (badges + wishlist on top of photo) ── */
.product-gallery-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    gap: 8px;
}

.product-gallery-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.product-gallery-wishlist {
    pointer-events: all;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--grey-500);
    flex-shrink: 0;
    transition: background .15s, color .15s, transform .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.product-gallery-wishlist:hover {
    background: #fff;
    color: var(--red-500);
    transform: scale(1.1);
}

.product-gallery-wishlist.liked {
    color: var(--red-500);
    background: #fff;
}

.product-gallery-wishlist.liked svg path {
    fill: var(--red-500);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    width: fit-content;
}

.badge-new  { background: #22a55b; color: #fff; }
.badge-sale { background: var(--red-500); color: #fff; }

/* ── Thumbnails ── */
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--grey-50);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: #FD7200;
}

/* ─────────────────────────────────────────
   INFO
───────────────────────────────────────── */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category */
.product-info-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--baseblack-500);
    letter-spacing: .3px;
    margin-bottom: 8px;
}

.product-info-category:empty { display: none; }

/* Name */
.product-info-name {
    font-family: var(--desktop-heading-h1-font-family);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: var(--baseblack-500);
    margin: 0 0 24px;
}

/* Description */
.product-info-desc-wrap {
    margin-bottom: 28px;
    border: 1.5px solid var(--grey-100);
    border-radius: 8px;
    padding: 16px 18px;
    background: var(--grey-50);
}

.product-info-desc-label {
    font-family: var(--desktop-text-MD-semi-bold-font-family);
    font-weight: 600;
    font-size: 15px;
    color: #FD7200;
    margin: 0 0 8px;
}

.product-info-description {
    font-family: var(--desktop-text-MD-regular-font-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--grey-500);
    white-space: pre-wrap;
}

/* Buy row: price + cart button */
.product-info-buy {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
}

.product-price-current {
    font-family: var(--desktop-heading-h1-font-family);
    font-weight: 700;
    font-size: 30px;
    color: var(--baseblack-500);
    white-space: nowrap;
}

.product-price-old {
    font-size: 17px;
    font-weight: 500;
    color: var(--grey-300);
    text-decoration: line-through;
    white-space: nowrap;
}

/* Cart button */
.product-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #FD7200;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--desktop-text-MD-semi-bold-font-family);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.product-btn-cart img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.product-btn-cart:hover { background: #e56500; }

.product-btn-cart.in-cart { background: #FD7200; }
.product-btn-cart.in-cart:hover { background: #e56500; }

/* ─────────────────────────────────────────
   SKELETON
───────────────────────────────────────── */
.product-skeleton {
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .55; }
}

.product-skeleton-breadcrumb {
    width: 280px;
    height: 14px;
    background: var(--grey-100);
    border-radius: 4px;
    margin-bottom: 28px;
}

.product-skeleton-body {
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 48px;
    align-items: start;
}

.product-skeleton-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-skeleton-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--grey-100);
    border-radius: 12px;
}

.product-skeleton-thumbs {
    display: flex;
    gap: 10px;
}

.product-skeleton-thumb {
    width: 76px;
    height: 76px;
    background: var(--grey-100);
    border-radius: 8px;
}

.product-skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-skeleton-line {
    background: var(--grey-100);
    border-radius: 4px;
    margin-bottom: 0;
}

/* ─────────────────────────────────────────
   ERROR STATE
───────────────────────────────────────── */
.product-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 14px;
    color: var(--grey-300);
}

.product-error-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--baseblack-500);
}

.product-error-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: #FD7200;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    transition: background .15s;
}

.product-error-btn:hover { background: #e56500; }

/* ─────────────────────────────────────────
   REVIEWS SECTION
───────────────────────────────────────── */
.reviews-section {
    width: 100%;
    background: var(--grey-50);
    border-top: 1px solid var(--grey-100);
    padding: 48px 0 60px;
    margin-top: 8px;
}

.reviews-inner {
    max-width: 1376px;
    margin: 0 auto;
    padding: 0 var(--content-padding-x, 32px);
}

/* Header */
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.reviews-title {
    font-family: var(--desktop-heading-h2-font-family);
    font-weight: 700;
    font-size: 24px;
    color: var(--baseblack-500);
    margin: 0;
}

.reviews-avg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-avg-score {
    font-size: 32px;
    font-weight: 700;
    color: var(--baseblack-500);
    line-height: 1;
}

.reviews-stars-display {
    display: flex;
    gap: 2px;
}

.rv-star {
    font-size: 20px;
    color: var(--grey-200);
    line-height: 1;
}

.rv-star-filled { color: #f5a623; }

.rv-star-half {
    color: #f5a623;
    opacity: .5;
}

.reviews-avg-count {
    font-size: 14px;
    color: var(--grey-500);
    font-weight: 500;
}

/* Form wrap */
.reviews-form-wrap {
    background: #fff;
    border: 1.5px solid var(--grey-100);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 28px;
}

/* Guest prompt */
.reviews-guest {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--grey-500);
}

.reviews-guest svg { flex-shrink: 0; color: var(--grey-300); }

.reviews-login-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #FD7200;
    cursor: pointer;
    text-decoration: underline;
}

.reviews-login-link:hover { text-decoration: none; }

/* Form */
.reviews-form { display: flex; flex-direction: column; gap: 14px; }

.reviews-form-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--baseblack-500);
    margin: 0;
}

/* Star picker */
.reviews-star-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rsp-star {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--grey-200);
    cursor: pointer;
    padding: 0 1px;
    line-height: 1;
    transition: color .1s, transform .1s;
}

.rsp-star:hover,
.rsp-star-active { color: #f5a623; transform: scale(1.15); }

.rsp-label {
    font-size: 13px;
    color: var(--grey-500);
    font-weight: 500;
    margin-left: 6px;
}

.reviews-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--grey-100);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--baseblack-500);
    resize: none;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
    line-height: 1.6;
    min-height: 80px;
}

.reviews-textarea:focus { border-color: #FD7200; }

.reviews-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.reviews-submit {
    padding: 11px 24px;
    background: #FD7200;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}

.reviews-submit:hover { background: #e56500; }
.reviews-submit:disabled { background: var(--grey-200); cursor: not-allowed; }

.reviews-delete {
    padding: 11px 18px;
    background: none;
    color: var(--grey-500);
    border: 1.5px solid var(--grey-100);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.reviews-delete:hover { color: var(--red-500); border-color: var(--red-500); }

.reviews-form-error {
    font-size: 13px;
    font-weight: 500;
    color: var(--red-500);
    min-height: 18px;
    margin: 0;
}

/* Loading / empty */
.reviews-loading,
.reviews-empty {
    font-size: 14px;
    color: var(--grey-500);
    padding: 24px 0;
    text-align: center;
}

/* Review cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: #fff;
    border: 1.5px solid var(--grey-100);
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color .15s;
}

.review-card:hover { border-color: var(--grey-200); }

.review-card-own {
    border-color: rgba(253,114,0,.3);
    background: rgba(253,114,0,.02);
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FD7200;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--baseblack-500);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-own-badge {
    font-size: 11px;
    font-weight: 600;
    color: #FD7200;
    background: rgba(253,114,0,.1);
    padding: 2px 7px;
    border-radius: 20px;
}

.review-card-date {
    font-size: 12px;
    color: var(--grey-500);
    margin-top: 2px;
}

.review-card-stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.review-card-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--grey-500);
    margin: 0;
}

/* Admin reply block */
.review-admin-reply {
    margin-top: 12px;
    background: rgba(253,114,0,.04);
    border-left: 3px solid #FD7200;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
}

.review-admin-reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.review-admin-reply-label {
    font-size: 12px;
    font-weight: 700;
    color: #FD7200;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.review-admin-reply-date {
    font-size: 11px;
    color: var(--grey-300);
    margin-left: auto;
}

.review-admin-reply-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--grey-500);
    margin: 0;
}

@media (max-width: 768px) {
    .reviews-section { padding: 32px 0 40px; }
    .reviews-inner   { padding: 0 14px; }
    .reviews-header  { flex-direction: column; align-items: flex-start; gap: 8px; }
    .reviews-avg-score { font-size: 26px; }
    .rsp-star { font-size: 26px; }
    .review-card { padding: 14px 16px; }
    .review-card-header { flex-direction: column; gap: 8px; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — tablet
───────────────────────────────────────── */
@media (max-width: 1100px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-skeleton-body {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .product-gallery {
        position: static;
        max-width: 560px;
        width: 100%;
    }

    .product-skeleton-gallery {
        max-width: 560px;
        width: 100%;
    }
}

/* ─────────────────────────────────────────
   RESPONSIVE — mobile
───────────────────────────────────────── */
@media (max-width: 768px) {
    .product-page {
        padding: 16px 14px 40px;
    }

    .product-breadcrumb {
        font-size: 12px;
        margin-bottom: 16px;
        gap: 2px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .product-skeleton-gallery {
        max-width: 100%;
    }

    .product-info-name {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .product-price-current {
        font-size: 24px;
    }

    .product-price-old {
        font-size: 15px;
    }

    .product-info-buy {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-btn-cart {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .product-gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .product-skeleton-breadcrumb {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .product-info-name {
        font-size: 18px;
    }

    .product-price-current {
        font-size: 22px;
    }
}
