/**
 * VapeSourcing Global Dark Theme
 * Applied to all pages for consistent styling
 */

/* ===== BASE STYLES ===== */
body {
    background: #ffffff !important;
}

/* ===== HEADER WARNING BAR ===== */
.header-warning {
    background: #1b1b1d !important;
    color: #ffffff !important;
    text-align: center;
    padding: 8px 0 !important;
    font-size: 12px !important;
}

.header-warning p {
    margin: 0 !important;
}

/* ===== TOP BANNER ===== */
.top-banner {
    background: linear-gradient(90deg, #ff6b35 0%, #ff4f6d 100%) !important;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 0 !important;
}

.top-banner a {
    color: #ffffff !important;
}

.top-banner strong {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== SITE HEADER ===== */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 15px 0 !important;
}

.site-header .logo-text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-decoration: none !important;
}

.site-header .main-nav ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px !important;
}

.site-header .main-nav a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
}

.site-header .main-nav a:hover {
    color: #ff6b35 !important;
}

.site-header .header-icon {
    color: #333 !important;
    text-decoration: none !important;
    margin-left: 20px !important;
}

/* ===== PRODUCT SECTION STYLES ===== */
.site-content {
    background: #ffffff !important;
}

/* Reset WooCommerce product grid - 4 columns on desktop */
.woocommerce ul.products,
.woocommerce-page ul.products,
.site-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Clear any float styles */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Product card styles */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.site-content ul.products li.product {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    text-align: center !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    min-width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Product image container */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a.img,
.site-content ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto 10px !important;
}

/* Product link */
.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a {
    text-decoration: none !important;
    display: block !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
}

/* Product price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #0fb37e !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: block !important;
    margin: 5px 0 !important;
}

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background: #1b1b1d !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    display: inline-block !important;
    margin-top: 10px !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background: #ff6b35 !important;
}

.site-content ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    border-color: #ff6b35 !important;
    box-shadow: 0 4px 12px rgba(255,107,53,0.15) !important;
}

/* Product image */
.site-content ul.products li.product img,
.woocommerce-page ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
}

/* Product title */
.site-content ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 10px 0 !important;
}

/* Product price */
.site-content ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #0fb37e !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Add to cart button */
.site-content ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background: #1b1b1d !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.site-content ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background: #ff6b35 !important;
}

/* ===== SECTION STYLES ===== */
.product-section {
    padding: 40px 0 !important;
}

.product-section:nth-child(odd) {
    background: #f8f8f8 !important;
}

.section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
}

.section-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.section-title a {
    color: #333 !important;
    text-decoration: none !important;
}

.section-code {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.section-code .discount {
    background: #0fb37e !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.section-code .code-text {
    color: #df280a !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* ===== SERVICE SECTION ===== */
.service-section {
    padding: 40px 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.service-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    text-align: center !important;
}

.service-item {
    padding: 20px !important;
}

.service-icon {
    font-size: 40px !important;
    margin-bottom: 10px !important;
}

.service-item h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 10px 0 5px !important;
}

.service-item p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* ===== SMALL BANNER SECTION ===== */
.small-banner-section {
    padding: 40px 0 !important;
    background: #ffffff !important;
}

.banner-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.banner-item {
    background: #f5f5f5 !important;
    padding: 40px 20px !important;
    text-align: center !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.banner-item:hover {
    background: #ff6b35 !important;
}

.banner-item:hover h3,
.banner-item:hover p {
    color: #ffffff !important;
}

.banner-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 5px !important;
}

.banner-content p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4f6d 100%) !important;
    padding: 60px 0 !important;
    text-align: center !important;
}

.newsletter-content h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
}

.newsletter-content p {
    font-size: 16px !important;
    color: #ffffff !important;
    margin: 0 0 30px !important;
}

.newsletter-form {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.newsletter-form input {
    flex: 1 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 14px !important;
}

.newsletter-form button {
    background: #1b1b1d !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.newsletter-form button:hover {
    background: #333 !important;
}

/* ===== FOOTER ===== */
/* Hide Storefront default footer */
.site-footer .col-full > .footer-top,
.site-footer .col-full > .footer-links,
.site-footer .col-full > .footer-warning,
.site-footer .col-full > .footer-bottom {
    display: none !important;
}

.site-footer {
    background: #1b1b1d !important;
    color: #ffffff !important;
    padding: 40px 0 20px !important;
}

.site-footer a {
    color: #888 !important;
    text-decoration: none !important;
}

.site-footer a:hover {
    color: #ff6b35 !important;
}

.footer-top,
.footer-links {
    border-bottom: 1px solid #333 !important;
    padding-bottom: 30px !important;
    margin-bottom: 30px !important;
}

.footer-row {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}

.footer-col h4 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 0 15px !important;
}

.footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-col ul li {
    margin-bottom: 8px !important;
}

.footer-warning {
    background: #000 !important;
    color: #888 !important;
    text-align: center !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

.footer-warning strong {
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center !important;
    padding-top: 20px !important;
    border-top: 1px solid #333 !important;
    color: #666 !important;
    font-size: 13px !important;
}

/* ===== CATEGORY ARCHIVE HEADER ===== */
.woocommerce-archive-header,
.woocommerce-page .page-title {
    background: #f8f8f8 !important;
    padding: 30px 0 !important;
    text-align: center !important;
}

.woocommerce-page .page-title h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .site-content ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .site-header .main-nav ul {
        display: none !important;
    }

    .service-grid {
        grid-template-columns: 1fr !important;
    }

    .banner-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .site-content ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .newsletter-form {
        flex-direction: column !important;
    }

    .footer-row {
        flex-direction: column !important;
    }
}
