/*
Theme Name: LuckyMM
Description: Tema Soft Editorial Luxury untuk LuckyMM dan WooCommerce.
Version: 0.2.28
Requires PHP: 8.0
Text Domain: luckymm
*/

:root { --paper:#f8f5f0; --cream:#f0e5d9; --sand:#e8dacb; --brown:#613d2b; --ink:#292726; --muted:#64534b; --line:#cdb7a5; --radius:16px; --heading:Georgia,serif; --cart-orange:#ffe9df; --cart-orange-text:#a53621; --cart-orange-hover:#ffddcd; }
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.55 system-ui,sans-serif; }
img { max-width:100%; height:auto; vertical-align:middle; }
a { color:var(--brown); text-underline-offset:.18em; }
button, input, select, textarea { font:inherit; }
button, .button, .woocommerce a.button, .woocommerce button.button, .woocommerce button.button.alt { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; min-height:44px; padding:.55rem 1.15rem; border:1px solid var(--brown); border-radius:100px; font-weight:650; text-decoration:none; line-height:1.3; color:white; background:var(--brown); cursor:pointer; }
button:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background:#492b1e; color:white; }
:focus-visible { outline:2px solid #66325b; outline-offset:4px; }
h1,h2,h3 { font-family:var(--heading); font-weight:500; line-height:1.08; }
h1 { font-size:clamp(2.25rem,5vw,4.5rem); }
h2 { font-size:clamp(1.8rem,3.1vw,3.3rem); margin:0 0 1rem; }
.container { width:min(1340px, calc(100% - 6vw)); margin-inline:auto; }
.content-page,.store-page { padding-block:2.25rem 4rem; min-height:65vh; }
.screen-reader-text,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link:focus { position:fixed; z-index:20; background:white; padding:1rem; }
.site-header { background:#fffaf4; border-bottom:1px solid #e9dcd0; }
.header-inner { display:flex; align-items:center; gap:clamp(.6rem,1.8vw,1.65rem); min-height:82px; }
.brand { display:block; width:138px; flex:0 0 auto; }
.desktop-nav { display:flex; gap:clamp(.6rem,1.5vw,1.35rem); margin-inline:auto; }
.desktop-nav a,.header-cart,.mobile-nav a { color:var(--ink); font-size:.86rem; font-weight:650; text-decoration:none; }
.site-header .header-cart,.mobile-nav .mobile-cart { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:100px; color:var(--cart-orange-text); background:var(--cart-orange); }
.site-header .header-cart { flex:none; min-height:36px; padding:5px 11px; white-space:nowrap; }
.site-header .header-cart::before,.mobile-nav .mobile-cart::before { content:"\e01d" / ""; flex:none; font:15px/1 WooCommerce; }
.site-header .header-cart:hover,.mobile-nav .mobile-cart:hover { background:var(--cart-orange-hover); }
.desktop-nav a:hover,.mobile-nav a:hover { text-decoration:underline; }
@supports (mask-image:url('assets/logo.png')) {
  .site-header .brand,.site-footer .brand { position:relative; }
  .site-header .brand img,.site-footer .brand img { display:block; opacity:0; }
  .site-header .brand::after,.site-footer .brand::after { content:''; position:absolute; inset:0; pointer-events:none; background:var(--logo-ink); mask:url('assets/logo.png') center/contain no-repeat; }
  .site-header .brand { --logo-ink:#583a2a; }
  .site-footer .brand { --logo-ink:#f2d8b6; }
}
.product-search { display:flex; gap:.35rem; }
input:not([type=hidden]),select,textarea { color:var(--ink); background:#fffaf4; border:1px solid var(--line); border-radius:10px; min-height:44px; padding:.5rem .75rem; max-width:100%; }
.product-search input { width:clamp(110px,15vw,235px); border-radius:100px; }
.homepage { padding-block:1.1rem 4rem; display:grid; gap:clamp(1.7rem,3vw,3.5rem); }
.editorial { position:relative; background:linear-gradient(115deg,#f5e8dc,#d2ab94); color:var(--brown); overflow:hidden; }
.editorial--lookbook { border-radius:var(--radius); }
.editorial-slide { position:relative; min-height:clamp(310px,37vw,580px); display:flex; align-items:center; isolation:isolate; }
.editorial--lookbook .editorial-slide { min-height:clamp(265px,25vw,405px); }
.editorial-slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.editorial-slide:after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#f8eee4 3%,#f8eee4db 25%,#f8eee41a 70%); }
.editorial-copy { padding:2rem max(5vw,24px) 4rem; max-width:660px; }
.editorial-copy h1,.editorial-copy h2 { margin:0 0 1rem; }
.editorial-copy h2 { font-size:clamp(2rem,4.6vw,4rem); }
.carousel-controls { position:absolute; bottom:.8rem; right:1rem; display:flex; gap:.25rem; }
.carousel-controls button { min-width:44px; padding-inline:.55rem; background:#fff9f1; color:var(--brown); }
.carousel-controls [aria-current=true] { background:var(--brown); color:white; }
.category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.category-grid a { display:flex; overflow:hidden; align-items:center; justify-content:space-between; min-height:108px; padding:0 0 0 1rem; border-radius:var(--radius); color:var(--brown); background:var(--cream); text-decoration:none; font-size:1.05rem; font-weight:650; }
.category-grid img { height:108px; width:48%; object-fit:cover; }
.section-title { display:flex; gap:1rem; align-items:baseline; justify-content:space-between; }
.filters { display:flex; flex-wrap:wrap; align-items:end; gap:.65rem; margin:0 0 1.25rem; padding:1rem; border:1px solid var(--line); border-radius:var(--radius); }
.filters label { display:grid; gap:.25rem; font-size:.86rem; }
.filters input { width:9rem; }
.woocommerce ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.woocommerce ul.products.columns-5 { grid-template-columns:repeat(5,minmax(0,1fr)); }
.woocommerce ul.products::before,.woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product { width:auto; margin:0; padding:.75rem; background:#fffaf4; border-radius:var(--radius); border:1px solid #e8d7c8; min-width:0; }
.woocommerce ul.products li.product img { aspect-ratio:4/5; object-fit:cover; border-radius:10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-family:inherit; }
.woocommerce ul.products li.product .price,.woocommerce div.product p.price { color:var(--brown); font-weight:650; }
.stock.out-of-stock { color:#8c222d; font-weight:600; }
.woocommerce div.product .product_title { font-size:clamp(2rem,4vw,3.4rem); }
.woocommerce div.product .single_add_to_cart_button { margin-right:.4rem; }
.site-footer { background:#33241d; color:var(--paper); }
.site-footer a { color:inherit; }
.footer-inner { display:flex; gap:1rem; align-items:center; justify-content:space-between; padding-block:1.2rem; }
.footer-inner ul { display:flex; flex-wrap:wrap; gap:1rem; margin:0; padding:0; list-style:none; }
.mobile-nav { display:none; }
.cart-drawer { --drawer-gutter:clamp(.85rem,3.5vw,1.25rem); position:fixed; inset:0 0 0 auto; width:min(100%,480px); max-width:100%; height:100dvh; max-height:none; margin:0; padding:0; border:0; overflow:hidden; background:var(--paper); color:var(--ink); }
.cart-drawer[open] { display:flex; flex-direction:column; }
.cart-drawer::backdrop { background:#28181266; }
body:has(.cart-drawer[open]) { overflow:hidden; }
.drawer-header { display:flex; flex:none; justify-content:space-between; align-items:center; gap:1rem; padding:.65rem var(--drawer-gutter); border-bottom:1px solid #e5d5c9; background:#fffaf4; }
.drawer-header h2 { margin:0; color:var(--brown); font-size:1.55rem; }
.drawer-header form { margin:0; }
.drawer-header button { width:44px; padding:0; border-color:#e5d5c9; color:var(--brown); background:#f3e8df; font-size:1.15rem; }
.drawer-header button:hover { color:var(--brown); background:#eadacc; }
.cart-drawer [data-cart-content] { display:flex; flex-direction:column; flex:1; min-height:0; }
.drawer-body { flex:1; min-height:0; padding:.3rem var(--drawer-gutter) .8rem; overflow:auto; overscroll-behavior:contain; }
.drawer-empty { margin:1rem 0; color:var(--muted); }
.drawer-items { list-style:none; margin:0; padding:0; }
.drawer-items > li { display:grid; grid-template-columns:clamp(46px,12vw,64px) minmax(0,1fr) auto; align-items:start; gap:clamp(.45rem,2vw,.75rem); border-bottom:1px solid #e5d5c9; padding:.85rem 0; }
.drawer-items--selectable > li { grid-template-columns:32px clamp(42px,11vw,64px) minmax(0,1fr) auto; }
.drawer-item-choice { display:grid; min-height:44px; place-items:center; cursor:pointer; }
.drawer-item-choice input[type="checkbox"] { width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:#28563c; cursor:inherit; }
.drawer-select-all { display:grid; grid-template-columns:32px 1fr; align-items:center; gap:clamp(.45rem,2vw,.75rem); border-bottom:1px solid #e5d5c9; color:var(--brown); font-size:.85rem; font-weight:650; cursor:pointer; }
.drawer-selection-help,.drawer-selected-count { margin:.45rem 0 .55rem; color:var(--muted); font-size:.8rem; }
.drawer-items img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; }
.drawer-item-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; color:var(--ink); font-size:.9rem; font-weight:650; line-height:1.3; text-decoration:none; }
.drawer-item-title:hover { text-decoration:underline; }
.drawer-item-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .5rem; margin-top:.3rem; color:var(--muted); font-size:.73rem; }
.drawer-item-meta .variation { display:flex; flex-wrap:wrap; gap:0 .2rem; margin:0; }
.drawer-item-meta .variation dt { font-weight:650; }
.drawer-item-meta .variation :is(dd,p) { margin:0; }
.drawer-unit-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:.15rem .35rem; margin:.3rem 0 .35rem; font-size:.8rem; }
.drawer-unit-price del { color:#923b38; }
.drawer-unit-price small { color:var(--muted); font-size:.73rem; }
.drawer-line-total { font-size:.86rem; white-space:nowrap; }
.drawer-item-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.15rem .55rem; font-size:.8rem; }
.drawer-item-actions .quantity { margin:0; }
.drawer-item-actions .qty { width:3.25rem; padding:.3rem .35rem; min-height:38px; text-align:center; font-size:.84rem; }
.drawer-item-actions a { display:inline-grid; align-items:center; min-height:38px; }
.drawer-update { margin-top:.7rem; padding:.35rem .8rem; border-color:#dac4b3; color:var(--brown); background:#fffaf4; font-size:.82rem; }
.drawer-update:hover { color:var(--brown); background:#f0e5d9; }
.drawer-summary { flex:none; padding:.75rem var(--drawer-gutter) .2rem; border-top:1px solid #e5d5c9; background:#fffaf4; }
.drawer-breakdown { display:grid; gap:.25rem; margin:0 0 .6rem; font-size:.86rem; }
.drawer-breakdown > div { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; }
.drawer-breakdown dd { margin:0; font-variant-numeric:tabular-nums; white-space:nowrap; }
.drawer-breakdown .drawer-discount { color:#923b38; }
.drawer-breakdown .drawer-total { margin-top:.28rem; padding-top:.4rem; border-top:1px solid #e5d5c9; font-size:1rem; font-weight:700; }
.wp-block-woocommerce-cart-order-summary-block .luckymm-cart-summary {
	display:grid; gap:.5rem; margin:.75rem 0; padding:1rem;
	background:#fcf8f2; border:1px solid #e5d5c9; border-radius:.65rem;
}
.luckymm-cart-summary .drawer-total { padding-top:.6rem; font-size:1.05rem; }
.cart-checkout-selection { margin:.75rem 0 1rem; }
.cart-checkout-selection button { width:100%; border-color:#dac4b3; background:#fffaf4; color:var(--brown); font-size:.86rem; }
.cart-checkout-selection button:hover { background:#efe1d5; color:var(--brown); }
.wp-block-woocommerce-cart-order-summary-block:has(.luckymm-cart-summary[data-replaces-total="true"]) > .wc-block-components-totals-wrapper:has(> .wc-block-components-totals-footer-item) { display:none; }
.cart-drawer .drawer-summary .wa-button { min-height:44px; padding:.45rem .8rem; border-color:#28563c; background:#28563c; color:#fffaf4; font-size:.85rem; }
.cart-drawer .drawer-summary .wa-button:hover { background:#204831; }
.cart-drawer .drawer-summary .wa-button:disabled { background:#e9ded6; border-color:#ddcbbc; color:#64534b; cursor:default; }
[data-cart-content][aria-busy="true"] [data-drawer-checkout] { opacity:.55; pointer-events:none; }
.drawer-summary p { margin:.4rem 0 0; color:var(--muted); font-size:.73rem; text-align:center; }
.drawer-view-cart { display:block; flex:none; padding:.4rem var(--drawer-gutter) max(.6rem,env(safe-area-inset-bottom)); background:#fffaf4; font-size:.77rem; text-align:center; }
.wa-button { display:flex; background:#1a603c; }
.wa-content { max-width:720px; }
.wa-form { display:grid; gap:1rem; }
.wa-form label { display:grid; gap:.3rem; }
.wa-form textarea { resize:vertical; }
.wa-message { display:block; width:100%; min-height:15rem; background:white; }
.wa-error { padding:.8rem; border-left:4px solid #8c222d; color:#8c222d; }

@media(max-width:1000px) { .desktop-nav { display:none; } .product-search { margin-left:auto; } }
@media(max-width:720px) {
  body:has(.mobile-nav) { padding-bottom:calc(57px + env(safe-area-inset-bottom)); }
  .header-inner { flex-wrap:wrap; justify-content:space-between; padding-block:.35rem .7rem; }
  .brand { width:108px; }
  .product-search { width:100%; order:3; }
  .product-search input { flex:1; width:0; min-width:0; }
  .header-cart { min-height:44px; display:grid; align-items:center; }
  .mobile-nav { display:grid; grid-template-columns:repeat(4,1fr); position:fixed; z-index:5; inset:auto 0 0; background:#fffaf4; border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); }
  .mobile-nav a { display:grid; min-height:55px; place-items:center; }
  .mobile-nav .mobile-cart { align-self:center; justify-self:center; max-width:calc(100% - 4px); min-height:44px; gap:3px; padding:4px 6px; font-size:.68rem; line-height:1.1; text-align:center; }
  .mobile-nav .mobile-cart::before { font-size:12px; }
  .category-grid { grid-auto-flow:column; grid-template-columns:none; grid-auto-columns:minmax(155px,46%); overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px .4rem; }
  .category-grid li { scroll-snap-align:start; }
  .category-grid a { min-height:86px; }
  .category-grid img { height:86px; }
  .woocommerce ul.products,.woocommerce ul.products.columns-5 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
  .filters { gap:.5rem; }
  .filters label { width:calc(50% - .3rem); }
  .filters input { width:100%; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
  .drawer-item-actions :is(.qty,a) { min-height:44px; }
}
@media(max-height:580px) {
  .cart-drawer [data-cart-content] { overflow:auto; }
  .drawer-body { flex:none; overflow:visible; }
}
@media(max-width:370px) { .mobile-nav .mobile-cart { flex-direction:column; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; } }
