/*
Theme Name: WP Portfolio Child
Template: wp-portfolio
*/

/* ========================================= */
/* 1. GLOBAL HEADER & LAYOUT FIXES           */
/* ========================================= */
body {
    background-color: #faf9f6 !important;
}
.site, #page, .site-content, #content {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    background-color: transparent !important;
}
#masthead {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-right: none !important;
    padding: 40px 20px 20px 20px !important;
}
#site-navigation ul, .main-navigation ul, .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
}
#site-navigation li, .main-navigation li {
    display: inline-block !important;
    float: none !important;
    text-align: center !important;
}
#page, .site-main, #content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
#secondary, aside.widget-area {
    display: none !important;
}
body::before, body::after,
#page::before, #page::after,
.site::before, .site::after,
#content::before, #content::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    background: none !important;
}
#masthead::after, 
.site-header::after, 
#site-navigation::after, 
.main-navigation::after,
.main-navigation ul::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
    height: 0 !important;
}

/* ========================================= */
/* 2. FRONT PAGE LAYOUT                      */
/* ========================================= */
.home .entry-title {
    display: none;
}
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh !important;
    margin-bottom: 60px;
    overflow: hidden;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 0 20px;
}
.hero-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
}
.hero-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}
.hero-link:hover {
    background-color: #eee;
}

/* ========================================= */
/* 3. SINGLE PAINTING PRODUCT PAGE           */
/* ========================================= */
.custom-single-product {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 40px auto 100px auto !important;
    padding: 0 40px;
}
.product-landing-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    align-items: start !important;
}
.custom-main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1) !important;
}
.product-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-top: 20px !important;
}
.product-thumbnails img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border: 1px solid #eaeaea !important;
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.custom-single-product .summary,
.product-landing-title,
.product-medium-text,
.product-price-box,
.entry-summary p,
.woocommerce-product-details__short-description,
.product-add-to-cart {
    text-align: left !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    padding-right: 20px !important;
}
.product-landing-title {
    font-size: 2.5rem !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
    border: none !important;
}
.product-medium-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}
.product-price-box {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2b2b2b;
}
.entry-summary,
.woocommerce-product-details__short-description {
    max-width: 650px !important;
    margin-bottom: 40px !important;
}
.product-add-to-cart + p {
    margin-top: 40px !important;
}
.product-add-to-cart button.single_add_to_cart_button {
    background-color: #2b2b2b !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    font-size: 1rem !important;
    transition: background 0.3s ease !important;
    cursor: pointer;
}
.product-add-to-cart button.single_add_to_cart_button:hover {
    background-color: #444 !important;
}
.custom-artwork-container {
    position: relative !important;
    display: block !important;
    touch-action: pan-y !important;
}
.custom-artwork-container img {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}
.custom-nav-zone {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 50% !important;
    z-index: 999 !important;
}
.custom-nav-left {
    left: 0 !important;
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48cGF0aCBkPSJNMjAgNkwxMCAxNmwxMCAxMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI1IiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMjAgNkwxMCAxNmwxMCAxMCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=') 16 16, w-resize !important;
}
.custom-nav-right {
    right: 0 !important;
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj48cGF0aCBkPSJNMTIgNmwxMCAxMC0xMCAxMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI1IiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMTIgNmwxMCAxMC0xMCAxMCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=') 16 16, e-resize !important;
}

/* ========================================= */
/* 4. EMAIL SIGNUP FORM                      */
/* ========================================= */
.email-signup-section {
    max-width: 600px;
    margin: 0 auto 80px auto;
    padding: 60px 20px 0 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}
.email-signup-section h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}
.email-signup-section p {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #555;
}
.mc4wp-form {
    max-width: 400px;
    margin: 0 auto;
}
.mc4wp-form-fields-custom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mc4wp-form input[type="email"] {
    width: 100% !important;
    padding: 15px !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    text-align: center !important;
    box-shadow: none !important;
}
.mc4wp-form input[type="email"]:focus {
    border-color: #2b2b2b !important;
    outline: none !important;
}
.mc4wp-form input[type="submit"] {
    width: 100% !important;
    padding: 16px 20px !important;
    background-color: #2b2b2b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}
.mc4wp-form input[type="submit"]:hover {
    background-color: #444 !important;
}

/* ========================================= */
/* 5. UNIFIED GLOBAL PRODUCT GRID            */
/* ========================================= */
.archive.woocommerce mark.count {
    display: none;
}
/* Hide the 'Hardware Store' UI (Un-hid the main header to allow Filter Bar) */
.woocommerce-result-count, 
.woocommerce-ordering, 
.woocommerce-products-header__title.page-title,
.woocommerce-page .page-title-wrap {
    display: none !important;
}
.woocommerce .entry-main, 
.woocommerce-page .entry-main,
.archive.woocommerce #primary,
.archive.woocommerce #content {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
ul.products,
ul.wc-block-grid__products,
.featured-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto 60px auto !important;
    padding: 0 40px !important;
    background: transparent !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
ul.products::before, ul.products::after,
ul.wc-block-grid__products::before, ul.wc-block-grid__products::after,
.featured-grid::before, .featured-grid::after {
    display: none !important;
}
ul.products li.product,
ul.wc-block-grid__products li.wc-block-grid__product,
.featured-grid .featured-item {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
    clear: none !important;
}
ul.products li.product img,
.woocommerce ul.products li.product a img,
ul.wc-block-grid__products li.wc-block-grid__product img,
.featured-grid .featured-item img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    border: none !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
}
.woocommerce ul.products li.product a img {
    border: 1px solid;
}
ul.products li.product img:hover,
ul.wc-block-grid__products li.wc-block-grid__product img:hover,
.featured-grid .featured-item img:hover {
    transform: translateY(-5px);
}
ul.products li.product .woocommerce-loop-product__title,
ul.wc-block-grid__products li.wc-block-grid__product .wc-block-grid__product-title,
.featured-grid .featured-item .featured-item-title {
    font-size: 1.1rem !important;
    font-weight: normal !important;
    color: #333 !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    display: block !important;
    line-height: 1.4 !important;
}
ul.products li.product .price,
ul.wc-block-grid__products li.wc-block-grid__product .price,
ul.wc-block-grid__products li.wc-block-grid__product .wc-block-components-product-price {
    color: #666 !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    display: block !important;
}
ul.products li.product .button,
ul.wc-block-grid__products li.wc-block-grid__product .wp-block-button {
    display: none !important;
}
ul.products li.product span.onsale {
    background-color: #8a2525 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 0 !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    box-shadow: none !important;
    font-weight: normal !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    height: 30px !important;
    line-height: normal !important;
}
.woocommerce ul.products li.product.outofstock img,
.woocommerce ul.products li.product.outofstock a img {
    opacity: 0.6 !important;
}
.woocommerce ul.products li.product.outofstock img:hover,
.woocommerce ul.products li.product.outofstock a img:hover {
    opacity: 0.8 !important;
}
.woocommerce ul.products li.product.outofstock .woocommerce-loop-product__title::before {
    content: "SOLD - " !important;
    color: #8a2525 !important;
    font-weight: bold !important;
}
.woocommerce ul.products li.product.outofstock .out-of-stock {
    display: none !important;
}

/* ========================================= */
/* 6. HIGH-TICKET CHECKOUT FLOW              */
/* ========================================= */
.woocommerce-form-coupon-toggle,
.woocommerce-additional-fields {
    display: none !important;
}
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.select2-container .select2-selection--single {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    padding: 12px 15px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    height: auto !important;
}
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #2b2b2b !important;
    outline: none !important;
}
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading,
#order_review_heading {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 1.5rem !important;
    border-bottom: 2px solid #2b2b2b !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
table.shop_table {
    border: none !important;
    border-collapse: collapse !important;
}
table.shop_table th, 
table.shop_table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    border-top: none !important;
    border-bottom: 1px solid #eaeaea !important;
    border-left: none !important;
    border-right: none !important;
    padding: 15px 0 !important;
    background: transparent !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    padding-left: 20px !important;
}
#place_order {
    background-color: #2b2b2b !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 20px !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    width: 100% !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
    margin-top: 20px !important;
}
#place_order:hover {
    background-color: #444 !important;
}
#payment {
    background-color: #fff !important;
    border-radius: 0 !important;
    border: 1px solid #eaeaea !important;
    padding: 20px !important;
    margin-top: 20px !important;
}
#payment ul.payment_methods {
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 20px !important;
}
body.woocommerce-checkout #payment ul.payment_methods li div.payment_box,
body.woocommerce-checkout #payment div.payment_box {
    background-color: #faf9f6 !important;
    background: none !important;
    color: #333 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
body.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}
.wc-stripe-elements-field, 
.StripeElement,
.StripeElement--empty {
    background-color: #fff !important;
    background: transparent !important;
}
.woocommerce-checkout #customer_details.col2-set {
    display: block !important;
    width: 100% !important;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-bottom: 40px !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    width: 100% !important;
    flex: 0 0 100% !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 10px) !important;
    flex: 0 0 calc(50% - 10px) !important;
    float: left !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-checkout .form-row-last {
    float: right !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select,
.woocommerce-checkout .select2-container,
.woocommerce-checkout .select2-selection {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
#payment ul.payment_methods li.wc_payment_method {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
    list-style: none !important;
}
#payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 15px 0 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
}
#payment ul.payment_methods li.wc_payment_method > label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1 !important;
}
#payment ul.payment_methods li.wc_payment_method div.payment_box {
    width: 100% !important;
    margin-top: 15px !important;
}

/* ========================================= */
/* 7. ABOUT & INQUIRY PAGE CLEANUP           */
/* ========================================= */
.page .entry-content,
.page .entry-main,
.page #primary {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.page-title {
    display: none !important;
}
.entry-content h2,
.entry-content h3 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.4rem;
    margin-top: 40px;
    border-bottom: 1px solid #2b2b2b;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}
.entry-content p {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 25px;
    max-width: 800px;
}
.entry-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 20px;
}
.entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.entry-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2b2b2b;
    font-weight: bold;
}
.page-title-wrap,
.page-header,
.entry-header {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.entry-content .wp-block-column h2:first-child {
    margin-top: 0 !important;
}
.wp-block-columns {
    gap: 60px !important;
}
.entry-content .wp-block-column.is-layout-flow p {
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
    text-indent: 0 !important;
}
.page-id-contact .entry-content,
.wpcf7,
.wpforms-container {
    max-width: 800px !important;
    margin: 0 auto !important;
}
.entry-content label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
    font-weight: normal;
    margin-top: 10px !important;
}
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content textarea {
    width: 100% !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    padding: 15px !important;
    background-color: #fff !important;
    font-size: 1rem !important;
    margin-bottom: 25px !important;
    box-shadow: none !important;
}
.entry-content input:focus,
.entry-content textarea:focus {
    border-color: #2b2b2b !important;
    outline: none !important;
}
.entry-content input[type="submit"],
.wpcf7-submit,
.wpforms-submit {
    background-color: #2b2b2b !important;
    color: #fff !important;
    border-radius: 0 !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer;
    font-size: 1rem !important;
    transition: background 0.3s ease !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    height: 55px !important;
    line-height: 55px !important;
    padding: 0 45px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
.entry-content input[type="submit"]:hover {
    background-color: #444 !important;
}
.page-template-default .entry-content p {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.wp-block-column p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}
.page-template-default .entry-content p:first-of-type {
    margin-bottom: 50px !important;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================= */
/* 8. MISC UTILITIES                         */
/* ========================================= */
.site-info {
    display: none !important;
}
.grecaptcha-badge {
    visibility: hidden !important;
}
.museum-load-more-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 40px 0 100px 0 !important;
    clear: both !important;
}
#museum-load-more {
    background-color: transparent !important;
    color: #2b2b2b !important;
    border: 1px solid #2b2b2b !important;
    border-radius: 0 !important;
    padding: 18px 45px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: block !important;
    margin: 0 auto !important;
    min-width: 250px;
    text-align: center !important;
}
#museum-load-more:hover {
    background-color: #2b2b2b !important;
    color: #fff !important;
}

/* ========================================= */
/* 9. DESKTOP MEDIA QUERIES                  */
/* ========================================= */
@media (min-width: 900px) {
    form.woocommerce-checkout {
        display: grid !important;
        grid-template-columns: 55% 40% !important;
        justify-content: space-between !important;
        align-items: start !important;
    }
    #customer_details {
        grid-column: 1 / 2 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
    }
    #order_review_heading {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        margin-top: 0 !important;
    }
    #order_review {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .woocommerce-cart table.cart {
        border: none !important;
        border-radius: 0 !important;
        width: 100% !important;
    }
    .woocommerce-cart table.cart th {
        border-top: none !important;
        border-bottom: 2px solid #2b2b2b !important;
        border-left: none !important;
        border-right: none !important;
        padding: 15px 0 !important;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-size: 0.85rem;
        color: #2b2b2b;
        background: transparent !important;
    }
    .woocommerce-cart table.cart td {
        border-top: none !important;
        border-bottom: 1px solid #eaeaea !important;
        border-left: none !important;
        border-right: none !important;
        padding: 30px 0 !important;
        vertical-align: middle !important;
        background: transparent !important;
    }
    body.woocommerce-cart table.cart td.product-remove {
        width: 120px !important;
        text-align: left !important;
    }
    body.woocommerce-cart table.cart a.remove {
        display: inline-block !important;
        font-size: 0 !important;
        text-decoration: none !important;
        background: transparent !important;
        color: transparent !important;
        white-space: nowrap !important;
    }
    body.woocommerce-cart table.cart a.remove::after {
        content: "REMOVE" !important;
        font-size: 0.75rem !important;
        letter-spacing: 1.5px !important;
        color: #999 !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 2px !important;
        visibility: visible !important;
        white-space: nowrap !important;
        transition: color 0.3s ease, border-color 0.3s ease;
    }
    body.woocommerce-cart table.cart a.remove:hover::after {
        color: #2b2b2b !important;
        border-color: #2b2b2b !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail {
        width: 180px !important;
    }
    .woocommerce-cart table.cart img {
        width: 140px !important;
        height: auto !important;
        box-shadow: 0px 4px 15px rgba(0,0,0,0.08);
        display: block;
    }
    .woocommerce-cart table.cart td.product-name {
        padding-left: 20px !important;
    }
    .woocommerce-cart table.cart td.product-name a {
        font-size: 1.15rem !important;
        font-style: italic;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #2b2b2b !important;
    }
    .woocommerce-cart table.cart th.product-quantity,
    .woocommerce-cart table.cart td.product-quantity,
    .woocommerce-cart table.cart th.product-subtotal,
    .woocommerce-cart table.cart td.product-subtotal {
        display: none !important;
    }
    .woocommerce-cart table.cart th.product-price,
    .woocommerce-cart table.cart td.product-price {
        text-align: right !important;
        padding-right: 20px !important;
        font-size: 1.1rem !important;
        color: #2b2b2b !important;
    }
    .woocommerce-cart table.cart td.actions {
        padding: 30px 0 !important;
        border: none !important;
    }
    .woocommerce-cart .coupon {
        float: left !important;
    }
    .woocommerce-cart .coupon input.input-text,
    .woocommerce-cart .coupon .button,
    .woocommerce-cart .actions .button[name="update_cart"] {
        height: 50px !important;
        box-sizing: border-box !important;
    }
    .woocommerce-cart .coupon input.input-text {
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
        padding: 0 15px !important;
        width: 250px !important;
        margin-right: 10px !important;
        box-shadow: none !important;
    }
    .woocommerce-cart .coupon .button,
    .woocommerce-cart .actions .button[name="update_cart"] {
        background-color: #f9f9f9 !important;
        color: #555 !important;
        border-radius: 0 !important;
        border: 1px solid #ccc !important;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        padding: 0 25px !important;
        transition: all 0.3s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .woocommerce-cart .coupon .button:hover,
    .woocommerce-cart .actions .button[name="update_cart"]:hover {
        background-color: #2b2b2b !important;
        color: #fff !important;
        border-color: #2b2b2b !important;
    }
    .cart-collaterals {
        margin-top: 60px !important;
    }
    .cart-collaterals .cart_totals {
        width: 45% !important;
        float: right !important;
    }
    .cart-collaterals h2 {
        font-size: 1.4rem !important;
        border-bottom: 2px solid #2b2b2b !important;
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase;
    }
    .cart_totals table tr.cart-subtotal {
        display: none !important;
    }
    .cart_totals table th, 
    .cart_totals table td {
        border-bottom: 1px solid #eaeaea !important;
        padding: 25px 0 !important;
        background: transparent !important;
    }
    .cart_totals table th {
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        font-weight: bold;
    }
    .cart_totals table td {
        text-align: right !important;
        font-size: 1.15rem !important;
        color: #2b2b2b !important;
    }
    .wc-proceed-to-checkout .checkout-button {
        background-color: #2b2b2b !important;
        color: #fff !important;
        border-radius: 0 !important;
        padding: 20px !important;
        font-size: 1.1rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        width: 100% !important;
        display: block !important;
        text-align: center;
        margin-top: 25px !important;
        transition: background-color 0.3s ease !important;
    }
    .wc-proceed-to-checkout .checkout-button:hover {
        background-color: #444 !important;
    }
}

/* ========================================= */
/* 10. MOBILE MEDIA QUERIES                  */
/* ========================================= */
@media (max-width: 900px) {
    .product-landing-grid {
        grid-template-columns: 1fr !important;
    }
    ul.products,
    ul.wc-block-grid__products,
    .featured-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        margin: 0 auto 40px auto !important;
        justify-items: center !important;
    }
    ul.products li.product,
    ul.wc-block-grid__products li.wc-block-grid__product,
    .featured-grid .featured-item {
        max-width: 500px !important;
        margin: 0 auto 40px auto !important;
    }
    ul.products li.product img,
    ul.wc-block-grid__products li.wc-block-grid__product img,
    .featured-grid .featured-item img {
        height: auto !important;
        max-height: 500px !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle, 
    button.menu-toggle,
    .responsive-menu-icon {
        display: none !important;
    }
    .site-header, 
    #masthead, 
    #site-navigation, 
    .main-navigation, 
    .main-navigation ul {
        background-color: transparent !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        display: block !important;
        text-align: center;
    }
    .main-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 10px 0 30px 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .main-navigation ul li {
        border-bottom: 1px solid #eaeaea !important;
        width: auto !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .main-navigation ul li:last-child {
        border-bottom: none !important;
    }
    .main-navigation a {
        padding: 5px 0 !important;
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
        text-transform: uppercase;
        color: #2b2b2b !important;
        white-space: nowrap !important;
    }
    .woocommerce ul.products, 
    .woocommerce-page ul.products {
        display: block !important;
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
    }
    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        float: none !important;
        margin: 0 0 50px 0 !important;
        text-align: center !important;
    }
    .woocommerce ul.products li.product a img {
        margin: 0 auto 15px auto !important;
        max-width: 100%;
        height: auto !important;
    }
    form.woocommerce-checkout {
        display: block !important;
    }
    #customer_details, 
    #order_review, 
    #order_review_heading {
        width: 100% !important;
        margin: 0 !important;
    }
    .woocommerce-cart .coupon {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    .woocommerce-cart .coupon input.input-text,
    .woocommerce-cart .coupon .button,
    .woocommerce-cart .actions .button[name="update_cart"],
    body.woocommerce-cart td.actions > .button {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        height: auto !important;
    }
    .woocommerce-cart .coupon .button {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    .wc-stripe-elements-field, 
    .StripeElement,
    .woocommerce-checkout #payment div.payment_box .form-row {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    #stripe-card-element {
        padding: 12px !important;
    }
    .form-row-first, 
    .form-row-last {
        width: 100% !important;
        float: none !important;
    }
    .woocommerce-checkout #payment div.payment_box label {
        margin-bottom: 5px !important;
        display: block !important;
        font-size: 0.7rem !important;
    }
    .woocommerce-checkout #payment div.payment_box {
        padding: 15px 0 !important;
        margin-top: 5px !important;
    }
    #payment ul.payment_methods li {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin-bottom: 12px !important;
        line-height: 1 !important;
    }
    #payment ul.payment_methods li input[type="radio"] {
        margin: 0 12px 0 0 !important;
        width: 18px !important;
        height: 18px !important;
    }
    #payment ul.payment_methods li label {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
        text-transform: uppercase;
        cursor: pointer;
    }
    body.woocommerce-cart, 
    body.woocommerce-cart .woocommerce,
    body.woocommerce-cart #content {
        cursor: default !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tbody,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr {
        display: block !important;
        width: 100% !important;
        border: none !important;
        position: relative !important;
        background: transparent !important;
        overflow: visible !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item {
        padding: 40px 0 0 0 !important;
        border-bottom: none !important;
        margin-bottom: 20px !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-remove {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 80px !important;
        height: 30px !important;
        padding: 5px 0 !important;
        z-index: 9999 !important;
        border: none !important;
        text-align: right !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-remove::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-name::before {
        display: none !important;
    }
    body.woocommerce-cart a.remove {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
        font-size: 0 !important;
        text-decoration: none !important;
        background: transparent !important;
        overflow: visible !important;
    }
    body.woocommerce-cart a.remove::after {
        content: "REMOVE" !important;
        display: inline-block !important;
        font-size: 0.75rem !important;
        letter-spacing: 2px !important;
        color: #999 !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 2px !important;
        visibility: visible !important;
        line-height: 1 !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-thumbnail,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-name {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        float: none !important;
        border: none !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-thumbnail img {
        width: 220px !important;
        height: auto !important;
        margin: 0 auto 25px auto !important;
        display: block !important;
        box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-name {
        margin: 0 auto 35px auto !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-name a {
        font-size: 1.15rem !important;
        font-style: italic;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        line-height: 1.4 !important;
        color: #2b2b2b;
        display: block !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-subtotal,
    body.woocommerce-cart .cart_totals table tr.cart-subtotal {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-price {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 20px 0 !important;
        border-top: 1px solid #eaeaea !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-price::before {
        position: static !important;
        display: block !important;
        float: none !important;
        content: attr(data-title) !important;
        font-weight: normal !important;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 2px;
        color: #999;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.product-price .amount {
        position: static !important;
        display: block !important;
        color: #2b2b2b;
        font-size: 1rem !important;
        margin-left: auto !important;
    }
    body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr td.actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 25px 0 10px 0 !important;
        border-top: 2px solid #2b2b2b !important;
    }
    body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
        margin-top: 40px !important;
    }
    body.woocommerce-cart .cart_totals h2 {
        font-size: 1.2rem !important;
        border-bottom: 2px solid #2b2b2b !important;
        padding-bottom: 10px !important;
        letter-spacing: 1.5px !important;
    }
    body.woocommerce-cart .cart_totals table tr.order-total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 25px 0 15px 0 !important;
        border: none !important;
    }
    body.woocommerce-cart .cart_totals table tr.order-total th {
        display: block !important;
        text-align: left !important;
        padding: 0 !important;
        width: auto !important;
        border: none !important;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    body.woocommerce-cart .cart_totals table tr.order-total td {
        display: block !important;
        text-align: right !important;
        padding: 0 !important;
        width: auto !important;
        border: none !important;
    }
}

/* ========================================= */
/* 13. GLOBAL MOBILE OVERRIDES & FIXES       */
/* ========================================= */

/* 1. Kill Horizontal Overflow (The White Gap Fix) */
html, 
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    
    /* 2. Strip parent theme floats and force Logo to Dead Center */
    #masthead #site-logo,
    #masthead #site-title {
        float: none !important;
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    #masthead .custom-logo-link {
        display: inline-block !important; /* Allows text-align: center to grab it */
        margin: 0 auto !important;
    }
    
    /* Nuke the invisible hamburger button that steals space on the right */
    #masthead .menu-toggle {
        display: none !important;
    }
    
    /* 3. Ensure the main navigation stays perfectly centered */
    .main-navigation,
    .main-navigation ul {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        float: none !important;
    }
    
    /* 4. Fix Single Product Page shifting to the right */
    #primary.custom-single-product {
        float: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        padding: 0 20px !important; /* Reduces the bulky 40px desktop padding for mobile */
        box-sizing: border-box !important;
        position: static !important;
    }

/* 5. Hide the rogue WooCommerce colon on mobile cart thumbnails */
    .woocommerce table.shop_table_responsive tr td.product-thumbnail::before,
    .woocommerce-page table.shop_table_responsive tr td.product-thumbnail::before {
        display: none !important;
        content: "" !important;
    }

}
/* ========================================= */
/* 14. ABOUT PAGE - COLLECTIONS BLOCK        */
/* ========================================= */

.custom-collections-wrapper {
    margin-top: 60px !important;
}

.collections-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-top: 20px !important;
}

.collection-column h4 {
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #888 !important; /* Subtle grey so it doesn't fight the main h2 */
    margin-bottom: 15px !important;
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 8px !important;
}

.collection-column ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.collection-column ul li {
    font-size: 1.05rem !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

/* Mobile Stack */
@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ========================================= */
/* 15. GALLERY FILTER BAR                    */
/* ========================================= */

/* Hide WooCommerce Category Descriptions globally so they don't break the layout */
.term-description,
.woocommerce-products-header .term-description {
    display: none !important;
}

.gallery-filter-bar {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 50px auto;
    padding: 0 40px;
    box-sizing: border-box !important; /* This forces the padding to sit INSIDE the 100% width */
    display: flex;
    align-items: center;
    justify-content: center; 
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-right: 30px;
}

.filter-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap; /* Allows safe wrapping on smaller laptops */
}

.filter-links a {
    text-decoration: none;
    font-size: 0.75rem; /* Scaled down to defer to the main menu */
    color: #333;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-links a:hover {
    color: #8a2525;
}

.filter-all {
    font-weight: bold;
    border-left: 1px solid #ddd;
    padding-left: 25px;
}

/* ----------------------------------------- */
/* MOBILE RESPONSIVENESS                     */
/* ----------------------------------------- */
@media (max-width: 900px) {
    .gallery-filter-bar {
        flex-direction: column;
        align-items: center; /* Centers the label and links on phones */
        text-align: center;
        padding: 0 20px 20px 20px;
    }
    
    .filter-label {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    
    .filter-links {
        flex-wrap: wrap;
        gap: 15px 20px; /* Adjusts vertical and horizontal spacing */
        justify-content: center;
    }
    
    /* Remove the vertical dividing line on mobile since the items wrap */
    .filter-all {
        border-left: none !important;
        padding-left: 0 !important;
    }
}
/* Center confirmation text and payment instructions */
.woocommerce-order p.woocommerce-notice,
.woocommerce-order > p:not(.order-info) {
    text-align: center !important;
    margin-bottom: 2rem !important;
}

/* Restructure the Billing Address container */
.woocommerce-customer-details address {
    border: 1px solid #d3d3d3 !important; 
    border-radius: 0px !important; 
    padding: 1.5rem !important;
    background-color: transparent !important;
    font-style: normal !important; /* Overrides default browser italics on <address> tags */
}
/* Reduce validation error font scale */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-error li {
    font-size: 0.85rem !important;
    border-radius: 0px !important;
}

/* Force strict flush-left alignment for phone and email details */
.woocommerce-customer-details address p.woocommerce-customer-details--phone,
.woocommerce-customer-details address p.woocommerce-customer-details--email {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Overrides default centering */
    text-align: left !important;
    margin: 0.75rem 0 0 0 !important; /* Adds measured separation from the physical address */
    width: 100% !important;
    clear: both !important;
}

/* Standardize spacing between the icons and the text */
.woocommerce-customer-details address p.woocommerce-customer-details--phone svg,
.woocommerce-customer-details address p.woocommerce-customer-details--email svg,
.woocommerce-customer-details address p.woocommerce-customer-details--phone i,
.woocommerce-customer-details address p.woocommerce-customer-details--email i {
    margin-right: 12px !important;
    margin-left: 0px !important;
}

/* Automated Sold Status Override */
.woocommerce div.product p.price .gallery-sold-status,
.woocommerce ul.products li.product .price .gallery-sold-status {
    color: #2b2b2b !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9em;
    display: block;
    text-align: center !important; 
}
