/*
Theme Name: BukhariShop
Theme URI: https://bukharisoft.com/bukharishop
Author: Abdul Rahman - BukhariSoft
Author URI: https://bukharisoft.com
Description: WhatsApp-first e-commerce theme for Pakistani small shopkeepers. Simple, mobile-optimized, and designed for real Pakistani businesses. Features include product catalog, shopping cart, WhatsApp checkout, order management, and COD payment support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bukharishop
Tags: e-commerce, whatsapp, mobile-first, pakistan, shop, retail

BukhariShop WordPress Theme, Copyright 2025 BukhariSoft
BukhariShop is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Color Palette (from design reference) */
    --bukhari-primary: #d4af37;        /* Gold */
    --bukhari-primary-light: #f4d03f;  /* Light Gold */
    --bukhari-secondary: #ff69b4;      /* Hot Pink */
    --bukhari-dark: #2d0a1f;           /* Deep Purple */
    --bukhari-dark-alt: #4a0e2e;       /* Purple Alt */
    
    /* Functional Colors */
    --bukhari-success: #25D366;        /* WhatsApp Green */
    --bukhari-danger: #dc3545;
    --bukhari-warning: #ffc107;
    --bukhari-info: #17a2b8;
    
    /* Text Colors */
    --bukhari-text: #d4af37;
    --bukhari-text-light: rgba(212, 175, 55, 0.8);
    --bukhari-text-muted: rgba(212, 175, 55, 0.5);
    
    /* Background */
    --bukhari-bg-gradient: linear-gradient(135deg, #2d0a1f 0%, #4a0e2e 50%, #2d0a1f 100%);
    --bukhari-bg-card: rgba(74, 14, 46, 0.4);
    
    /* Borders */
    --bukhari-border: rgba(212, 175, 55, 0.2);
    --bukhari-border-hover: rgba(212, 175, 55, 0.6);
    
    /* Spacing */
    --bukhari-spacing-xs: 0.5rem;
    --bukhari-spacing-sm: 1rem;
    --bukhari-spacing-md: 1.5rem;
    --bukhari-spacing-lg: 2rem;
    --bukhari-spacing-xl: 3rem;
    
    /* Typography */
    --bukhari-font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bukhari-font-heading: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --bukhari-transition: all 0.3s ease;
    --bukhari-transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--bukhari-font-primary);
    background: var(--bukhari-bg-gradient);
    color: var(--bukhari-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bukhari-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--bukhari-spacing-sm);
}

a {
    color: var(--bukhari-primary);
    text-decoration: none;
    transition: var(--bukhari-transition);
}

a:hover {
    color: var(--bukhari-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.bukhari-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--bukhari-spacing-sm);
}

.bukhari-section {
    padding: var(--bukhari-spacing-xl) 0;
}

.bukhari-grid {
    display: grid;
    gap: var(--bukhari-spacing-md);
}

.bukhari-grid--2 {
    grid-template-columns: 1fr;
}

.bukhari-grid--3 {
    grid-template-columns: 1fr;
}

.bukhari-grid--4 {
    grid-template-columns: 1fr;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .bukhari-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bukhari-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bukhari-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bukhari-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bukhari-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.bukhari-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--bukhari-transition);
    text-align: center;
    min-height: 48px; /* Touch-friendly */
    gap: 0.5rem;
}

.bukhari-btn--primary {
    background: linear-gradient(135deg, var(--bukhari-primary) 0%, var(--bukhari-primary-light) 100%);
    color: var(--bukhari-dark);
}

.bukhari-btn--primary:hover {
    background: linear-gradient(135deg, var(--bukhari-primary-light) 0%, var(--bukhari-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.bukhari-btn--secondary {
    background: transparent;
    border: 2px solid var(--bukhari-primary);
    color: var(--bukhari-primary);
}

.bukhari-btn--secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.bukhari-btn--whatsapp {
    background: var(--bukhari-success);
    color: white;
}

.bukhari-btn--whatsapp:hover {
    background: #20ba5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.bukhari-btn--block {
    width: 100%;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.bukhari-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--bukhari-bg-card);
    border: 1px solid var(--bukhari-border);
}

.bukhari-badge--success {
    background: rgba(37, 211, 102, 0.2);
    color: var(--bukhari-success);
    border-color: var(--bukhari-success);
}

.bukhari-badge--warning {
    background: rgba(255, 193, 7, 0.2);
    color: var(--bukhari-warning);
    border-color: var(--bukhari-warning);
}

.bukhari-badge--danger {
    background: rgba(220, 53, 69, 0.2);
    color: var(--bukhari-danger);
    border-color: var(--bukhari-danger);
}

.bukhari-badge--primary {
    background: rgba(212, 175, 55, 0.2);
    color: var(--bukhari-primary);
    border-color: var(--bukhari-primary);
}

/* ==========================================================================
   PRODUCT CARD (Core Component)
   ========================================================================== */

.bukhari-product-card {
    background: var(--bukhari-bg-card);
    border: 1px solid var(--bukhari-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--bukhari-transition-slow);
    position: relative;
}

.bukhari-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0) 100%);
    opacity: 0;
    transition: var(--bukhari-transition);
    z-index: 0;
    pointer-events: none;
}

.bukhari-product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.5), 0 0 80px rgba(212, 175, 55, 0.3);
    border-color: var(--bukhari-border-hover);
}

.bukhari-product-card:hover::before {
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    opacity: 1;
}

.bukhari-product-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: rgba(0, 0, 0, 0.3);
}

.bukhari-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bukhari-transition-slow);
}

.bukhari-product-card:hover .bukhari-product-card__image {
    transform: scale(1.1);
}

.bukhari-product-card__content {
    padding: var(--bukhari-spacing-md);
    position: relative;
    z-index: 1;
}

.bukhari-product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--bukhari-spacing-xs);
}

.bukhari-product-card__code {
    font-size: 0.75rem;
    color: var(--bukhari-text-muted);
}

.bukhari-product-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--bukhari-spacing-xs);
    transition: var(--bukhari-transition);
}

.bukhari-product-card:hover .bukhari-product-card__title {
    color: var(--bukhari-primary);
}

.bukhari-product-card__description {
    font-size: 0.875rem;
    color: var(--bukhari-text-light);
    margin-bottom: var(--bukhari-spacing-sm);
}

.bukhari-product-card__price {
    display: flex;
    align-items: center;
    gap: var(--bukhari-spacing-xs);
    margin-bottom: var(--bukhari-spacing-sm);
}

.bukhari-product-card__price--current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bukhari-secondary);
}

.bukhari-product-card__price--original {
    font-size: 1rem;
    color: var(--bukhari-text-muted);
    text-decoration: line-through;
}

.bukhari-product-card__actions {
    display: flex;
    gap: var(--bukhari-spacing-xs);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.bukhari-form-group {
    margin-bottom: var(--bukhari-spacing-md);
}

.bukhari-form-label {
    display: block;
    margin-bottom: var(--bukhari-spacing-xs);
    font-weight: 500;
    color: var(--bukhari-text);
}

.bukhari-form-input,
.bukhari-form-select,
.bukhari-form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bukhari-bg-card);
    border: 1px solid var(--bukhari-border);
    border-radius: 8px;
    color: var(--bukhari-text);
    font-family: var(--bukhari-font-primary);
    font-size: 1rem;
    transition: var(--bukhari-transition);
}

.bukhari-form-input:focus,
.bukhari-form-select:focus,
.bukhari-form-textarea:focus {
    outline: none;
    border-color: var(--bukhari-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.bukhari-form-input::placeholder {
    color: var(--bukhari-text-muted);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.bukhari-text-center { text-align: center; }
.bukhari-text-right { text-align: right; }
.bukhari-text-muted { color: var(--bukhari-text-muted); }
.bukhari-text-primary { color: var(--bukhari-primary); }
.bukhari-text-secondary { color: var(--bukhari-secondary); }

.bukhari-mt-0 { margin-top: 0; }
.bukhari-mt-1 { margin-top: var(--bukhari-spacing-xs); }
.bukhari-mt-2 { margin-top: var(--bukhari-spacing-sm); }
.bukhari-mt-3 { margin-top: var(--bukhari-spacing-md); }
.bukhari-mt-4 { margin-top: var(--bukhari-spacing-lg); }

.bukhari-mb-0 { margin-bottom: 0; }
.bukhari-mb-1 { margin-bottom: var(--bukhari-spacing-xs); }
.bukhari-mb-2 { margin-bottom: var(--bukhari-spacing-sm); }
.bukhari-mb-3 { margin-bottom: var(--bukhari-spacing-md); }
.bukhari-mb-4 { margin-bottom: var(--bukhari-spacing-lg); }

.bukhari-hidden { display: none; }

/* ==========================================================================
   RESPONSIVE - Mobile First
   ========================================================================== */

@media (min-width: 768px) {
    .bukhari-container {
        padding: 0 var(--bukhari-spacing-md);
    }
    
    .bukhari-section {
        padding: 5rem 0;
    }
}

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: var(--bukhari-spacing-sm);
    margin-bottom: var(--bukhari-spacing-sm);
}

.alignright {
    float: right;
    margin-left: var(--bukhari-spacing-sm);
    margin-bottom: var(--bukhari-spacing-sm);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--bukhari-spacing-sm);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--bukhari-text-muted);
    margin-top: var(--bukhari-spacing-xs);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}