/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ==========================================================================
   AURA WHOLESALE - CUSTOMER MY ACCOUNT STYLES
   ========================================================================== */

.aura-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.aura-badge-pending    { background: #fef3c7; color: #b45309; }
.aura-badge-verified   { background: #d1fae5; color: #047857; }
.aura-badge-warehouse  { background: #e0f2fe; color: #0369a1; }
.aura-badge-dispatched { background: #f3e8ff; color: #6b21a8; }
.aura-badge-delivered  { background: #dcfce7; color: #15803d; }

.aura-tracking-card { background: #ffffff; border: 1px solid #e2e8f0; padding: 24px; border-radius: 8px; margin-top: 30px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.aura-stepper-timeline { display: flex; justify-content: space-between; position: relative; margin-top: 25px; }
.aura-stepper-timeline::before { content: ''; position: absolute; top: 18px; left: 8%; right: 8%; height: 3px; background: #e2e8f0; z-index: 1; }
.aura-step { position: relative; z-index: 2; background: #ffffff; padding: 0 6px; text-align: center; flex: 1; }
.aura-step .circle { width: 36px; height: 36px; border-radius: 50%; background: #cbd5e1; color: #ffffff; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: bold; font-size: 13px; border: 3px solid #ffffff; }
.aura-step.completed .circle { background: #0056b3; color: #ffffff; }
.aura-step .label { display: block; font-size: 12px; font-weight: 600; color: #0f172a; }
.aura-step .sub { display: block; font-size: 10px; color: #64748b; margin-top: 2px; }

.aura-tooltip { position: relative; cursor: pointer; display: inline-block; margin-left: 4px; font-size: 0.85em; }
.aura-tooltip:hover::after { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background-color: #0f172a; color: #ffffff; padding: 6px 10px; border-radius: 4px; white-space: nowrap; font-size: 11px; font-weight: normal; z-index: 999; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

/* ==========================================================================
   AURA WHOLESALE - HIGH-END B2B SHOP & PRODUCT CARD REDESIGN
   ========================================================================== */

/* 1. Page Background & Structure */
body.woocommerce-shop, 
body.woocommerce-page {
    background-color: #f8fafc !important;
}

.woocommerce-shop .site-content,
.woocommerce-page .site-content {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 20px 25px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.woocommerce-shop #primary,
.woocommerce-page #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide any remaining native WC add-to-cart buttons just in case */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .button.product_type_simple,
.woocommerce ul.products li.product .button.product_type_variable {
    display: none !important;
}

/* 2. Top Hero Banner */
.aura-shop-hero-wrapper {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    margin-bottom: 25px !important;
}

.aura-shop-hero {
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 32px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.aura-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.aura-hero-title {
    font-size: 26px !important;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
}

.aura-hero-desc {
    font-size: 13px;
    color: #94a3b8;
    max-width: 650px;
    margin-bottom: 15px !important;
    line-height: 1.5;
}

.aura-hero-trust-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

/* 3. 2-Column B2B Layout */
.aura-b2b-shop-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    align-items: flex-start !important;
    width: 100% !important;
    clear: both !important;
}

/* Left Category Sidebar */
.aura-b2b-sidebar {
    flex: 0 0 270px !important;
    width: 270px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box !important;
}

.aura-sidebar-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 12px !important;
}

.aura-category-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.aura-category-list li.aura-cat-item {
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13px;
    font-weight: 500;
}

.aura-category-list li.aura-cat-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aura-category-list li.aura-cat-item a:hover,
.aura-category-list li.aura-cat-item.active a {
    color: #0056b3;
    font-weight: 700;
}

.aura-category-list li.aura-cat-item .count {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* SLEEK BLUE PILL BUTTON FOR VIEW MORE CATEGORIES */
.aura-toggle-wrapper {
    list-style: none !important;
    padding-top: 15px;
    text-align: center;
}

.aura-toggle-cats-btn {
    width: 100% !important;
    background: #f0f7ff !important;
    color: #0056b3 !important;
    border: 1px solid #bfdbfe !important;
    padding: 9px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.aura-toggle-cats-btn:hover {
    background: #0056b3 !important;
    color: #ffffff !important;
    border-color: #0056b3 !important;
}

/* Right Main Products Area */
.aura-b2b-main {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 4. PRODUCT GRID & CARDS REDESIGN */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1) !important;
    border-color: #cbd5e1 !important;
}

/* FIX: Image Uniformity restricted ONLY to WooCommerce Product Images */
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    width: 100% !important;
    height: 180px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
}

/* FIX: Reset WordPress Emojis back to text size */
.woocommerce ul.products li.product img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 .05em 0 .1em !important;
    vertical-align: -0.1em !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Wholesale Deal Tag */
.aura-sale-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Title Formatting (Clean 2-Line Truncation) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 8px 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 36px !important;
}

/* Pricing Formatting */
.woocommerce ul.products li.product .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0056b3 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.woocommerce ul.products li.product .price del {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: normal !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

/* Action Buttons Bar */
.aura-card-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.aura-quick-view-btn,
.aura-order-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.aura-quick-view-btn {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.aura-quick-view-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.aura-order-btn {
    background: #0056b3 !important;
    color: #ffffff !important;
    border: 1px solid #0056b3 !important;
}

.aura-order-btn:hover {
    background: #003d80 !important;
    border-color: #003d80 !important;
}

/* 5. Quick View Modal */
.aura-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.aura-modal-overlay.active { display: flex; }

.aura-modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.aura-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.aura-qv-product-wrapper { display: flex; gap: 25px; flex-wrap: wrap; }
.aura-qv-image { flex: 1; min-width: 200px; }
.aura-qv-details { flex: 1.5; min-width: 250px; }
.aura-qv-details h2 { font-size: 20px; margin-bottom: 10px; color: #0f172a; }
.aura-qv-price { font-size: 18px; font-weight: bold; color: #0056b3; margin-bottom: 12px; }
.aura-qv-excerpt { font-size: 13px; color: #475569; margin-bottom: 15px; line-height: 1.5; }
.aura-full-details-btn { display: inline-block; background: #0056b3 !important; color: #ffffff !important; padding: 10px 18px !important; border-radius: 6px !important; font-size: 13px !important; text-decoration: none !important; margin-top: 10px; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .woocommerce-shop .site-content,
    .woocommerce-page .site-content { padding: 15px !important; }
    .aura-b2b-shop-container { flex-direction: column !important; }
    .aura-b2b-sidebar { width: 100% !important; flex: none !important; }
}