/* Product Details Page (PDP) Styles */

.pdp-main {
    padding: 120px 0 50px;
    background: var(--light-bg);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--primary);
}
.breadcrumbs span {
    font-weight: 600;
    color: var(--accent);
}

.pdp-grid {
    display: grid;
    grid-template-columns: 400px 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* Left Column: Images */
.pdp-images {
    display: flex;
    gap: 15px;
    position: sticky;
    top: 100px;
}

.pdp-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60px;
}

.pdp-thumbnails .thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pdp-thumbnails .thumb:hover, .pdp-thumbnails .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(46, 125, 50, 0.4);
}

.pdp-main-image {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdp-main-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdp-main-image:hover img {
    transform: scale(1.1); /* Simple zoom effect */
}

/* Center Column: Details */
.pdp-details {
    padding: 0 10px;
}

.pdp-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.pdp-rating {
    font-size: 0.9rem;
    color: #ffa41c; /* Amazon star color */
    margin-bottom: 15px;
}
.pdp-rating .rating-count {
    color: #007185; /* Amazon link color */
    margin-left: 10px;
}
.pdp-rating a {
    color: #007185;
}

.pdp-price-block {
    margin-bottom: 20px;
}

.pdp-price {
    font-size: 2rem;
    font-weight: 400;
    color: #B12704; /* Amazon price color */
    display: flex;
    align-items: flex-start;
}
.pdp-price .currency {
    font-size: 1rem;
    margin-top: 5px;
}
.pdp-price .amount {
    font-weight: 600;
}

.pdp-tax-info {
    font-size: 0.85rem;
    color: #565959;
}
.pdp-emi {
    font-size: 0.9rem;
    margin-top: 5px;
}
.pdp-emi a {
    color: #007185;
}

.pdp-offers {
    margin: 20px 0;
}
.pdp-offers h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #cc0c39; /* Amazon offer header color */
    display: flex;
    align-items: center;
    gap: 8px;
}
.offer-cards {
    display: flex;
    gap: 15px;
}
.offer-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.offer-card h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--accent);
}
.offer-card p {
    font-size: 0.85rem;
    color: #565959;
}

.pdp-divider {
    border: none;
    border-top: 1px solid #e7e7e7;
    margin: 20px 0;
}

.pdp-features h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.pdp-features ul {
    list-style: disc;
    padding-left: 20px;
}
.pdp-features li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #0f1111;
}

/* Right Column: Actions */
.pdp-actions {
    position: sticky;
    top: 100px;
}

.pdp-action-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.action-price {
    font-size: 1.5rem;
    color: #B12704;
    margin-bottom: 10px;
}

.delivery-info {
    font-size: 0.9rem;
    color: #007185;
    margin-bottom: 10px;
    line-height: 1.4;
}

.stock-status {
    font-size: 1.1rem;
    color: #007600; /* Amazon in-stock green */
    margin-bottom: 15px;
    font-weight: 600;
}

.quantity-selector {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-dropdown {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d5d9d9;
    background: #f0f2f2;
    box-shadow: 0 2px 5px rgba(15,17,17,.15);
    cursor: pointer;
}

.btn-action {
    width: 100%;
    padding: 12px;
    border-radius: 20px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-yellow {
    background: #ffd814;
    color: #0f1111;
}
.btn-yellow:hover {
    background: #f7ca00;
}

.btn-orange {
    background: #ffa41c;
    color: #0f1111;
}
.btn-orange:hover {
    background: #fa8900;
}

.secure-transaction {
    font-size: 0.85rem;
    color: #007185;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.seller-info {
    font-size: 0.85rem;
    color: #565959;
    line-height: 1.5;
}
.seller-info span {
    color: #007185;
}

/* Info Section (Benefits & Herbals) */
.pdp-info-section {
    padding: 50px 0;
    background: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .pdp-grid {
        grid-template-columns: 1fr 300px;
    }
    .pdp-images {
        grid-column: 1 / 2;
    }
    .pdp-details {
        grid-column: 1 / 2;
        padding: 20px 0;
    }
    .pdp-actions {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
}

@media (max-width: 768px) {
    .pdp-grid {
        grid-template-columns: 1fr;
    }
    .pdp-actions {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .pdp-images {
        position: relative;
        top: 0;
    }
}

/* ==========================================================================
   ANIMATED PRODUCT SHOWCASE & LIGHTBOX
   ========================================================================== */

.pdp-banner-showcase {
    padding: 60px 0;
    background: linear-gradient(180deg, #fdfbf7 0%, #f4f0e6 100%);
    position: relative;
    overflow: hidden;
}

.glow-badge {
    background: linear-gradient(45deg, #2e7d32, #d4af37);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5); }
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Horizontal Line Showcase Layout */
.showcase-line-wrapper {
    position: relative;
    margin-top: 30px;
    padding: 0 10px;
}

.showcase-grid-line {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px 25px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.showcase-grid-line .showcase-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
}

.showcase-grid-line::-webkit-scrollbar {
    height: 8px;
}

.showcase-grid-line::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.showcase-grid-line::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.showcase-grid-line::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #1b5e20);
}

.showcase-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.showcase-scroll-btn:hover {
    background: #2e7d32;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.showcase-scroll-btn.btn-left {
    left: -15px;
}

.showcase-scroll-btn.btn-right {
    right: -15px;
}

.showcase-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(46, 125, 50, 0.12);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.2);
}

.showcase-img-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
}

.showcase-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-img-wrap img {
    transform: scale(1.08);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-img-wrap:hover .showcase-overlay {
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #1b5e20;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.showcase-img-wrap:hover .zoom-btn {
    transform: translateY(0);
}

.showcase-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(46, 125, 50, 0.9);
    color: #fff;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.showcase-tag.tag-gold {
    background: rgba(184, 134, 11, 0.9);
}

.showcase-tag.tag-orange {
    background: rgba(211, 84, 0, 0.9);
}

.showcase-tag.tag-green {
    background: rgba(46, 125, 50, 0.9);
}

.showcase-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.showcase-content h3 {
    font-size: 1.15rem;
    color: #2c362d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-content h3 i {
    color: #2e7d32;
}

.showcase-content p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    animation: fadeInModal 0.3s ease forwards;
}

.lightbox-modal.active {
    display: flex;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    animation: zoomInModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomInModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #d4af37;
    transform: scale(1.2);
}

/* Smooth PDP Main Image Transitions */
.pdp-main-image {
    cursor: pointer;
    position: relative;
}

.pdp-main-image img {
    transition: opacity 0.25s ease, transform 0.4s ease;
}

.pdp-main-image img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.pdp-thumbnails .thumb {
    transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pdp-thumbnails .thumb:hover {
    transform: scale(1.08);
}

