/**
 * RajaSkin Single Product Page Styling
 */

/* ==========================================================================
   1. Page Container & Breadcrumb
   ========================================================================== */
.rs-single-product-page {
    background: #ffffff;
    padding: 1.5rem 0 6rem;
}

.rs-pdp-breadcrumb {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rs-pdp-breadcrumb a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rs-pdp-breadcrumb a:hover {
    color: #111111;
}

.rs-pdp-breadcrumb .sep {
    color: #cccccc;
}

.rs-pdp-breadcrumb .current {
    color: #111111;
    font-weight: 500;
}

/* ==========================================================================
   2. Main Product Section (2-Column Grid)
   ========================================================================== */
.rs-pdp-main {
    margin-bottom: 5rem;
}

.rs-pdp-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4.5rem;
    align-items: start;
}

/* --- Left: Gallery --- */
.rs-pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rs-pdp-main-image-wrap {
    background: #f4f3ee;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.rs-pdp-badge-sale {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #111111;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
}

.rs-pdp-main-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.rs-pdp-main-image-wrap:hover img {
    transform: scale(1.04);
}

.rs-pdp-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.rs-pdp-thumb {
    width: 76px;
    height: 76px;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f3ee;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    flex-shrink: 0;
}

.rs-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-pdp-thumb.active {
    border-color: #111111;
    transform: scale(0.96);
}

.rs-pdp-thumb:hover {
    border-color: #888888;
}

/* --- Right: Product Info & Buy Box --- */
.rs-pdp-info {
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

.rs-pdp-eyebrow {
    font-size: 0.85rem;
    color: #767676;
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
}

.rs-pdp-eyebrow:hover {
    color: #111111;
}

.rs-pdp-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 400;
    color: #111111;
    line-height: 1.15;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.5px;
}

/* Meta Bar: Ratings & Stock Status */
.rs-pdp-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0eee8;
}

.rs-pdp-rating-summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.rs-stars-gold {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.rs-rating-score {
    font-weight: 700;
    color: #111111;
}

.rs-rating-count {
    color: #888888;
}

.rs-pdp-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.rs-pdp-stock-status.in-stock {
    color: #15803d;
    background: #f0fdf4;
}

.rs-pdp-stock-status.out-of-stock {
    color: #b91c1c;
    background: #fef2f2;
}

.rs-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.rs-pdp-price {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1rem;
}

.rs-pdp-price del {
    color: #999999;
    font-weight: 400;
    font-size: 1.15rem;
    margin-right: 0.5rem;
}

.rs-pdp-price ins {
    text-decoration: none;
    color: #111111;
}

.rs-pdp-short-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555555;
    margin-bottom: 1.75rem;
}

/* Form & Actions Row */
.rs-pdp-cart-form {
    margin-bottom: 2rem;
}

.rs-pdp-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rs-pdp-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdad2;
    border-radius: 8px;
    background: #ffffff;
    padding: 3px 6px;
    flex-shrink: 0;
}

.rs-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.rs-qty-btn:hover {
    color: #888888;
}

.rs-qty-input {
    width: 42px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
}

.rs-qty-input::-webkit-outer-spin-button,
.rs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rs-pdp-add-btn {
    flex: 1;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rs-pdp-add-btn:hover {
    background: #2b2b2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.rs-pdp-add-btn.disabled,
.rs-pdp-add-btn:disabled {
    background: #eae8e1;
    color: #999999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rs-pdp-meta-footer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #767676;
}

.rs-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rs-meta-label {
    font-weight: 600;
    color: #333333;
}

.rs-meta-link {
    color: #666666;
    text-decoration: none;
}

.rs-meta-link:hover {
    color: #111111;
}

/* Variable Products Native WooCommerce Support */
.rs-pdp-variable-form-wrap {
    margin-bottom: 2rem;
}

.rs-pdp-variable-form-wrap form.variations_form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rs-pdp-variable-form-wrap table.variations {
    width: 100%;
    border-collapse: collapse;
}

.rs-pdp-variable-form-wrap table.variations td {
    padding: 0.5rem 0;
}

.rs-pdp-variable-form-wrap table.variations td.label {
    width: 25%;
    font-weight: 600;
    font-size: 0.9rem;
    color: #222222;
}

.rs-pdp-variable-form-wrap table.variations select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dcdad2;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.rs-pdp-variable-form-wrap .single_variation_wrap .woocommerce-variation-price {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.rs-pdp-variable-form-wrap .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rs-pdp-variable-form-wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Accordion */
.rs-pdp-accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e8e5dc;
}

.rs-accordion-item {
    border-bottom: 1px solid #e8e5dc;
}

.rs-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #111111;
    text-align: left;
}

.rs-accordion-icon {
    font-size: 1.25rem;
    color: #444444;
    font-weight: 300;
    font-family: var(--font-sans);
}

.rs-accordion-content {
    padding-bottom: 1.25rem;
    font-size: 0.88rem;
    color: #666666;
    line-height: 1.65;
}

.rs-accordion-content p {
    margin: 0;
}

/* ==========================================================================
   3. Section Headers & Slider Navigation
   ========================================================================== */
.rs-section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.rs-section-heading {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: #111111;
    margin: 0;
    letter-spacing: -0.5px;
}

.rs-slider-nav {
    display: flex;
    gap: 0.6rem;
}

.rs-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e0ded8;
    background: #f8f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333333;
    transition: all 0.2s ease;
}

.rs-nav-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ==========================================================================
   4. Latest Reviews Section
   ========================================================================== */
.rs-pdp-reviews-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.rs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.rs-reviews-grid::-webkit-scrollbar {
    display: none;
}

.rs-review-card {
    background: #f8f7f4;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.rs-review-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.85rem;
}

.rs-review-text {
    font-size: 0.86rem;
    color: #444444;
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.rs-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rs-review-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111111;
}

.rs-review-badge-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888888;
}

.rs-review-badge {
    color: #666666;
}

.rs-review-date {
    color: #888888;
}

/* ==========================================================================
   4. You May Also Like (Related Products)
   ========================================================================== */
.rs-pdp-related-section {
    padding: 2rem 0 4rem;
}

.rs-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rs-products-grid::-webkit-scrollbar {
    display: none;
}

/* Reusing .rs-cat-prod-card from shop */
.rs-cat-prod-card {
    background: #f4f3ee;
    border-radius: 20px;
    padding: 1.15rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.rs-cat-prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.rs-cat-prod-img-box {
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-cat-prod-img-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.rs-cat-prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rs-cat-prod-card:hover .rs-cat-prod-img-box img {
    transform: scale(1.05);
}

.rs-cat-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.rs-cat-wishlist-btn:hover {
    background: #ffffff;
    color: #e74c3c;
}

.rs-cat-prod-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.rs-cat-prod-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rs-cat-prod-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rs-cat-prod-name:hover {
    color: #666666;
}

.rs-cat-prod-price {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 500;
}

.rs-cat-bag-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dfdcd4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rs-cat-bag-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ==========================================================================
   5. Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .rs-pdp-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .rs-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rs-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rs-pdp-title {
        font-size: 2.2rem;
    }

    .rs-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .rs-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 520px) {
    .rs-pdp-title {
        font-size: 1.85rem;
    }

    .rs-reviews-grid {
        grid-template-columns: 1fr;
    }

    .rs-products-grid {
        grid-template-columns: 1fr;
    }

    .rs-pdp-thumbnails {
        gap: 0.5rem;
    }
}
