/* =========================================================
   Mashaer Portal — Static Prototype Theme
   Design foundation: Template/T1/mashaer.html
   Tokens: primary #3b2b22, gold #c19d60, secondary #a89078
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..300,0..1,-50..200');

body {
  font-family: var(--mashaer-font-family);
  color: #3b2b22;
  background: #ffffff;
}

.font-heading {
  font-family: var(--mashaer-font-family);
  font-weight: 700;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
}

.transition-expo { transition-timing-function: cubic-bezier(0.22,1,0.36,1); }

.product-img-placeholder {
  background: linear-gradient(135deg, #f5f0ea 0%, #ede5d8 100%);
}

[hidden] { display: none !important; }

input:focus,
textarea:focus,
select:focus { outline: none; }

/* Custom scrollbar for luxury feel */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f5f0ea; }
::-webkit-scrollbar-thumb { background: #c19d60; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a98544; }

/* Hide Tailwind CDN warning banner in dev */
#tailwind-cdn-warning { display: none !important; }

/* Line-clamp helpers (Tailwind CDN sometimes lags) */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Card micro-interactions */
.mashaer-card { box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.mashaer-card:hover { box-shadow: 0 10px 26px -16px rgba(59,43,34,0.22); }

/* Form fields */
.mashaer-field { width: 100%; border: 1px solid #e5dcc9; background: #fff; padding: 0.65rem 0.85rem; font-size: 0.875rem; color: #3b2b22; transition: border-color .25s ease, box-shadow .25s ease; }
.mashaer-field:focus { border-color: #c19d60; box-shadow: 0 0 0 3px rgba(193,157,96,0.14); }
.mashaer-field::placeholder { color: #bfae96; }
.mashaer-label { display: block; font-size: 11px; color: #8d745d; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }

:root {
  --portal-header-height-mobile: 74px;
  --portal-header-height-desktop: 88px;
  --portal-header-height: var(--portal-header-height-mobile);
}

@media (min-width: 768px) {
  :root {
    --portal-header-height: var(--portal-header-height-desktop);
  }
}

.portal-main--offset {
  padding-top: var(--portal-header-height);
}

.portal-drawer {
  padding-top: var(--portal-header-height);
}

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  color: #784824;
  background: rgba(255, 255, 255, 0.95);
  border-top: 4px solid #c19d60;
  box-shadow: 0 10px 28px rgba(31, 22, 14, 0.08);
  backdrop-filter: blur(14px);
  transition: background .28s ease, color .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.portal-header[data-transparent-on-load="true"]:not(.is-solid) {
  color: #fff;
  background: transparent;
  border-top-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.portal-header__shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 84px;
  padding: 18px max(20px, calc((100vw - 1320px) / 2));
}

.portal-header__section {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
}

.portal-header__section--start {
  justify-content: flex-start;
}

.portal-header__section--end {
  justify-content: flex-end;
  position: relative;
}

.portal-header__links,
.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  transition: opacity .24s ease, visibility .24s ease;
}

.portal-header__actions {
  gap: 18px;
}

.portal-header.is-drawer-open .portal-header__links,
.portal-header.is-drawer-open .portal-header__actions {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.portal-header a,
.portal-header button {
  color: inherit;
  border: 0;
  background: transparent;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.portal-header a:hover,
.portal-header button:hover {
  color: #c19d60;
}

.portal-header__icon {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.portal-header__menu-button {
  display: none;
}

.portal-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.portal-header__logo img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: opacity .24s ease;
}

.portal-header[data-show-logo-when-transparent="false"]:not(.is-solid) .portal-header__logo img {
  opacity: 0;
  pointer-events: none;
}

.portal-header__desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.portal-header__link {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #c19d60;
  transition: transform .24s ease;
}

.portal-header__link:hover::after,
.portal-header__link:focus-visible::after {
  transform: scaleX(1);
}

.portal-header__region {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-header__cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #c19d60;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.portal-header__close {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) rotate(-90deg) scale(.5);
  transition: color .2s ease, opacity .24s ease, transform .24s ease;
}

.portal-header.is-drawer-open .portal-header__close {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) rotate(0) scale(1);
}

.portal-header__close--rtl {
  left: 0;
}

.portal-header__close--ltr {
  right: 0;
}

@media (max-width: 1024px) {
  .portal-header__links,
  .portal-header__actions {
    gap: 16px;
  }

  .portal-header__desktop-nav {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .portal-header__shell {
    min-height: 70px;
    padding: 14px 15px;
  }

  .portal-header__links,
  .portal-header__actions {
    gap: 8px;
  }

  .portal-header__desktop-nav,
  .portal-header__desktop-only,
  .portal-header__region-label {
    display: none !important;
  }

  .portal-header__menu-button {
    display: inline-flex;
  }

  .portal-header__logo img {
    height: 42px;
  }

  .portal-header__close--rtl {
    left: 12px;
  }

  .portal-header__close--ltr {
    right: 12px;
  }
}
