/*
Theme Name: Tahir Enterprises
Theme URI: https://tahirenterprises.com
Description: Custom WooCommerce child theme for Tahir Enterprises - Electrical Products Store. Built for speed, conversion, and ad performance. Bold red & black brand identity.
Author: Tahir Enterprises
Author URI: https://tahirenterprises.com
Template: storefront
Version: 1.0.0
Text Domain: tahir-enterprises
*/

/* ============================================
   ROOT VARIABLES - Brand Colors
   ============================================ */
:root {
    --tahir-red: #D62828;
    --tahir-red-dark: #A91D1D;
    --tahir-red-light: #F77F7F;
    --tahir-black: #0A0A0A;
    --tahir-dark: #1A1A1A;
    --tahir-grey: #4A4A4A;
    --tahir-light-grey: #F5F5F5;
    --tahir-white: #FFFFFF;
    --tahir-accent: #FFB800;
    --tahir-success: #2ECC71;
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', sans-serif;
}

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */
body {
    font-family: var(--font-primary);
    color: var(--tahir-dark);
    background: var(--tahir-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--tahir-black);
    letter-spacing: -0.02em;
}

a {
    color: var(--tahir-red);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--tahir-red-dark);
}

/* ============================================
   TOP TRUST STRIP
   ============================================ */
.tahir-trust-strip {
    background: var(--tahir-black);
    color: var(--tahir-white);
    padding: 8px 0;
    font-size: 13px;
    overflow: hidden;
}

.tahir-trust-strip-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tahir-trust-strip-inner span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
}

.tahir-trust-strip-inner span::before {
    content: "✓";
    color: var(--tahir-red);
    font-weight: bold;
}

@media (max-width: 768px) {
    .tahir-trust-strip {
        font-size: 11px;
    }
    .tahir-trust-strip-inner span {
        padding: 2px 6px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--tahir-white);
    border-bottom: 3px solid var(--tahir-red);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding h1 a,
.site-branding .site-title a {
    color: var(--tahir-black);
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.site-branding h1 a span,
.site-branding .site-title a span {
    color: var(--tahir-red);
}

.tahir-whatsapp-header {
    background: #25D366;
    color: white !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.tahir-whatsapp-header:hover {
    background: #128C7E;
    color: white !important;
}

/* ============================================
   BUTTONS - High CTR optimized
   ============================================ */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.tahir-btn {
    background: var(--tahir-red) !important;
    color: var(--tahir-white) !important;
    border: none !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(214, 40, 40, 0.3) !important;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.tahir-btn:hover {
    background: var(--tahir-red-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.4) !important;
}

.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--tahir-black) !important;
    color: var(--tahir-white) !important;
}

.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: var(--tahir-dark) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.tahir-hero {
    background: linear-gradient(135deg, var(--tahir-black) 0%, var(--tahir-dark) 100%);
    color: var(--tahir-white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tahir-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214,40,40,0.3) 0%, transparent 70%);
    z-index: 1;
}

.tahir-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.tahir-hero h1 {
    color: var(--tahir-white);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.tahir-hero h1 span {
    color: var(--tahir-red);
}

.tahir-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tahir-hero-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tahir-hero {
        padding: 40px 15px;
    }
    .tahir-hero h1 {
        font-size: 32px;
    }
    .tahir-hero p {
        font-size: 15px;
    }
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.tahir-section-title {
    text-align: center;
    font-size: 32px;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.tahir-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--tahir-red);
    border-radius: 2px;
}

.tahir-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tahir-category-card {
    background: var(--tahir-white);
    border: 2px solid var(--tahir-light-grey);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--tahir-black);
    display: block;
}

.tahir-category-card:hover {
    border-color: var(--tahir-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(214, 40, 40, 0.15);
    color: var(--tahir-red);
}

.tahir-category-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.tahir-category-card h3 {
    font-size: 16px;
    margin: 0;
    color: inherit;
}

/* ============================================
   WOOCOMMERCE PRODUCT CARDS
   ============================================ */
.woocommerce ul.products li.product {
    background: var(--tahir-white);
    border: 1px solid var(--tahir-light-grey);
    border-radius: 10px;
    padding: 15px !important;
    transition: all 0.2s ease;
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--tahir-red);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tahir-black);
    padding: 10px 0 5px;
    min-height: 50px;
}

.woocommerce ul.products li.product .price {
    color: var(--tahir-red) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--tahir-grey) !important;
    font-weight: 400 !important;
    font-size: 14px !important;
}

.woocommerce span.onsale {
    background: var(--tahir-red) !important;
    color: var(--tahir-white) !important;
    border-radius: 50% !important;
    min-height: 50px !important;
    min-width: 50px !important;
    font-weight: 700 !important;
    line-height: 50px !important;
    padding: 0 !important;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.woocommerce div.product .product_title {
    font-size: 28px;
    color: var(--tahir-black);
    margin-bottom: 15px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--tahir-red) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
}

.tahir-product-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tahir-badge {
    background: var(--tahir-light-grey);
    color: var(--tahir-black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tahir-badge.cod {
    background: var(--tahir-success);
    color: white;
}

.tahir-badge.warranty {
    background: var(--tahir-accent);
    color: var(--tahir-black);
}

.tahir-whatsapp-order {
    background: #25D366 !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    font-size: 15px;
}

.tahir-whatsapp-order:hover {
    background: #128C7E !important;
    color: white !important;
}

/* ============================================
   USP / FEATURES BAR
   ============================================ */
.tahir-usp-bar {
    background: var(--tahir-light-grey);
    padding: 40px 20px;
    margin: 50px 0 0;
}

.tahir-usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1280px;
    margin: 0 auto;
}

.tahir-usp-item {
    text-align: center;
    padding: 20px;
    background: var(--tahir-white);
    border-radius: 10px;
    border-top: 4px solid var(--tahir-red);
}

.tahir-usp-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.tahir-usp-item h4 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: var(--tahir-black);
}

.tahir-usp-item p {
    font-size: 13px;
    color: var(--tahir-grey);
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--tahir-black) !important;
    color: var(--tahir-white) !important;
    padding: 50px 20px 20px !important;
}

.site-footer h2, .site-footer h3, .site-footer h4 {
    color: var(--tahir-white) !important;
    font-size: 18px;
    margin-bottom: 15px;
}

.site-footer a {
    color: rgba(255,255,255,0.7) !important;
}

.site-footer a:hover {
    color: var(--tahir-red) !important;
}

.tahir-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   STICKY WHATSAPP FLOAT (huge conversion lifter)
   ============================================ */
.tahir-whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: transform 0.2s;
    animation: pulse 2s infinite;
}

.tahir-whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ============================================
   CART / CHECKOUT
   ============================================ */
.woocommerce-cart table.cart .product-thumbnail img {
    width: 80px;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
    background: var(--tahir-light-grey);
    padding: 20px;
    border-radius: 10px;
}

.woocommerce-info,
.woocommerce-message {
    border-top-color: var(--tahir-red) !important;
}

.woocommerce-info::before,
.woocommerce-message::before {
    color: var(--tahir-red) !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .tahir-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tahir-category-card {
        padding: 15px 10px;
    }
    .tahir-category-card img {
        width: 60px;
        height: 60px;
    }
    .tahir-section-title {
        font-size: 24px;
    }
    .tahir-whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ============================================
   PERFORMANCE: Hide elements that slow page
   ============================================ */
.storefront-handheld-footer-bar {
    background: var(--tahir-black) !important;
}

.storefront-handheld-footer-bar ul li.cart > a,
.storefront-handheld-footer-bar ul li > a {
    color: var(--tahir-white) !important;
}

.storefront-handheld-footer-bar ul li.cart .count {
    background: var(--tahir-red) !important;
    color: white !important;
    border: none !important;
}
