/*
 Theme Name:   Flatsome Child
 Theme URI:    https://betavape.com
 Description:  BetaVape Child Theme for Flatsome
 Author:       BetaVape
 Author URI:   https://betavape.com
 Template:     flatsome
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  flatsome-child
*/

/* ==========================================================================
   BETAVAPE CUSTOM STYLES
   Add your custom CSS below this line
   ========================================================================== */

/* ============================================
   MOVED FROM MU-PLUGINS
   ============================================ */

/* === BETAVAPE SALE STYLING v7.0 === */

/* Hide default badge */
.onsale, .woocommerce span.onsale, .badge-inner.secondary {
  display: none !important;
}

/* === PRICE CONTAINER === */
.products .price,
.product-small .price,
.box-text .price,
.product-info .price {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

/* === DISCOUNT BADGE — CLEAN MINIMAL === */
.sale-badge {
  background: #111 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.sale-badge .discount-pct {
  color: #00e676 !important;
  font-weight: 700 !important;
}

.sale-badge .fire-icon {
  display: none !important;
}

/* === OLD PRICE — SIMPLE LINE === */
.products .price del,
.product-small .price del,
.box-text .price del,
.product-info .price del {
  color: #999 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  text-decoration-color: #e53935 !important;
  text-decoration-thickness: 2px !important;
}

/* === NEW PRICE — BOLD & CLEAN === */
.products .price ins,
.product-small .price ins,
.box-text .price ins,
.product-info .price ins {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.products .product:hover .price ins,
.product-small:hover .price ins {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.35) !important;
}

/* === SAVINGS TAG === */
.savings-tag {
  background: #f5f5f5 !important;
  color: #00c853 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* === SINGLE PRODUCT PAGE === */
.summary .price {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 20px 0 !important;
  padding: 24px !important;
  background: #fafafa !important;
  border-radius: 12px !important;
  border: 1px solid #eee !important;
}

.summary .sale-badge {
  font-size: 12px !important;
  padding: 6px 14px !important;
}

.summary .price del {
  font-size: 18px !important;
}

.summary .price ins {
  font-size: 28px !important;
  padding: 14px 36px !important;
  border-radius: 10px !important;
}

/* === BETAVAPE PRODUCT ENHANCEMENTS (Mobile First) === */

/* === DELIVERY ESTIMATE === */
.bv-delivery-estimate {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 13px;
    color: #166534;
}

.bv-delivery-estimate .bv-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.bv-delivery-estimate .bv-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bv-delivery-estimate .bv-title {
    font-weight: 700;
    font-size: 13px;
    color: #15803d;
}

.bv-delivery-estimate .bv-subtitle {
    font-size: 11px;
    color: #22c55e;
    font-weight: 500;
}

/* === LOW STOCK WARNING === */
.bv-stock-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 12px;
    color: #991b1b;
    animation: stockPulse 2s ease-in-out infinite;
}

@keyframes stockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

.bv-stock-warning .bv-icon {
    font-size: 18px;
    animation: alertBounce 1s ease-in-out infinite;
}

@keyframes alertBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bv-stock-warning .bv-text {
    font-weight: 600;
}

.bv-stock-warning .bv-count {
    background: #dc2626;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 3px;
}

/* === IN STOCK BADGE === */
.bv-in-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 11px;
    color: #15803d;
    font-weight: 600;
    margin: 6px 0;
}

.bv-in-stock .bv-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === TRUST LINE === */
.bv-trust-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
    font-size: 10px;
    color: #666;
}

.bv-trust-line span {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* === MOBILE & DESKTOP BREAKPOINTS === */
@media (max-width: 768px) {
  .sale-badge { 
    font-size: 9px !important; 
    padding: 4px 8px !important;
  }
  .products .price del { 
    font-size: 12px !important; 
  }
  .products .price ins { 
    font-size: 14px !important; 
    padding: 8px 16px !important;
  }
  .summary .price {
    padding: 16px !important;
  }
  .summary .price ins { 
    font-size: 22px !important; 
    padding: 12px 28px !important;
  }
}

@media (min-width: 768px) {
    .bv-delivery-estimate {
        padding: 14px 18px;
        gap: 12px;
        border-radius: 10px;
        font-size: 14px;
    }
    
    .bv-delivery-estimate .bv-icon {
        font-size: 24px;
    }
    
    .bv-delivery-estimate .bv-title {
        font-size: 14px;
    }
    
    .bv-delivery-estimate .bv-subtitle {
        font-size: 12px;
    }
    
    .bv-stock-warning {
        padding: 12px 16px;
        gap: 10px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .bv-stock-warning .bv-icon {
        font-size: 20px;
    }
    
    .bv-stock-warning .bv-count {
        padding: 2px 8px;
        font-size: 12px;
    }
    
    .bv-in-stock {
        padding: 6px 14px;
        font-size: 12px;
        gap: 6px;
    }
    
    .bv-in-stock .bv-dot {
        width: 8px;
        height: 8px;
    }
    
    .bv-trust-line {
        gap: 15px;
        font-size: 11px;
        padding: 10px 0;
        margin: 12px 0;
    }
}

/* === MINIMIZE BREADCRUMB SPACING (User Request) === */
.product-page-title .page-title-inner {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: 20px !important;
}

/* Also reduce mobile spacing further if needed */
@media (max-width: 768px) {
    .product-page-title .page-title-inner {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: 0 !important;
    }
}

/* ============================================
   MOBILE BUTTONS & LAYOUT IMPROVEMENTS
   ============================================ */

/* Make Add to Cart & Buy Now HUGE on Mobile */
@media (max-width: 768px) {
    /* Stack buttons vertically */
    .product-info .cart {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Make buttons full width and tall */
    .single_add_to_cart_button,
    .ux-buy-now-button {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 0 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        border-radius: 8px !important;
        height: auto !important;
        min-height: 55px !important;
        flex: none !important; /* Override flex sizing */
    }
    
    /* Ensure no weird margins */
    .quantity {
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    .quantity .minus, .quantity .plus, .quantity .qty {
        height: 45px !important;
    }

    /* Add spacing between buttons and enhancements */
    .bv-delivery-estimate {
        margin-top: 20px !important;
    }
}

/* Enhancements Polish (Mobile & Desktop) */
.bv-delivery-estimate {
    border: none !important;
    background: #f0fff4 !important; /* Lighter green */
    border-left: 4px solid #00c853 !important; /* Green accent bar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
}

.bv-stock-warning {
    border: none !important;
    background: #fff5f5 !important;
    border-left: 4px solid #e53935 !important; /* Red accent bar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
}

.bv-delivery-estimate .bv-title,
.bv-stock-warning .bv-text {
    font-size: 13px !important;
}

/* Cairo/Giza Special Message */
.bv-cairo-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}
