/*
Theme Name: Solaire Gallerie
Author: Solaire
Description: A minimalist luxury theme for high ticket products.
Version: 5.1
Text Domain: solaire
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

@font-face {
    font-family: 'AedFont';
    src: url('https://solairegalerie.com/wp-content/uploads/2026/09/aed-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #5ce2e6;
    --black: #1a1a1a;
    --white: #ffffff;
    --bg-color: #ffffff;
    --border-color: #eae8e1;
    --gold: #b39b7d;
    --text-color: #4a4a4a;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 400;
    margin: 0;
    color: var(--black);
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-logo {
    flex: 2;
    text-align: center;
    font-size: 20px;
    letter-spacing: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.home-icon {
    display: flex;
    align-items: center;
    color: var(--black);
}

.home-icon svg {
    width: 22px;
    height: 22px;
}

.cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--black);
}

.cart-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.cart-counter {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--primary);
    color: var(--black);
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* Home Shop Grid */
.home-shop {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    .site-logo {
        font-size: 16px;
        letter-spacing: 2px;
    }
    .home-icon svg, .cart-icon-wrap svg {
        width: 20px;
        height: 20px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .home-shop {
        padding: 30px 20px;
    }
    .product-title {
        font-size: 20px;
    }
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        padding: 15px;
    }
    .single-product-container {
        margin: 30px auto;
    }
    .sp-title {
        font-size: 26px;
    }
    .sp-specs {
        font-size: 13px;
    }
    .sp-specs td {
        padding: 14px 0;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-image {
    display: block;
    margin-bottom: 25px;
    aspect-ratio: 1000/1200;
    position: relative;
    overflow: hidden;
}

.product-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 10px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.product-title {
    font-size: 24px;
    margin: 0 0 8px;
    line-height: 1.2;
}

.product-title a {
    color: var(--black);
}

.product-title a:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-color);
}

.product-price {
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid var(--black);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.btn-black {
    background-color: var(--black);
    color: var(--white);
}

.btn-black:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--black);
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Single Product */
.single-product-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.sp-breadcrumbs {
    font-size: 11px;
    color: #888;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sp-breadcrumbs a {
    color: #555;
}

.sp-breadcrumbs a:hover {
    color: var(--black);
}

.sp-image, .sp-image-gallery {
    display: block;
    margin-bottom: 40px;
    aspect-ratio: 1000/1200;
    overflow: hidden;
    position: relative;
}

.sp-image-gallery .woocommerce-product-gallery__image a,
.sp-image-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    margin: 0;
}

.woocommerce-product-gallery__trigger {
    display: none !important;
}

.sp-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 10px;
    margin-bottom: 15px;
}

.sp-title {
    font-size: 32px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.sp-price {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-color);
}

.sp-short-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Specs Table */
.sp-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 14px;
}

.sp-specs td {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.sp-specs tr:first-child td {
    border-top: 1px solid var(--border-color);
}

.sp-specs td:first-child {
    color: #777;
    width: 40%;
}

.sp-specs td:last-child {
    text-align: right;
    color: var(--black);
}

.val-tbc {
    color: var(--gold) !important;
    font-style: italic;
}

.sp-express-btn {
    width: 100%;
    display: block;
    padding: 20px;
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--black);
    cursor: pointer;
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.sp-express-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--black);
}

/* About Section */
.sp-about-sec {
    margin-bottom: 35px;
}

.sp-about-title {
    font-family: var(--body-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.sp-about-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.sp-about-text p {
    margin: 0;
}

/* Footer */
.site-footer {
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    margin-top: 80px;
}

.footer-copy {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.footer-payments {
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
}

/* Remove Quantity & Sort Dropdowns everywhere globally just in case */
.quantity, .product-quantity, .woocommerce-ordering, .woocommerce-result-count {
    display: none !important;
}

/* Basic WooCommerce overriding */
.woocommerce-notices-wrapper {
    margin: 20px auto;
    max-width: 700px;
}
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    padding: 15px;
    background: #fff;
    border-top: 2px solid var(--primary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Add to Cart Button */
.sp-add-to-cart-btn {
    width: 100%;
    display: block;
    padding: 20px;
    background-color: transparent !important;
    color: var(--black) !important;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--black) !important;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}
.sp-add-to-cart-btn:hover {
    background-color: var(--black) !important;
    color: var(--white) !important;
}

/* Hide WooCommerce native gear icon on loading */
.woocommerce a.button.loading::after, 
.woocommerce button.button.loading::after, 
.woocommerce input.button.loading::after,
.woocommerce .sp-add-to-cart-btn.loading::after {
    display: none !important;
}

/* Hide View Cart link that appears after adding to cart */
a.added_to_cart.wc-forward {
    display: none !important;
}

/* Custom Currency Font */
.solaire-aed-symbol,
.woocommerce-Price-currencySymbol,
.wc-block-formatted-money-amount {
    font-family: 'AedFont', sans-serif !important;
}

/* Badge Updates */
.product-badge, .sp-badge {
    font-size: 12px !important;
    color: #5ce2e6 !important;
    border: 1px solid #5ce2e6 !important;
}

/* Side Cart CSS */
.solaire-side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 99999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solaire-side-cart.open {
    right: 0;
}

.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-header h3 {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-side-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
}

.side-cart-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Force widget content to fill height */
.widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    text-decoration: none;
    margin: 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.checkout {
    background: var(--black) !important;
    color: var(--white) !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.checkout:hover {
    background: var(--primary) !important;
    color: var(--black) !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a:not(.checkout) {
    border: 1px solid var(--black);
    color: var(--black);
    background: transparent;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons a:not(.checkout):hover {
    background: var(--black);
    color: var(--white);
}

/* Mini Cart Structural Overrides */
ul.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Pushes total and buttons to the bottom */
}

#solaire-side-cart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
    position: relative;
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    border-top: 2px solid var(--primary);
    background: transparent;
    overflow: hidden;
}

/* Red background for "Swipe to remove" */
.swipe-bg-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
}

/* The actual swipeable content */
#solaire-side-cart .cart-item-inner {
    position: relative;
    z-index: 1;
    background: white;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

#solaire-side-cart .mc-thumb {
    width: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

#solaire-side-cart .mc-thumb a {
    display: block;
    width: 100%;
}

#solaire-side-cart .mc-thumb img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    background: #f2f0ea;
    border: 1px solid #e8e6e0;
    float: none !important;
    margin: 0 !important;
}

#solaire-side-cart .mc-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#solaire-side-cart .mc-info .mc-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--black);
    text-decoration: none;
    line-height: 1.3;
}

#solaire-side-cart .mc-info .quantity {
    font-size: 14px;
    color: var(--text-color);
    display: block !important;
}

#solaire-side-cart .mc-remove {
    margin-left: auto;
    padding-left: 15px;
}

#solaire-side-cart .mc-remove a.remove {
    display: block !important;
    font-size: 24px !important;
    color: var(--black) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    border-radius: 0 !important;
    height: auto !important;
    width: auto !important;
}

#solaire-side-cart .mc-remove a.remove:hover {
    color: var(--primary) !important;
}

.woocommerce-mini-cart__total {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

/* Empty Cart View */
.solaire-empty-cart-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
}
.woocommerce-mini-cart__empty-message {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
    margin-top: auto;
}

/* Hide everything except cart when cart is empty */
body.solaire-cart-empty main > *:not(.wp-block-woocommerce-cart):not(.woocommerce) {
    display: none !important;
}
body.solaire-cart-empty .wc-block-cart__cross-sells {
    display: none !important;
}

/* Hide the "New in store" blocks inside the empty cart block itself */
.wp-block-woocommerce-empty-cart-block hr,
.wp-block-woocommerce-empty-cart-block .wp-block-separator,
.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new {
    display: none !important;
}

/* =========================================================
   DRIBBBLE-LEVEL LUXURY CHECKOUT REDESIGN
   ========================================================= */

/* Hide Ship to a different address completely */
#ship-to-different-address,
.woocommerce-shipping-fields {
    display: none !important;
}

@media (min-width: 1024px) {
    .woocommerce-checkout {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 80px;
        align-items: start;
        margin-top: 60px;
        margin-bottom: 80px;
    }
}

/* Form Headings */
.woocommerce-checkout h3 {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.5px;
}

/* Form Inputs */
.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 24px;
}

.woocommerce form .form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--black);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
    width: 100%;
    height: 56px !important;
    padding: 0 20px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff !important;
    box-sizing: border-box;
    font-family: var(--body-font) !important;
    color: var(--black) !important;
}

.woocommerce form .form-row textarea {
    height: 140px !important;
    padding: 20px !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.select2-container--open .select2-selection--single {
    border-color: var(--black) !important;
    outline: none;
    box-shadow: 0 0 0 1px var(--black) !important;
}

/* =========================================================
   SELECT2 OVERRIDES - FIXED CENTERING & SEARCH PADDING
   ========================================================= */
.select2-dropdown {
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    padding: 5px 0 !important;
    margin-top: 5px !important;
    border-top: 1px solid #e2e2e2 !important;
}
.select2-search--dropdown {
    padding: 10px !important;
}
.select2-search--dropdown .select2-search__field {
    padding: 12px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    font-family: var(--body-font) !important;
}
.select2-results__option {
    padding: 12px 20px !important;
    font-size: 14px !important;
}
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #f5f5f5 !important;
    color: var(--black) !important;
}
.select2-container--default .select2-selection--single {
    height: 56px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: left !important;
    line-height: 54px !important;
    padding-left: 20px !important;
    padding-right: 40px !important;
    color: var(--black) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
    right: 15px !important;
}

/* =========================================================
   ORDER REVIEW TABLE - ULTIMATE LUXURY OVERRIDE
   ========================================================= */
.woocommerce-checkout h3 {
    font-family: var(--heading-font);
    font-size: 32px !important;
    font-weight: 400 !important;
    margin-bottom: 35px !important;
    margin-top: 0 !important;
    color: var(--black) !important;
}

#order_review_heading {
    margin-top: 40px !important;
}
@media (min-width: 1024px) {
    #order_review_heading {
        margin-top: 0 !important;
    }
}

.woocommerce-checkout #order_review table.shop_table {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 0 30px 0 !important;
    width: 100% !important;
}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    border: none !important;
    border-bottom: 1px solid #eaeaea !important;
    padding: 20px 0 !important;
    background: transparent !important;
}
.woocommerce-checkout #order_review table.shop_table thead th {
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    color: #888 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #000 !important;
}

/* Product Name - Left, Font 400 */
.woocommerce-checkout #order_review table.shop_table td.product-name,
.woocommerce-checkout #order_review table.shop_table tfoot th {
    text-align: left !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: var(--text-color) !important;
}

/* Prices - Right, Font 600 */
.woocommerce-checkout #order_review table.shop_table td.product-total,
.woocommerce-checkout #order_review table.shop_table tfoot td {
    text-align: right !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--black) !important;
}

.woocommerce-checkout #order_review table.shop_table tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tr.order-total td {
    border-bottom: none !important;
    font-size: 22px !important;
    color: var(--black) !important;
    padding-top: 30px !important;
}

/* Payment Methods */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

#payment ul.payment_methods {
    border-bottom: none !important;
    padding: 0 0 20px 0 !important;
    margin: 0 0 20px 0 !important;
}

#payment div.payment_box {
    background: #f8f8f8 !important;
    border: none !important;
    border-radius: 6px !important;
    color: var(--text-color) !important;
    box-shadow: none !important;
    padding: 20px !important;
    font-size: 13px !important;
}

#payment div.payment_box::before {
    display: none !important;
}

/* Place Order Button */
#place_order {
    width: 100%;
    background: var(--black);
    color: #fff;
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

#place_order:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

