/*
Theme Name: MBS CCTV
Theme URI: https://mbscctv.com
Author: MBS CCTV
Author URI: https://mbscctv.com
Description: A modern security system distributor theme built with Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: mbscctv
Tags: security, tailwind, custom-menu, featured-images, woocommerce
*/

/* ========================================
   WooCommerce Overrides
   ======================================== */

/* Sorting dropdown */
.woocommerce-ordering select.orderby {
    background-color: #f5f4f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1e293b;
    appearance: auto;
    cursor: pointer;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: #e43a35;
    box-shadow: 0 0 0 2px rgba(228, 58, 53, 0.2);
}

/* Result count */
.woocommerce-result-count {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

/* Price styling */
.woocommerce .price {
    font-family: 'Inter', sans-serif;
}

.woocommerce .price del {
    color: #94a3b8;
    font-size: 0.8em;
    font-weight: 500;
}

.woocommerce .price ins {
    text-decoration: none;
    color: #e43a35;
    font-weight: 900;
}

/* Single product: Add to Cart form */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.woocommerce div.product form.cart .quantity {
    margin: 0;
}

.woocommerce div.product form.cart .quantity .qty {
    background-color: #f5f4f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.65rem 0.5rem;
    width: 4.5rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-align: center;
}

.woocommerce div.product form.cart .quantity .qty:focus {
    outline: none;
    border-color: #e43a35;
    box-shadow: 0 0 0 2px rgba(228, 58, 53, 0.2);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #e43a35;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: rgba(228, 58, 53, 0.9);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.25rem;
    border: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #e43a35;
    color: #fff;
    border-color: #e43a35;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #e43a35;
    color: #fff;
    border-color: #e43a35;
    font-weight: 700;
}

/* WooCommerce notices / messages */
.woocommerce-message,
.woocommerce-info {
    border-top-color: #e43a35 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #e43a35 !important;
}

/* Hide default WC breadcrumb (we use custom) */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* Star rating */
.woocommerce .star-rating {
    color: #f59e0b;
}
