/*
Theme Name: GeneratePress Child
Template: generatepress
*/
/* --- Professional Product Page (Pehla Design Restore) --- */
:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --dark: #1e293b;
    --light-bg: #f8fafc;
    --success: #10b981;
}

body { background: #f1f5f9; }
.pro-product-wrapper { padding: 30px 0; font-family: 'Inter', sans-serif; }
.pro-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.pro-breadcrumb { margin-bottom: 20px; font-size: 14px; color: #64748b; }
.pro-breadcrumb a { text-decoration: none; color: var(--primary); }
.pro-breadcrumb span { margin: 0 5px; color: #cbd5e0; }

/* Main Layout */
.pro-product-main { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }

/* Media Section (Sticky) */
.pro-product-media { position: sticky; top: 100px; height: fit-content; }
.pro-main-image { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.pro-main-image img { max-width: 90%; max-height: 90%; object-fit: contain; }

.pro-thumb-grid { display: flex; gap: 12px; margin-top: 15px; overflow-x: auto; padding-bottom: 5px; }
.pro-thumb-item { width: 70px; height: 70px; border-radius: 10px; cursor: pointer; border: 2px solid #fff; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.pro-thumb-item.active { border-color: var(--primary); }
.pro-thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Details Section */
.pro-badge-row { margin-bottom: 15px; }
.pro-category-badge { background: #eff6ff; color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

.pro-title { font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 10px; }
.pro-rating-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.pro-stars { color: #fbbf24; font-size: 14px; }
.pro-review-count { color: #64748b; font-size: 14px; }

.pro-price-card { background: #fff; padding: 20px; border-radius: 16px; margin-bottom: 25px; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.pro-price-row { display: flex; align-items: center; }
.pro-selling-price { font-size: 36px; font-weight: 800; color: var(--dark); }
.pro-mrp { text-decoration: line-through; color: #94a3b8; margin: 0 10px; font-size: 18px; }
.pro-discount-label { color: var(--success); font-weight: 700; font-size: 16px; }
.pro-tax-info { color: #64748b; font-size: 13px; margin-top: 5px; }

.pro-short-desc { color: #475569; font-size: 15px; line-height: 1.6; margin-bottom: 30px; }

/* Actions */
.pro-actions { display: flex; gap: 15px; align-items: center; }
.pro-qty-selector { display: flex; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; height: 50px; background: #fff; }
.pro-qty-selector button { width: 40px; border: none; background: #fff; font-size: 18px; cursor: pointer; color: #64748b; }
.pro-qty-selector input { width: 50px; border: none; text-align: center; font-weight: 600; color: var(--dark); }

.pro-btn { flex: 1; height: 50px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; font-size: 14px; }
.pro-btn-cart { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.pro-btn-cart:hover { background: #eff6ff; }
.pro-btn-buy { background: var(--primary); color: #fff; }
.pro-btn-buy:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }

/* Tabs Section */
.pro-content-section { margin-top: 50px; background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.pro-tabs-nav { border-bottom: 1px solid #e2e8f0; display: flex; gap: 30px; margin-bottom: 30px; overflow-x: auto; }
.pro-tab-link { background: none; border: none; padding: 15px 0; font-size: 16px; font-weight: 600; color: #64748b; cursor: pointer; position: relative; border-bottom: 3px solid transparent; flex-shrink: 0; }
.pro-tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.pro-tab-panel { display: none; animation: fadeIn 0.4s ease; }
.pro-tab-panel.active { display: block; }
.pro-editor-content { color: #475569; line-height: 1.7; font-size: 16px; }

/* Advanced Review Style */
.pro-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.pro-review-header h2 { font-size: 24px; color: var(--dark); font-weight: 700; }
.write-rev-toggle { flex: none; width: auto; height: 40px; padding: 0 20px; font-size: 13px; }

.pro-hidden-form { background: #f8fafc; padding: 30px; border-radius: 16px; border: 1px solid #e2e8f0; margin-bottom: 30px; }
.pro-hidden-form h3 { margin-bottom: 20px; color: var(--dark); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #475569; font-size: 14px; }
.pro-hidden-form select, .pro-hidden-form textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; }
.pro-hidden-form textarea { height: 120px; resize: vertical; }
.pro-hidden-form input[type="file"] { font-size: 14px; color: #64748b; }
#submit-review-btn { width: auto; padding: 0 30px; margin-top: 15px; }

.pro-comments-list { margin-top: 30px; }
.pro-single-comment { border-bottom: 1px solid #e2e8f0; padding: 25px 0; }
.c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.c-rating { background: var(--success); color: #fff; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.c-user { font-weight: 700; color: var(--dark); font-size: 15px; }
.c-date { color: #94a3b8; font-size: 13px; margin-left: auto; }
.c-body { color: #475569; font-size: 15px; line-height: 1.6; margin-bottom: 15px; }

.c-images { display: flex; gap: 10px; flex-wrap: wrap; }
.rev-img-thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 1px solid #e2e8f0; transition: 0.2s; }
.rev-img-thumb:hover { transform: scale(1.05); }

/* Mobile action bar optimization */
.mobile-action-bar { display: none; }
#lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 9999; }
#lightbox-img { max-width: 90%; max-height: 90%; border-radius: 8px; }

/* --- Responsivity (Flipkart Style Bottom Bar) --- */
@media (max-width: 992px) {
    .pro-product-main { grid-template-columns: 1fr; gap: 20px; }
    .pro-product-media { position: static; }
    .pro-title { font-size: 24px; }
    .pro-actions { display: none; } /* Hide desktop actions */
    
    .pro-breadcrumb { display: none; }
    .pro-main-image { border-radius: 0; border: none; border-bottom: 1px solid #e2e8f0; }
    .pro-content-section { margin-top: 20px; padding: 20px; border-radius: 12px; }

    /* Show Mobile Sticky Bar */
    .mobile-action-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: #fff; z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); border-top: 1px solid #e2e8f0; }
    .m-action-btn { border: none; font-weight: 700; font-size: 15px; text-transform: uppercase; cursor: pointer; }
    .m-btn-cart { background: #fff; color: var(--dark); }
    .m-btn-buy { background: var(--primary); color: #fff; }
    .pro-product-wrapper { padding-bottom: 80px; } /* Extra padding for sticky bar */
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* --- Professional Header Styles --- */
:root {
    --header-bg: #ffffff;
    --primary-color: #2563eb;
    --text-dark: #1e293b;
    --nav-height: 70px;
    --mobile-nav-height: 60px;
}

body { font-family: 'Inter', sans-serif; }

.professional-header {
    background: var(--header-bg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-branding img { max-height: 40px; width: auto; }
.site-title a { text-decoration: none; color: var(--primary-color); font-weight: 800; font-size: 22px; }

/* Desktop Menu */
.main-navigation ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-navigation ul li a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 500; 
    font-size: 15px;
    transition: 0.3s;
}
.main-navigation ul li a:hover { color: var(--primary-color); }

/* Header Icons */
.header-icons { display: flex; gap: 20px; align-items: center; }
.header-icon-link { color: var(--text-dark); font-size: 24px; position: relative; text-decoration: none; }
.cart-badge { 
    position: absolute; top: -5px; right: -8px; 
    background: #ef4444; color: white; font-size: 10px; 
    width: 18px; height: 18px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}

/* --- Mobile Specific Optimization --- */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    
    .professional-header { height: 60px; }
    .header-container { justify-content: center; } /* Logo Center on Mobile */
    
    /* Mobile App-Style Bottom Nav */
    .mobile-app-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--mobile-nav-height);
        background: #ffffff;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
        z-index: 1001;
        border-top: 1px solid #f1f5f9;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 500;
        transition: 0.3s;
    }
    
    .mobile-nav-item .nav-icon { font-size: 22px; margin-bottom: 2px; position: relative; }
    .mobile-nav-item.active { color: var(--primary-color); }
    
    .mobile-badge {
        position: absolute; top: -4px; right: -10px;
        background: #ef4444; color: white; font-size: 9px;
        width: 16px; height: 16px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
    }

    .site-content { padding-bottom: 70px; } /* Space for bottom nav */
}