/* ============================================================
   AFTAB TEA CO. - FULLY RESPONSIVE SHOP OVERRIDE
   ============================================================ */

/* 1. Header & Breadcrumbs */
.woocommerce-breadcrumb {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground)) !important;
    margin-bottom: 10px;
}

.woocommerce-products-header__title.page-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300;
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 30px;
}

/* 2. Responsive Grid Layout */
ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 40px 0 !important;
    list-style: none !important;
}

ul.products::before, ul.products::after { display: none !important; } /* Clear floats */

/* Default: 4 Columns (Desktop) */
ul.products li.product {
    flex: 1 1 calc(25% - 25px) !important;
    min-width: 250px;
    max-width: calc(25% - 19px);
    background: linear-gradient(135deg, hsla(var(--glass-bg) / 0.85), hsla(var(--glass-bg) / 0.65)) !important;
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid hsla(var(--glass-border) / 0.8) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
    box-shadow: 0 8px 32px rgba(var(--shadow-dark), 0.08) !important;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--shadow-dark), 0.12) !important;
}

/* 3. Thumbnail (Inset Style) */
.astra-shop-thumbnail-wrap {
    background: linear-gradient(145deg, hsl(40 25% 93%), hsl(40 30% 96%)) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: inset 0 4px 12px rgba(var(--shadow-dark), 0.1) !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
    position: relative;
}
.astra-shop-thumbnail-wrap img{
margin-bottom:0px !important;
}
/* 4. Action Row (Quantity + Add to Cart) */
.st-action-wrapper {
    display: flex !important;
flex-direction:column;    
align-items: center !important;
    gap: 10px !important;
    margin-top: auto !important; /* Pushes buttons to bottom of card */
    padding-top: 15px;
    width: 100% !important;
}

.st-qty-container {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border: 1px solid hsla(var(--glass-border) / 1);
    border-radius: 12px;
    height: 44px;
    padding: 10px;
    flex-shrink: 0;
box-shadow:inset 0 4px 12px rgba(var(--shadow-dark), .15), inset 0 1px 4px rgba(var(--shadow-dark), 0.5), 0 1px 0 rgba(255, 255, 255, .8) !important;

}

.st-qty-container button {
    width: 46px !important;
    height: 28px !important;
    border: none !important;
    background: white;
    cursor: pointer !important;
    font-weight: bold;
    padding: 4px 19px;
    font-size: 16px;
    color: hsl(var(--foreground));
	    box-shadow: 0 15px 20px -15px rgba(var(--shadow-dark), .15), 0 15px 30px -10px rgba(var(--shadow-dark), .25), 0 4px 6px rgba(var(--shadow-dark), 0.41) !important;
    border-radius: 8px;


}

.st-qty-input {
    width: 28px !important;
    border: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    background: transparent !important;
    color: hsl(var(--foreground)) !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    
}

.add_to_cart_button {
    flex: 1 !important;
    height: 44px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border-radius: 12px !important;
    text-transform: uppercase;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    transition: 0.3s !important;
}

.add_to_cart_button:hover { background: #000 !important; }

/* 5. Typography */
.ast-woo-product-category {
    font-size: 10px !important;
    color: hsl(var(--accent)) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.25rem !important;
    margin: 8px 0 !important;
    color: hsl(var(--foreground)) !important;
}

.price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
}

/* 6. Floating Bag Icon */
.ast-on-card-button.ast-select-options-trigger {
    background: hsla(var(--glass-bg) / 0.8) !important;
    backdrop-filter: blur(8px);
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 10px !important;
    right: 10px !important;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet View (2 Columns) */
@media (max-width: 1024px) {
    ul.products li.product {
        flex: 1 1 calc(50% - 25px) !important;
        max-width: calc(50% - 13px);
    }
}

/* Mobile View (1 Column) */
@media (max-width: 600px) {
    .ast-woocommerce-container { padding: 20px 10px; }
    
    ul.products { gap: 20px !important; }

    ul.products li.product {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
    }

    /* Stack buttons if they are too wide on mobile */
    .st-action-wrapper {
        flex-wrap: wrap;
    }
    
    .st-qty-container {

                justify-content: center;

    }
    
    .add_to_cart_button {
        width: 100%;
        margin-top: 5px;
    }
}