/*
Theme Name: New Tech Price (Engine)
Theme URI: https://newtechprice.com
Author: Project Alpha Team
Description: A Super-Fast Custom Engine for Mobiles & Motorcycles.
Version: 1.3.0
Text Domain: project-alpha
*/

/* =========================================
   1. BROWSER RESET (Clean Slate)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #2271b1;
    transition: color 0.3s ease;
}
a:hover { color: #135e96; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. HEADER STYLES
   ========================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1150px;
    margin: 0 auto;
    padding: 15px 15px;
    gap: 20px;
    position: relative;
}

.site-title { margin: 0; line-height: 1; white-space: nowrap; }
.site-title a {
    text-decoration: none;
    color: #2271b1;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* =========================================
   3. HYBRID SEARCH BAR
   ========================================= */
.header-search-area {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.alpha-search-wrapper { position: relative; width: 100%; }

.alpha-search-wrapper form {
    display: flex;
    border: 2px solid #e1e4e8;
    border-radius: 50px;
    overflow: hidden;
    background: #f8f9fa;
    transition: 0.3s;
}

.alpha-search-wrapper form:focus-within {
    border-color: #3c40c6;
    background: #fff;
    box-shadow: 0 4px 10px rgba(60,64,198,0.1);
}

.alpha-search-wrapper input {
    flex-grow: 1; border: none; background: transparent;
    padding: 10px 20px; font-size: 15px; outline: none; color: #333;
}

.alpha-search-wrapper button {
    background: transparent; border: none; padding: 0 20px;
    cursor: pointer; color: #666; transition: 0.2s;
}
.alpha-search-wrapper button:hover { color: #3c40c6; }

/* =========================================
   4. NAVIGATION MENU
   ========================================= */
.main-navigation ul {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 20px;
}
.main-navigation ul li a {
    color: #444; font-weight: 600; font-size: 15px; padding: 5px 0;
}
.main-navigation ul li a:hover { color: #e74c3c; }

.menu-toggle {
    display: none; background: transparent; border: none;
    font-size: 26px; color: #333; cursor: pointer; padding: 5px;
}

/* =========================================
   5. ARCHIVE PAGE LAYOUT
   ========================================= */
.archive-wrapper {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.archive-header { margin-bottom: 30px; text-align: center; }
.archive-title { font-size: 2.5rem; margin-bottom: 10px; color: #2c3e50; }
.archive-desc { color: #7f8c8d; }

.archive-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.archive-sidebar { width: 280px; flex-shrink: 0; }
.archive-content { flex-grow: 1; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #f1f2f6;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-card .thumb {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #f9f9f9;
}
.product-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }

.product-card .details { padding: 15px; text-align: center; }
.product-card h3 { font-size: 16px; margin: 0 0 8px; color: #2f3542; font-weight: 600; }
.price-tag { color: #e74c3c; font-weight: 700; font-size: 16px; display: block; margin-bottom: 5px; }
.specs-preview { font-size: 12px; color: #95a5a6; background: #f7f9fa; padding: 3px 8px; border-radius: 4px; }

/* =========================================
   6. SINGLE PRODUCT PAGE DESIGN (MISSING PART FIXED)
   ========================================= */
.single-product-wrapper {
    padding: 30px 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.alpha-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    background: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.product-main-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left Side (Image & Price) */
.product-gallery-section {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.main-image img { border-radius: 5px; width: 100%; }

.price-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #e1e4e8;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
    color: #e67e22;
    margin: 10px 0;
}

.btn-compare {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    transition: 0.3s;
}
.btn-compare:hover { background: #34495e; }

/* Right Side (Specs Table) */
.product-specs-section {
    flex: 1.5;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.product-title {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 15px;
}

/* Table Design */
.alpha-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.alpha-specs-table th, 
.alpha-specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.alpha-specs-table th {
    background: #fdfdfd;
    width: 35%;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #eee;
}

.product-description {
    line-height: 1.8;
    color: #444;
}

/* =========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet & Mobile (Archive & Header) */
@media (max-width: 991px) {
    .header-inner { flex-wrap: wrap; }
    .header-search-area { order: 3; width: 100%; max-width: 100%; margin-top: 15px; }
    .site-branding { flex-grow: 1; }
    .menu-toggle { order: 2; }
}

/* Mobile Only (Under 768px) */
@media (max-width: 768px) {
    /* Header */
    .menu-toggle { display: block; }
    .main-navigation {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #eee; padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 1000;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; gap: 15px; text-align: center; }

    /* Archive Page */
    .archive-layout { flex-direction: column; }
    .archive-sidebar { width: 100%; margin-bottom: 25px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .thumb { height: 160px; padding: 10px; }
    .product-card h3 { font-size: 14px; }
    .price-tag { font-size: 14px; }

    /* Single Product Page (Fix) */
    .product-main-layout { flex-direction: column; }
    .product-gallery-section, 
    .product-specs-section { width: 100%; min-width: 100%; }
    .product-title { font-size: 24px; }
}