/* ===================== PRODUCT PAGE CSS ===================== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;
    --accent: #F97316;
    --bg: #F8FAFC;
    --bg-white: #FFFFFF;
    --fg: #0F172A;
    --fg-secondary: #475569;
    --fg-muted: #64748b;
    --gold: #F59E0B;
    --border: #E2E8F0;
    --border-light: #eef2f6;
    --radius: 16px;
    --shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    margin: 0;
    padding: 0 0 70px 0;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Breadcrumbs */
.breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li a {
    color: var(--fg-secondary);
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-list li a:hover {
    color: var(--primary);
}

.breadcrumb-list li.current {
    color: var(--primary);
    font-weight: 600;
}

/* Product Grid */
.product-detail-section {
    padding: 20px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 500px 1fr;
        gap: 40px;
    }
}

/* Gallery */
.gallery-wrapper {
    width: 100%;
}

.main-image-stage {
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.main-image-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info Section */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-detail-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-detail-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .product-detail-title {
        font-size: 32px;
    }
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stock-in {
    color: #10b981;
    background: #d1fae5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-out {
    color: #dc2626;
    background: #fee2e2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Price Box */
.product-price-box {
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.05);
}

.product-price-box .current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--fg);
}

.product-price-box .old-price {
    font-size: 16px;
    color: #475569;
    text-decoration: line-through;
}

.product-price-box .discount-badge {
    background: #9a3412;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.product-short-desc {
    font-size: 15px;
    color: var(--fg-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Specs */
.product-specs {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.spec-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.spec-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.spec-details h2 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin: 0 0 4px 0;
    font-weight: 700;
}

.spec-details p {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
    margin: 0;
}

/* Actions */
.product-actions-wrapper {
    background: #F1F5F9;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.actions-top-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 50px;
    width: 110px;
}

.qty-btn {
    width: 35%;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
    color: var(--fg);
}

.qty-input {
    width: 30%;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 16px;
}

.btn-add-cart-pdp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    height: 50px;
    border: none;
    cursor: pointer;
}

.btn-whatsapp-pdp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #15803d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    height: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-whatsapp-pdp-main:hover {
    background: #0f6a34;
    transform: translateY(-1px);
    color: white;
}

/* Tabs */
.product-tabs {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-secondary);
    cursor: pointer;
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary);
}

.tab-panel {
    display: none;
    padding: 24px;
}

.tab-panel.active {
    display: block;
}

/* Reviews */
.review-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-stars-container i {
    color: var(--gold);
    font-size: 12px;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--fg-secondary);
    text-decoration: none;
}

.tag-pill:hover {
    background: var(--primary);
    color: white;
}

/* Related Products */
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-img-box {
    position: relative;
    aspect-ratio: 1/1;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    height: 36px;
    text-decoration: none;
    color: var(--fg);
}

.card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg);
}

.btn-buy {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-size: 13px;
    margin-top: auto;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.btn-buy:hover {
    background: var(--primary-dark);
}

/* Swiper */
.swiper {
    padding: 10px 0 30px 0;
}

.swiper-button-next,
.swiper-button-prev {
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--fg-secondary);
    text-decoration: none;
}

/* Alert */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-price-box .current-price {
        font-size: 22px;
    }
    
    .actions-top-row {
        flex-direction: column;
    }
    
    .qty-selector {
        width: 100%;
    }
    
    .product-actions-wrapper {
        padding: 16px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .tab-panel {
        padding: 16px;
    }
}