/* ============================================================
   HEADER
   ============================================================ */
.om-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 236, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.om-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.om-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.om-logo-mark {
  width: 38px; height: 38px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
}
.om-logo-mark span { transform: translateY(-1px); }
.om-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.om-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease;
  position: relative;
}
.om-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--paprika);
  transition: width .3s ease;
}
.om-nav a:hover::after,
.om-nav a.active::after {
  width: 100%;
}
.om-nav a:hover,
.om-nav a.active {
  color: var(--paprika);
}

/* ---------- HEADER ACTIONS ---------- */
.om-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.om-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  font-size: 0;
  border: none;
  padding: 0;
}
.om-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
.om-icon-btn:hover {
  background: var(--cream-warm);
  color: var(--paprika);
}

/* ---------- MOBILE MENU ---------- */
.om-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s ease;
}
.om-mobile-menu-btn:hover {
  background: var(--cream-warm);
}
.om-mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}
.om-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.om-mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}
.om-mobile-drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  width: 280px;
  height: 100%;
  background: var(--cream);
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
  padding-block: 20px;
}
.om-mobile-drawer.open .om-mobile-drawer-content {
  transform: translateX(0);
}
.om-mobile-drawer a {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
  color: var(--ink);
}
.om-mobile-drawer a:hover,
.om-mobile-drawer a.active {
  background: var(--cream-warm);
  color: var(--paprika);
}

/* ---------- DROPDOWNS ---------- */
.om-dropdown {
  position: relative;
  display: inline-block;
}
.om-dropdown.open > .om-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.om-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 12px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 1000;
  border: 1px solid var(--line);
}
.om-dropdown-menu a,
.om-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  font-weight: 500;
}
.om-dropdown-menu a:hover,
.om-dropdown-menu button:hover {
  background: var(--cream);
  color: var(--paprika);
}

/* ---------- LOCATION SECTION ---------- */
.om-location-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--cream-warm);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  transition: background .2s ease, color .2s ease;
}
.om-location-btn:hover {
  background: var(--paprika);
  color: var(--cream);
}
.om-location-btn svg {
  width: 16px;
  height: 16px;
}
#locDisplay {
  font-weight: 600;
  color: var(--forest);
}

/* ---------- LOCATION DROPDOWN ---------- */
#locDropdown {
  min-width: 320px !important;
  left: auto;
  right: 0;
}
#locDropdown > .om-dropdown-menu {
  top: 100%;
  right: 0;
}
.om-location-form {
  padding: 20px;
}
.om-location-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
  transition: border-color .2s ease;
}
.om-location-form input:focus {
  outline: none;
  border-color: var(--paprika);
  box-shadow: 0 0 0 3px rgba(217,83,30,.1);
}
#saveLoc {
  width: 100%;
  padding: 10px 14px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
#saveLoc:hover {
  background: var(--paprika);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.om-hero {
  background: linear-gradient(135deg, rgba(14,61,46,.95) 0%, rgba(7,38,32,.92) 100%);
  color: var(--cream);
  padding-block: 80px 120px;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.om-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,184,74,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.om-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.om-hero h1 {
  color: var(--cream);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
}
.om-hero em {
  color: var(--saffron);
  font-style: italic;
  font-weight: 400;
}
.om-hero p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(248,245,236,.85);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 55ch;
}
.om-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.om-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding-block: 80px;
}
.om-feature-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.om-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.om-feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 36px;
  color: var(--paprika);
}
.om-feature-card h3 {
  margin-bottom: 12px;
  color: var(--forest);
}
.om-feature-card p {
  color: var(--stone);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   PRODUCT SECTION
   ============================================================ */
.om-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.om-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.om-filter {
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.om-filter:hover {
  border-color: var(--paprika);
  color: var(--paprika);
}
.om-filter.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.om-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-sort-wrapper label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.om-sort-wrapper select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.om-sort-wrapper select:focus {
  outline: none;
  border-color: var(--paprika);
}

/* ---------- PRODUCT GRID ---------- */
#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.om-product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.om-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.om-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-warm);
}
.om-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.om-product-card:hover .om-product-image img {
  transform: scale(1.08);
}
.om-product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--paprika);
  color: var(--white);
  z-index: 10;
}
.om-product-badge.sale {
  background: var(--paprika);
}
.om-product-badge.new {
  background: var(--saffron);
  color: var(--forest);
}
.om-product-body {
  padding: 20px;
}
.om-product-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--paprika);
  margin-bottom: 8px;
}
.om-product-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
  line-height: 1.2;
}
.om-product-weight {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 16px;
}
.om-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.om-product-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
}
.om-product-price span {
  font-size: 13px;
  color: var(--stone);
  font-weight: 400;
  font-family: var(--font-body);
}
.om-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.om-add-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}
.om-add-btn:hover {
  background: var(--paprika);
  transform: scale(1.05);
}

/* ---------- EMPTY STATE ---------- */
.om-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--stone);
  font-size: 18px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.om-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.om-about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.om-about-image img {
  width: 100%;
  height: auto;
}
.om-about-content h2 {
  margin-bottom: 24px;
}
.om-about-content p {
  color: var(--stone);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
}
.om-about-list {
  list-style: none;
  margin: 32px 0;
}
.om-about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--stone);
}
.om-about-list li::before {
  content: '✓';
  color: var(--paprika);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.om-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.om-contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.om-contact-block {
  display: flex;
  gap: 16px;
}
.om-contact-icon {
  width: 50px;
  height: 50px;
  background: var(--cream-warm);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--paprika);
  flex-shrink: 0;
  font-size: 24px;
}
.om-contact-block h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--forest);
}
.om-contact-block p {
  color: var(--stone);
  font-size: 14px;
}
.om-contact-block a {
  color: var(--paprika);
  transition: color .2s ease;
}
.om-contact-block a:hover {
  color: var(--forest);
}

/* ---------- CONTACT FORM ---------- */
.om-contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.om-contact-form h3 {
  margin-bottom: 24px;
}
.om-form-group {
  margin-bottom: 20px;
}
.om-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.om-form-group input,
.om-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease;
}
.om-form-group input:focus,
.om-form-group textarea:focus {
  outline: none;
  border-color: var(--paprika);
  box-shadow: 0 0 0 3px rgba(217,83,30,.1);
}
.om-form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.om-form-submit {
  width: 100%;
  padding: 14px 26px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.om-form-submit:hover {
  background: var(--paprika);
  transform: translateY(-2px);
}
#formMsg {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--cream-warm);
  color: var(--forest);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
#formMsg.success {
  background: rgba(14,61,46,.1);
  color: var(--forest);
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   FOOTER
   ============================================================ */
.om-footer {
  background: var(--forest);
  color: var(--cream);
  padding-block: 60px 30px;
  margin-top: 80px;
}
.om-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.om-footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--cream);
}
.om-footer-col ul {
  list-style: none;
}
.om-footer-col li {
  margin-bottom: 10px;
}
.om-footer-col a {
  color: rgba(248,245,236,.75);
  transition: color .2s ease;
  font-size: 14px;
}
.om-footer-col a:hover {
  color: var(--saffron);
}
.om-footer-col p {
  color: rgba(248,245,236,.75);
  font-size: 14px;
  line-height: 1.6;
}
.om-footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(248,245,236,.15);
  margin-bottom: 30px;
}
.om-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(248,245,236,.65);
}
.om-footer-bottom a {
  color: rgba(248,245,236,.75);
  transition: color .2s ease;
}
.om-footer-bottom a:hover {
  color: var(--saffron);
}

/* ============================================================
   TERMS & CONDITIONS
   ============================================================ */
.om-terms-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}
.om-terms-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.om-terms-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: all .2s ease;
  font-weight: 500;
  font-size: 14px;
}
.om-terms-nav a:hover,
.om-terms-nav a.active {
  border-left-color: var(--paprika);
  color: var(--paprika);
  padding-left: 20px;
}
.om-terms-content {
  max-width: 900px;
}
.om-terms-content h2 {
  margin-block: 32px 16px;
  color: var(--forest);
}
.om-terms-content h3 {
  margin-block: 24px 12px;
  color: var(--forest);
  font-size: 16px;
}
.om-terms-content p {
  margin-bottom: 16px;
  color: var(--stone);
  line-height: 1.8;
  font-size: 14px;
}
.om-terms-content ul,
.om-terms-content ol {
  margin: 16px 0 16px 24px;
  color: var(--stone);
}
.om-terms-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 14px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--cream);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  font-size: 14px;
  z-index: 10000;
  transition: bottom .3s ease;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
}
#toast.show {
  bottom: 30px;
}

/* ============================================================
   PAGES (SPA Navigation)
   ============================================================ */
.om-pages-wrapper {
  min-height: calc(100vh - 80px);
}
.om-page {
  display: none;
}
.om-page.active {
  display: block;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .om-nav,
  .om-location-btn,
  .om-search-btn {
    display: none;
  }

  .om-mobile-menu-btn {
    display: flex;
  }

  .om-mobile-drawer {
    display: block;
  }

  .om-header-inner {
    padding-block: 14px;
  }

  .om-hero {
    padding-block: 60px 100px;
    min-height: auto;
  }

  .om-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .om-hero-actions .om-btn {
    width: 100%;
    justify-content: center;
  }

  .om-products-header {
    flex-direction: column;
    align-items: stretch;
  }

  .om-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .om-sort-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .om-sort-wrapper select {
    width: 100%;
  }

  #productGrid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .om-about-grid,
  .om-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .om-contact-form {
    padding: 24px;
  }

  .om-terms-container {
    grid-template-columns: 1fr;
  }

  .om-terms-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }

  .om-terms-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 8px 12px;
  }

  .om-terms-nav a:hover,
  .om-terms-nav a.active {
    border-left: none;
    border-bottom-color: var(--paprika);
  }

  .om-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .om-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #toast {
    bottom: -100px;
    max-width: calc(100% - 40px);
    margin: 0 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  #toast.show {
    bottom: 20px;
  }

  .om-section {
    padding-block: 60px;
  }

  .om-h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .om-h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  #productGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .om-product-card {
    border-radius: var(--radius);
  }

  .om-product-body {
    padding: 12px;
  }

  .om-product-card h4 {
    font-size: 14px;
  }

  .om-product-price {
    font-size: 14px;
  }

  .om-add-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .om-contact-grid {
    gap: 32px;
  }

  .om-contact-form {
    padding: 16px;
  }

  .om-footer-grid {
    gap: 24px;
  }

  .om-section {
    padding-block: 40px;
  }

  .om-logo {
    font-size: 18px;
  }

  .om-logo-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1a1a1a;
    --cream-warm: #262626;
    --ink: #f5f5f5;
    --stone: #b0b0a0;
    --white: #0f0f0f;
    --line: #3a3a30;
  }

  .om-header {
    background: rgba(26,26,26,.92);
  }

  .om-dropdown-menu {
    background: var(--white);
  }
}
