/* =========================================================================
   PACHMAN STYLE FIX (ULTRA CACHE BYPASS)
   ========================================================================= */

/* Global Header Reset (Storefront wrapper) */
header#masthead.site-header {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    z-index: 99999 !important;
    /* Always on top */
    pointer-events: auto !important;
}

#mobile-menu-trigger,
#search-trigger,
.menu-toggle,
.handheld-navigation {
    pointer-events: auto !important;
    z-index: 100000 !important;
    cursor: pointer !important;
}

@media (min-width: 1024px) {

    /* Restore 1400px Container Width and Centering */
    .single-product .col-full,
    .page-template-page-information .col-full {
        max-width: 1400px !important;
        width: 100% !important;
        padding: 0 40px !important;
        /* Zero top padding */
        margin: 0 auto !important;
        float: none !important;
        overflow: visible !important;
    }

    .single-product #primary,
    .single-product .site-main,
    .page-template-page-information #primary,
    .page-template-page-information .site-main {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        overflow: visible !important;
    }

    .single-product #content.site-content {
        overflow: visible !important;
    }

    /* Pachman Layout (3-Column via Flexbox) */
    body.single-product div.product {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 60px !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        position: relative !important;
    }

    body.single-product .woocommerce-notices-wrapper {
        position: absolute !important;
        top: -50px !important;
        left: 0 !important;
        width: 100% !important;
    }

    /* Column 1: Gallery Container (Serein Custom Gallery) */
    body.single-product .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        width: 50% !important;
        max-width: 650px !important;
        margin: 0 !important;
    }

    body.single-product .woocommerce-product-gallery__wrapper,
    body.single-product .flex-viewport {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 1 !important;
    }

    body.single-product .woocommerce-product-gallery__image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }

    body.single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        pointer-events: none !important;
        /* Kill Hover Zoom */
    }

    body.single-product .woocommerce-product-gallery__image {
        pointer-events: none !important;
    }

    /* Remove any magnifier clouds or zoom helper elements */
    .mousetrap,
    .cloud-zoom-lens,
    .zoomContainer,
    .yith_magnifier_zoom_wrap,
    .zoomImg {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Column 2: Product Summary (Top-aligned) */
    body.single-product .summary.entry-summary {
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
        flex-shrink: 0 !important;
        position: sticky !important;
        top: 100px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: flex-start !important;
    }
}

/* =========================================================================
   SEREIN CUSTOM GALLERY GLOBAL STYLES (Ultra Defensive)
   ========================================================================= */

/* Hide all except first image by default via CSS to prevent stacking while JS loads */
.woocommerce-product-gallery__image:not(:first-child) {
    display: none !important;
}

body.single-product .woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-product .woocommerce-product-gallery__wrapper {
    display: block !important;
    width: 100% !important;
    order: 1 !important;
}

/* Custom Thumbnails */
ul.serein-custom-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    order: 2 !important;
}

ul.serein-custom-thumbs li {
    width: calc(20% - 12px) !important;
    aspect-ratio: 1/1 !important;
    cursor: pointer !important;
    opacity: 0.5;
    overflow: hidden !important;
}

ul.serein-custom-thumbs li.active {
    opacity: 1 !important;
    border-bottom: 2px solid #000 !important;
}

ul.serein-custom-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Kill FlexSlider/Standard leftovers everywhere, but KEEP viewport as container */
.flex-control-nav,
.woocommerce-product-gallery__trigger {
    display: none !important;
}

.flex-viewport {
    display: contents !important;
    /* Allow children to show up in the parent's flex/block flow */
}

/* Tighten Breadcrumbs */
.woocommerce-breadcrumb {
    margin-bottom: 10px !important;
    /* Tighten further */
    margin-top: 0 !important;
}
}

/* =========================================================================
   PRODUCT GALLERY RE-ENGINEERING
   ========================================================================= */

/* Mobile (Max 1023px): Standard Responsive Layout, No Overflow */
@media (max-width: 1023px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #page {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .single-product .col-full,
    .single-product #primary,
    .single-product .site-main,
    .single-product #content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Product Container Mobile */
    body.single-product div.product {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force Gallery Wrapper to be block */
    body.single-product .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        /* Zero margin top */
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    /* Tighten Breadcrumbs Mobile */
    .woocommerce-breadcrumb {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    /* Summary Styling Mobile */
    body.single-product .summary.entry-summary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 24px 80px 24px !important;
        box-sizing: border-box !important;
        display: block !important;
    }
}

/* Typography Polish (Exact Pachman) */
body.single-product .summary.entry-summary h1.product_title {
    font-family: 'Jost', sans-serif !important;
    font-weight: 400 !important;
    font-size: 22px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    color: #000 !important;
}

body.single-product .summary.entry-summary .price {
    font-family: 'Jost', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #000 !important;
    margin-bottom: 40px !important;
    display: block !important;
}

/* Breadcrumbs (Exact Pachman) */
body.single-product .woocommerce-breadcrumb {
    font-family: 'Jost', sans-serif !important;
    font-size: 10px !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    list-style: none !important;
}

body.single-product .woocommerce-breadcrumb a {
    text-decoration: none !important;
    color: #999 !important;
}

body.single-product .woocommerce-breadcrumb a:hover {
    color: #000 !important;
}

/* Buttons (Exact Pachman) */
body.single-product .single_add_to_cart_button {
    background-color: #f6f6f6 !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 22px !important;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-family: 'Jost', sans-serif !important;
    width: 100% !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
}

body.single-product .single_add_to_cart_button:hover {
    background-color: #000 !important;
    color: #fff !important;
}

body.single-product .woocommerce-payment-button__button {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 22px !important;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-family: 'Jost', sans-serif !important;
    width: 100% !important;
    margin-top: 10px !important;
    border: none !important;
}

/* Accordion Thin Lines */
body.single-product .serein-accordion-item {
    border-top: none !important;
    border-bottom: 1px solid #eee !important;
}

body.single-product .serein-accordion-trigger {
    color: #666 !important;
    font-size: 11px !important;
}

/* =========================================================================
   ARCHIVE FIXES (PACHMAN STYLE)
   ========================================================================= */

/* Hide unwanted elements */
body.archive .woocommerce-result-count,
body.archive .onsale,
body.archive .button.add_to_cart_button {
    display: none !important;
}

/* Custom Sorting Dropdown (Pachman Style) */
body.archive .woocommerce-ordering {
    display: block !important;
    text-align: right !important;
    margin-bottom: 60px !important;
    padding-right: 40px !important;
    width: 100% !important;
}

body.archive .woocommerce-ordering select.orderby {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #000 !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: #444 !important;
    padding: 10px 30px 10px 10px !important;
    border-radius: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 5px center !important;
    background-size: 12px !important;
}

/* Page Title Centering & Spacing */
body.archive .woocommerce-products-header__title.page-title {
    text-align: center !important;
    font-family: 'Jost', sans-serif !important;
    font-weight: 300 !important;
    font-size: 24px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    margin-top: 100px !important;
    margin-bottom: 80px !important;
    color: #000 !important;
}

/* Archive Grid Container constraints */
body.archive .site-main {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 120px 40px 100px 40px !important;
    /* Top padding added to replace header margin */
}

/* Grid Gap Overrides */
body.archive ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 80px 40px !important;
}

body.archive ul.products::before,
body.archive ul.products::after {
    display: none !important;
    /* Reset Storefront's clearfixes */
}

/* Product Item Styling */
body.archive ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    clear: none !important;
}

body.archive ul.products li.product img {
    margin-bottom: 20px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/5 !important;
    object-fit: cover !important;
    transition: opacity 0.3s ease !important;
}

body.archive ul.products li.product a:hover img {
    opacity: 0.8 !important;
}

/* Product Title */
body.archive ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Jost', sans-serif !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #444 !important;
    margin-bottom: 10px !important;
}

/* Product Price */
body.archive ul.products li.product .price {
    font-family: 'Bodoni Moda', serif !important;
    font-style: italic !important;
    font-size: 12px !important;
    color: #666 !important;
    display: block !important;
}

/* Breadcrumbs on Archive (if any) */
body.archive .woocommerce-breadcrumb {
    text-align: center !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    padding: 20px 0 !important;
    margin: 0 !important;
}

/* Mobile Fallback Grid */
@media (max-width: 768px) {
    body.archive ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 60px 15px !important;
    }

    body.archive .site-main {
        padding: 0 20px 80px 20px !important;
    }
}

/* =========================================================================
   HOME PAGE FIXES (FULL SCREEN HERO)
   ========================================================================= */

body.home .site-content {
    padding-top: 0 !important;
}

body.home .site-content>.col-full {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Transparent Header ONLY on Home Page */
body.home header#serein-header {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body.home header#serein-header a,
body.home header#serein-header button,
body.home header#serein-header svg {
    color: #ffffff !important;
}

/* Revert to solid white on scroll */
body.home.is-scrolled header#serein-header {
    background-color: #ffffff !important;
    border-color: #f3f4f6 !important;
    /* gray-100 */
    color: #000000 !important;
}

body.home.is-scrolled header#serein-header a,
body.home.is-scrolled header#serein-header button,
body.home.is-scrolled header#serein-header svg {
    color: #000000 !important;
}

/* =========================================================================
   WOOCOMMERCE NOTIFICATIONS AND UI CLEANUP
   ========================================================================= */

/* Hide Storefront's native sticky add to cart to prevent interference */
.storefront-sticky-add-to-cart {
    display: none !important;
}

/* Hide the "Clear / クリア" button on variations */
a.reset_variations {
    display: none !important;
}

/* Cart added notification styling */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #f3f4f6 !important;
    border-top: 1px solid #000000 !important;
    border-radius: 0 !important;
    padding: 20px 30px !important;
    margin-bottom: 40px !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}

.woocommerce-message .button.wc-forward {
    background-color: transparent !important;
    color: #000000 !important;
    border: none !important;
    border-bottom: 1px solid #000000 !important;
    border-radius: 0 !important;
    padding: 0 0 4px 0 !important;
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    float: right !important;
    margin-left: 20px !important;
}

.woocommerce-message .button.wc-forward:hover {
    color: #999999 !important;
    border-bottom-color: #999999 !important;
    background-color: transparent !important;
}

@media (max-width: 768px) {

    /* Ensure room for the always-visible mobile sticky cart */
    .single-product .site-main {
        padding-bottom: 100px !important;
    }

    .woocommerce-message {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 15px 20px !important;
        font-size: 11px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-message .button.wc-forward {
        margin-left: 0 !important;
        margin-top: 15px !important;
        align-self: flex-start !important;
    }
}

/* =========================================================================
   WOOCOMMERCE SUBPAGES & ACCOUNT DESIGN (Serein Polish)
   ========================================================================= */

.woocommerce-account .site-main,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
    padding: 120px 20px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.woocommerce-account .entry-title,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
    font-size: 32px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin-bottom: 60px !important;
}

/* Forms Cleanup */
.woocommerce form .form-row {
    margin-bottom: 30px !important;
    padding: 0 !important;
}

.woocommerce form .form-row label {
    font-family: 'Jost', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 15px 0 !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.4s ease !important;
}

.woocommerce form .form-row input.input-text:focus {
    border-bottom-color: #000 !important;
}

/* My Account Navigation (Minimalist Bar) */
.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    margin-bottom: 80px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}

.woocommerce-MyAccount-navigation ul li {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 20px 0 !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.25em !important;
    color: #999 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    position: relative !important;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #000 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: #000 !important;
}

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

/* Buttons Polish */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce-page button.button,
.woocommerce-page a.button,
.woocommerce-page input.button {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 45px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    line-height: 1 !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover {
    opacity: 0.7 !important;
    background: #000 !important;
    color: #fff !important;
}

/* Login/Register Columns */
.u-columns.col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 80px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.woocommerce-form-login, .woocommerce-form-register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* CHECKOUT & CART SPECIFIC */
.woocommerce-cart-form, .cart-collaterals, .woocommerce-checkout #order_review, #customer_details {
    background: #fff !important;
}

.shop_table {
    border: none !important;
    border-radius: 0 !important;
}

.shop_table thead th {
    font-family: 'Jost', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    border-bottom: 1px solid #eee !important;
    padding: 20px 0 !important;
}

.shop_table td {
    border-bottom: 1px solid #f9f9f9 !important;
    padding: 25px 0 !important;
}

.cart_totals h2, .woocommerce-billing-fields h3, #order_review_heading {
    text-align: left !important;
    font-size: 18px !important;
    margin-top: 40px !important;
}

/* Dashboard items */
.woocommerce-MyAccount-content p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #666 !important;
    margin-bottom: 25px !important;
}

.woocommerce-MyAccount-content a {
    color: #000 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        gap: 15px !important;
    }
    .woocommerce-MyAccount-navigation ul li a {
        font-size: 9px !important;
        letter-spacing: 0.15em !important;
    }
}

/* Hide "Choose an option" and "Add to Cart" buttons in all product grids/blocks for a cleaner minimalist look */
.products .add_to_cart_button,
.wc-block-grid__product-add-to-cart,
.wc-block-grid__product-add-to-cart a {
    display: none !important;
}

/* Hide default My Account dashboard welcome messages for a cleaner look */
.woocommerce-account .woocommerce-MyAccount-content p:nth-child(1),
.woocommerce-account .woocommerce-MyAccount-content p:nth-child(2) {
    display: none !important;
}

/* =========================================================================
   CART PAGE REDESIGN (Serein Polish - Reference Match)
   ========================================================================= */

/* Cart Header */
.wc-block-cart__title {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
    text-transform: none !important;
    letter-spacing: 0.1em !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 20px !important;
    margin-bottom: 40px !important;
}

/* Cart Item Layout */
.wc-block-cart-items {
    border: none !important;
}

.wc-block-cart-item {
    padding: 30px 0 !important;
    border-bottom: 1px solid #f9f9f9 !important;
    display: flex !important;
    align-items: flex-start !important;
}

.wc-block-cart-item__image {
    width: 80px !important;
    height: 80px !important;
    margin-right: 30px !important;
}

.wc-block-cart-item__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Product Details */
.wc-block-components-product-name {
    font-family: 'Jost', sans-serif !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #000 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.wc-block-components-product-price {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #000 !important;
    margin-bottom: 10px !important;
}

.wc-block-components-product-metadata {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #999 !important;
    margin-bottom: 15px !important;
}

/* Quantity Selector (Gray Box Style) */
.wc-block-components-quantity-selector {
    background-color: #f6f6f6 !important;
    border: none !important;
    border-radius: 0 !important;
    height: 35px !important;
    width: 100px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-right: 20px !important;
}

.wc-block-components-quantity-selector__button {
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    font-size: 16px !important;
    width: 30px !important;
    height: 100% !important;
}

.wc-block-components-quantity-selector__input {
    background: transparent !important;
    border: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 12px !important;
    color: #000 !important;
    width: 30px !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Remove Button (Underlined Text) */
.wc-block-cart-item__remove-link {
    font-size: 0 !important;
    color: #000 !important;
    text-decoration: underline !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.wc-block-cart-item__remove-link::after {
    content: '削除' !important;
    font-size: 11px !important;
    text-decoration: underline !important;
    letter-spacing: 0.1em !important;
}

/* Cart Totals & Checkout Button */
.wc-block-cart__totals-title {
    display: none !important; /* Hide "Cart Totals" title */
}

.wc-block-cart__totals-container {
    border-top: 1px solid #eee !important;
    padding-top: 40px !important;
    background-color: #fff !important;
}

.wc-block-components-totals-footer-item {
    border-top: none !important;
    padding-bottom: 30px !important;
}

.wc-block-cart__submit-button {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 25px !important;
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    border: none !important;
    transition: opacity 0.3s ease !important;
}

.wc-block-cart__submit-button:hover {
    background-color: #000 !important;
    opacity: 0.8 !important;
}

/* Remove underlines from all links in cart */
.wc-block-cart a, 
.wc-block-cart-item__remove-link::after,
.wc-block-components-product-name {
    text-decoration: none !important;
}

/* Hide Estimated Total and Footer Total rows (we will move total to the button) */
.wc-block-cart__totals-title,
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item {
    display: none !important;
}

/* Sticky Checkout Button at bottom of the page */
.wc-block-cart__submit-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    padding: 20px !important;
    z-index: 9999 !important;
    border-top: 1px solid #eee !important;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05) !important;
}

.wc-block-cart__submit-button {
    max-width: 900px !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Add padding to the cart content so the last item isn't covered */
.wc-block-cart {
    padding-bottom: 180px !important;
}

/* Hide individual product line totals (subtotals per item) */
.wc-block-cart-item__total {
    display: none !important;
}

/* Order Notes Styling */



.wc-block-cart__order-notes-title {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #000 !important;
    text-decoration: underline !important;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .wc-block-cart-item {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    .wc-block-cart-item__image {
        margin-right: 20px !important;
    }
}

/* Ensure all prices are upright (not italic) for high visibility */
.amount, 
.wc-block-components-product-price, 
.wc-block-cart__submit-button,
.price,
.wc-block-components-totals-item__value {
    font-style: normal !important;
}

/* Fix Checkout Block Floating Labels Overlap & Visibility */
.wc-block-components-text-input,
.wc-block-components-select {
    margin-top: 25px !important;
    position: relative !important;
}

.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-text-input.is-active label,
.wc-block-components-select.is-active label {
    transform: translateY(-28px) scale(0.85) !important;
    transform-origin: left top !important;
    color: #999 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.wc-block-components-text-input input,
.wc-block-components-select select {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    background: transparent !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    width: 100% !important;
    color: #000 !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
    border-bottom-color: #000 !important;
    outline: none !important;
}

/* Ensure checkout sections have proper spacing */
.wc-block-checkout__form-section {
    margin-bottom: 60px !important;
}

/* Fail-safe: Hide Country/Region field in all address forms */
.woocommerce-billing-fields__field-wrapper #billing_country_field,
.woocommerce-shipping-fields__field-wrapper #shipping_country_field,
.wc-block-components-address-form .wc-block-components-address-form__country,
.wc-block-components-country-input {
    display: none !important;
}


/* Page Titles Refinement */
.wc-block-cart__title, 
.wc-block-checkout__title,
.woocommerce-account .entry-title {
    margin-top: 20px !important;
    font-size: 28px !important;
    letter-spacing: 0.2em !important;
    font-weight: 300 !important;
}

/* Micro-interactions: Product Image Hover */
.woocommerce-loop-product__link {
    display: block !important;
    overflow: hidden !important;
}

.woocommerce-loop-product__link img {
    transition: transform 1.2s cubic-bezier(0.15, 0, 0.15, 1) !important;
}

.woocommerce-loop-product__link:hover img {
    transform: scale(1.06) !important;
}

/* Smooth transitions for buttons and links */
a, button, input[type="submit"] {
    transition: all 0.4s ease !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    letter-spacing: 0.3em !important;
    opacity: 0.9 !important;
}


/* Hide individual product totals in Checkout sidebar */
.wc-block-checkout__sidebar .wc-block-components-product-price,
.wc-block-checkout__sidebar .wc-block-components-totals-item,
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
    display: none !important;
}

/* Style for the custom total display above the checkout button */
#serein-checkout-total-display {
    text-align: right !important;
    margin-bottom: 25px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    letter-spacing: 0.15em !important;
    font-weight: 500 !important;
    color: #000 !important;
    text-transform: uppercase !important;
    padding-top: 20px !important;
    border-top: 1px solid #eee !important;
}

.wc-block-checkout__actions {
    margin-top: 40px !important;
}

.wc-block-components-checkout-place-order-button {
    background-color: #000 !important;
    border-radius: 0 !important;
    padding: 25px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.25em !important;
    transition: opacity 0.3s ease !important;
}