/* --- PRODUCT DETAILS VARIABLES --- */
:root {
    --bg-body: #F9F9F9;
    --text-main: #222222;
    --text-muted: #666666;
    --accent: #B85C38;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.08);
    --pd-easing: cubic-bezier(0.25, 1, 0.5, 1);

    /* Header/Footer Shared Vars fallback */
    --glass-bg: rgba(255, 255, 255, 0.623);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-blur: blur(16px);
}

body {
    background-color: var(--bg-body);
    font-family: 'Manrope', sans-serif;
    /* Ensure font consistency */
}

/* --- PAGE HEADER (Banner) --- */
.page-header {
    height: 70vh !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 20px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Clash Display', sans-serif;
}

.breadcrumb {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.7;
}

/* --- PRODUCT DETAILS CONTAINER (Pepperfry Style) --- */
.pf-container {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
}

@media (max-width: 1024px) {
    .pf-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
}

/* --- IMAGE GALLERY (Vertical Thumbs + Main) --- */
.pd-images {
    display: flex;
    gap: 20px;
    position: sticky;
    top: 100px;
    height: 450px;
    /* Further Reduced */
}

.pd-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100px;
    /* Increased to prevent squeezing */
    margin-top: 0;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pd-thumbnails::-webkit-scrollbar {
    display: none;
}

.pd-thumb {
    width: 100%;
    /* Full width of container */
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    opacity: 0.7;
}

.pd-thumb.active {
    border-color: #ff7043;
    opacity: 1;
}

.pd-thumb:hover {
    opacity: 1;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-main-img {
    flex-grow: 1;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.pd-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure full image is visible */
    transition: transform 0.5s var(--pd-easing);
}

.wishlist-icon,
.zoom-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    color: #555;
    font-size: 1.1rem;
}

.wishlist-icon {
    top: 20px;
    right: 20px;
}

.zoom-icon {
    bottom: 20px;
    right: 20px;
}

.wishlist-icon:hover {
    color: #ff7043;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .pd-images {
        flex-direction: column;
        height: auto;
        position: static;
        gap: 15px;
    }

    .pd-thumbnails {
        flex-direction: row;
        width: 100%;
        height: auto;
        gap: 15px;
        order: 2;
        padding: 0;
        overflow-x: auto;
        /* Horizontal scroll on mobile */
        justify-content: flex-start;
    }

    .pd-thumb {
        width: 80px;
        /* Slightly larger for tablet */
        height: 80px;
    }

    .pd-main-img {
        height: 500px;
        /* Larger height for tablet/1024px screens */
        order: 1;
    }
}

@media (max-width: 768px) {
    .pd-main-img {
        height: 350px;
        /* Smaller for mobile */
    }

    .pd-thumb {
        width: 60px;
        height: 60px;
    }

    /* Sticky Footer Logic */
    .pd-info {
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        /* Remove spacer */
        position: relative;
        /* Ensure sticky context */
    }

    .pd-accordions {
        order: 2;
    }

    .safe-delivery {
        order: 3;
        margin-bottom: 20px;
    }

    .pd-actions {
        order: 10;
        /* Move to very bottom */
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 100;
        width: calc(100% + 40px);
        /* Full bleed */
        margin-left: -20px;
        margin-right: -20px;
        padding: 15px 20px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #f0f0f0;
        margin-bottom: 0;
    }
}

/* --- PRODUCT INFO (Sticky Sidebar) --- */
.pd-info {
    position: sticky;
    top: 100px;
    padding-right: 20px;
    align-self: start;
}

.pd-breadcrumb {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pd-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: 0.2s;
}

.pd-breadcrumb a:hover {
    color: #ff7043;
}

.pd-breadcrumb span {
    color: #333;
    /* Current page */
}

.pd-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.6rem;
    /* Slightly smaller */
    font-weight: 600;
    /* Lighter weight */
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f5a623;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.pd-rating span {
    color: #888;
    margin-left: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Price Box */
.pd-price-box {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff7043;
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mrp-box {
    font-size: 1rem;
    color: #888;
}

.mrp {
    text-decoration: line-through;
    margin-right: 8px;
}

.discount {
    color: #27ae60;
    font-weight: 700;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.emi-info {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #555;
    background: #fff8f5;
    /* Light orange tint */
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed #ffccbc;
    display: block;
}

.emi-tag {
    font-weight: 700;
    color: #d84315;
    margin-right: 5px;
}

.emi-info a {
    color: #d84315;
    text-decoration: underline;
    font-weight: 500;
}

/* Offers */
.pd-offers {
    margin-bottom: 30px;
}

.offer-header {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.offer-header i {
    color: #ff7043;
}

.offer-list {
    list-style: none;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

.offer-list li {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 10px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.offer-list li i {
    color: #27ae60;
    margin-top: 3px;
    flex-shrink: 0;
}

.offer-list li code {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #e65100;
}

.offer-list li:last-child {
    margin-bottom: 0;
}

/* Actions */
.pd-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-cart,
.btn-buy {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart {
    background: white;
    border: 1px solid #ff7043;
    color: #ff7043;
}

.btn-cart:hover {
    background: #fff3e0;
}


/* --- ACTIONS & SHARE --- */
.pd-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-buy {
    flex: 1;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-buy:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-share {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    /* Match height of btn-buy approximately */
    background: white;
    border: 1px solid #ddd;
    color: #555;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-share:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: var(--accent);
}


/* Accordions */
.pd-accordions {
    border-top: 1px solid #eee;
}

details {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

details:hover {
    background: #fafafa;
}

summary {
    padding: 18px 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary i {
    transition: transform 0.3s ease;
    color: #999;
    font-size: 0.8rem;
}

details[open] summary i {
    transform: rotate(180deg);
    color: #ff7043;
}

details[open] summary {
    border-bottom: 1px solid transparent;
}

.acc-content {
    padding: 0 15px 20px;
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for specs */
    column-gap: 20px;
}

.sg-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 5px;
}

.sg-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.sg-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.care-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 5px;
}

.care-list li {
    margin-bottom: 5px;
}

/* Q&A Styles */
.qa-item {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.qa-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.qa-question {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.qa-answer {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Safe Delivery Icons */
.safe-delivery {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.sd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}

.sd-item i {
    font-size: 1.5rem;
    color: #bbb;
}

/* Mobile Sticky Footer Removed - Handled in Main Media Query */

/* --- RELATED PRODUCTS SECTION --- */
/* --- RELATED PRODUCTS SECTION --- */
.related-section {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 60px 20px;
    border-top: 1px solid #e5e5e5;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8rem;
    color: var(--text-main);
    text-align: left;
    margin-bottom: 0;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--accent);
    padding: 8px 15px;
    border-radius: 4px;
}

.btn-view-all:hover {
    background: var(--accent);
    color: white;
}

/* GRID LAYOUT (6 Columns) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* PRODUCT CARD (Consolidated Styles) */
.product-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.4s var(--pd-easing);
    position: relative;
    padding: 10px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.05);
}

.pc-img-box {
    position: relative;
    height: 180px;
    /* Compact height for 6-col grid */
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    background: #f0f0f0;
}

.pc-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--pd-easing);
}

.product-card:hover .pc-img-box img {
    transform: scale(1.08);
}

/* Share Button */
.pc-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover .pc-share-btn {
    opacity: 1;
    transform: translateY(0);
}

.pc-share-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.pc-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pc-cat {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.pc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Clash Display', sans-serif;
}

/* Footer / View Button */
.pc-footer {
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    /* Pushes to bottom */
    padding-top: 8px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
}

.view-btn i {
    transform: translateX(0);
    transition: 0.3s;
    color: var(--accent);
}

.product-card:hover .view-btn {
    color: var(--accent);
}

.product-card:hover .view-btn i {
    transform: translateX(5px);
}