/*
Theme Name: Woocom
Theme URI: https://example.com/woocom
Author: Antigravity
Author URI: https://example.com/
Description: A custom WooCommerce theme designed to clone the ghorerbazar.com experience for grocery selling.
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: woocom
Tags: woocommerce, grocery, e-commerce, custom-colors, custom-menu, featured-images, responsive-layout, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* --- Basic Reset & Base Styles --- */
body {
    font-family: 'Noto Serif Bengali', serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* --- Logo Size Fix --- */
.site-branding img {
    height: 50px !important; /* Slightly smaller for cleaner look */
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

@media (max-width: 1024px) {
    .site-branding img {
        height: 36px !important;
        max-width: 160px !important;
    }
}

/* --- Action Button Gap Fix --- */
/* Hide WooCommerce default View Cart link after AJAX add to cart */
.added_to_cart,
.woocommerce-message {
    display: none !important;
}

.single-product-container form.cart {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.single-product-container .grid {
    gap: 6px !important; /* Vertical gap reduction */
}

@media (max-width: 768px) {
    .single-product-container .grid {
        gap: 8px !important;
    }
}
/* --- Price Font Size Adjustments --- */
#product-price del,
#sticky-price-display del {
    font-size: 0.6em !important; /* Smaller regular price */
    color: #9ca3af !important; /* Muted gray */
    font-weight: normal !important;
    margin-right: 4px !important;
    text-decoration: line-through !important; /* Explicitly ensure it's cut */
}

#product-price ins,
#sticky-price-display ins {
    font-size: 1.1em; /* Larger sale price */
    text-decoration: none;
    font-weight: 800;
}

#product-price .woocommerce-Price-amount,
#sticky-price-display .woocommerce-Price-amount {
    display: inline-block;
}

/* --- Shop Archive Styles --- */
.shop-sidebar .widget-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.shop-sidebar .widget.is-collapsed .widget-content {
    max-height: 0;
}

.shop-sidebar .widget svg {
    transition: transform 0.3s ease;
}

.shop-sidebar .widget.is-collapsed svg {
    transform: rotate(90deg);
}

/* Custom Checkbox Styling */
.shop-sidebar input[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: #f39200;
    width: 1.15em;
    height: 1.15em;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.shop-sidebar input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #f39200;
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.shop-sidebar input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.shop-sidebar input[type="checkbox"]:checked {
    border-color: #f39200;
}

/* WooCommerce Price Filter Slider Customization */
.widget_price_filter .price_slider {
    height: 4px !important;
    background: #f3f4f6 !important;
    border: none !important;
    margin: 1.5rem 0.5rem !important;
}

.widget_price_filter .ui-slider-range {
    background: #f39200 !important;
}

.widget_price_filter .ui-slider-handle {
    width: 1.25rem !important;
    height: 1.25rem !important;
    background: #fff !important;
    border: 3px solid #f39200 !important;
    border-radius: 50% !important;
    top: -0.5rem !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
}

/* Breadcrumb Styling */
.woocommerce-breadcrumb {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.woocommerce-breadcrumb a {
    color: #6b7280;
    transition: color 0.2s;
}

.woocommerce-breadcrumb a:hover {
    color: #f39200;
}

/* Sorting Dropdown Styling */
.catalog-ordering-wrapper select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-ordering-wrapper select:focus {
    outline: none;
    border-color: #f39200;
    box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.1);
}

/* Fix Sort By Alignment */
.woocommerce-ordering {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.catalog-ordering-wrapper {
    display: flex;
    align-items: center;
}

.woocommerce-result-count {
    margin: 0 !important;
    padding: 0 !important;
}

/* AJAX Add to Cart Loading State */
.add_to_cart_button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.add_to_cart_button.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* --- Login & My Account Styles --- */
.woocommerce-account .woocommerce {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 20px;
}

/* If both login and register are enabled */
@media (min-width: 992px) {
    .woocommerce-account .woocommerce:has(.u-columns.col2-set) {
        max-width: 850px;
    }
}

.woocommerce-account h2 {
    font-size: 22px;
    font-weight: 800;
    color: #253D4E;
    margin-bottom: 30px;
    text-align: center;
}

.woocommerce-form-login, 
.woocommerce-form-register,
.woocommerce-ResetPassword {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 10px 40px rgba(37, 61, 78, 0.05) !important;
}

.u-columns.col2-set {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .u-columns.col2-set {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce-form-row {
    margin-bottom: 18px !important;
}

.woocommerce-form-row label {
    display: block;
    font-weight: 700;
    color: #253D4E;
    margin-bottom: 6px;
    font-size: 13px;
}

.woocommerce-Input {
    width: 100% !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box;
    color: #253D4E;
}

.woocommerce-Input:focus {
    border-color: #f39200 !important;
    box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.1);
}

.woocommerce-button.button {
    width: 100% !important;
    background: #f39200 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 15px !important;
    margin-top: 5px;
}

.woocommerce-button.button:hover {
    background: #D98300 !important;
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.25);
}

.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.woocommerce-form-login__rememberme input {
    width: 14px;
    height: 14px;
    accent-color: #f39200;
    cursor: pointer;
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.woocommerce-LostPassword a {
    color: #f39200;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.woocommerce-LostPassword a:hover {
    color: #D98300;
    text-decoration: underline;
}

/* My Account Dashboard Styles */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.woocommerce-MyAccount-navigation li {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 8px 18px;
    color: #253D4E;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation li.is-active,
.woocommerce-MyAccount-navigation li:hover {
    background: #f39200;
    border-color: #f39200;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li:hover a {
    color: #fff;
}

.woocommerce-MyAccount-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    color: #475569;
}

/* --- Theme Styles End --- */


