/* Myntra/Ajio Style Premium Product Page Layout */

/* 1. Page Container */
.pd-wrapper {
    max-width: 1200px;
    /* Constrained width to prevent "zoomed in" feel */
    margin: 40px auto;
    padding: 0 20px;
    background: #fff;
    min-height: 100vh;
}

/* 2. Main Layout: 2 Columns */
.pd-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
}

/* LEFT: Image Grid (Myntra Style) */
/* LEFT: Main Image + Thumbnails Gallery */
.pd-gallery-column {
    flex: 0 0 450px;
    /* Fixed smaller width */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-main-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    /* Optional slight rounding */
    background: #f9f9f9;
    cursor: zoom-in;
}

.pd-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.pd-thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.pd-thumbnail-item {
    width: 80px;
    height: 100px;
    /* 3:4 ratio small */
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pd-thumbnail-item.active,
.pd-thumbnail-item:hover {
    opacity: 1;
    border: 1px solid #333;
}

.pd-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT: Sticky Details Panel */
.pd-details-column {
    flex: 1;
    /* Takes up ~40-45% */
    position: relative;
}

.pd-sticky-info {
    position: sticky;
    top: 100px;
    /* Sticks below navbar */
    padding: 10px 0;
    /* Removed internal scroll to let it flow naturally */
}

/* Typography & Elements */
.pd-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-product-name {
    font-size: 1.4rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 15px;
    font-family: 'Bodoni Moda', serif;
    line-height: 1.3;
}

.pd-price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    /* Removed top border */
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.pd-mrp {
    font-size: 1.1rem;
    color: #777;
    text-decoration: line-through;
}

.pd-discount {
    color: #000;
    font-weight: 600;
    font-size: 1rem;
}

.pd-tax-note {
    color: #555;
    /* Monochrome trust */
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 25px;
    display: block;
}

/* Ratings */
.pd-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-rating-badge {
    background-color: #03a685;
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pd-rating-badge i {
    font-size: 0.75rem;
}

.pd-rating-count {
    color: #555;
    font-size: 0.9rem;
}

/* Size Selector */
.pd-size-section {
    margin-bottom: 30px;
}

.pd-size-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pd-size-chart-link {
    color: #000;
    /* Black & White Theme */
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.pd-size-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pd-size-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Circular sizes */
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.pd-size-option:hover {
    border-color: #000;
    color: #000;
}

.pd-size-option.selected {
    border-color: #000;
    color: #fff;
    background: #000;
}

/* Buttons */
.pd-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.pd-btn {
    flex: 1;
    padding: 15px 0;
    border-radius: 4px;
    /* Slight roundness */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pd-btn-bag {
    background: #000;
    /* Black Theme */
    color: #fff;
    border-color: #000;
}

.pd-btn-bag:hover {
    background: #333;
}

.pd-btn-wish {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.pd-btn-wish:hover {
    border-color: #333;
}

/* Delivery Check */
.pd-delivery-check {
    margin-bottom: 30px;
}

.pd-delivery-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-delivery-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pd-delivery-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 0.9rem;
    outline: none;
}

.pd-delivery-btn {
    background: none;
    border: none;
    padding: 0 20px;
    color: #ff3e6c;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Product Details Text */
.pd-info-block {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.pd-info-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-info-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Trust Badges */
.pd-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pd-badge {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-badge i {
    font-size: 1.2rem;
    color: #888;
}

/* Toast */
.pd-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.pd-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .pd-layout {
        flex-direction: column;
        gap: 20px;
    }

    /* Reset Gallery for Mobile */
    .pd-gallery-column {
        flex: auto;
        width: 100%;
        max-width: 100%;
    }

    .pd-gallery-item {
        /* No longer used class, but kept safe */
    }

    .pd-details-column {
        padding: 0;
    }

    .pd-sticky-info {
        position: static;
    }

    .pd-price-block {
        border-top: none;
        padding-top: 0;
    }
}