/**
 * Little Blossoms - Custom CSS
 * Additional WooCommerce-specific overrides
 */

/* WooCommerce Quantity Input Override */
.quantity .qty {
    width: 2rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.quantity .minus,
.quantity .plus {
    width: 2.25rem !important;
    height: 2.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.875rem !important;
    color: #2C2C2C !important;
    cursor: pointer;
    transition: color 0.2s;
}
.quantity .minus:hover,
.quantity .plus:hover {
    color: #9D1A10 !important;
}

/* WooCommerce Tabs Override */
.woocommerce-tabs {
    border-top: 1px solid #e7e5e4;
}
.woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e7e5e4;
}
.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 1.25rem 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #a8a29e !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    transition: all 0.3s !important;
}
.woocommerce-tabs ul.tabs li a:hover {
    color: #9D1A10 !important;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #9D1A10 !important;
    border-bottom-color: #9D1A10 !important;
    background: none !important;
}
.woocommerce-tabs .panel {
    padding: 1.5rem 0 !important;
}
.woocommerce-tabs .panel h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

/* WooCommerce Cart Totals Override */
.cart_totals {
    border: none !important;
    padding: 0 !important;
}
.cart_totals h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}
.cart_totals table {
    border: none !important;
    width: 100%;
}
.cart_totals table th,
.cart_totals table td {
    border: none !important;
    padding: 0.5rem 0 !important;
    font-size: 0.875rem !important;
    background: none !important;
}
.cart_totals table th {
    font-weight: 400 !important;
    color: #a8a29e !important;
    text-align: left !important;
    padding-left: 0 !important;
}
.cart_totals table td {
    text-align: right !important;
    padding-right: 0 !important;
}
.cart_totals .order-total th,
.cart_totals .order-total td {
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-top: 2px solid #f5f5f4 !important;
    padding-top: 1rem !important;
}
.cart_totals .order-total td {
    color: #9D1A10 !important;
    font-size: 1.5rem !important;
}
.cart_totals .wc-proceed-to-checkout {
    padding: 0 !important;
}
.cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: none !important; /* We have our own checkout button */
}

/* WooCommerce Variation Swatches Override */
.variations_form .variations select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e7e5e4;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.875rem;
    background: #fff;
    margin-bottom: 0.75rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23a8a29e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.variations_form .variations label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    color: #2C2C2C !important;
}

/* Single Add to Cart Button */
.single_add_to_cart_button {
    width: 100% !important;
    height: 3.5rem !important;
    background: #9D1A10 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.15s ease !important;
    border: none !important;
    padding: 0 2rem !important;
}
.single_add_to_cart_button:hover {
    background: #D9261C !important;
    transform: scale(1.02) translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(157,26,16,0.3) !important;
}
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled {
    background: #a8a29e !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* WooCommerce Messages / Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
    background: #fff !important;
    border-radius: 1.5rem !important;
    border-left: 4px solid #9D1A10 !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 2rem !important;
    font-size: 0.875rem !important;
}
.woocommerce-message {
    border-left-color: #22c55e !important;
}
.woocommerce-error {
    border-left-color: #ef4444 !important;
}

/* WooCommerce Widget Styling */
.widget {
    font-size: 0.875rem;
}
.widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.widget ul li {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #f5f5f4;
}
.widget ul li a {
    color: #2C2C2C !important;
    transition: color 0.2s;
}
.widget ul li a:hover {
    color: #9D1A10 !important;
}
.widget ul li .count {
    color: #a8a29e;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Related Products */
.related.products > h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 2.5rem !important;
    margin-top: 3rem !important;
}
section.related.products {
    padding-top: 2rem;
}