/*
Theme Name: CHOI&CHOI Shop
Theme URI: https://choiandchoi.com
Description: Custom child theme for CHOI&CHOI Gallery Online Shop
Author: CHOI&CHOI Gallery
Template: twentytwentyfive
Version: 1.0.0
*/

/* ===== RESET & GLOBAL ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

* { box-sizing: border-box; }

body, .wp-site-blocks {
    font-family: 'DM Sans', sans-serif !important;
    background: #FFFFFF !important;
    color: #111 !important;
    margin: 0;
    padding: 0;
}

a { color: #111; text-decoration: none; }
a:hover { color: #555; }

/* Hide any default WP/theme elements we don't need */
.wp-block-navigation,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-template-part.has-background { display: none !important; }

/* ===== CUSTOM HEADER ===== */
body::before {
    content: '';
    display: block;
    height: 68px;
}
.choichoi-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E8E8E8;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    max-width: 100%;
}
.choichoi-header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}
.choichoi-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
}
/* Use .choichoi-logo selector prefix to beat WooCommerce's
   .woocommerce-page img { height: auto } specificity (0,1,1) */
.choichoi-logo .choichoi-logo-img {
    height: 36px;
    width: auto;
    display: block;
    max-width: none;
}
.choichoi-logo-shop {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #AAA;
}
/* kept for backwards compat, no longer rendered */
.choichoi-header-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #AAA;
    border-left: 1px solid #DDD;
    padding-left: 28px;
}
.choichoi-header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.choichoi-nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #AAA;
    text-decoration: none;
    transition: color 0.2s ease;
}
.choichoi-nav-link:hover,
.choichoi-nav-link.active {
    color: #111;
}
.choichoi-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.choichoi-gallery-link {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
}
.choichoi-gallery-link:hover { color: #111; }
.choichoi-cart-link {
    border: 1px solid #D0D0D0;
    padding: 7px 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #666;
    text-decoration: none;
    transition: all 0.25s ease;
}
.choichoi-cart-link:hover { border-color: #111; color: #111; }

/* ===== PAGE HERO ===== */
.choichoi-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 28px 20px;
}
.choichoi-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 300;
    font-style: italic;
    color: #111;
    line-height: 1.2;
    margin: 0;
}
.choichoi-hero p {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    max-width: 480px;
    line-height: 1.7;
}

/* ===== CATEGORY FILTER TABS ===== */
.choichoi-category-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 0;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #E8E8E8;
    flex-wrap: wrap;
}
.choichoi-category-tabs a {
    padding: 14px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #AAA;
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.choichoi-category-tabs a.active,
.choichoi-category-tabs a:hover {
    color: #111;
    border-bottom-color: #111;
    font-weight: 500;
}
.choichoi-category-tabs .count {
    font-size: 10px;
    color: #CCC;
    margin-left: 4px;
}
.choichoi-category-tabs a.active .count { color: #666; }

/* ===== PRODUCT GRID — König Galerie exact spec ===== */

/* Grid container */
.wp-block-woocommerce-product-collection,
.wp-block-woocommerce-product-template,
ul.products,
.woocommerce ul.products,
.wc-block-product-template {
    max-width: none !important;
    margin: 0 !important;
    padding: 60px 50px 100px !important;
    list-style: none !important;
}

/* Grid layout — 4 cols × 60px gap (König exact) */
ul.products,
.woocommerce ul.products,
.wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    column-gap: 60px !important;
    row-gap: 60px !important;
}

/* Each product item — no hover transform (König is static) */
ul.products li.product,
.woocommerce ul.products li.product,
.wc-block-product-template .wc-block-product,
.wc-block-product-template .product,
.wc-block-product-template li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
}

/* ===== KÖNIG PRODUCT CARD (custom template classes) ===== */

.koenig-product-item {
    list-style: none;
}

.koenig-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image wrapper — 1:1 square, no hover zoom (König exact) */
.koenig-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.koenig-img,
.koenig-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
    margin: 0 !important;
    transition: none !important;
}

/* Product info — below image */
.koenig-product-info {
    padding-top: 16px;
}

/* Vendor / artist name — König: 16px, weight 400, letter-spacing 0.02em */
.koenig-vendor {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #000;
    margin: 0 0 4px;
    padding: 0;
}

/* Product title — König: 16px, weight 400, letter-spacing 0.02em */
.koenig-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-style: normal !important;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #000;
    margin: 0 0 4px;
    padding: 0;
}

/* Price — König: 10px, weight 300, #000 */
.koenig-price,
.koenig-price .price,
.koenig-price .woocommerce-Price-amount,
.koenig-price bdi {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.4;
    color: #000;
    display: block;
    margin: 0;
}

/* Sold badge — König: white bg, #6A6A6A text, 11px, padding 2px 6px */
.koenig-sold {
    display: inline-block;
    background: #fff;
    color: #6a6a6a;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    padding: 2px 6px;
    margin-top: 4px;
    letter-spacing: 0.014em;
}

/* Legacy sold badge (used elsewhere) */
.choichoi-sold-badge {
    background: #fff;
    color: #6a6a6a;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    display: inline-block;
    margin-top: 4px;
}

/* Artist name in loop — legacy hook (still fires on block editor) */
.choichoi-loop-artist {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: #000 !important;
    margin: 16px 0 4px !important;
}

/* Hide WooCommerce default loop elements we don't use */
ul.products li.product .button.add_to_cart_button,
ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product .button.add_to_cart_button,
ul.products li.product .star-rating,
.woocommerce ul.products li.product .star-rating,
.woocommerce-loop-product__rating,
ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product .price:not(.koenig-price .price) {
    display: none !important;
}

/* Block editor product button — hide */
.wc-block-product-template .wc-block-components-product-button,
.wc-block-product-template .wp-block-button {
    display: none !important;
}

/* Fallback: old-style ul.products product image (non-custom template) */
ul.products li.product a img,
.woocommerce ul.products li.product a img {
    aspect-ratio: 1 / 1 !important;
    object-fit: fill !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
}

/* ===== SINGLE PRODUCT PAGE ===== */
.single-product div.product,
.single-product .wp-block-group {
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px !important;
    margin: 40px auto !important;
    padding: 0 28px !important;
}
.single-product .woocommerce-product-gallery {
    flex: 0 0 55% !important;
    max-width: 55% !important;
}
.single-product .summary.entry-summary {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    padding-top: 20px;
}
.single-product .product_title {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: #000 !important;
    margin-bottom: 16px !important;
}
.single-product .price,
.single-product .price span {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 22px !important;
    color: #111 !important;
    font-weight: 500 !important;
}
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
    background: #111 !important;
    color: #fff !important;
    width: 100% !important;
    padding: 14px 32px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    margin-top: 10px !important;
}
.single-product .single_add_to_cart_button:hover { background: #333 !important; }
/* Inquire button */
.choichoi-inquire-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: #666;
    border: 1px solid #D0D0D0;
    padding: 12px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.choichoi-inquire-btn:hover { border-color: #111; color: #111; }
/* Artist link */
.choichoi-artist-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
    margin-top: 20px;
    display: inline-block;
}
.choichoi-artist-link:hover { border-color: #111; }
/* Product meta & tabs */
.single-product .product_meta { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #999; }
.woocommerce-tabs { max-width: 1000px; margin: 0 auto; padding: 0 28px; }

/* ===== CART PAGE ===== */
.woocommerce-cart table.cart th {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}
.woocommerce-cart .button,
.woocommerce-cart input.button {
    background: #111 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

/* ===== CUSTOM FOOTER ===== */
.choichoi-footer {
    border-top: 1px solid #E8E8E8;
    padding: 44px 28px;
    text-align: center;
    background: #FAFAFA;
    margin-top: 0;
}
.choichoi-footer-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}
.choichoi-footer-subtitle { font-size: 12px; color: #BBB; margin: 0; }
.choichoi-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}
.choichoi-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AAA;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1;
}
.choichoi-footer-social a svg {
    display: block;
    width: 20px;
    height: 20px;
}
.choichoi-footer-social a:hover { color: #111; }
.choichoi-footer-copy {
    font-size: 10px;
    color: #CCC;
    margin-top: 24px;
    letter-spacing: 0.04em;
}

/* ===== HIDE DEFAULT THEME STUFF ===== */
.site-footer,
.wp-block-template-part:last-child,
footer.wp-block-template-part { display: none !important; }

/* Hide WooCommerce breadcrumbs, default shop title, result count, ordering */
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-products-header,
nav.woocommerce-breadcrumb,
.wc-block-breadcrumbs,
.wp-block-breadcrumbs { display: none !important; }

/* Hide TT25 account icon, mini-cart block, navigation from parent theme */
.wp-block-woocommerce-customer-account,
.wc-block-mini-cart,
.wp-block-woocommerce-mini-cart { display: none !important; }

/* Hide any stray WooCommerce / block page title */
h1.woocommerce-products-header__title,
h1.page-title,
.woocommerce-products-header h1,
h1.wp-block-query-title,
.wp-block-query-title { display: none !important; }


/* ===== INQUIRY MODAL ===== */
.choichoi-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.choichoi-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.choichoi-modal-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: choichoiSlideUp 0.3s ease;
}
@keyframes choichoiSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.choichoi-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.choichoi-modal-close:hover { color: #111; }
.choichoi-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 8px;
    font-weight: 400;
}
.choichoi-modal-artwork {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #000;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}
.choichoi-form-field {
    margin-bottom: 18px;
}
.choichoi-form-field label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}
.choichoi-form-field input,
.choichoi-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #DDD;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #222;
    background: #FAFAFA;
    outline: none;
    transition: border-color 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
}
.choichoi-form-field input:focus,
.choichoi-form-field textarea:focus {
    border-color: #111;
    background: #fff;
}
.choichoi-form-field textarea {
    resize: vertical;
    min-height: 100px;
}
.choichoi-form-submit {
    background: #111;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background 0.2s ease;
}
.choichoi-form-submit:hover { background: #333; }
.choichoi-success-msg {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #222;
    text-align: center;
    padding: 30px 0;
    line-height: 1.6;
}


/* ===== MAILING LIST POPUP ===== */

/* Footer trigger link */
.choichoi-footer-mailing-link {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid #DDD;
    padding-bottom: 1px;
    margin: 14px 0 20px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.choichoi-footer-mailing-link:hover {
    color: #111;
    border-color: #111;
}

/* Full-screen overlay */
.choichoi-mailing-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;
    animation: choichoiOverlayIn 0.25s ease;
}
@keyframes choichoiOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup box — white, 50px padding (matches reference) */
.choichoi-mailing-box {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 50px;
    animation: choichoiBoxIn 0.3s ease;
}
@keyframes choichoiBoxIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close button — top-right text link (matches reference "Close") */
.choichoi-mailing-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}
.choichoi-mailing-close:hover { color: #111; }

/* Heading — "Join our mailing list" */
.choichoi-mailing-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 0.16em;
    color: #111;
    margin: 0 0 32px;
    line-height: 1.4;
}

/* Field group */
.choichoi-mailing-field {
    margin-bottom: 0;
}

/* Label — visually hidden, screen-reader only (reference uses hidden labels) */
.choichoi-mailing-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Input — transparent bg, bottom-border only (matches reference exactly) */
.choichoi-mailing-field input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #D8D8D8;
    border-radius: 0;
    outline: none;
    padding: 10px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #757575;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
}
.choichoi-mailing-field input::placeholder {
    color: #999;
    opacity: 1;
}
.choichoi-mailing-field input:focus {
    border-bottom-color: #111;
    color: #111;
}

/* Note — "* denotes required fields" */
.choichoi-mailing-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #BBB;
    margin: 14px 0 24px;
    letter-spacing: 0.02em;
}

/* Error message */
.choichoi-mailing-error {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #C00;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

/* Submit button wrap */
.choichoi-mailing-btn-wrap {
    margin-top: 0;
}

/* Button — dark background, white text (matches reference #151515) */
.choichoi-mailing-btn {
    display: inline-block;
    background: #151515;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 12px 28px 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-appearance: none;
}
.choichoi-mailing-btn:hover:not(:disabled) { background: #333; }
.choichoi-mailing-btn:disabled { opacity: 0.6; cursor: default; }

/* Success state */
.choichoi-mailing-success p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #444;
    letter-spacing: 0.04em;
    line-height: 1.7;
    margin: 0;
    padding: 20px 0;
    text-align: center;
}

/* ===== ADMIN BAR FIX ===== */
/* When admin bar is showing (logged in), push header down */
.admin-bar .choichoi-header {
    top: 32px;
}
.admin-bar body::before {
    height: 100px; /* 68px header + 32px admin bar */
}


/* Option: completely hide admin bar on the frontend for cleaner look */
/* Uncomment the lines below if you want to hide it completely */
/*
#wpadminbar {
    display: none !important;
}
html {
    margin-top: 0 !important;
}
body.admin-bar .choichoi-header {
    top: 0;
}
body.admin-bar::before {
    height: 68px;
}
*/

/* ===== SHOP HOMEPAGE — FULL-WIDTH ARTWORK PANEL STRIP =====
   Products render via the WC block template. We break the collection
   div out of the constrained layout, then display the UL as a
   single full-width flex row of image-only panels.
   ============================================================== */

/* 1. Break the collection wrapper out of main's 50px padding and
      remove its own max-width / auto-centering */
body.woocommerce-shop .wp-block-woocommerce-product-collection {
    max-width: none !important;
    padding: 0 !important;
    width: calc(100% + var(--wp--style--root--padding-left, 50px) + var(--wp--style--root--padding-right, 50px)) !important;
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 50px)) !important;
    margin-right: 0 !important;
}

/* 2. The UL itself: full-width flex row, panel height */
body.woocommerce-shop .wc-block-product-template {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    list-style: none !important;
    height: 58vh !important;
    min-height: 300px !important;
    max-height: 580px !important;
    overflow: hidden !important;
    grid-template-columns: unset !important;
}

/* 3. Each panel = one equal flex cell */
body.woocommerce-shop .wc-block-product-template .wc-block-product,
body.woocommerce-shop .wc-block-product-template li {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: none !important;
}
body.woocommerce-shop .wc-block-product-template .wc-block-product:hover {
    transform: none !important;
}

/* 4. Image block fills the panel */
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-image,
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: unset !important;
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
body.woocommerce-shop .wc-block-product-template .wc-block-product:hover .wc-block-components-product-image img {
    transform: scale(1.04) !important;
}

/* 5. Hide all text — title, price, artist name, button */
body.woocommerce-shop .wc-block-product-template .wp-block-post-title,
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-title,
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-price,
body.woocommerce-shop .wc-block-product-template .wp-block-button,
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-button,
body.woocommerce-shop .wc-block-product-template .choichoi-loop-artist,
body.woocommerce-shop .wc-block-product-template .choichoi-sold-badge {
    display: none !important;
}

/* =============================================
   RESPONSIVE LAYOUT — DO NOT PUT ANY OTHER
   MEDIA QUERIES ANYWHERE ELSE IN THIS FILE
   ============================================= */

/* Prevent horizontal overflow on any screen */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Images never overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth touch scrolling everywhere */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ===========================================
   RESPONSIVE — MOBILE FIRST
   =========================================== */

/* ---------- PHONE (max 767px) ---------- */
@media screen and (max-width: 767px) {

    /* Shop panel strip: single column on mobile */
    body.woocommerce-shop .wp-block-woocommerce-product-collection {
        width: 100% !important;
        margin-left: 0 !important;
    }
    body.woocommerce-shop .wc-block-product-template {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
    }
    body.woocommerce-shop .wc-block-product-template .wc-block-product,
    body.woocommerce-shop .wc-block-product-template li {
        flex: none !important;
        width: 100% !important;
        height: 260px !important;
    }

    /* PRODUCT GRID: one item, full width, stacked */
    ul.products,
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    body.woocommerce ul.products,
    body .woocommerce ul.products,
    .wp-block-query ul.products,
    .woocommerce ul.products.columns-1,
    .woocommerce ul.products.columns-2,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .woocommerce ul.products.columns-5,
    .woocommerce ul.products.columns-6,
    .wc-block-product-template {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px 40px !important;
        margin: 0 !important;
    }

    ul.products li.product,
    .woocommerce ul.products li.product,
    .woocommerce ul.products.columns-3 li.product,
    .woocommerce ul.products.columns-4 li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce[class*="columns-"] ul.products li.product,
    .wc-block-product-template .wc-block-product,
    .wc-block-product-template .product,
    .wc-block-product-template li {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 0 28px 0 !important;
        padding: 0 !important;
    }

    ul.products li.product a img,
    .woocommerce ul.products li.product a img,
    .wc-block-product-template .wc-block-product img,
    .wc-block-product-template .product img,
    .wc-block-product-template li img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Header */
    .choichoi-header {
        height: 56px !important;
        padding: 0 16px !important;
    }
    .choichoi-header-label { display: none !important; }
    .choichoi-header-nav { display: none !important; }
    .choichoi-gallery-link { display: none !important; }
    body::before { height: 56px !important; }

    /* Hero */
    .choichoi-hero { padding: 28px 16px 12px !important; }
    .choichoi-hero h1 { font-size: 26px !important; }
    .choichoi-hero p { font-size: 13px !important; }

    /* Category tabs — scroll horizontal */
    .choichoi-category-tabs {
        padding: 12px 16px 0 !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    .choichoi-category-tabs::-webkit-scrollbar { display: none; }
    .choichoi-category-tabs a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    /* Single product — stack */
    .single-product div.product,
    .single-product .wp-block-group {
        flex-direction: column !important;
        padding: 0 16px !important;
    }
    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Modal full width */
    .choichoi-modal-content { max-width: 100% !important; padding: 24px 16px !important; }
    .choichoi-form-field input,
    .choichoi-form-field textarea { font-size: 16px !important; }

    /* Footer */
    .choichoi-footer { padding: 28px 16px !important; }

    /* Mailing popup — full width on mobile */
    .choichoi-mailing-box {
        padding: 36px 24px !important;
        max-width: 100% !important;
    }
    .choichoi-mailing-heading {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }
    .choichoi-mailing-field input {
        font-size: 16px !important; /* prevent iOS zoom */
    }

    /* Buttons full width */
    .woocommerce .button,
    .single_add_to_cart_button,
    .choichoi-inquire-btn { width: 100% !important; }
}

/* ---------- TABLET (768px - 1024px) ---------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Shop panel strip: 3 columns on tablet */
    body.woocommerce-shop .wc-block-product-template {
        flex-wrap: wrap !important;
        height: auto !important;
        max-height: none !important;
    }
    body.woocommerce-shop .wc-block-product-template .wc-block-product,
    body.woocommerce-shop .wc-block-product-template li {
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
        height: 260px !important;
    }

    ul.products,
    .woocommerce ul.products,
    .wc-block-product-template {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 32px !important;
        row-gap: 48px !important;
        padding: 40px 32px 80px !important;
    }
    ul.products li.product,
    .woocommerce ul.products li.product,
    .wc-block-product-template .wc-block-product,
    .wc-block-product-template .product,
    .wc-block-product-template li {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* ===== KÖNIG-STYLE SINGLE PRODUCT (artwork display) ===== */
.choichoi-artist-byline {
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 .4em;
    font-weight: 400;
}
.choichoi-artist-byline a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.choichoi-artist-byline a:hover { border-bottom-color: #111; }

.choichoi-artwork-specs {
    margin: 1.25em 0 1.5em;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}
.choichoi-artwork-specs .choichoi-spec-row { display: flex; gap: 1em; }
.choichoi-artwork-specs dt { margin: 0; min-width: 104px; color: #999; font-weight: 400; }
.choichoi-artwork-specs dd { margin: 0; }

.choichoi-price-vat-note {
    display: block;
    font-size: 11px;
    color: #999;
    letter-spacing: .03em;
    margin-top: .3em;
}
.choichoi-price-request { font-size: 16px; color: #111; }
.choichoi-soldout {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b00020;
}

/* ===== LOGIN-TO-BUY ===== */
.choichoi-login-to-buy { display: inline-block; }
.choichoi-login-hint { font-size: 12px; color: #999; margin-top: .6em; line-height: 1.5; }

/* (login-to-buy gate removed — buying is open) */

/* ===== KÖNIG-STYLE ARCHIVE TOOLBAR ===== */
.choichoi-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 1rem; margin: 0 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid #E8E8E8;
}
.choichoi-toolbar-cats { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.choichoi-toolbar-cats a {
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #999; padding-bottom: 2px;
}
.choichoi-toolbar-cats a.active, .choichoi-toolbar-cats a:hover { color: #111; border-bottom: 1px solid #111; }
.choichoi-toolbar-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.choichoi-filter, .choichoi-search input {
    font-size: 12px; letter-spacing: .04em; padding: .5rem .7rem; border: 1px solid #E8E8E8;
    background: #fff; color: #111; font-family: inherit;
}
.choichoi-search { margin: 0; }
.choichoi-search input { min-width: 150px; }

/* ===== WISHLIST ===== */
.choichoi-heart {
    background: rgba(255,255,255,.85); border: 1px solid #E8E8E8; border-radius: 50%;
    width: 34px; height: 34px; cursor: pointer; font-size: 16px; line-height: 1; color: #111;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.choichoi-heart:hover { border-color: #111; }
.choichoi-heart.is-saved { color: #b00020; border-color: #b00020; }
.koenig-product-item { position: relative; }
.koenig-product-item .choichoi-heart { position: absolute; top: 10px; right: 10px; z-index: 3; }
.choichoi-single-wishlist { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; }
.choichoi-single-wishlist .choichoi-heart-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #666; }
.choichoi-wishlist-link { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.choichoi-wishlist-grid { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; padding: 0; }
.choichoi-wishlist-empty, .choichoi-wishlist-loading { color: #999; padding: 2rem 0; }
@media (max-width: 781px){ .choichoi-wishlist-grid { grid-template-columns: repeat(2,1fr); } }

/* ===== KÖNIG-STYLE SINGLE PRODUCT SUMMARY (override) ===== */
.single-product .product_title,
.single-product .wp-block-post-title,
.single-product .entry-summary h1 {
    font-weight: 300 !important;   /* piece name: light + smaller, under the bold artist */
    font-size: 14px !important;
    color: #555 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: .1em 0 1.6em !important;
    line-height: 1.3;
}
.choichoi-artist-byline {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .02em;
    margin: 0 0 .15em;
    line-height: 1.25;
}
.choichoi-artist-byline a { border: none; }
/* stacked spec lines, no labels */
.choichoi-artwork-specs { margin: 0 0 1.4em; font-size: 14px; line-height: 1.55; color: #111; }
.choichoi-artwork-specs .choichoi-spec-line { display: block; }
/* price: net bold + gross grey + vat note */
.choichoi-price-net { font-weight: 700; color: #111; }
.choichoi-price-gross { color: #999; margin-left: .5em; }
.choichoi-price-vat-note { display: inline; font-size: 12px; color: #999; margin-left: .5em; letter-spacing: 0; }
/* heart top-right, icon only */
.choichoi-single-wishlist { float: right; margin: 0; display: block; }
.choichoi-single-wishlist .choichoi-heart { border: none; background: none; width: auto; height: auto; font-size: 24px; }
.choichoi-single-wishlist .choichoi-heart:hover { color: #b00020; }
/* PURCHASE / Log in to buy button — full-width black */
.single-product .single_add_to_cart_button,
.single-product .wp-block-woocommerce-add-to-cart-form button[type="submit"],
.single-product .choichoi-login-to-buy {
    background: #111 !important; color: #fff !important; border: none !important; border-radius: 0 !important;
    text-transform: uppercase; letter-spacing: .12em; font-size: 12px; width: 100%; max-width: 420px;
    padding: 1.1rem 1rem !important; text-align: center; display: block;
}
.single-product .single_add_to_cart_button:hover,
.single-product .choichoi-login-to-buy:hover { background: #333 !important; color: #fff !important; }
/* framing / variation dropdown like König's "Option:" panel */
.single-product .variations select,
.single-product .wp-block-woocommerce-add-to-cart-form select {
    width: 100%; max-width: 420px; padding: .9rem 1rem; border: 1px solid #111; border-radius: 0;
    font-size: 13px; background: #fff; margin-bottom: .8rem;
}
.single-product .variations { margin-bottom: .4rem; }
.single-product .variations th { display: none; }
/* accordion rows */
.choichoi-accordion { margin-top: 1.6rem; max-width: 420px; border-top: 1px solid #E8E8E8; }
.choichoi-acc-row { display: block; border-bottom: 1px solid #E8E8E8; padding: 1rem 0; font-size: 14px; color: #111; cursor: pointer; }
.choichoi-acc-row summary { list-style: none; position: relative; outline: none; }
.choichoi-acc-row summary::-webkit-details-marker { display: none; }
.choichoi-acc-row summary::after { content: '\203A'; position: absolute; right: 0; color: #999; font-size: 18px; line-height: 1; }
details.choichoi-acc-row[open] summary::after { content: '\2304'; }
.choichoi-acc-body { padding-top: .9rem; color: #555; font-size: 13px; line-height: 1.65; }
.choichoi-acc-link { position: relative; }
.choichoi-acc-link::after { content: '\203A'; position: absolute; right: 0; color: #999; font-size: 18px; }

/* ===== KÖNIG PDP — full custom single-product layout ===== */
/* Full-width warm-grey field via the content wrapper (scrollbar-safe — no 100vw shift) */
.single-product .wp-site-blocks { background: #f4f4f3 !important; }
.single-product .choichoi-pdp {
    background: #f4f4f3;
    max-width: 1560px; width: 100%; margin: 0 auto; box-sizing: border-box;
    padding: 64px clamp(20px, 4vw, 64px);
    font-family: Helvetica, Arial, 'Inter', sans-serif;
}
.choichoi-pdp-inner {
    max-width: 1520px; margin: 0 auto;
    display: grid; grid-template-columns: 70% 27%; gap: 3%; align-items: start;
}
.choichoi-pdp-image { display: flex; justify-content: center; align-items: flex-start; }
.choichoi-pdp-image img, .choichoi-pdp-img {
    max-width: 100%; height: auto; box-shadow: 0 28px 56px rgba(0,0,0,.16);
}
.choichoi-pdp-details { position: relative; color: #111; }
.choichoi-pdp-details .choichoi-heart {
    position: absolute; top: -4px; right: 0; border: none; background: none;
    width: auto; height: auto; font-size: 26px; color: #111;
}
.choichoi-pdp-details .choichoi-heart:hover { color: #b00020; }
.choichoi-pdp-artist {
    font-size: 30px; font-weight: 700; text-transform: uppercase;
    line-height: 1.12; letter-spacing: .005em; padding-right: 44px; margin: 0;
}
.choichoi-pdp-artist a { border: none; color: #111; }
.choichoi-pdp-title {
    font-size: 30px !important; font-weight: 700 !important; text-transform: uppercase !important;
    line-height: 1.12 !important; letter-spacing: .005em; color: #111 !important; margin: 0 0 24px !important;
}
.choichoi-pdp-specs { font-size: 16px; line-height: 1.6; color: #111; margin: 0 0 20px; }
.choichoi-pdp-spec { display: block; }
.choichoi-pdp-price { font-size: 16px; margin: 0 0 20px; }
.choichoi-pdp-price .choichoi-price-net { font-weight: 700; color: #111; }
.choichoi-pdp-price .choichoi-price-gross { color: #8a8a8a; font-size: 14px; margin-left: .5em; }
.choichoi-pdp-price .choichoi-price-vat-note { color: #8a8a8a; font-size: 14px; margin-left: .35em; }
/* buy area: framing dropdown + PURCHASE */
.choichoi-pdp-buy { max-width: 100%; }
.choichoi-pdp-buy table.variations { border: none; margin: 0 0 10px; }
.choichoi-pdp-buy table.variations th, .choichoi-pdp-buy table.variations .label { display: none; }
.choichoi-pdp-buy table.variations td { display: block; padding: 0; }
.choichoi-pdp-buy select {
    width: 100%; height: 56px; border: 1px solid #ddd; border-radius: 6px; padding: 0 18px;
    font-size: 15px; color: #111; background-color: #fff;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: right 18px center;
}
.choichoi-pdp-buy .quantity,
.choichoi-pdp-buy .reset_variations,
.choichoi-pdp-buy .woocommerce-variation-price,
.choichoi-pdp-buy .woocommerce-variation-availability { display: none !important; }
.choichoi-pdp-buy .single_variation_wrap { margin: 0; }
.choichoi-pdp-buy .single_add_to_cart_button,
.choichoi-pdp-buy button[type="submit"],
.choichoi-pdp-buy .choichoi-inquire-btn {
    width: 100%; height: 56px; line-height: 56px; padding: 0 !important;
    background: #000 !important; color: #fff !important; border: none !important; border-radius: 0 !important;
    text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-top: 8px; display: block; text-align: center;
}
.choichoi-pdp-buy .single_add_to_cart_button:hover,
.choichoi-pdp-buy button[type="submit"]:hover { background: #222 !important; }
.choichoi-pdp .choichoi-accordion { max-width: 100%; margin-top: 26px; border-top: 1px solid #e2e2e2; }
.choichoi-pdp .choichoi-acc-row { border-bottom: 1px solid #e2e2e2; }
/* mobile: single column, image first */
@media (max-width: 900px) {
    .single-product .choichoi-pdp { padding: 32px 20px; }
    .choichoi-pdp-inner { grid-template-columns: 1fr; gap: 32px; }
    .choichoi-pdp-image img, .choichoi-pdp-img { max-width: 100%; }
    .choichoi-pdp-artist, .choichoi-pdp-title { font-size: 24px !important; }
}
