/* =========================================================
   Premium Product Detail Page (PDP) Styles
   ========================================================= */

/* General Main Container */
.pdp-main {
    background-color: #f8fafc;
}

.product-container {
    background: #ffffff;
    border-radius: 24px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03) !important;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.breadcrumb-nav a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--color-accent, #f57539);
}

.pdp-bc-sep {
    margin: 0 8px;
    opacity: 0.5;
}

#breadcrumb-title {
    color: #0f172a;
    font-weight: 700;
}

/* Image Gallery Layout */
.gallery-wrap {
    padding: 3rem !important;
    background: #fdfdfd !important;
    border-right: 1px solid rgba(0,0,0,0.04) !important;
}

/* Zoom Hover Effect for Main Image */
.main-img-container {
    border: 1px solid rgba(0,0,0,0.04) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    padding: 2rem !important;
    overflow: hidden; /* Needed for zoom */
    position: relative;
    cursor: crosshair;
}

.main-img-container img {
    transition: transform 0.4s ease;
    object-fit: contain;
}

.main-img-container:hover img {
    transform: scale(1.15); /* Zoom effect */
}

/* Thumbnails */
.thumb-grid {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    padding: 5px;
}

.thumb-item:hover {
    border-color: rgba(245, 117, 57, 0.4);
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: var(--color-accent, #f57539);
    box-shadow: 0 4px 12px rgba(245, 117, 57, 0.2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Right Column Content */
.product-content {
    padding: 3.5rem 3rem !important;
}

.product-title {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Info Badge */
.info-badge {
    background: rgba(245, 117, 57, 0.1);
    color: var(--color-accent, #f57539);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Pricing */
.price-tag {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 2rem;
}

.price-tag.discounted .old-price {
    font-size: 1.2rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

/* Purchase Block (Quantity & Buttons) */
.action-row {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    margin-bottom: 3rem;
}

.pdp-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pdp-qty-label {
    font-weight: 700;
    color: #0f172a;
}

.qty-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.pdp-qty-value {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* CTA Buttons */
.detail-action-btns {
    display: flex;
    gap: 16px;
}

.btn-detail-add, .btn-detail-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

.btn-detail-add {
    background: rgba(245, 117, 57, 0.1);
    color: var(--color-accent, #f57539);
    border: 2px solid rgba(245, 117, 57, 0.2);
}

.btn-detail-add:hover {
    background: rgba(245, 117, 57, 0.15);
    border-color: rgba(245, 117, 57, 0.3);
    transform: translateY(-3px);
}

.btn-detail-buy {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-detail-buy:hover {
    background: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
}

/* Accordion Info Sections */
.pdp-accordion-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-section {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.info-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.pdp-acc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin: 0;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s;
}

.pdp-acc-head:hover {
    background: #f1f5f9;
}

.pdp-acc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.pdp-acc-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.pdp-acc-toggle::before, .pdp-acc-toggle::after {
    content: '';
    position: absolute;
    background: #64748b;
    transition: transform 0.3s;
}

.pdp-acc-toggle::before {
    top: 9px;
    left: 4px;
    width: 12px;
    height: 2px;
}

.pdp-acc-toggle::after {
    top: 4px;
    left: 9px;
    width: 2px;
    height: 12px;
}

.info-section.active .pdp-acc-toggle::after {
    transform: rotate(90deg);
}

.info-section.active .pdp-acc-head {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
}

.pdp-acc-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.info-section.active .pdp-acc-body {
    padding: 24px;
    max-height: 1000px;
}

.info-body p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Specs Table styling */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 12px 0;
    font-size: 0.95rem;
}

.spec-table .label {
    color: #64748b;
    width: 40%;
}

.spec-table .value {
    color: #0f172a;
    font-weight: 600;
}

/* =========================================================
   Mobile Responsiveness Overrides
   ========================================================= */
@media (max-width: 768px) {
    /* Product Container */
    .product-container {
        border-radius: 16px !important;
        margin: 1rem 0.5rem;
    }

    /* Gallery */
    .gallery-wrap {
        padding: 1.5rem !important;
    }
    
    .main-img-container {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    /* Info Column */
    .product-content {
        padding: 1.5rem 1rem !important;
    }

    .product-title {
        font-size: 1.5rem !important;
        margin-bottom: 10px;
    }

    .price-tag {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }

    /* Buttons & Quantity Box */
    .pdp-qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .detail-action-btns {
        flex-direction: column;
        gap: 12px;
    }

    .btn-detail-add, .btn-detail-buy {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .action-row {
        padding: 1rem;
    }
}
