/* Esma Çiçekçilik */
:root {
  --rose: #9a3b4a;
  --rose-deep: #7a2e3b;
  --blush: #e8c9b8;
  --cream: #f6f1ea;
  --paper: #fffcf8;
  --ink: #2c2420;
  --muted: #7a716a;
  --line: #e6ddd4;
  --sage: #5e7a62;
  --gold: #c4a574;
  --wa: #25d366;
  --wa-dark: #1da851;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --max: 1120px;
  --pink: var(--rose);
  --pink-deep: var(--rose-deep);
  --lavender: #f3ebe4;
  --cta: var(--rose);
  --bg: var(--paper);
  --color-primary: var(--rose);
  --color-primary-light: var(--blush);
  --color-border: var(--line);
  --color-dark: var(--ink);
  --color-whatsapp: var(--wa);
  --color-whatsapp-dark: var(--wa-dark);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Top bar + header */
.top-bar { background: var(--ink); color: #f4ece6; font-size: 12px; letter-spacing: .02em; }
.top-bar-inner { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; align-items: center; }
.top-bar-inner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-bar a { color: var(--blush); font-weight: 600; flex-shrink: 0; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,252,248,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.header-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-menu-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); cursor: pointer; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex-shrink: 0;
}
.header-menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.header-menu-btn:hover { border-color: var(--rose); background: var(--cream); }
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-img, .logo-mark {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.logo-mark {
  display: grid; place-items: center;
  background: var(--ink); color: var(--blush);
  font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); }
.logo-text em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.search-input-wrapper { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-input-wrapper input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; outline: none; background: transparent; }
.search-btn { border: 0; background: var(--ink); color: #fff; padding: 0 18px; font-weight: 600; cursor: pointer; }
.search-btn:hover { background: var(--rose); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; padding: 9px 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-cart { background: #fff; border-color: var(--line); position: relative; color: var(--ink); }
.btn-cart:hover { border-color: var(--rose); color: var(--rose); }
.cart-count-badge {
  min-width: 18px; height: 18px; border-radius: 999px; background: var(--rose); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-left: 2px; padding: 0 5px;
}
.category-pills { border-top: 1px solid var(--line); background: rgba(255,252,248,.9); }
.pills-inner { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
.pills-inner::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--muted); border: 1px solid transparent;
}
.pill:hover, .pill.active { color: var(--rose); background: var(--cream); border-color: var(--line); }
.header-search { position: relative; min-width: 0; }
.search-autocomplete-box { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(44,36,32,.1); z-index: 40; overflow: hidden; }
.search-autocomplete-box:not(:empty), .search-autocomplete-box.active { display: block; }
.search-autocomplete-box a, .autocomplete-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f4eee8; }
.search-autocomplete-box img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.autocomplete-info h5 { margin: 0; font-size: 14px; }
.autocomplete-info span { font-size: 13px; color: var(--rose); font-weight: 700; }

.shop-intro { padding: 18px 0 6px; }
.shop-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.shop-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
}
.shop-intro-brand { min-width: 0; }
.shop-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-ilce-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em;
}
.shop-ilce-name { color: var(--ink); }
.shop-ilce-fixed { color: var(--rose); }
.shop-intro-meta { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Hero */
.hero { padding: 28px 0 6px; }
.hero-banner {
  background: linear-gradient(160deg, #3d2a2c 0%, #6b3944 55%, #9a3b4a 100%);
  color: #f8efe8;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 48px);
  text-align: left;
}
.hero-kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--blush); }
.hero-brand { margin: 0 0 10px; font-family: var(--display); font-size: clamp(36px, 7vw, 64px); font-weight: 600; line-height: 1; }
.hero-lead { margin: 0 0 22px; max-width: 42ch; color: rgba(248,239,232,.86); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { min-height: 46px; padding: 12px 18px; width: auto; height: auto; }
.btn-hero { background: #fff; color: var(--ink); padding: 12px 20px; }
.btn-hero:hover { background: var(--blush); }

.home-cats, .meral-cats { padding: 16px 0 4px; }
.home-cat-row, .meral-cat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.home-cat, .meral-cat {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: #fff;
}
.home-cat.active, .home-cat:hover, .meral-cat.active, .meral-cat:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.product-gallery, .meral-gallery { padding: 8px 0 36px; background: none; border: 0; }
.products-grid, .meral-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(44,36,32,.08); }
.product-card-img { position: relative; aspect-ratio: 1/1; background: var(--cream); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px;
}
.product-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card-cat {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; font-weight: 600; color: var(--rose);
  background: var(--cream); padding: 3px 8px; border-radius: 999px;
}
.product-card-title { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.35; min-height: 2.7em; }
.product-card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a:hover { color: var(--rose); }
.product-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.price-old { font-size: 13px; color: #b0a69d; font-weight: 600; }
.price-now { text-decoration: none; font-size: 18px; font-weight: 700; color: var(--ink); font-family: var(--display); }
.price-save { font-size: 11px; font-weight: 700; color: var(--sage); background: #eef5ef; padding: 3px 7px; border-radius: 999px; }
.product-card-action { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-top: auto; padding-top: 6px; }
.btn-add-to-cart {
  border: 0; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 12px 8px;
  font-weight: 700; font-size: 13px; cursor: pointer; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-add-to-cart:hover { background: var(--rose); }
.btn-quick-whatsapp {
  width: 44px; min-height: 44px; border-radius: 12px;
  background: var(--wa); color: #fff; display: grid; place-items: center; padding: 0;
}
.btn-quick-whatsapp:hover { background: var(--wa-dark); color: #fff; }

.home-note, .meral-note { padding: 8px 0 48px; }
.home-note-box, .meral-note-box {
  text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 32px 18px;
}
.home-note-box h2, .meral-note-box h2 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; }
.home-note-box p, .meral-note-box p { margin: 0 0 16px; color: var(--muted); }
.btn-wa-lg { display: inline-flex; background: var(--wa); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 700; }
.empty-catalog { text-align: center; color: var(--muted); padding: 48px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #e8e0d8; padding-top: 36px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; color: #fff; margin-bottom: 10px; }
.footer-logo .logo-mark { width: 40px; height: 40px; background: #fff; color: var(--ink); }
.footer-desc, .footer-contact-info p { color: #b7aea6; font-size: 14px; }
.footer-heading { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--blush); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #d9d0c8; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.trust-item { display: flex; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.trust-item strong { display: block; color: #fff; }
.trust-item p { margin: 0; color: #b7aea6; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pay-badge { border: 1px solid #4a403c; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.footer-bottom { border-top: 1px solid #4a403c; padding: 14px 0 24px; font-size: 13px; color: #b7aea6; }
.bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bottom-links { display: flex; gap: 12px; flex-wrap: wrap; }
.bottom-links a { color: #b7aea6; }

/* Mobile bar + WA */
.mobile-bottom-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
  background: rgba(255,252,248,.96); border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
}
.bottom-bar-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 650; color: var(--muted); position: relative; }
.bottom-bar-item.active, .whatsapp-bottom { color: var(--rose) !important; }
.mobile-badge { position: absolute; top: -2px; right: 18%; background: var(--rose); color: #fff; border-radius: 999px; min-width: 16px; height: 16px; font-size: 10px; display: grid; place-items: center; }
.floating-whatsapp-btn {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 99995;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.4);
}
.floating-whatsapp-btn:hover { background: var(--wa-dark); color: #fff; }
.floating-whatsapp-btn svg { display: block; }

/* Cart drawer */
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(44,36,32,.42); opacity: 0; visibility: hidden; transition: .25s; z-index: 99998; }
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; transform: translateX(100%); transition: .3s cubic-bezier(.22,1,.36,1); z-index: 99999; display: flex; flex-direction: column; }
.cart-drawer.active { transform: none; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-title strong { font-family: var(--display); font-size: 24px; }
.drawer-count { display: block; font-size: 13px; color: var(--muted); }
.drawer-close-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); font-size: 22px; cursor: pointer; line-height: 1; color: var(--muted); }
.drawer-shipping-bar { background: var(--cream); color: var(--rose); padding: 10px 18px; font-size: 12px; font-weight: 700; }
.drawer-cart-items { flex: 1; overflow: auto; padding: 12px 14px; background: #fbf8f4; }
.drawer-item-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.drawer-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.drawer-item-title { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-item-meta { font-size: 12px; color: var(--muted); }
.drawer-item-price { font-size: 15px; font-weight: 800; color: var(--rose); }
.drawer-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.drawer-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.drawer-qty button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.drawer-qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 800; }
.drawer-remove-item { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #a8a29e; cursor: pointer; display: grid; place-items: center; }
.drawer-cart-footer { border-top: 1px solid var(--line); padding: 16px 18px 20px; }
.drawer-summary-lines { display: grid; gap: 6px; margin-bottom: 10px; }
.drawer-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.drawer-line strong { color: var(--ink); }
.drawer-total-row { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.drawer-total-row strong { font-size: 22px; color: var(--rose); font-family: var(--display); }
.drawer-buttons { display: grid; gap: 8px; }
.btn-drawer-checkout, .btn-drawer-whatsapp, .btn-drawer-sepet {
  display: flex; align-items: center; justify-content: center; padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; min-height: 48px;
}
.btn-drawer-checkout { background: var(--ink); color: #fff; }
.btn-drawer-checkout:hover { background: var(--rose); color: #fff; }
.btn-drawer-whatsapp { background: var(--wa); color: #fff; }
.btn-drawer-sepet { background: #fff; border: 1.5px solid var(--line); }
.drawer-note { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.cart-empty, .cart-loading { text-align: center; padding: 48px 16px; color: var(--muted); }
.cart-empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--cream); color: var(--rose); display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid #f5f5f4; border-top-color: var(--rose); border-radius: 50%; margin: 0 auto 8px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mobile-categories-modal { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; transform: translateY(110%); transition: .3s; z-index: 100000; max-height: 70vh; overflow: auto; }
.mobile-categories-modal.active { transform: none; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-close-btn { border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.mobile-cat-list { list-style: none; margin: 0; padding: 8px 0 80px; }
.mobile-cat-link { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #faf7f3; font-weight: 700; }

.toast-container { position: fixed; top: 18px; right: 18px; z-index: 100001; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.08); display: flex; gap: 8px; align-items: center; }

/* Inner pages */
.page-header-banner, .page-breadcrumb { padding: 18px 0 8px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.page-title { margin: 0; font-family: var(--display); font-size: clamp(28px, 4vw, 42px); color: var(--ink); }
.banner-desc { color: var(--muted); max-width: 60ch; }
.catalog-section .catalog-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 12px 0 40px; }
.catalog-sidebar, .sidebar-box, .sidebar-whatsapp-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.section-title { margin: 0; font-family: var(--display); font-size: 28px; }
.btn-view-all { color: var(--muted); font-weight: 650; font-size: 14px; }
.btn-view-all:hover { color: var(--rose); }

/* Product detail */
.product-detail-section { padding: 4px 0 48px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 28px; align-items: start; }
.product-detail-grid .product-gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
}
.main-image-wrapper { position: relative; background: var(--cream); }
.product-gallery .main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.product-badge { position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.gallery-trust-bar { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gallery-trust-bar li { padding: 12px 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); border-right: 1px solid var(--line); }
.gallery-trust-bar li:last-child { border-right: 0; }
.product-info-column { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.product-header-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.product-cat-tag, .stock-status { display: inline-flex; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.product-cat-tag { background: var(--cream); color: var(--rose); }
.stock-status { background: #eef5ef; color: var(--sage); }
.product-main-title { margin: 0 0 10px; font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.product-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.rating-stars { color: #c4a574; letter-spacing: 1px; }
.rating-stars .empty { color: #d6d3d1; }
.product-price-box { padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); margin-bottom: 18px; }
.old-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.old-price-row del { color: var(--muted); font-size: 14px; }
.savings-tag { font-size: 11px; font-weight: 800; color: var(--rose); background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.current-price-row ins { text-decoration: none; font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--ink); }
.tax-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.product-order-form { display: grid; gap: 4px; }
.product-order-form .form-group { margin-bottom: 12px; }
.label-optional { font-weight: 500; color: var(--muted); font-size: 12px; }
.action-buttons-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.quantity-picker { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; height: 52px; }
.quantity-picker .qty-btn, #qtyMinus, #qtyPlus { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; font-weight: 800; font-size: 18px; }
.quantity-picker input, #detailQuantity { width: 44px; height: 100%; border: 0; text-align: center; font-weight: 800; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.quantity-picker input::-webkit-outer-spin-button, .quantity-picker input::-webkit-inner-spin-button { -webkit-appearance: none; }
#btnDetailAddToCart, .btn-primary-add { width: 100%; height: 52px; border: 0; background: var(--ink); color: #fff; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
#btnDetailAddToCart:hover, .btn-primary-add:hover { background: var(--rose); }
.btn-whatsapp-instant { display: flex; align-items: center; justify-content: center; background: var(--wa); color: #fff; border-radius: 14px; padding: 15px 16px; font-weight: 700; font-size: 15px; margin-top: 10px; min-height: 52px; }
.product-extra-details { display: grid; gap: 10px; margin-top: 18px; }
.detail-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.detail-box h4 { margin: 0 0 6px; font-size: 14px; }
.detail-box p { margin: 0; font-size: 14px; color: var(--muted); }
.related-products-section { padding: 8px 0 48px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-select, .form-input, .form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  min-height: 48px;
}
.form-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D2A2C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-select:disabled { opacity: .55; cursor: not-allowed; }
.form-phone { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.form-date {
  color-scheme: light;
  min-height: 48px;
}
.form-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
  padding: 2px;
}
.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(61,42,44,.08);
}
.form-select:user-invalid, .form-input:user-invalid, .form-textarea:user-invalid {
  border-color: #dc2626;
}
.notes-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.notes-form-grid .form-group:has(textarea),
.notes-form-grid .form-group:has(.delivery-type-pills),
.notes-form-grid .form-span { grid-column: 1 / -1; }
.notes-form-grid .randevu-fields { grid-column: 1 / -1; }

/* Cart + checkout */
.cart-page-section, .checkout-section { padding: 8px 0 56px; }
.cart-grid, .checkout-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.72fr); gap: 24px; align-items: start; }
.cart-items-column, .cart-summary-column, .empty-cart-box, .checkout-card, .checkout-summary-col .summary-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.checkout-card { padding: 22px; margin-bottom: 16px; overflow: visible; }
.checkout-card h2 { margin: 0 0 18px; font-family: var(--display); font-size: 24px; font-weight: 600; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-fields .form-group { margin: 0; min-width: 0; }
.checkout-fields .checkout-span { grid-column: 1 / -1; }
.checkout-fields .form-input,
.checkout-fields .form-textarea,
.checkout-fields .form-select { min-height: 48px; border-radius: 12px; padding: 12px 14px; }
.checkout-fields .form-select { padding-right: 42px; }
.checkout-fields .form-textarea { min-height: 96px; resize: vertical; }
.checkout-fixed-bar { display: none; }
.checkout-iban-card .iban-list { margin: 0; display: grid; gap: 0; }
.checkout-iban-card .iban-list > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.checkout-iban-card .iban-list > div:first-child { border-top: 0; padding-top: 0; }
.checkout-iban-card dt { margin: 0; font-size: 13px; color: var(--muted); font-weight: 650; }
.checkout-iban-card dd { margin: 0; font-weight: 700; word-break: break-word; }
.checkout-iban-card #ibanValue { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.btn-copy-iban {
  margin-top: 14px; width: 100%; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
  border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; min-height: 48px;
}
.btn-copy-iban:hover { border-color: var(--ink); background: #fff; }
.iban-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.checkout-actions { display: grid; gap: 10px; margin-top: 18px; }
.checkout-pay-hint { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.btn-checkout-submit { background: var(--ink); color: #fff; width: 100%; }
.btn-checkout-submit:hover { background: var(--rose); color: #fff; }
.cart-box-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fffdf9; }
.cart-box-header h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.cart-box-header h3 span { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.btn-clear-cart { border: 0; background: transparent; color: #b91c1c; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.cart-items-list { padding: 4px 14px; }
.cart-item-row { display: grid; grid-template-columns: 76px minmax(0,1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #f3eee8; }
.item-img-link img, .cart-item-row img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.item-cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--rose); background: var(--cream); padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.item-details h4 { margin: 0 0 4px; font-size: 15px; }
.item-unit-price { font-size: 13px; color: var(--muted); font-weight: 600; }
.item-quantity-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.item-quantity-box button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.item-quantity-box input { width: 36px; text-align: center; border: 0; font-weight: 800; }
.item-subtotal strong { font-size: 16px; white-space: nowrap; }
.btn-item-remove { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--cream); color: #a8a29e; cursor: pointer; display: grid; place-items: center; }
.cart-notes-box { padding: 18px; border-top: 1px solid var(--line); background: #fffdf9; }
.cart-notes-box h4 { margin: 0 0 14px; font-family: var(--display); font-size: 20px; }
.delivery-type-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-pill, .pay-method {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--line);
  border-radius: 14px; background: #fff; cursor: pointer; position: relative;
}
.delivery-pill input, .pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-pill-title { font-weight: 800; font-size: 14px; }
.delivery-pill-sub, .pay-method span { font-size: 12px; color: var(--muted); font-weight: 600; }
.delivery-pill.active, .delivery-pill:has(input:checked), .pay-method.active, .pay-method:has(input:checked) {
  border-color: var(--rose); background: linear-gradient(180deg,#fff,#f8efe8); box-shadow: 0 0 0 3px rgba(154,59,74,.12);
}
.randevu-fields { margin: 0; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fffdf9; }
.randevu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.randevu-fields .form-group { margin: 0; }
.randevu-fields[hidden] { display: none !important; }
.summary-card { padding: 18px; }
.summary-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 22px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--muted); }
.summary-line.total { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.summary-line.total span { color: var(--ink); font-weight: 700; }
.summary-line.total strong { font-family: var(--display); font-size: 26px; color: var(--rose); }
.text-free { color: var(--sage); }
.ship-meta { text-align: right; }
.ship-meta small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; max-width: 160px; margin-left: auto; }
.summary-actions { display: grid; gap: 8px; margin-top: 16px; }
.btn-checkout-submit, .btn-checkout-whatsapp, .btn-continue-shop, .btn-return-home {
  display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; min-height: 48px; width: 100%; box-sizing: border-box;
}
.btn-checkout-whatsapp { background: var(--wa); color: #fff; }
.btn-continue-shop { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-continue-shop:hover { border-color: var(--ink); }
.security-badges-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f4f8f4; border: 1px solid #e3eee4; display: grid; gap: 4px; }
.security-badges-box strong { font-size: 13px; color: var(--sage); }
.security-badges-box span { font-size: 12px; color: var(--muted); }
.empty-cart-box { text-align: center; padding: 56px 24px; }
.empty-cart-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--cream); color: var(--rose); display: grid; place-items: center; }
.empty-cart-box h2 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; }
.empty-cart-box p { margin: 0 auto 18px; max-width: 42ch; color: var(--muted); }
.btn-return-home { display: inline-flex; background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; }
.checkout-errors { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.checkout-errors p { margin: 0 0 4px; font-weight: 650; }
.checkout-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.checkout-items li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.checkout-items img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.checkout-items strong { display: block; font-size: 13px; }
.checkout-items span { font-size: 12px; color: var(--muted); }
.checkout-summary-sticky { position: sticky; top: 92px; }

@media (max-width: 980px) {
  .products-grid, .meral-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-section .catalog-grid, .product-detail-grid, .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .checkout-fields, .randevu-grid, .delivery-type-pills { grid-template-columns: 1fr; }
  .checkout-summary-sticky { position: static; }
  .checkout-fixed-bar {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 12px;
    align-items: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99992;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(44,36,32,.1);
  }
  .checkout-fixed-total { display: flex; flex-direction: column; gap: 1px; padding-right: 4px; }
  .checkout-fixed-total span { font-size: 11px; color: var(--muted); font-weight: 650; }
  .checkout-fixed-total strong { font-family: var(--display); font-size: 20px; line-height: 1.1; }
  .checkout-fixed-bar .btn-checkout-submit { min-height: 48px; margin: 0; width: 100%; }
  .checkout-summary-col .checkout-actions { display: none; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 20px, var(--max)); }
  .header-menu-btn { display: inline-flex; }
  .header-main {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 10px;
    padding: 8px 0 10px;
  }
  .header-brand { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .header-search { grid-area: search; }
  .category-pills { display: none; }
  .logo-text strong { font-size: 20px; }
  .header-actions .btn-wa,
  .header-actions .btn-cart { width: 42px; height: 42px; padding: 0; }
  .header-actions .btn-wa-label,
  .header-actions .btn-cart-label { display: none; }
  .cart-count-badge { position: absolute; top: -4px; right: -4px; margin: 0; }
  .products-grid, .meral-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-title { font-size: 13px; min-height: 2.6em; }
  .btn-add-to-cart { font-size: 12px; padding: 10px 6px; }
  .mobile-bottom-bar { display: grid; }
  .floating-whatsapp-btn {
    display: grid;
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 14px;
  }
  .page-checkout .floating-whatsapp-btn {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .footer-bottom { padding-bottom: 96px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 26px 18px; border-radius: 22px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .home-cat-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .home-cat-row::-webkit-scrollbar { display: none; }
  .home-cat, .meral-cat { flex-shrink: 0; }
  .gallery-trust-bar li { font-size: 11px; padding: 10px 6px; }
  .product-gallery .main-img { aspect-ratio: 4/5; }
  .cart-item-row {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "img details remove"
      "img qty subtotal";
    gap: 8px 12px;
    align-items: start;
  }
  .item-img-link { grid-area: img; }
  .item-details { grid-area: details; min-width: 0; }
  .btn-item-remove { grid-area: remove; justify-self: end; }
  .item-quantity-box { grid-area: qty; }
  .item-subtotal { grid-area: subtotal; justify-self: end; align-self: end; }
  .item-img-link img, .cart-item-row img { width: 64px; height: 64px; }
  .cart-page-section .summary-actions { position: sticky; bottom: 72px; z-index: 5; padding-top: 8px; background: linear-gradient(180deg, transparent, var(--cream) 28%); }
  .page-checkout .mobile-bottom-bar { display: none; }
  .page-checkout .checkout-section { padding-bottom: 96px; }
  .page-checkout .footer-bottom { padding-bottom: 96px; }
  .page-checkout .checkout-actions { position: static; margin: 16px 0 0; padding: 0; background: none; }
  .top-bar { font-size: 11px; }
  .toast-container { left: 12px; right: 12px; top: 12px; }
}
@media (max-width: 380px) {
  .product-card-action { grid-template-columns: 1fr; }
  .btn-quick-whatsapp { width: 100%; min-height: 40px; }
}
