/*
Theme Name: SwiftCart - PriceOye Style Theme
Theme URI: https://yourwebsite.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A professional eCommerce theme inspired by PriceOye - perfect for Pakistani online stores. Clean, fast, and conversion-focused.
Version: 2.0.0
License: GPL v2 or later
Text Domain: swiftcart
Domain Path: /languages
Tags: e-commerce, woocommerce, blog, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =Reset & Base Styles
--------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background-color: #f8f9fa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =Typography
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: #2874f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #1a5bc4;
}

/* =Header - PriceOye Style
--------------------------------------------- */
.site-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f0f2f5;
    padding: 8px 0;
    font-size: 12px;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo img {
    max-height: 40px;
    width: auto;
}

.logo .site-title {
    font-size: 24px;
    font-weight: bold;
    color: #2874f0;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    background: #2874f0;
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon, .wishlist-icon, .account-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.cart-icon span:first-child, .wishlist-icon span:first-child, .account-icon span:first-child {
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #fb641b;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Navigation - Category Bar */
.category-nav {
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
}

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.category-nav ul li a {
    color: #212529;
    font-size: 14px;
    font-weight: 500;
}

.category-nav ul li a:hover {
    color: #2874f0;
}

/* =Hero Section - PriceOye Style
--------------------------------------------- */
.hero-section {
    margin: 15px 0;
}

.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.hero-cta {
    display: inline-block;
    background: #fb641b;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
}

/* =Section Headers
--------------------------------------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    position: relative;
}

.section-link {
    color: #2874f0;
    font-size: 14px;
}

/* =Product Card - PriceOye Style
--------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fb641b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #212529;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.rating-stars {
    color: #ffc107;
    font-size: 12px;
}

.rating-count {
    color: #878787;
    font-size: 12px;
}

.product-price {
    margin-bottom: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.old-price {
    font-size: 12px;
    color: #878787;
    text-decoration: line-through;
    margin-left: 8px;
}

.delivery-badge {
    font-size: 12px;
    color: #388e3c;
    margin-bottom: 10px;
}

.delivery-badge::before {
    content: "⚡";
    margin-right: 4px;
}

.add-to-cart-btn {
    width: 100%;
    background: #2874f0;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: #1a5bc4;
}

/* =Category Tabs
--------------------------------------------- */
.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
}

.tab-btn {
    background: white;
    border: 1px solid #e9ecef;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.tab-btn.active {
    background: #2874f0;
    color: white;
    border-color: #2874f0;
}

/* =Product Row View (For Deals)
--------------------------------------------- */
.product-row {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-row-image {
    width: 80px;
    height: 80px;
}

.product-row-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-row-info {
    flex: 1;
}

.product-row-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-row-price {
    font-size: 16px;
    font-weight: 600;
    color: #2874f0;
}

/* =Category Grid
--------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: white;
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* =Trust Badges
--------------------------------------------- */
.trust-section {
    background: white;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 12px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.trust-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 12px;
    color: #878787;
}

/* =Footer
--------------------------------------------- */
.site-footer {
    background: #172337;
    color: #fff;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #878787;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #fff;
    font-size: 12px;
}

.footer-col a:hover {
    color: #2874f0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
    font-size: 12px;
    color: #878787;
}

/* =Deals List
--------------------------------------------- */
.deals-list {
    margin-bottom: 40px;
}

/* =Mobile Responsive
--------------------------------------------- */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
    }
    
    .header-search {
        width: 100%;
        max-width: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .product-title {
        font-size: 12px;
        height: 36px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .hero-banner {
        padding: 25px;
    }
    
    .hero-banner h1 {
        font-size: 24px;
    }
    
    .category-nav ul {
        gap: 15px;
        overflow-x: auto;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .product-row {
        flex-direction: column;
        text-align: center;
    }
    
    .product-row-image {
        width: 120px;
        height: 120px;
    }
}

/* =WooCommerce Overrides
--------------------------------------------- */
.woocommerce-message,
.woocommerce-info {
    background: #2874f0;
    color: white;
    border-radius: 8px;
}

.woocommerce-error {
    background: #ff6161;
    border-radius: 8px;
}

.single-product .product {
    background: white;
    border-radius: 12px;
    padding: 25px;
}

.woocommerce-cart-form {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.cart_totals {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.woocommerce-checkout .col2-set {
    background: white;
    border-radius: 12px;
    padding: 20px;
}