/*
Theme Name: Swastik Rakhi and Bindi
Theme URI: https://swastikrakhi.com
Author: Bansal
Author URI: https://swastikrakhi.com
Description: Premium Full Site Editing (FSE) theme for Swastik Rakhi and Bindi. Features include WooCommerce support, Hero Slider, Lead Capture Popups, and fully editable block templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: swastik-rakhi
Tags: full-site-editing, custom-colors, custom-logo, editor-style, e-commerce
*/

/* Reset & Basic Styles */
body {
    font-family: var(--wp--preset--font-family--inter, sans-serif);
    margin: 0;
    padding: 0;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
}

/* Modal / Popup Styles for Lead Capture */
.swastik-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.swastik-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.swastik-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swastik-popup-overlay.active .swastik-popup-content {
    transform: translateY(0);
}

.swastik-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 28px;
    color: #666;
    transition: color 0.2s;
}

.swastik-popup-close:hover {
    color: #000;
}

.swastik-lead-form input,
.swastik-lead-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.swastik-lead-form input:focus,
.swastik-lead-form select:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
}

.swastik-lead-form button {
    width: 100%;
    padding: 16px;
    background-color: var(--wp--preset--color--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.swastik-lead-form button:hover {
    background-color: #b0181d;
    /* Darker red */
    transform: translateY(-2px);
}

/* Category Cards Hover Effect */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-card h3 {
    margin: 20px 0;
    font-size: 1.5rem;
    color: var(--wp--preset--color--contrast);
}

/* Trust Stats */
.trust-stat {
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-stat:last-child {
    border-right: none;
}

.trust-stat h3 {
    font-size: 3rem;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 10px;
}

.trust-stat p {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

/* 2x2 Grid Layout for Bestsellers Section */
@media (min-width: 768px) {
    .category-card-grid.wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .category-card-grid .wp-block-column {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* 
 * WooCommerce FSE Catalog Mode Override
 * Hides all pricing elements globally since YITH 
 * catalog mode often conflicts with pure block themes. 
 */
.price,
.amount,
.woocommerce-Price-amount,
.wp-block-woocommerce-product-price,
.woocommerce-variation-price,
.product-price {
    display: none !important;
}