/*
Theme Name: Fine Art by Adnan Saleem
Theme URI: https://asaleemart.com
Author: Adnan Saleem
Author URI: https://asaleemart.com
Description: Bespoke classic WordPress theme for Fine Art by Adnan Saleem.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asaleem-art
*/

/* Custom theme styles will reside here */

/* WooCommerce Dark Mode Overrides & Aesthetic Resets */
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background-color: #ffffff !important;
    color: #09090b !important;
    border-radius: 0 !important;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
    background-color: #e4e4e7 !important;
    color: #09090b !important;
}

/* WooCommerce Quantity Input Resets & Clean Alignment */
.woocommerce .quantity,
.woocommerce div.product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce .quantity .qty,
.woocommerce div.product form.cart .quantity .qty {
    display: block !important;
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    line-height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield !important;
}

.woocommerce .quantity .qty:focus,
.woocommerce div.product form.cart .quantity .qty:focus {
    border-color: #fbbf24 !important;
    outline: none !important;
}

.woocommerce .quantity input::-webkit-outer-spin-button,
.woocommerce .quantity input::-webkit-inner-spin-button,
.woocommerce div.product form.cart .quantity input::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}


.woocommerce table.variations {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    border-collapse: collapse !important;
}

.woocommerce table.variations select {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #f4f4f5 !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 0 !important;
}

.woocommerce table.variations select:focus {
    border-color: #fbbf24 !important;
    outline: none !important;
}

.woocommerce table.variations th,
.woocommerce table.variations td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Single Product Dynamic Variation Price & Description */
.woocommerce div.product .single_variation {
    margin-bottom: 1.25rem;
}

.woocommerce div.product .single_variation .woocommerce-variation-price span.price {
    color: #fbbf24 !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
}

.woocommerce div.product .woocommerce-variation-availability p.stock {
    color: #a1a1aa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Single Product Details Typography */
.woocommerce div.product .product_title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .woocommerce div.product .product_title {
        font-size: 2.5rem;
    }
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #fbbf24 !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.025em !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.75;
}

.woocommerce div.product .product_meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
    border-top: 1px solid #27272a;
    padding-top: 1rem;
}

.woocommerce div.product .product_meta a {
    color: #d4d4d8;
}

.woocommerce div.product .product_meta a:hover {
    color: #fbbf24;
}

/* Footer Navigation Link Styling */
.site-footer a {
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fbbf24 !important;
}

/* ==========================================================================
   WooCommerce Checkout: Modern Block Checkout & Classic Form Dark Theme
   ========================================================================== */

/* Gutenberg & WooCommerce Blocks CSS Custom Properties Override */
:root,
.wc-block-checkout,
.wc-block-checkout *,
.wc-block-components-form,
.wc-block-components-address-form,
.wc-block-components-combobox,
.wc-block-components-select-input,
.wc-block-components-country-input,
.wc-block-components-state-input {
    --wp-components-color-background: #18181b !important;
    --wp-components-color-foreground: #f4f4f5 !important;
    --wp-components-input-control-background: #18181b !important;
    --wp-components-input-control-border-color: #3f3f46 !important;
    --wp-components-input-control-text-color: #f4f4f5 !important;
    --wp-components-input-control-placeholder-color: #71717a !important;
}

/* 1. Modern WooCommerce Block Checkout (Floating Labels & Sizing) */
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-combobox-control,
.wc-block-components-combobox-control *,
.wc-block-components-combobox .components-combobox-control,
.wc-block-components-combobox .components-input-control__container,
.wc-block-components-combobox .components-input-control__backdrop,
.wc-block-components-combobox .components-base-control,
.wc-block-components-combobox .components-base-control__field,
.components-input-control__backdrop,
.components-input-control__container,
.wc-block-components-country-input,
.wc-block-components-country-input *,
.wc-block-components-state-input,
.wc-block-components-state-input *,
.wc-block-components-select-input,
.wc-block-components-select-input *,
.wc-block-components-select-input__wrapper,
.wc-block-components-select-input select,
.wc-block-components-textarea {
    background: #18181b !important;
    background-color: #18181b !important;
    border-color: #3f3f46 !important;
    color: #f4f4f5 !important;
    box-sizing: border-box !important;
}

.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-select-input,
.wc-block-components-textarea {
    position: relative !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 2px !important;
    margin-bottom: 0.875rem !important;
    min-height: 56px !important;
}

.wc-block-components-text-input:focus-within,
.wc-block-components-combobox:focus-within,
.wc-block-components-country-input:focus-within,
.wc-block-components-state-input:focus-within,
.wc-block-components-select-input:focus-within,
.wc-block-components-textarea:focus-within {
    border-color: #fbbf24 !important;
}

/* Combobox Chevron / Toggle Buttons */
.wc-block-components-combobox button.components-button,
.wc-block-components-combobox .components-combobox-control__toggle,
.wc-block-components-combobox .components-input-control__suffix,
.wc-block-components-select-input svg,
.wc-block-components-combobox svg {
    background: transparent !important;
    background-color: transparent !important;
    color: #a1a1aa !important;
    fill: currentColor !important;
    border: none !important;
}

.wc-block-components-combobox button.components-button:hover,
.wc-block-components-combobox .components-combobox-control__toggle:hover {
    color: #fbbf24 !important;
}


/* Floating Label Positioning (Kept distinctly at the top so it never overlaps input text) */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-country-input label,
.wc-block-components-state-input label,
.wc-block-components-textarea label {
    position: absolute !important;
    top: 0.35rem !important;
    left: 0.85rem !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #a1a1aa !important;
    pointer-events: none !important;
    z-index: 2 !important;
    line-height: 1 !important;
    transform: none !important;
    transition: color 0.15s ease !important;
}

.wc-block-components-text-input:focus-within label,
.wc-block-components-combobox:focus-within label,
.wc-block-components-country-input:focus-within label,
.wc-block-components-state-input:focus-within label,
.wc-block-components-textarea:focus-within label {
    color: #fbbf24 !important;
}

/* Input Fields inside Block Checkout (Text strictly padded below the top label) */
.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-combobox-control input,
.wc-block-components-combobox input,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-textarea textarea {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #f4f4f5 !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    padding-top: 1.45rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Combobox Dropdown Suggestions Menu (Country & Province Dropdowns) */
.components-combobox-control__suggestions-container,
.components-combobox-control__suggestions-list,
.wc-block-components-combobox .components-combobox-control__suggestions-list,
.components-form-token-field__suggestions-list,
.wc-block-components-combobox-control__suggestions-list,
.components-popover.components-combobox-control__suggestions-popover .components-popover__content {
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #f4f4f5 !important;
    border-radius: 2px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85) !important;
}

.components-combobox-control__suggestion,
.components-combobox-control__suggestions-list li,
.components-form-token-field__suggestion {
    color: #d4d4d8 !important;
    background-color: transparent !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
}

.components-combobox-control__suggestion:hover,
.components-combobox-control__suggestion.is-selected,
.components-combobox-control__suggestions-list li:hover,
.components-combobox-control__suggestions-list li.is-selected {
    background-color: #27272a !important;
    color: #fbbf24 !important;
}


.wc-block-components-textarea textarea {
    height: auto !important;
    min-height: 90px !important;
}


/* Block Checkout Step Headers & Section Titles */
.wc-block-components-checkout-step__title,
.wc-block-components-title {
    color: #ffffff !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 1.1rem !important;
}

.wc-block-components-checkout-step__description {
    color: #a1a1aa !important;
    font-size: 0.85rem !important;
}

/* Block Order Summary Sidebar Card */
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wc-block-components-panel {
    background-color: #121215 !important;
    border: 1px solid #27272a !important;
    border-radius: 2px !important;
    color: #d4d4d8 !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__title {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
}

.wc-block-components-totals-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item__value {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

/* Place Order Action Button */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wp-element-button {
    background-color: #ffffff !important;
    color: #09090b !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.875rem !important;
    padding: 1rem 2rem !important;
    border-radius: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wp-element-button:hover {
    background-color: #fbbf24 !important;
    color: #09090b !important;
}

/* Notice Banners in Block Checkout */
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning,
.wc-block-components-notice-banner.is-success {
    background-color: #18181b !important;
    border: 1px solid #27272a !important;
    color: #e4e4e7 !important;
    border-radius: 2px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.wc-block-components-notice-banner.is-error {
    border-left: 4px solid #ef4444 !important;
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
    border-left: 4px solid #fbbf24 !important;
}

.wc-block-components-notice-banner__content {
    color: #e4e4e7 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

.wc-block-components-notice-banner svg {
    fill: currentColor !important;
}

.wc-block-components-notice-banner.is-error svg {
    color: #ef4444 !important;
}

.wc-block-components-notice-banner.is-info svg,
.wc-block-components-notice-banner.is-warning svg {
    color: #fbbf24 !important;
}

/* Checkboxes in Block Checkout */
.wc-block-components-checkbox .wc-block-components-checkbox__input {
    accent-color: #fbbf24 !important;
    width: 1.1rem !important;
    height: 1.1rem !important;
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 2px !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__label {
    color: #a1a1aa !important;
    font-size: 0.85rem !important;
}

/* Order Summary Thumbnail & Quantity Badge */
.wc-block-components-order-summary-item__image {
    position: relative !important;
    background-color: #09090b !important;
    border: 1px solid #27272a !important;
    border-radius: 2px !important;
}

.wc-block-components-order-summary-item__quantity {
    background-color: #27272a !important;
    color: #ffffff !important;
    border: 1px solid #3f3f46 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

/* Coupon Form & Button */
.wc-block-components-totals-coupon__button {
    color: #fbbf24 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.wc-block-components-totals-coupon__button:hover {
    color: #fde68a !important;
    text-decoration: underline !important;
}

.wc-block-components-totals-coupon__form .wc-block-components-text-input {
    min-height: 48px !important;
}

.wc-block-components-totals-coupon__form input {
    height: 48px !important;
    min-height: 48px !important;
}

/* Express Checkout Separator */
.wc-block-components-express-checkout-separator {
    color: #71717a !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
}

.wc-block-components-express-checkout-separator::before,
.wc-block-components-express-checkout-separator::after {
    border-color: #27272a !important;
}

/* 2. Classic WooCommerce Checkout Fallback */
.woocommerce form.checkout .form-row {
    margin-bottom: 1.25rem !important;
}

.woocommerce form.checkout .form-row label {
    display: block !important;
    color: #a1a1aa !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 500 !important;
    margin-bottom: 0.35rem !important;
}

.woocommerce form.checkout .form-row input.input-text,
.woocommerce form.checkout .form-row textarea,
.woocommerce form.checkout .form-row select {
    background-color: #18181b !important;
    border: 1px solid #3f3f46 !important;
    color: #f4f4f5 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0 !important;
    font-size: 0.875rem !important;
    width: 100% !important;
}

.woocommerce form.checkout .form-row input:focus,
.woocommerce form.checkout .form-row textarea:focus,
.woocommerce form.checkout .form-row select:focus {
    border-color: #fbbf24 !important;
    outline: none !important;
}

.woocommerce #place_order {
    background-color: #ffffff !important;
    color: #09090b !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.875rem !important;
    padding: 1rem 2rem !important;
    width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 1.25rem !important;
}

.woocommerce #place_order:hover {
    background-color: #fbbf24 !important;
    color: #09090b !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    background-color: #18181b !important;
    color: #d4d4d8 !important;
    border-top: 3px solid #fbbf24 !important;
    border-left: 1px solid #27272a !important;
    border-right: 1px solid #27272a !important;
    border-bottom: 1px solid #27272a !important;
    border-radius: 0 !important;
}

.woocommerce-error {
    border-top-color: #ef4444 !important;
}

.woocommerce-info a,
.woocommerce-message a {
    color: #fbbf24 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   Collector Account & Dashboard Dark Mode Aesthetics
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}


.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.35rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    text-decoration: none !important;
    white-space: nowrap !important;
}

.woocommerce-account .woocommerce-MyAccount-content mark {
    background: transparent !important;
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

.woocommerce-account table.account-orders-table th,
.woocommerce-account table.account-orders-table td {
    padding: 0.875rem 1rem !important;
}

/* ==========================================================================
   Primary, Footer & Mobile Navigation Menu Styles
   ========================================================================== */
#desktop-primary-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#desktop-primary-menu li a {
    color: #a1a1aa !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#desktop-primary-menu li a:hover,
#desktop-primary-menu li.current-menu-item > a,
#desktop-primary-menu li.current-menu-ancestor > a {
    color: #ffffff !important;
}

#footer-primary-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer-primary-menu li a {
    color: #a1a1aa !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#footer-primary-menu li a:hover,
#footer-primary-menu li.current-menu-item > a {
    color: #fbbf24 !important;
}

#mobile-primary-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mobile-primary-menu li a {
    color: #d4d4d8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#mobile-primary-menu li a:hover,
#mobile-primary-menu li.current-menu-item > a {
    color: #fbbf24 !important;
}

/* ==========================================================================
   Shop / Catalog Result Count & Orderby Toolbar
   ========================================================================== */
.shop-catalog-wrapper .catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.shop-catalog-wrapper .woocommerce-result-count,
.woocommerce .woocommerce-result-count {
    float: none !important;
    margin: 0 !important;
    color: #a1a1aa !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
}

.shop-catalog-wrapper .woocommerce-ordering,
.woocommerce .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

.shop-catalog-wrapper .woocommerce-ordering select.orderby,
.woocommerce .woocommerce-ordering select.orderby {
    background-color: #18181b !important;
    color: #e4e4e7 !important;
    border: 1px solid #3f3f46 !important;
    padding: 0.55rem 2.2rem 0.55rem 0.875rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fbbf24' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 0.875rem 0.875rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.shop-catalog-wrapper .woocommerce-ordering select.orderby:focus,
.woocommerce .woocommerce-ordering select.orderby:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 1px #fbbf24 !important;
}

.shop-catalog-wrapper .woocommerce-ordering select.orderby option,
.woocommerce .woocommerce-ordering select.orderby option {
    background-color: #18181b !important;
    color: #e4e4e7 !important;
}

/* Dynamic Navigation Links Styling (Standard WP Menu + Custom Studio Links) */
#desktop-navigation ul li a,
#footer-navigation ul li a {
    transition: color 0.2s ease;
}

#desktop-navigation ul li a:hover,
#footer-navigation ul li a:hover {
    color: #ffffff !important;
}

#mobile-navigation ul li a {
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

#mobile-navigation ul li a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}










