/* Modern Product Detail CSS - Clean & Simple */

:root {
    --pd-text-main: #1f2937;
    --pd-text-light: #6b7280;
    --pd-primary: #652d2c;
    /* Site Brand Color */
    --pd-primary-btn: #212529;
    /* Dark Black for Buy Now */
    --pd-secondary-btn: #EFE8D8;
    /* Beige for Add to Cart */
    --pd-accent: #2c9367;
    --pd-border: #e5e7eb;
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-base);
    color: var(--pd-text-main);
    background-color: #fff;
}

.product-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Breadcrumb */
.breadcrumb-container {
    font-size: 14px;
    color: var(--pd-text-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-container a {
    color: var(--pd-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-container a:hover {
    color: var(--pd-text-main);
}

.breadcrumb-container .current {
    font-weight: 600;
    color: var(--pd-text-main);
}

/* Main Layout */
.product-main-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Gallery - Left Side */
.gallery-wrapper {
    display: flex;
    gap: 20px;
    height: 600px;
    /* Fixed height for sticky feeling */
}

/* Vertical Thumbnails */
.thumbnails-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80px;
    overflow-y: auto;
}

.thumbnails-list::-webkit-scrollbar {
    width: 0;
    /* Hide scrollbar */
}

.thumb-item {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumb-item.active {
    border-color: #8b5cf6;
    /* Slight purple highlight or similar */
    border-color: #333;
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Image */
.main-image-container {
    flex: 1;
    background: #f9fafb;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* OR cover depending on image style */
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 18px;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ef4444;
    /* Red heart */
}

/* Info Section - Right Side */
.product-info-wrapper {
    padding-top: 10px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #111;
}

.ratings-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    font-size: 14px;
}

.rating-text {
    font-size: 14px;
    color: var(--pd-text-light);
}

/* Price */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #111;
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #9ca3af;
}

.discount-tag {
    background: #d4a761;
    /* Gold/Brownish tone from screenshot */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Coupon/Promo Section - Banner Slider */
.promo-banner-slider {
    position: relative;
    background: #f3f4f6;
    /* Gray background from screenshot */
    border-radius: 8px;
    margin-bottom: 25px;
    height: 60px;
    overflow: hidden;
}

.promo-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.promo-slide-item.active {
    opacity: 1;
    visibility: visible;
}

.promo-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-icon-badge {
    width: 24px;
    height: 24px;
    background: #22c55e;
    /* Green icon bg */
    color: white;
    border-radius: 50%;
    /* Scalloped/Round look */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.promo-text {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.btn-click-here {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-click-here:hover {
    background: #16a34a;
}

.btn-click-here.copied {
    background: #15803d;
}

/* Promo Banner */
.promo-banner {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-icon {
    background: #22c55e;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.promo-text {
    font-weight: 500;
    color: #374151;
}

.promo-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Selectors */
.selector-group {
    margin-bottom: 24px;
}

.selector-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #111;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.size-guide-link {
    font-size: 14px;
    color: #8b6e4e;
    /* Earthy tone */
    text-decoration: none;
    font-weight: 500;
    padding-right: 15px;
}

.selected-val {
    font-weight: 400;
    color: var(--pd-text-light);
    margin-left: 5px;
}

/* Colors */
.color-options {
    display: flex;
    gap: 12px;
}

.color-circle {
    width: 60px;
    height: 60px;
    /* Slightly rounded square thumbnail */
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: block;
}

.color-circle.active {
    border: 2px solid #111;
}

/* Sizes */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-pill {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    /* Slightly cleaner look than full pill */
    text-decoration: none;
    color: var(--pd-text-main);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.size-pill:hover {
    border-color: #9ca3af;
}

.size-pill.active {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

/* Quantity */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    height: 44px;
    width: 140px;
}

.quantity-control button {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
}

.quantity-control button:hover {
    background: #f9fafb;
}

.quantity-control input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.quantity-control input:focus {
    outline: none;
}

/* Actions */
.action-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-add-cart,
.btn-buy-now {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Add to Cart - Secondary Style (Outlined) */
.btn-add-cart {
    background: #ffffff;
    color: var(--pd-primary);
    border: 2px solid var(--pd-primary);
    box-shadow: none;
}

.btn-add-cart:hover {
    background: #fdf2f2;
    /* Light red tint */
    transform: translateY(-2px);
}

/* Buy Now - Primary Style (Solid) */
.btn-buy-now {
    background: var(--pd-primary);
    color: #ffffff;
    border: 2px solid var(--pd-primary);
    box-shadow: 0 4px 15px rgba(101, 45, 44, 0.3);
    /* Red shadow */
}

.btn-buy-now:hover {
    background: #4a1f1e;
    /* Darker red */
    border-color: #4a1f1e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 45, 44, 0.4);
}

/* Accordion/Details - Reference Style */
.details-accordion {
    margin-top: 40px;
    border-top: 1px solid var(--pd-border);
}

.accordion-item {
    border-bottom: 1px solid var(--pd-border);
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pd-text-main);
    letter-spacing: 0.5px;
}

.accordion-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--pd-text-main);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    max-height: 500px;
    /* Adjust as needed or use JS for auto height */
}

.accordion-inner {
    padding-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pd-text-light);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    /* Rotates + to x */
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 30px;
        overflow-x: hidden;
    }

    .gallery-wrapper {
        flex-direction: column-reverse;
        height: auto;
        overflow: hidden;
        width: 100%;
    }

    .thumbnails-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 80px;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        padding: 5px 0;
        /* Snap scrolling for smooth swipe */
        scroll-snap-type: x proximity;
        /* Prevent touch events from bubbling to page */
        touch-action: pan-x;
    }

    .thumbnails-list::-webkit-scrollbar {
        display: none;
    }

    .thumb-item {
        flex: 0 0 70px;
        width: 70px;
        min-width: 70px;
        height: 70px;
        margin: 0;
        scroll-snap-align: start;
    }
}

/* Reviews Section */
.reviews-section {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
}

.review-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.reviewer-info .avatar-circle {
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 1.25rem;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #ffc107 !important;
}

.star-rating-input label {
    color: #d1d5db;
    transition: color 0.2s;
}


/* Product Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.detail-label {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}