/* MAISON AROMA storefront redesign */

/* Compact, recognisable shop header */
.header { padding: 14px 16px 12px; }
.header .theme-toggle-btn { position: absolute; top: 13px; right: 16px; z-index: 2; }
.header .search-hint,
.header .live-counter,
.header .header-actions,
.header .decor { display: none !important; }
.header h1 { font-size: 19px; }
.header .subtitle { margin-bottom: 10px; }
.header-search-wrap { position: relative; z-index: 1; }
.header-search-inner { min-height: 44px; }
.header-search-inner button { width: 36px; height: 36px; display: grid; place-items: center; }
.desktop-nav { display: none; }

/* Primary categories stay one compact horizontal row */
#homeCats { padding: 10px 12px 6px !important; gap: 8px !important; scrollbar-width: none; }
#homeCats::-webkit-scrollbar { display: none; }
.home-cat-card { min-width: 0 !important; width: min(104px, calc((100vw - 40px)/3)) !important; flex: 0 0 min(104px, calc((100vw - 40px)/3)) !important; }
.home-cat-icon {
  width: min(84px, calc((100vw - 58px)/3)) !important;
  height: min(84px, calc((100vw - 58px)/3)) !important;
  border-radius: 22px !important;
  color: #c9a86c;
  background: transparent !important;
  border: 0;
  box-shadow: 0 7px 18px rgba(0,0,0,.28);
}
.home-cat-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.home-cat-label { max-width: 104px; min-height: 27px; font-size: 11px !important; line-height: 1.2; }

/* Secondary navigation is collapsed instead of filling the first screen */
.home-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 12px 10px;
  max-width: 960px;
  margin: 0 auto;
}
.home-tool-btn {
  min-height: 40px;
  border: 1px solid rgba(201,168,108,.28);
  border-radius: 12px;
  background: rgba(201,168,108,.055);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.home-tool-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.home-tool-panel { display: none; padding: 2px 0 8px; max-width: 960px; margin: 0 auto; }
.home-tool-panel.open { display: block; }
.home-tool-panel .section-label { display: block !important; padding: 4px 16px 6px !important; }
#homeGenderCats, #homeBadgeCats, #homePriceCats { padding: 4px 12px !important; }

/* Multi-select brand list: no horizontal rail and no decorative icons */
#homeBrandChips { display: block !important; padding: 4px 12px 10px !important; overflow: visible; }
.home-brand-options {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
  max-height: 310px; overflow-y: auto; overscroll-behavior: contain; padding: 2px;
}
.home-brand-check {
  min-height: 44px; padding: 9px 10px; display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(201,168,108,.18); border-radius: 10px;
  background: rgba(255,255,255,.025); color: #ece6dd; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-brand-check:has(input:checked) { border-color: rgba(201,168,108,.58); background: rgba(201,168,108,.11); }
.home-brand-check input { position: absolute; opacity: 0; pointer-events: none; }
.home-brand-box {
  width: 20px; height: 20px; flex: 0 0 20px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,168,108,.48); border-radius: 5px; color: transparent; font-size: 13px; font-weight: 900;
}
.home-brand-check input:checked + .home-brand-box { background: #c9a86c; border-color: #c9a86c; color: #111; }
.home-brand-check input:focus-visible + .home-brand-box { outline: 2px solid #f0d394; outline-offset: 2px; }
.home-brand-name { min-width: 0; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.home-brand-actions {
  margin-top: 11px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  color: #a7a098; font-size: 11px;
}
.home-brand-actions button { min-height: 38px; padding: 0 13px; border-radius: 9px; font-size: 11px; font-weight: 750; cursor: pointer; }
.home-brand-reset { border: 1px solid rgba(201,168,108,.25); background: transparent; color: #c7b89e; }
.home-brand-apply { border: 0; background: linear-gradient(135deg,#d2ae6b,#b88b3d); color: #111; }
@media (min-width: 768px) { .home-brand-options { grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 360px; } }

.home-feed-title { padding-top: 5px; font-size: 13px; color: var(--text-primary); }

/* Full-bleed product photography: no light letterbox strips inside cards */
.product-card .img-wrap,
.scroll-card .sc-img {
  background: #090909 !important;
  border: 1px solid rgba(201,168,108,.16);
}
.product-card .img-wrap img,
.scroll-card .sc-img img {
  object-fit: cover !important;
  object-position: center center !important;
}
.product-card .img-wrap .card-video {
  object-fit: cover !important;
  background: #090909;
}
.info-badges, .card-chips { display: none !important; }
.product-card .body .name { font-size: 12px; line-height: 1.4; }
.product-card .body .price,
.product-card .body .price-sale,
.product-card .body .price-hit,
.product-card .body .price-new { color: var(--text-primary) !important; }
.product-card .card-price-note {
  margin-top: 5px;
  color: #817a72;
  font-size: 8px;
  line-height: 1.35;
}
.detail-price-note {
  max-width: 520px;
  margin: 5px 0 12px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.45;
}
.product-card.oil-card .img-wrap { box-shadow: 0 0 0 1px rgba(196,154,60,.42) !important; }
.product-card.oil-card .img-wrap::before,
.product-card.oil-card .img-wrap::after { display: none !important; }
.card-heart { background: rgba(15,15,15,.72); color: #f2e8da; border: 1px solid rgba(255,255,255,.12); }

/* Honest trust information based on the public offer */
.store-confidence {
  max-width: 960px;
  margin: 28px auto 8px;
  padding: 0 12px;
}
.store-confidence h2 { font-size: 16px; margin-bottom: 10px; color: var(--text-primary); }
.confidence-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.confidence-card { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.confidence-card h3 { color: var(--gold); font-size: 13px; margin-bottom: 5px; }
.confidence-card p { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.store-legal-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.store-legal-links a { color: var(--gold); font-size: 12px; text-decoration: none; }
.store-seller-line { margin-top: 12px; color: var(--text-secondary); font-size: 11px; line-height: 1.45; }

/* Product detail: neutral media, no fake live-view counter */
.detail-viewers { display: none !important; }
.product-detail .img-lg { background: #eeeae4 !important; }
.product-detail .img-lg img { object-fit: contain !important; }
.detail-gallery img { object-fit: contain !important; background: #eeeae4; }

/* Cart recommendations use real storefront photography, not tiny placeholders */
.cart-rec-card { min-width: 138px !important; width: 138px; padding: 7px !important; text-align: left !important; }
.cart-rec-card .crc-img {
  width: 122px !important;
  height: 122px !important;
  margin: 0 auto 7px !important;
  object-fit: cover !important;
  background: #090909;
  border: 1px solid rgba(201,168,108,.16);
}
.cart-rec-card .crc-name { min-height: 28px; font-size: 11px !important; line-height: 1.3 !important; }
.cart-rec-card .crc-price { margin-top: 4px; font-size: 13px !important; }
.cart-rec-card .crc-volume {
  width: 100%; height: 32px; margin-top: 6px; padding: 0 7px;
  border: 1px solid rgba(201,168,108,.28); border-radius: 7px;
  background: #171717; color: #f1ede7; font-size: 10px; outline: none;
}
.cart-rec-card .crc-add {
  width: 100%; min-height: 34px; margin-top: 7px; border: 0; border-radius: 8px;
  background: linear-gradient(135deg,#d2ae6b,#b88b3d); color: #111;
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.cart-rec-card .crc-qty {
  height: 34px; margin-top: 7px; display: grid; grid-template-columns: 34px 1fr 34px;
  align-items: center; overflow: hidden; border: 1px solid rgba(201,168,108,.35); border-radius: 8px;
  color: #f6f1e8; text-align: center; font-size: 12px; font-weight: 800;
}
.cart-rec-card .crc-qty button { height: 100%; border: 0; background: rgba(201,168,108,.15); color: #d8b66f; font-size: 18px; cursor: pointer; }

/* Contacts tab */
.contacts-page { min-height: calc(100vh - 64px); max-width: 620px; margin: 0 auto; padding: 54px 18px 110px; }
.contacts-kicker { color: #b9914e; font-size: 10px; font-weight: 800; letter-spacing: .24em; text-align: center; }
.contacts-page h2 { margin: 8px 0 10px; color: #e2c27e; font-family: Georgia,serif; font-size: 29px; font-weight: 500; text-align: center; }
.contacts-lead { max-width: 430px; margin: 0 auto 26px; color: #aaa39b; font-size: 13px; line-height: 1.55; text-align: center; }
.contacts-list { display: grid; gap: 11px; }
.contact-card {
  min-height: 76px; padding: 13px 15px; display: grid; grid-template-columns: 46px 1fr 24px;
  align-items: center; gap: 13px; border: 1px solid rgba(201,168,108,.22); border-radius: 15px;
  background: linear-gradient(135deg,rgba(28,28,28,.98),rgba(17,17,17,.98));
  color: #f3eee6; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.contact-card:active { transform: scale(.985); }
.contact-card img { width: 46px; height: 46px; display: block; border-radius: 13px; object-fit: cover; }
.contact-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-copy strong { font-size: 15px; font-weight: 750; }
.contact-copy small { color: #a9a29a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-arrow { color: #d0aa62; font-size: 23px; text-align: right; }
.contacts-note { margin-top: 22px; padding: 13px 15px; border-radius: 12px; background: rgba(201,168,108,.08); color: #aaa39b; font-size: 12px; line-height: 1.5; text-align: center; }
.bottom-nav .nav-item.active { color: #d8b66f !important; }

/* Light theme: clean white controls with accessible contrast */
body.theme-day {
  background: #f7f4ef;
}
body.theme-day .header-search-inner {
  background: #fff;
  border-color: #d8cbbd;
  box-shadow: 0 5px 18px rgba(71,53,39,.08);
  backdrop-filter: none;
}
body.theme-day .header-search-inner input {
  color: #2f2924;
  caret-color: #8a623f;
  font-size: 14px;
  font-weight: 500;
}
body.theme-day .header-search-inner input::placeholder {
  color: #76695e;
  opacity: 1;
}
body.theme-day .header-search-inner button,
body.theme-day .header-search-inner .hs-icon {
  color: #51463d;
}
body.theme-day .hs-clone-row {
  background: rgba(255,255,255,.88);
  border-color: #dfd4c8;
}
body.theme-day .hs-clone-trigger,
body.theme-day .hs-clone-panel input,
body.theme-day .clone-help-tip {
  color: #6f6156;
}
body.theme-day .hs-clone-panel input::placeholder { color: #887a6f; opacity: 1; }
body.theme-day .home-tool-btn {
  background: #fff;
  border-color: #ddd2c6;
  color: #332d28;
  box-shadow: 0 3px 12px rgba(71,53,39,.055);
}
body.theme-day .home-tool-btn[aria-expanded="true"] {
  background: #fffaf4;
  border-color: #9a704b;
  color: #765234;
}
body.theme-day .home-tool-panel.open {
  background: rgba(255,255,255,.58);
  border-top: 1px solid rgba(121,91,65,.10);
  border-bottom: 1px solid rgba(121,91,65,.10);
}
body.theme-day .home-feed-title { color: #564b43; }
body.theme-day .home-cat-label { color: #352f2a; font-weight: 650; }
body.theme-day .home-brand-label,
body.theme-day .product-card .body .name { color: #302a26; }
body.theme-day .product-card .body .old-price { color: #766b62; }
body.theme-day .card-heart {
  background: rgba(255,255,255,.94);
  color: #51463d;
  border-color: rgba(78,64,52,.18);
  box-shadow: 0 2px 9px rgba(0,0,0,.16);
}
body.theme-day .bottom-nav {
  background: rgba(255,255,255,.97);
  border-top-color: #ddd4cb;
  box-shadow: 0 -4px 18px rgba(71,53,39,.08);
}
body.theme-day .bottom-nav .nav-item { color: #6f665f; }
body.theme-day .bottom-nav .nav-item.active { color: #805b3d; }
body.theme-day .store-confidence h2 { color: #302a26; }

.header-search-inner:focus-within,
.home-tool-btn:focus-visible,
.home-brand-icon-btn:focus-visible,
.desktop-nav button:focus-visible,
.bottom-nav .nav-item:focus-visible {
  outline: 3px solid rgba(154,112,75,.42);
  outline-offset: 2px;
}

@media (prefers-contrast: more) {
  body.theme-day .header-search-inner,
  body.theme-day .home-tool-btn { border-width: 2px; border-color: #78685b; }
  body.theme-day .header-search-inner input::placeholder { color: #554b43; }
}

/* Cart is a local list: no checkout form or personal-data collection. */
.cart-contact-actions h3 { margin: 0 0 7px; color: var(--text-primary); font-size: 16px; }
.cart-contact-actions p { margin: 0 0 14px; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.cart-contact-btn {
  width: 100%; min-height: 48px; margin-top: 9px; border: 0; border-radius: 13px;
  color: #fff; font-size: 14px; font-weight: 750; cursor: pointer;
}
.cart-contact-btn:active { transform: scale(.985); opacity: .9; }
.cart-contact-btn--telegram { background: #229ed9; }
.cart-contact-btn--max { background: linear-gradient(135deg,#d2ae6b,#b88b3d); color: #111; }
.cart-contact-hint { margin-top: 11px; color: #847b71; font-size: 10px; line-height: 1.45; text-align: center; }

@media (max-width: 899px) {
  #pageCart.active .cart-summary {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  }
  #pageCart {
    padding-bottom: calc(145px + env(safe-area-inset-bottom, 0px));
  }
  #pageCart .order-form { padding-bottom: 90px; }
}

@media (min-width: 900px) {
  .header { padding-top: 18px; padding-bottom: 16px; }
  .header .theme-toggle-btn { top: 18px; right: max(24px, calc((100% - 960px)/2)); }
  .desktop-nav { display: flex; position: sticky; top: 0; z-index: 90; justify-content: center; gap: 22px; margin: 0; padding: 8px 16px; background: rgba(12,12,12,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
  .desktop-nav button { background: none; border: 0; color: var(--text-secondary); font: inherit; font-size: 12px; cursor: pointer; padding: 6px 2px; }
  .desktop-nav button:hover { color: var(--gold); }
  body.theme-day .desktop-nav { background: rgba(250,248,244,.96); }
  .bottom-nav { display: none !important; }
  .page { padding-bottom: 32px; }
  .confidence-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { max-width: 1160px; margin: 0 auto; padding: 28px 24px 140px; }
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 40px; align-items: start; }
  .detail-media-column { position: sticky; top: 20px; min-width: 0; }
  .detail-info-column { min-width: 0; padding-top: 4px; }
  .product-detail .img-lg { max-height: 680px; margin-bottom: 12px; }
  .product-detail .img-lg img,
  .product-detail .detail-video { max-height: 680px; }
  .detail-gallery { display: flex; gap: 8px; overflow-x: auto; }
  .detail-below { grid-column: 1 / -1; max-width: 920px; width: 100%; margin: 12px auto 0; }
  .detail-sticky-bar {
    left: auto !important;
    right: max(24px, calc((100vw - 1160px)/2 + 24px)) !important;
    bottom: 24px !important;
    width: min(430px, calc(100vw - 48px)) !important;
    border: 1px solid rgba(201,168,108,.25);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(0,0,0,.35);
  }
}

@media (min-width: 1100px) {
  .home-feed, .products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
