/* ============================================================
   TAMMIA THEME — CONSOLIDATED CUSTOM.CSS
   Merged from: CSS Injector (header_search, search_autocomplete,
   natsoe_brand_theme_override) + Content Block 6 (CSS JS Override)
   + original custom.css. Goal: single source of truth, minimal
   !important stacking (kept only where required to beat
   navbar-enhanced.css / commerce.css / cart-checkout.css which
   load AFTER this file, or to beat inline styles).
============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap");

:root {
  --tm-red: #000000;
  --tm-red-2: #1a1a1a;
  --tm-red-3: #0d0d0d;
  --tm-gold: #1a1a1a;
  --tm-off-white: #f0f0f0;
  --tm-white: #ffffff;
  --tm-black: #000000;
  --tm-grey-black: #414042;
  --tm-footer-bg: #000000;
  --tm-footer-text: #ffffff;
  --tm-footer-text-muted: #cfcfcf;
  --tm-font-heading: "Comfortaa", "Segoe UI", Roboto, Arial, sans-serif;
  --tm-font-body: "Comfortaa", "Segoe UI", Roboto, Arial, sans-serif;
  --natsoe-primary: #000000;
  --natsoe-primary-hover: #1a1a1a;
  --bs-btn-bg: #000000;
  --bs-primary: #000000;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
body,
input, button, select, textarea {
  font-family: var(--tm-font-body);
}
h1, h2, h3, h4, h5, h6,
.field--name-title, .field--name-title.field__item,
.product-title, .ui-dialog-title {
  font-family: var(--tm-font-heading);
  font-weight: 300;
  letter-spacing: 0.01em;
}
.subtitle, h5, h6, .field--name-field-subtitle { font-weight: 500; }
p, .field--name-body, article p { font-weight: 400; line-height: 1.65; }
.button, .btn, button {
  font-family: var(--tm-font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tm-product-brand { font-family: var(--tm-font-heading); font-weight: 700; letter-spacing: 0.08em; }
h1.page-title, .page-title { color: var(--tm-grey-black); }


/* ============================================================
   HEADER / NAVBAR
============================================================ */
/*.navbar-brand img { height: 35px !important; }*/

/* Main navbar must stay brand red; navbar-enhanced.css loads AFTER
   this file and forces an orange gradient with !important, so
   higher-specificity selectors are needed here to win. */
html body nav.navbar.navbar-expand-lg,
html body nav.navbar.navbar-dark,
html body nav.navbar.navbar-expand-lg.navbar-dark.text-light,
html body header nav.navbar,
html body .navbar.navbar-expand-lg.navbar-dark {
  background: var(--tm-red) !important;
  background-color: var(--tm-red) !important;
  background-image: none !important;
}
html body nav.navbar .advanced-mega-menu-item-inner,
html body nav.navbar .mega-menu-item > a,
html body nav.navbar .mega-menu-item .advanced-mega-menu-item-inner,
html body nav.navbar .nav-link,
html body nav.navbar .navbar-nav a,
html body nav.navbar a,
html body nav.navbar .menu-item a {
  color: var(--tm-white) !important;
}
html body nav.navbar .advanced-mega-menu-item-inner:hover,
html body nav.navbar .mega-menu-item:hover .advanced-mega-menu-item-inner,
html body nav.navbar .nav-link:hover,
html body nav.navbar a:hover {
  color: #eeeeee !important;
  text-decoration: none !important;
}
html body nav.navbar .mega-menu-item.active .advanced-mega-menu-item-inner,
html body nav.navbar .mega-menu-item.is-active .advanced-mega-menu-item-inner {
  color: var(--tm-white) !important;
}
html body nav.navbar .mega-menu-submenu,
html body nav.navbar .submenu-container,
html body nav.navbar [class*="submenu"]:not(a):not(li),
html body .advanced-mega-menu-panel,
html body .mega-submenu {
  background: var(--tm-white) !important;
}
html body nav.navbar .mega-menu-submenu a,
html body nav.navbar .submenu-container a,
html body nav.navbar .advanced-mega-menu-panel a,
html body nav.navbar .advanced-mega-menu-panel .views-field a,
html body nav.navbar .advanced-mega-menu-panel .views-row a,
html body nav.navbar .mega-submenu a,
html body header nav .advanced-mega-menu-panel a {
  color: var(--tm-grey-black) !important;
}
html body nav.navbar .mega-menu-submenu a:hover,
html body nav.navbar .submenu-container a:hover,
html body nav.navbar .advanced-mega-menu-panel a:hover,
html body nav.navbar .advanced-mega-menu-panel a:focus,
html body nav.navbar .mega-submenu a:hover,
html body nav.navbar .mega-submenu a:focus,
html body header nav .advanced-mega-menu-panel a:hover {
  color: var(--tm-red) !important;
}

/* My Account: icon only, hide label */
#natsoe-user-btn .user-label { display: none !important; }
#natsoe-user-btn {
  padding: 8px !important;
  border-radius: 50% !important;
  width: 42px;
  height: 42px;
  justify-content: center;
}
/* Navbar menu item background helper classes (assigned via custom.js) */
.nav-with-bg { background: rgba(255,255,255,0.22) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; }
.nav-no-bg { background: none !important; box-shadow: none !important; }


/* ============================================================
   SEARCH BAR (posisi sejajar logo)
============================================================ */
#block-tammia-theme-exposedformproduct-searchpage-1 {
  flex: 1 1 auto;
  max-width: 420px;
  margin: 0 16px;
  align-self: center;
  min-width: 0;
}
#block-tammia-theme-exposedformproduct-searchpage-1 label { display: none !important; }
#block-tammia-theme-exposedformproduct-searchpage-1 .form--inline {
  display: flex !important;
  align-items: center;
  background: var(--tm-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  height: 40px;
  margin: 0;
  padding: 0;
}
#block-tammia-theme-exposedformproduct-searchpage-1 .js-form-item-title {
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}
#block-tammia-theme-exposedformproduct-searchpage-1 #edit-title,
.navbar #edit-title.form-control {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100% !important;
  height: 40px !important;
  padding: 0 14px !important;
  font-size: 0.88em !important;
  color: #333 !important;
  border-radius: 0 !important;
}
#block-tammia-theme-exposedformproduct-searchpage-1 #edit-title::placeholder { color: #aaa !important; }
#block-tammia-theme-exposedformproduct-searchpage-1 .form-actions {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}
#block-tammia-theme-exposedformproduct-searchpage-1 #edit-submit-product-search {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background-color: var(--tm-red-2) !important;
  font-size: 0 !important;
  color: transparent !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  margin-right: 2px !important;
  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='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px !important;
  box-shadow: none !important;
  transition: background-color 0.2s;
}
#block-tammia-theme-exposedformproduct-searchpage-1 #edit-submit-product-search:hover {
  background-color: var(--tm-red-3) !important;
}
ul.ui-autocomplete[data-input-ref="product_search"] { display: none !important; }
#natsoe-ac-dropdown { z-index: 99999 !important; border-radius: 0 0 12px 12px !important; }
ul#natsoe-ac-dropdown { left: 535.5px !important; width: 350px !important; }

@media (max-width: 991px) {
  #block-tammia-theme-exposedformproduct-searchpage-1 {
    flex: 1 1 auto;
    max-width: calc(100% - 120px);
    margin: 0 8px;
  }
}
@media (max-width: 480px) {
  #block-tammia-theme-exposedformproduct-searchpage-1 {
    max-width: calc(100% - 100px);
    margin: 0 6px;
  }
}

/* Autocomplete suggestion rows */
.ui-menu-item .autocomplete-suggestion {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.suggestion-image { margin-right: 15px; flex-shrink: 0; }
.suggestion-image img { display: block; border-radius: 4px; border: 1px solid #ddd; }
.suggestion-info { line-height: 1.4; }
.suggestion-meta { font-size: 0.85em; color: #666; text-transform: uppercase; }
.suggestion-title { font-size: 1em; color: #333; }

@media (max-width: 768px) {
  body.path-frontpage { padding-top: 80px !important; }
  #views-exposed-form-product-search-page-1 { max-width: 195px; }
  ul#natsoe-ac-dropdown { left: 0 !important; width: 100% !important; top: 80px !important; }
}
@media (max-width: 480px) {
  body.path-frontpage { padding-top: 80px !important; }
  #views-exposed-form-product-search-page-1 { max-width: 195px; }
  ul#natsoe-ac-dropdown { left: 0 !important; width: 100% !important; top: 80px !important; }
  .region-banner-homepage .mb-5 { margin-bottom: 0; }
}


/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.natsoe-announcement-bar,
[class*="announcementbartammiatheme"],
[class*="announcement-bar"] {
  background: linear-gradient(90deg, #1a1a1a 0%, #1a1a1a 50%, #1a1a1a 100%) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em !important;
}

/* ============================================================
   TRUST BAR (Gratis Ongkir dll)
============================================================ */
.natsoe-trust-bar {
  padding: 8px 0 !important;
  background: linear-gradient(135deg, #f7f7f7 0%, #fff 100%) !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(232,65,24,0.08), 0 1px 4px rgba(0,0,0,0.04) !important;
  margin: 20px 0 !important;
}
.natsoe-trust-bar .trust-item,
.natsoe-trust-bar .trust-list .trust-item {
  padding: 18px 20px !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.natsoe-trust-bar .trust-icon,
.natsoe-trust-bar .trust-item .trust-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  background: transparent !important;
  color: var(--tm-red) !important;
}
.natsoe-trust-bar .trust-icon svg,
.natsoe-trust-bar .trust-icon i {
  width: 18px !important;
  height: 18px !important;
  font-size: 14px !important;
}
.natsoe-trust-bar .trust-title,
.natsoe-trust-bar .trust-item .trust-title {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
}
.natsoe-trust-bar .trust-subtitle,
.natsoe-trust-bar .trust-item .trust-subtitle,
.natsoe-trust-bar .trust-sub {
  font-size: 0.75rem !important;
  color: #6b7280 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* ============================================================
   PRODUCT TABS (NEW ARRIVALS, BEST SELLER dll)
============================================================ */
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
[class*="tab-"].active,
.product-tabs .active {
  color: var(--tm-red) !important;
  border-bottom-color: var(--tm-red) !important;
}
.nav-tabs .nav-link.active::after,
.product-tabs li.active::after { background: var(--tm-red) !important; }
.product-tabs-wrapper .nav-pills,
.natsoe-featured-tabs,
.product-tab-nav,
[class*="tab"] .nav-pills,
#block-tammia-theme-featuredproducts > div > div > .nav-pills,
#block-tammia-theme-featuredproducts .nav-pills {
  background: none !important;
  border: none !important;
  border-bottom: 2px solid #f0f0f0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
  gap: 0 !important;
  justify-content: center;
}
.product-tabs-wrapper .nav-pills .nav-link,
#block-tammia-theme-featuredproducts .nav-pills .nav-link {
  background: none !important;
  color: #555 !important;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent !important;
  padding: 10px 24px !important;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-bottom: -2px !important;
}
.product-tabs-wrapper .nav-pills .nav-link:hover {
  color: var(--tm-red) !important;
  border-bottom-color: rgba(232,65,24,0.3) !important;
  background: none !important;
}
.product-tabs-wrapper .nav-pills .nav-link.active,
#block-tammia-theme-featuredproducts .nav-pills .nav-link.active,
#block-tammia-theme-featuredproducts .nav-pills .nav-link:hover {
  background: none !important;
  color: var(--tm-red) !important;
  border-bottom-color: var(--tm-red) !important;
}

/* Section headings (Brand, Category, dll) */
h2:not(.visually-hidden) {
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  letter-spacing: 2px !important;
  /*text-align: center;*/
  text-transform: uppercase;
  margin: 10px 0 20px;
  position: relative;
}
.block-views.block-views-blockshop-by-category-block-1 h2,
.block-views.block-views-blocktestimonial-carousel-block-1 h2 {
  font-weight: 300 !important;
  font-size: 1rem !important;
  text-align: center;
  color: #333333 !important;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 8px !important;
}
#block-tammia-theme-views-block-product-by-category-block-1 {
  max-width: 1100px;
  margin: auto;
  padding: 16px !important;
}
#block-tammia-theme-views-block-brand-block-1 > div:first-child,
#block-tammia-theme-views-block-shop-by-category-block-1 > div:first-child,
#block-tammia-theme-views-block-brand-block-1 > .contextual-region > .view,
#block-tammia-theme-views-block-shop-by-category-block-1 > .contextual-region > .view {
  margin-bottom: 20px;
  padding: 0;
}


/* ============================================================
   HARGA, BADGE SALE, DISCOUNT
============================================================ */
.product-price,
.field--name-price,
.price,
.commerce-product-price,
.product--variation-field--variation_price__52 .field__item,
.product--variation-field--variation_price__52,
[class*="variation_price"] .field__item {
  color: var(--tm-red) !important;
}
.badge-sale,
.product-badge-sale,
.sale-badge,
[class*="badge"][class*="sale"],
.product-card .badge,
.product-card .sale {
  background: var(--tm-red) !important;
  color: var(--tm-white) !important;
}
.discount-badge,
.product-discount,
[class*="discount"] {
  background: var(--tm-red-3) !important;
  color: var(--tm-white) !important;
}

/* ============================================================
   ADD TO CART BUTTON (deduped from 4 near-identical blocks)
============================================================ */
html body input.button--add-to-cart,
html body button.button--add-to-cart,
html body .button--add-to-cart,
html body input[id="edit-submit"].button--add-to-cart,
html body .btn-primary.button--add-to-cart,
html body .commerce-order-item-add-to-cart-form .button--add-to-cart,
html body .commerce-order-item-add-to-cart-form input[type="submit"],
html body form.commerce-order-item-add-to-cart-form .form-submit,
html body .add-to-cart-form .form-submit,
html body form[id*="add-to-cart"] .form-submit,
html body .add-to-cart-form input[type="submit"],
html body form[id*="add-to-cart"] input[type="submit"],
html body .quickview-modal-custom .form-actions input[type="submit"],
html body .quickview-modal-custom .button--add-to-cart,
html body .quickview-modal-custom .btn-primary,
html body .product-info-col .btn-primary,
html body .product-info-col input.btn-primary,
html body .product-info-col .button--add-to-cart,
html body .product-info-col input.button--add-to-cart,
html body .product-info-col input[type="submit"].btn-primary,
html body .product-info-col form input[type="submit"],
html body .product-info-col .form-submit,
html body .product-card-button,
html body .product-card .add-to-cart,
html body .product-card [class*="add-to-cart"],
html body .product-grid .add-to-cart-form .form-submit {
  background: var(--tm-red) !important;
  background-color: var(--tm-red) !important;
  background-image: none !important;
  border: 1px solid var(--tm-red) !important;
  border-color: var(--tm-red) !important;
  color: var(--tm-white) !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  width: auto !important;
  min-width: 140px !important;
  max-width: 200px !important;
  display: inline-block !important;
  box-shadow: none !important;
  text-transform: uppercase;
}
html body input.button--add-to-cart:hover,
html body button.button--add-to-cart:hover,
html body .button--add-to-cart:hover,
html body .commerce-order-item-add-to-cart-form input[type="submit"]:hover,
html body .add-to-cart-form .form-submit:hover,
html body form[id*="add-to-cart"] .form-submit:hover,
html body .add-to-cart-form input[type="submit"]:hover,
html body .product-info-col .btn-primary:hover,
html body .product-info-col input.btn-primary:hover,
html body .product-info-col .button--add-to-cart:hover {
  background: var(--tm-red-2) !important;
  background-color: var(--tm-red-2) !important;
  border-color: var(--tm-red-2) !important;
  color: var(--tm-white) !important;
}
html body input.button--add-to-cart:focus,
html body .commerce-order-item-add-to-cart-form input[type="submit"]:focus {
  background: var(--tm-red) !important;
  border-color: var(--tm-red) !important;
  box-shadow: 0 0 0 3px rgba(225,29,37,0.2) !important;
}

/* Kill any orange leftovers from legacy inline styles */
[style*="rgb(238, 77, 45)"],
[style*="#1a1a1a"],
[style*="#1a1a1a"] {
  background-color: var(--tm-red) !important;
}


/* ============================================================
   QUANTITY SELECTOR
============================================================ */
.commerce-order-item-add-to-cart-form .field--name-quantity {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 12px 0 0 !important;
  vertical-align: middle !important;
}
.commerce-order-item-add-to-cart-form .field--name-quantity .form-item { margin: 0 !important; }
.commerce-order-item-add-to-cart-form .field--name-quantity input[type="number"],
.commerce-order-item-add-to-cart-form input.form-number {
  width: 60px !important;
  height: 40px !important;
  text-align: center !important;
  padding: 6px 4px !important;
  font-size: 14px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  -moz-appearance: textfield !important;
}
.commerce-order-item-add-to-cart-form .field--name-quantity input[type="number"]::-webkit-outer-spin-button,
.commerce-order-item-add-to-cart-form .field--name-quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.commerce-order-item-add-to-cart-form .field--name-quantity > label,
.commerce-order-item-add-to-cart-form .field--name-quantity .form-item > label {
  display: none !important;
}
.tm-qty-wrap {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  height: 40px !important;
  margin-right: 12px !important;
  vertical-align: middle !important;
}
.tm-qty-wrap .tm-qty-btn {
  width: 36px !important;
  height: 38px !important;
  border: none !important;
  background: var(--tm-white) !important;
  color: var(--tm-grey-black) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
.tm-qty-wrap .tm-qty-btn:hover {
  background: var(--tm-off-white) !important;
  color: var(--tm-red) !important;
}
.tm-qty-wrap input[type="number"] {
  border: none !important;
  border-left: 1px solid #d9d9d9 !important;
  border-right: 1px solid #d9d9d9 !important;
  border-radius: 0 !important;
  height: 38px !important;
  width: 48px !important;
  text-align: center !important;
  font-size: 14px !important;
  background: var(--tm-white) !important;
  -moz-appearance: textfield !important;
  padding: 0 !important;
  outline: none !important;
}
.tm-qty-wrap input[type="number"]::-webkit-outer-spin-button,
.tm-qty-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.commerce-order-item-add-to-cart-form .form-actions {
  display: inline-block !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
.commerce-order-item-add-to-cart-form { display: block !important; margin-top: 10px; }

/* ============================================================
   VARIATION CHIPS
============================================================ */
.product-variation-wrapper .variation-chips,
.variation-chips { margin: 12px 0 !important; }
.variation-chips .chips-list,
.product-variation-wrapper .chips-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.var-chip,
.variation-chips .var-chip,
.chips-list .var-chip {
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  background: var(--tm-white) !important;
  color: var(--tm-grey-black) !important;
  cursor: pointer !important;
  transition: all .15s !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
}
.var-chip:hover { border-color: var(--tm-red-2) !important; color: var(--tm-red-2) !important; }
.var-chip.is-active,
.var-chip.active,
.var-chip[aria-pressed="true"],
.var-chip.selected {
  border: 1.5px solid var(--tm-red) !important;
  background: #f5f5f5 !important;
  color: var(--tm-red) !important;
  font-weight: 600 !important;
}
.product-variation-wrapper .var-label,
.variation-chips > label,
.variation-chips .field__label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--tm-grey-black) !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
}


/* ============================================================
   BRAND LABEL / PRODUCT TITLE
============================================================ */
.tm-product-brand {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--tm-red) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 6px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}
.tm-product-brand:hover { color: var(--tm-red-2) !important; text-decoration: underline !important; }
.product-title {
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #1a1a1a !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
}

/* ============================================================
   PRODUCT CARD
============================================================ */
.product-card,
.commerce-product,
.views-row .product {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card .quick-view,
.product-card .product-quick-view,
[class*="quick-view"]:hover {
  background: var(--tm-red) !important;
  color: var(--tm-white) !important;
}
.product-card .wishlist:hover,
.product-card .heart:hover,
[class*="wishlist"]:hover svg,
.heart-icon:hover { color: var(--tm-red) !important; }
.heart-icon.active,
.wishlist-icon.active,
[class*="wishlist"][class*="active"],
.fa-heart.active { color: var(--tm-red) !important; }

/* ============================================================
   CATEGORY PILLS (Shop by Category)
============================================================ */
#block-tammia-theme-views-block-shop-by-category-block-1 { padding: 0 !important; }
.view-shop-by-category .views-view-responsive-grid__item-inner { padding: 4px; }
.view-shop-by-category .views-view-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0;
}
.view-shop-by-category .views-field-name .field-content a {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  width: 100%;
  text-align: center;
  margin: 0;
}
.view-shop-by-category .views-field-name .field-content a:hover {
  background: var(--tm-red);
  border-color: var(--tm-red);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(232,65,24,0.25);
  text-decoration: none !important;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonial-card { padding: 16px !important; margin: 4px 8px 12px !important; }
.testimonial-body {
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}
.testimonial-stars .star { font-size: 16px !important; }
.testimonial-avatar { width: 32px !important; height: 32px !important; font-size: 0.7rem !important; }
.testimonial-name { font-size: 0.78rem !important; font-weight: 700 !important; }
.testimonial-location { font-size: 0.67rem !important; }
.natsoe-testimonial-section { padding: 32px 0 24px !important; }
.testimonial-verified { font-size: 0.62rem !important; padding: 2px 6px !important; }


/* ============================================================
   FOOTER — dark background, white text (per instruction)
============================================================ */
html body footer.mt-auto,
html body footer .container,
html body .region-footer,
html body .region.region-footer,
html body .natsoe-footer-wrap,
html body [id*="block-tammia-theme-footer"],
html body .footer-wrapper {
  background: var(--tm-footer-bg) !important;
  background-color: var(--tm-footer-bg) !important;
  background-image: none !important;
  color: var(--tm-footer-text) !important;
}
html body .region-footer .block-block-content { background: transparent !important; }
.natsoe-footer-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.natsoe-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
html body .natsoe-footer-wrap,
html body .natsoe-footer-wrap *:not(.natsoe-newsletter-btn):not(.natsoe-payment-logo):not(.natsoe-shipping-logo):not(a):not(button):not(input) {
  color: var(--tm-footer-text-muted) !important;
}
html body .natsoe-footer-wrap h2,
html body .natsoe-footer-wrap h3,
html body .natsoe-footer-wrap h4,
html body .natsoe-footer-wrap .footer-heading,
html body .natsoe-footer-wrap [class*="heading"],
.natsoe-footer-col h4 {
  color: var(--tm-footer-text) !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.natsoe-footer-col ul { list-style: none; padding: 0; margin: 0; }
.natsoe-footer-col ul li { margin-bottom: 8px; }
html body .natsoe-footer-wrap a,
html body .natsoe-footer-col ul li a {
  color: #cccccc !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}
html body .natsoe-footer-wrap a:hover,
html body .natsoe-footer-col ul li a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
  padding-left: 4px;
}
/* Footer logo: keep original (light/white) version since bg is dark now */
.natsoe-footer-wrap .footer-logo,
.natsoe-footer-wrap [class*="footer-logo"],
.natsoe-footer-wrap img.logo,
html body footer img[src*="logo"],
html body .natsoe-footer-brand img {
  filter: none !important;
}
html body .natsoe-footer-bottom,
html body footer [class*="footer-bottom"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.75rem;
  color: #9a9a9a !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  background: transparent !important;
  flex-wrap: wrap;
  gap: 12px;
}
html body footer a[href^="mailto:"],
html body footer a[href^="tel:"],
html body footer a[href*="wa.me"],
html body footer a[href*="whatsapp"],
.natsoe-footer-col .cs-email,
.natsoe-footer-col .cs-wa {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.natsoe-footer-wrap [class*="icon"],
.natsoe-footer-wrap .footer-icon { color: var(--tm-red) !important; }

/* Payment & shipping logos on dark footer */
.natsoe-payment-logos,
.natsoe-shipping-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.natsoe-payment-logo {
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  height: 24px;
}
.natsoe-shipping-logo {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

/* Social icons */
.natsoe-social-icons { display: flex; gap: 10px; margin-top: 12px; }
.natsoe-social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none !important; transition: all 0.2s; font-size: 16px;
}
.natsoe-social-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.natsoe-social-icon.tiktok { background: #010101; border: 1px solid rgba(255,255,255,0.15); }
.natsoe-social-icon:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }

/* Newsletter form */
.natsoe-newsletter { margin-top: 16px; }
.natsoe-newsletter p { font-size: 0.78rem; color: #9ca3af; margin-bottom: 10px; }
.natsoe-newsletter-form { display: flex; gap: 8px; }
.natsoe-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.natsoe-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.natsoe-newsletter-input:focus { border-color: rgba(255,255,255,0.4); }
html body .natsoe-newsletter-btn,
html body button.natsoe-newsletter-btn,
html body input.natsoe-newsletter-btn,
[class*="newsletter"] button,
[class*="newsletter"] input[type="submit"] {
  background: #6b7280 !important;
  background-color: #6b7280 !important;
  border: none !important;
  border-color: #6b7280 !important;
  color: var(--tm-white) !important;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
html body .natsoe-newsletter-btn:hover {
  background: #52525b !important;
  border-color: #52525b !important;
  transform: translateY(-1px);
}
[class*="newsletter"] input[type="email"],
[class*="newsletter"] input[type="text"] {
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  color: var(--tm-white) !important;
}

/* Footer brand block */
.natsoe-footer-brand { margin-bottom: 16px; }
.natsoe-footer-brand .brand-tagline { font-size: 0.92rem; color: #9ca3af; margin-top: 8px; line-height: 1.5; }

@media (max-width: 767px) { .natsoe-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 575px) { .natsoe-footer-grid { grid-template-columns: 1fr; } }


/* ============================================================
   LINK ACCENT GLOBAL
============================================================ */
a.text-primary,
.text-primary { color: var(--tm-red) !important; }

/* ============================================================
   QUICKVIEW MODAL PRICE BLOCK
============================================================ */
html body .price-and-discount-wrapper,
html body .ui-dialog .price-and-discount-wrapper,
html body [role="dialog"] .price-and-discount-wrapper {
  background: transparent !important;
  padding: 8px 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
html body .price-and-discount-wrapper .product-price-display,
html body .price-and-discount-wrapper > .product-price,
html body .price-and-discount-wrapper .price-amount,
html body .price-and-discount-wrapper > div:first-child {
  color: var(--tm-red) !important;
  background: transparent !important;
  font-weight: 700 !important;
  font-size: 22px !important;
}
html body .price-and-discount-wrapper .price-original,
html body .price-and-discount-wrapper del,
html body .price-and-discount-wrapper s,
html body .price-and-discount-wrapper .strike,
html body .price-and-discount-wrapper [class*="original"],
html body .price-and-discount-wrapper [class*="compare"] {
  color: #999 !important;
  text-decoration: line-through !important;
  background: transparent !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}
html body .price-and-discount-wrapper .diskon-badge,
html body .price-and-discount-wrapper [class*="discount"],
html body .price-and-discount-wrapper [class*="badge"],
html body .harga-coret-wrapper .diskon-badge {
  background-color: var(--tm-red) !important;
  color: var(--tm-white) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  text-decoration: none !important;
}
html body .harga-coret-wrapper {
  background: transparent !important;
  color: #999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body .harga-coret-wrapper .harga-normal-coret,
html body .price-and-discount-wrapper .harga-normal-coret {
  color: #999 !important;
  text-decoration: line-through !important;
  background: transparent !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}
.qv-left { max-width: 384px; }
.qv-right h2 { text-align: left !important; }
.qv-right .field--name-title { text-align: left; font-weight: 600 !important; font-size: 26px !important; line-height: 25px; margin-top:15px; }

/* ============================================================
   RATING STARS / GOLD ACCENT
============================================================ */
.star-rating, .stars, .field--name-field-rating { color: var(--tm-gold) !important; }

/* ============================================================
   BODY / LAYOUT
============================================================ */
body { background: #f9f9f9; }
.layout-container { background: #f9f9f9; }
.slick-arrow::before { color: #fff !important; font-size: 3rem !important; }
.slick-prev { left: 10px !important; }
.slick-next { right: 10px !important; }
#beauty-tabsContent .slick__slide { margin: 0 20px; }
#toolbar-administration { z-index: 1060; }


/* ============================================================
   ACCOUNT SUB-PAGES (address book, payment methods, dll)
============================================================ */
body.path-user #block-tammia-theme-local-tasks,
body.path-user #block-claro-primary-local-tasks,
body.path-user .block-local-tasks-block { display: none !important; }

.natsoe-back-profile { margin-bottom: 16px; margin-top: 4px; }
.natsoe-back-profile-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--tm-red) !important; font-size: 0.85rem; font-weight: 600;
  text-decoration: none !important; padding: 6px 0; transition: gap 0.2s;
}
.natsoe-back-profile-link:hover { gap: 10px; text-decoration: none !important; }
.natsoe-back-profile-link svg { flex-shrink: 0; }

.natsoe-add-addr-btn {
  display: inline-flex !important; align-items: center; gap: 6px;
  background: var(--tm-red) !important; color: #fff !important;
  border-radius: 10px !important; padding: 10px 20px !important;
  font-size: 0.85rem !important; font-weight: 700 !important;
  text-decoration: none !important; margin-bottom: 24px !important;
  transition: background 0.2s !important;
}
.natsoe-add-addr-btn:hover { background: var(--tm-red-2) !important; color: #fff !important; }

.natsoe-addr-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 720px; }
.natsoe-addr-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.natsoe-addr-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); border-color: var(--tm-red); }
.natsoe-addr-card.is-default { border-color: var(--tm-red); background: #f7f7f7; }
.natsoe-addr-default-badge {
  display: inline-block;
  background: var(--tm-red); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 9px; border-radius: 20px; text-transform: uppercase;
  vertical-align: middle; margin-left: 8px;
}
.natsoe-addr-info { flex: 1; min-width: 0; }
.natsoe-addr-name { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.natsoe-addr-lines { font-size: 0.82rem; color: #4b5563; line-height: 1.65; }
.natsoe-addr-phone { font-size: 0.8rem; color: #6b7280; margin-top: 6px; }
.natsoe-addr-phone span { font-weight: 600; color: #374151; }
.natsoe-addr-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  flex-shrink: 0; margin-top: 2px;
}
.natsoe-addr-actions a {
  font-size: 0.78rem; font-weight: 600; text-decoration: none !important;
  padding: 5px 14px; border-radius: 7px; transition: all 0.18s;
  white-space: nowrap;
}
.natsoe-addr-edit { background: #f3f4f6; color: #374151 !important; border: 1px solid #e5e7eb; }
.natsoe-addr-edit:hover { background: #e5e7eb !important; }
.natsoe-addr-delete { color: #000000 !important; font-size: 0.76rem !important; }
.natsoe-addr-delete:hover { text-decoration: underline !important; }
.natsoe-addr-setdefault {
  color: var(--tm-red) !important; font-size: 0.76rem !important; border: 1px solid #d9d9d9;
  padding: 4px 10px !important; border-radius: 6px !important; background: #f5f5f5 !important;
}
.natsoe-addr-setdefault:hover { background: #f0f0f0 !important; }

.natsoe-payment-replaced { padding: 40px 20px; text-align: center; max-width: 500px; margin: 0 auto; }
.natsoe-payment-replaced .pay-msg-box { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-top: 20px; }
.natsoe-payment-replaced h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.natsoe-payment-replaced p { font-size: 0.85rem; color: #666; margin-bottom: 20px; }
.natsoe-payment-replaced .btn-back-pm { display: inline-flex; align-items: center; gap: 6px; background: var(--tm-red); color: #fff !important; padding: 10px 20px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; text-decoration: none !important; }
.natsoe-payment-replaced .btn-back-pm:hover { background: var(--tm-red-2) !important; }


/* ============================================================
   MOBILE LAYOUT (fixed header, mobile search, bottom nav)
============================================================ */
@media (max-width: 767px) {
  header nav.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0; right: 0;
    z-index: 1030 !important;
    background: var(--tm-red-2) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    padding: 8px 10px !important;
    margin: 0 !important;
  }
  body { padding-top: 56px !important; padding-bottom: 64px !important; }
  header .region-announcement-bar { display: none !important; }
  header nav.navbar .container.d-flex {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  header .navbar-brand { flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; }
  header .navbar-brand .site-logo img,
  header .navbar-brand img { max-height: 32px !important; width: auto !important; }
  header .views-exposed-form {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    min-width: 0 !important;
  }
  header .views-exposed-form form.views-exposed-form,
  header .views-exposed-form .form--inline {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
  }
  header .views-exposed-form .js-form-item-title {
    flex: 1 1 auto !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    position: static !important;
  }
  header .views-exposed-form .js-form-item-title label { display: none !important; }
  header .views-exposed-form input.form-text {
    width: 100% !important;
    max-width: 100% !important;
    height: 34px !important;
    border-radius: 17px !important;
    padding: 6px 38px 6px 14px !important;
    font-size: 13px !important;
    border: 1px solid #fff !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  header .views-exposed-form .form-actions {
    position: absolute !important;
    right: 3px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  header .views-exposed-form .form-actions input.btn,
  header .views-exposed-form .form-actions .button {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: var(--tm-red-3) !important;
    color: transparent !important;
    border: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    font-size: 0 !important;
  }
  header nav.navbar .navbar-toggler { display: none !important; }
  header nav.navbar .navbar-collapse { display: none !important; }

  ul.ui-autocomplete.natsoe-mobile-ac {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    z-index: 2000 !important;
    right: auto !important;
  }

  ul#beauty-tabs.nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 0 8px !important;
    margin: 12px 0 !important;
    list-style: none;
  }
  ul#beauty-tabs.nav > li.nav-item { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; }
  ul#beauty-tabs.nav > li.nav-item > a.nav-link,
  ul#beauty-tabs.nav > li.nav-item > button.nav-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background-color: var(--tm-red-2) !important;
    color: #ffffff !important;
    border: 1px solid var(--tm-red-2) !important;
    border-radius: 6px !important;
    padding: 7px 2px !important;
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    white-space: normal !important;
    overflow: hidden;
    letter-spacing: 0;
  }
  ul#beauty-tabs.nav > li.nav-item > .nav-link.active {
    background-color: var(--tm-red-3) !important;
    color: #ffffff !important;
    border-color: var(--tm-red-3) !important;
  }

  #natsoe-mobile-bottomnav {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    display: flex !important;
    justify-content: space-around;
    align-items: stretch;
    background: #ffffff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    height: 60px;
    padding: 4px 0;
  }
  #natsoe-mobile-bottomnav a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #444 !important;
    font-size: 9.5px;
    text-decoration: none !important;
    padding: 4px 2px;
    line-height: 1.1;
    position: relative;
    text-align: center;
  }
  #natsoe-mobile-bottomnav a:hover,
  #natsoe-mobile-bottomnav a:focus { color: var(--tm-red-2) !important; }
  #natsoe-mobile-bottomnav a .bn-icon {
    width: 22px; height: 22px; margin-bottom: 2px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #natsoe-mobile-bottomnav a .bn-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
  #natsoe-mobile-bottomnav .bn-cart-badge {
    position: absolute;
    top: 0px;
    right: 18%;
    background: var(--tm-red-2);
    color: #fff;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9.5px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
  }

  /* Sembunyikan Quick View di featured_products_tabs & product_by_category (mobile) */
  .qv-overlay { display: none !important; }
  .qv-button { display: none !important; }
  .fpt-btn-quickview { display: none !important; }
  .product-image-link { display: block; width: 100%; cursor: pointer; }
  .fpt-product-image-wrap a { display: block; pointer-events: auto !important; }

  /* Product Detail Page - responsive gallery */
  article.product-layout { flex-direction: column !important; flex-wrap: wrap !important; }
  .product-gallery-col { flex: 0 0 100% !important; max-width: 100% !important; min-width: unset !important; width: 100% !important; }
  .product-info-col { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
  .gallery-col { width: 100% !important; min-width: unset !important; max-width: 100% !important; flex-shrink: 1 !important; }
  .gallery-main-wrap { max-height: 80vw !important; min-height: 250px !important; }
}
@media (min-width: 768px) {
  #natsoe-mobile-bottomnav { display: none !important; }
}

/* Product image link wrapper (all viewports) */
.product-image-link { display: block; width: 100%; cursor: pointer; text-decoration: none; }
.product-image-link img { display: block; width: 100%; }

/* FIX: Foto produk tetap bisa diklik walau ada overlay hitam transparan saat hover */
.qv-overlay {
    pointer-events: none !important;
}
.qv-overlay .qv-button,
.qv-overlay .fpt-btn-quickview {
    pointer-events: auto !important;
}

/* ===== Natsoe mobile header redesign + bottom-nav search (2026-08-13) ===== */
@media (max-width: 767px) {
  /* Header top row: logo left (large), hamburger right */
  header nav.navbar .container.d-flex {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    position: relative !important;
  }
  header .region-nav-branding { order: 0 !important; flex: 0 0 auto !important; margin: 0 !important; }
  header .navbar-brand { margin: 0 !important; padding: 0 !important; }
  header .navbar-brand .site-logo img,
  header .navbar-brand img { max-height: 60px !important; width: auto !important; }

  /* Hide in-header search + user/cart (moved to bottom nav) */
  header .views-exposed-form { display: none !important; }
  header .region-nav-additional { display: none !important; }

  /* Hamburger to the far right */
  header nav.navbar .navbar-toggler {
    display: inline-flex !important;
    order: 5 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important; height: 40px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  header nav.navbar .navbar-toggler .navbar-toggler-icon { width: 35px !important; height: 35px !important; }

  /* Main menu becomes a dropdown panel under the header */
  header nav.navbar .navbar-collapse {
    order: 6 !important;
    position: absolute !important;
    top: 100% !important; left: 0 !important; right: 0 !important;
    background: var(--tm-red-2) !important;
    flex-basis: auto !important; width: auto !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18) !important;
    z-index: 1035 !important;
  }
  header nav.navbar .navbar-collapse .region-nav-main { display: block !important; padding: 6px 14px !important; }

  /* Bottom-nav Search toggle button matches the link style */
  #natsoe-mobile-bottomnav #bn-search-toggle {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #444 !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 2px !important;
    cursor: pointer !important;
    font-family: inherit !important;
  }
  #natsoe-mobile-bottomnav #bn-search-toggle:hover,
  #natsoe-mobile-bottomnav #bn-search-toggle:focus { color: var(--tm-red-2) !important; }
  #natsoe-mobile-bottomnav #bn-search-toggle .bn-icon { width: 22px; height: 22px; margin-bottom: 2px; display: inline-flex; align-items: center; justify-content: center; }
  #natsoe-mobile-bottomnav #bn-search-toggle .bn-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

  /* Search overlay just above the bottom nav */
  #bn-search-overlay {
    position: fixed !important;
    left: 0; right: 0; bottom: 60px;
    z-index: 1041;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.10);
    padding: 8px 10px;
    transform: translateY(100%);
    transition: transform 0.22s ease, visibility 0.22s, opacity 0.22s;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  #bn-search-overlay.open { transform: translateY(0); visibility: visible; opacity: 1; pointer-events: auto; }
  #bn-search-overlay form { display: flex; align-items: center; gap: 6px; margin: 0; }
  #bn-search-overlay input[name="title"] {
    flex: 1 1 auto; min-width: 0;
    height: 38px; border-radius: 19px;
    border: 1px solid #ccc; padding: 6px 16px;
    font-size: 14px; box-sizing: border-box;
  }
  #bn-search-overlay button[type="submit"] {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: var(--tm-red-2); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  }
  #bn-search-overlay button[type="submit"] svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
  #bn-search-overlay #bn-search-close {
    flex: 0 0 auto; width: 34px; height: 38px; border: 0; background: transparent;
    font-size: 26px; line-height: 1; color: #888; cursor: pointer;
  }
}
@media (min-width: 768px) {
  #bn-search-overlay { display: none !important; }
}

/* Natsoe: fix mobile hamburger dropdown visibility (2026-08-13) */
@media (max-width: 767px) {
  header nav.navbar .navbar-collapse { display: none !important; }
  header nav.navbar .navbar-collapse.show,
  header nav.navbar .navbar-collapse.collapsing { display: block !important; }
  .gallery-main-wrap {
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    min-height: 250px !important;
  }
}
