/* ═══════════════════════════════════════════
   CASEPOP — Product Detail Page Styles
   ═══════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb-nav {
    padding: 16px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav span { color: var(--accent); }

/* ── Product Detail Layout ── */
.product-detail {
    padding: 48px 0;
}
.product-gallery {
    position: sticky;
    top: 100px;
}
.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-cream);
    margin-bottom: 12px;
}
.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
}
.product-gallery .thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.product-gallery .thumb-item.active,
.product-gallery .thumb-item:hover {
    border-color: var(--accent);
}
.product-gallery .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta .product-vendor {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.product-meta h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 16px;
}
.product-meta .price-block {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.product-meta .current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--sale-red);
}
.product-meta .original-price {
    font-size: 1rem;
    color: #b0b0b0;
    text-decoration: line-through;
    margin-left: 12px;
    font-weight: 400;
}
.product-meta .discount-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--sale-red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}
.product-meta .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.product-meta .rating .stars {
    color: #f5a623;
    font-size: 0.95rem;
}
.product-meta .rating .count {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.product-meta .description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ── Variant Selector ── */
.variant-section {
    margin-bottom: 20px;
}
.variant-section .variant-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.variant-section .variant-label span {
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
}
.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-pill {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1.5px solid var(--border-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.variant-pill.active,
.variant-pill:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ── Quantity ── */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}
.quantity-selector button {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border-light);
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.quantity-selector button:first-child { border-radius: 6px 0 0 6px; }
.quantity-selector button:last-child { border-radius: 0 6px 6px 0; }
.quantity-selector button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.quantity-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: 1.5px solid var(--border-light);
    border-left: none;
    border-right: none;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
}

/* ── Action Buttons ── */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}
.btn-add-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 24px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-add-cart:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-wishlist {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-light);
    background: #fff;
    border-radius: 3px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-wishlist:hover {
    border-color: var(--sale-red);
    color: var(--sale-red);
}
.btn-wishlist .bi-heart-fill { color: var(--sale-red); }

/* ── Accordion Features ── */
.product-accordion {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}
.accordion-item-custom {
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}
.accordion-item-custom .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.accordion-item-custom .accordion-body {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-top: 8px;
    display: none;
}
.accordion-item-custom.open .accordion-body { display: block; }

/* ── Review Section ── */
.review-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}
.review-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}
.review-card .reviewer {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.review-card .review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.review-card .review-text {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 8px;
}

.review-form-card {
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 32px;
}
.review-form-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.review-form-card .form-group {
    margin-bottom: 16px;
}
.review-form-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.review-form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.88rem;
    outline: none;
    resize: vertical;
    background: #fff;
    transition: border-color 0.2s;
}
.review-form-card textarea:focus {
    border-color: var(--accent);
}
.btn-submit-review {
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit-review:hover {
    background: var(--accent-hover);
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 1.5rem;
}
.star-rating-input input {
    display: none;
}
.star-rating-input label {
    cursor: pointer;
    color: #ddd;
    margin: 0;
    transition: color 0.2s;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffc107;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .product-detail { padding: 24px 0; }
    .product-gallery { position: static; }
    .product-meta h1 { font-size: 1.35rem; }
    .action-buttons { flex-direction: column; }
    .btn-wishlist { width: 100%; }
}
