/*
 * Custom theme additions on top of the verbatim GALT stylesheets. Keep this
 * file for markup this store needs that GALT never rendered; never restyle
 * GALT components here.
 */

/* Cookie consent (partials/cookie_consent.php, inline-styled for every theme).
   GALT has no consent banner, so it is dressed in GALT's tokens and kept
   under the cart overlay (z-index 30) instead of above the drawer. */
#cookie-consent-banner{z-index:25!important;background:var(--ink)!important;color:var(--paper)!important;font-family:var(--sans)!important;box-shadow:none!important;padding:18px clamp(16px,11vw,160px)!important}
#cookie-consent-banner a{color:var(--paper)!important;text-underline-offset:4px}
#cookie-consent-banner button{border-radius:999px!important;font-family:var(--sans)!important;background:transparent!important;color:var(--paper)!important;border:1px solid rgba(245,242,236,.45)!important}
#cookie-consent-banner button:last-child{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--paper)!important}
#cookie-preference-center{z-index:50!important;font-family:var(--sans)}
#cookie-preference-center > div{background:var(--paper)!important;color:var(--ink)!important;border-radius:0!important}

/* GALT places every .product-info small on grid row 3 (row 4 at <=420px),
   so its own "Tükendi" label lands on top of the category caption. The
   reference catalog never had a sold-out product; give the label its own row. */
.atelier-home .product-info small.stock-label{grid-row:4;margin-top:0}
@media(max-width:420px){.atelier-home .product-info small.stock-label{grid-row:5}}

/* GALT's sort select is sized by two disabled "coming soon" options this
   store does not list; keep the width they produce. */
#sort-products{min-width:283px}
@media(max-width:700px){#sort-products{min-width:0}}

/* Listing pages (shop_list.php): GALT's shop section with an <h1> (SEO) in
   place of its <h2>, styled exactly as GALT's .shop-heading h2 resolves
   (styles.css + ui-refinements.css). */
.shop-heading h1{font:400 clamp(26px,2.8vw,36px)/1.25 var(--serif);letter-spacing:-.04em;margin:0}
.custom-listing-intro{max-width:720px;margin:24px 0 0;color:#6e6a64;font-size:14px;line-height:1.8}
.custom-search-form{display:contents}
.custom-pagination{justify-content:center;padding-top:48px}
.custom-entity-links{flex-wrap:wrap;padding-top:8px}
.custom-entity-faq{max-width:760px;margin:48px auto 0}
.custom-entity-faq h2{font:400 clamp(22px,2.2vw,28px)/1.25 var(--serif);letter-spacing:-.03em;margin:0 0 16px}

/* Product page: GALT's actions row is a 2-column grid of "Favorilere ekle"
   and "Listeye ekle". This store has no saved lists yet, so the favorite
   button takes the whole row instead of leaving an empty half. */
#product-dialog .product-purchase-actions .product-detail-favorite:last-child{grid-column:1/-1}

/* Related products under the product region (GALT has none). */
.product-page .custom-related{padding-inline:0;padding-top:64px}

/* GALT dialogs shown as page regions (cart page = #review-dialog content,
   checkout page = #checkout-dialog): same box, in the page flow. */
.custom-page-dialog[open]{position:static;display:block;margin:40px auto 90px;max-height:none;overflow:visible;box-shadow:none}
/* checkout-layout.css caps #checkout-dialog at 96svh (it was a modal); in the
   page flow that cap let a tall step overflow onto the footer. */
.custom-checkout-page #checkout-dialog{width:min(1240px,calc(100% - 32px));max-height:none}
.custom-cart-page .review-dialog{width:min(740px,calc(100% - 32px));max-height:none}
.custom-page-dialog .review-content .customer-primary{width:100%;margin-bottom:12px}

/* Checkout: saved-address and payment-method choices are radios in GALT's
   .customer-address / .checkout-method boxes. GALT's form rules would
   stretch the radios (input{width:100%}) and grid the method row. */
.customer-content input[type=radio]{width:auto;flex:0 0 auto;margin-top:4px;accent-color:var(--wine)}
.customer-content label.customer-address{display:block;cursor:pointer}
.customer-content label.checkout-method{display:flex;cursor:pointer}
.customer-content .customer-address span{font-size:14px;line-height:1.6}
.custom-checkout-address{margin:8px 0 0}
.checkout-coupon [role=status].error{color:#a01828}

/* Account area additions GALT never rendered. */
.custom-social-auth{display:grid;gap:10px;margin-bottom:24px}
.custom-social-button{display:block;text-align:center;border:1px solid #c9c5be;padding:13px 14px;background:#fff}
.custom-social-auth .quiet{text-align:center;margin:6px 0 0}
.custom-account-pages{align-items:center;justify-content:space-between;margin-top:20px}
.account-panel .address h3{margin:0 0 10px}
.account-panel details.address summary{cursor:pointer}
/* Checkout step 1 is not a <form> here (saved-address choice), so give it
   the 20px rhythm GALT's .customer-content form provides. */
.custom-checkout-page [data-step-panel="1"]:not([hidden]){display:grid;gap:20px;align-content:start}
.custom-checkout-page [data-step-panel="1"] > *{margin-block:0}
.custom-checkout-page [data-step-panel="1"] .customer-primary{justify-self:start}

/* Contact form on the GALT information page (bilgi.css has no form styles):
   GALT's account form values (account-page.css). */
.custom-info-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:720px;margin-top:12px}
.custom-info-form label{display:grid;gap:8px;font-size:14px}
.custom-info-form .full{grid-column:1/-1}
.custom-info-form input,.custom-info-form textarea{font:inherit;border:1px solid #c9c5be;background:#fff;border-radius:0;padding:13px 14px;width:100%;color:#303030}
.custom-info-form input:focus,.custom-info-form textarea:focus{outline:2px solid #784866;outline-offset:1px}
.custom-info-form .primary{grid-column:1/-1;justify-self:start;background:#303030;color:#fff;border:1px solid #303030;padding:14px 20px;min-width:150px;font:inherit;cursor:pointer}
#content #account-feedback{min-height:26px;margin-top:16px;color:#365d45;font-weight:500}
#content #account-feedback.error{color:#a53120}
@media(max-width:700px){.custom-info-form{grid-template-columns:1fr}}

/* The closed mobile menu sits off-screen (translateY(-100%)) but stayed
   visible to keyboard and screen-reader users, so Tab walked through links
   nobody could see. Hidden once the slide-out transition has finished. */
.mobile-menu:not(.open){visibility:hidden;transition:transform .35s,visibility 0s .35s}
.mobile-menu.open{visibility:visible;transition:transform .35s}

/* Checkout: pre-information form / distance sales contract consent (not in
   GALT - legal requirement). Same type scale as the payment method text. */
.customer-content label.custom-checkout-terms{display:flex;gap:10px;align-items:flex-start;margin:18px 0 6px;font-size:14px;line-height:1.5;cursor:pointer}
.customer-content label.custom-checkout-terms input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:#303030}
.customer-content label.custom-checkout-terms a{text-decoration:underline}

/* Product page: variant types whose display is button / colour / image render
   as chips (furniture theme's variant_selector behaviour) instead of GALT's
   select; dropdown types keep the select. Same field look as .variant-fields. */
.variant-fields .variant-chip-field{grid-column:1/-1;display:grid;gap:8px;font-size:14px;min-width:0}
.variant-chips{display:flex;flex-wrap:wrap;gap:8px}
.variant-chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:7px 14px;border:1px solid #aaa;border-radius:4px;background:#fff;color:var(--ink);font-size:14px;line-height:1.3;text-align:left;max-width:100%}
.variant-chip:hover:not(:disabled){border-color:var(--ink)}
.variant-chip[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);font-weight:600}
.variant-chip:disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through}
.variant-chip img{width:32px;height:32px;flex:0 0 32px;object-fit:cover;border-radius:3px}
.variant-chip-dot{width:18px;height:18px;flex:0 0 18px;border-radius:50%;border:1px solid rgba(0,0,0,.25)}
.variant-chip span:last-child{overflow-wrap:anywhere}

/* Product page: pre-promotion price struck through above the current price. */
#product-dialog .dialog-price-old{margin:18px 0 0;font-size:16px;line-height:1.3;color:#8a8782}
#product-dialog .dialog-price-old s{text-decoration-thickness:1px}
#product-dialog .dialog-price-old:not([hidden]) + .dialog-price{margin-top:2px}
/* Listing cards: pre-promotion price struck through before the sale price. */
.product-info .product-price-old{margin-right:6px;color:#a39d94;font-size:.9em;text-decoration-thickness:1px}
