.shop-hero {
  position: relative;
  min-height: clamp(560px, 74vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 12, 0.96) 0%, rgba(18, 12, 12, 0.76) 46%, rgba(18, 12, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 191, 63, 0.14), rgba(82, 214, 129, 0.08)),
    url("https://images.unsplash.com/photo-1693812879904-b8161644ce5a?auto=format&fit=crop&w=1800&q=85") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: 34px;
  padding: 64px 0 42px;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 224, 138, 0.36);
  border-radius: 8px;
  background: rgba(255, 191, 63, 0.14);
  color: var(--amber-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(3.25rem, 8vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(630px, 100%);
  margin: 0;
  color: #f4e5d6;
  font-size: clamp(1.04rem, 2vw, 1.26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(730px, 100%);
  margin-top: 30px;
}

.hero-perks span {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-perks i {
  margin-bottom: 7px;
  color: var(--green);
}

.hero-perks strong {
  color: #ffffff;
}

.hero-market-panel {
  align-self: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 191, 63, 0.19), rgba(217, 76, 137, 0.12)),
    rgba(22, 17, 22, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.market-panel-header,
.hero-price-row,
.product-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-panel-header strong {
  color: var(--green);
  font-size: 0.92rem;
}

.hero-product-stack {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.hero-product-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.hero-product-stack span {
  color: var(--amber-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-product-stack h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.04;
}

.hero-product-stack p {
  margin: 0;
  color: var(--muted);
}

.hero-price-row {
  margin: 16px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.hero-price-row strong {
  color: var(--amber-2);
  font-size: 1.5rem;
}

.campaign-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -22px;
  position: relative;
  z-index: 3;
}

.campaign-tile {
  min-height: 118px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #241105;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.campaign-tile span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 1.07rem;
  line-height: 1.18;
}

.tile-orange {
  background: linear-gradient(135deg, #ffbf3f, #ff6b4a);
}

.tile-green {
  background: linear-gradient(135deg, #52d681, #d6f777);
}

.tile-berry {
  background: linear-gradient(135deg, #ff86b3, #d94c89);
}

.tile-blue {
  background: linear-gradient(135deg, #55bdf7, #a4efff);
}

.shop-toolbar {
  padding: 56px 0 22px;
}

.toolbar-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.toolbar-main h2,
.daily-panel h2,
.checkout-confidence h2 {
  margin: 5px 0 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.toolbar-main p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(410px, 100%);
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 224, 138, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--amber-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #d5c6b9;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-weight: 900;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.12);
}

.category-tab.is-active {
  border-color: rgba(255, 224, 138, 0.62);
  background: linear-gradient(135deg, rgba(255, 191, 63, 0.28), rgba(255, 107, 74, 0.2));
  color: #fff7df;
}

.product-section {
  display: grid;
  grid-template-columns: 322px 1fr;
  gap: 22px;
  align-items: start;
}

.daily-panel {
  position: sticky;
  top: 126px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 191, 63, 0.18), rgba(82, 214, 129, 0.11), rgba(85, 189, 247, 0.08)),
    rgba(24, 21, 25, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.daily-visual {
  position: relative;
  margin-bottom: 16px;
}

.daily-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.daily-visual span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.78);
  color: var(--amber-2);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.daily-panel p {
  margin: 12px 0 14px;
  color: var(--muted);
}

.daily-list {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.daily-list li {
  display: flex;
  align-items: start;
  gap: 9px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.daily-list i {
  margin-top: 3px;
  color: var(--green);
}

.product-area {
  min-width: 0;
}

.product-headline {
  min-height: 42px;
  margin-bottom: 14px;
}

.product-status {
  color: var(--soft);
  font-size: 0.93rem;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(26, 23, 27, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.25);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: rgba(255, 224, 138, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.33);
}

.product-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #21191b;
  color: inherit;
  text-align: inherit;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge,
.product-save {
  position: absolute;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.product-badge {
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 12, 0.72);
  color: var(--amber-2);
}

.product-save {
  right: 10px;
  bottom: 10px;
  background: rgba(82, 214, 129, 0.88);
  color: #062011;
}

.product-content {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-title-row h3 {
  margin: 0;
  color: #fffdf7;
  font-size: 1.04rem;
  line-height: 1.22;
}

.product-title-row span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-card p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-rating {
  color: var(--amber-2);
  font-weight: 900;
}

.product-stock {
  color: var(--green);
  font-weight: 850;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price-row strong {
  color: #ffffff;
  font-size: 1.28rem;
}

.price-row del {
  color: #9e948e;
  font-size: 0.9rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}

.product-actions .btn {
  min-height: 44px;
  padding: 0 12px;
}

.product-detail-btn {
  width: 46px;
  height: 44px;
}

.checkout-confidence {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 24px;
  margin-top: 66px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 189, 247, 0.13), rgba(82, 214, 129, 0.11)),
    rgba(255, 255, 255, 0.055);
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.confidence-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.confidence-grid i {
  color: var(--blue);
  font-size: 1.35rem;
}

.confidence-grid strong {
  font-size: 1rem;
}

.confidence-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-drawer,
.profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  height: 100vh;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 191, 63, 0.08), rgba(85, 189, 247, 0.06)),
    rgba(16, 14, 18, 0.96);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(450px, 100%);
}

.profile-drawer {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(500px, 100%);
}

.cart-drawer.is-open,
.profile-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.cart-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 224, 138, 0.32);
  border-radius: 8px;
  color: var(--soft);
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.cart-item img {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  font-size: 0.98rem;
}

.cart-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
}

.quantity-control button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.quantity-control span {
  min-width: 20px;
  text-align: center;
  font-weight: 900;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--danger);
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.cart-summary strong {
  color: var(--text);
}

.cart-summary .summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.08rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.58);
}

.checkout-modal,
.auth-modal,
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.checkout-modal.is-open,
.auth-modal.is-open,
.detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-panel,
.auth-panel,
.detail-panel {
  width: min(540px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 191, 63, 0.08), rgba(82, 214, 129, 0.05)),
    rgba(18, 15, 19, 0.98);
  box-shadow: var(--shadow);
}

.detail-panel {
  position: relative;
  width: min(940px, 100%);
  overflow: hidden;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.detail-image {
  min-height: 450px;
  background: #1c1517;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
}

.detail-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span,
.detail-specs span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px 18px 0;
}

.auth-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-weight: 900;
}

.auth-tab.is-active {
  border-color: rgba(255, 224, 138, 0.62);
  background: linear-gradient(135deg, rgba(255, 191, 63, 0.24), rgba(255, 107, 74, 0.18));
  color: var(--amber-2);
}

.auth-panel > .form-message {
  padding: 0 18px 18px;
}

.profile-content {
  overflow: auto;
  padding-bottom: 22px;
}

.profile-form {
  border-bottom: 1px solid var(--line);
}

.history-title {
  padding: 18px 18px 0;
}

.history-title h3 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}

.profile-orders {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
}

.order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.order-card header,
.order-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card strong {
  color: var(--text);
}

.order-card span,
.order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkout-form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  outline: 0;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: rgba(255, 224, 138, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 191, 63, 0.12);
}

.checkout-form input {
  height: 44px;
  padding: 0 12px;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 92px;
  padding: 10px 12px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-message.is-error {
  color: var(--danger);
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-market-panel {
    align-self: auto;
    width: min(520px, 100%);
  }

  .campaign-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-section {
    grid-template-columns: 1fr;
  }

  .daily-panel {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-confidence {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .shop-hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(18, 12, 12, 0.9) 0%, rgba(18, 12, 12, 0.66) 46%, rgba(18, 12, 12, 0.94) 100%),
      linear-gradient(180deg, rgba(255, 191, 63, 0.12), rgba(82, 214, 129, 0.08)),
      url("https://images.unsplash.com/photo-1693812879904-b8161644ce5a?auto=format&fit=crop&w=1000&q=82") center / cover no-repeat;
  }

  .hero-layout {
    padding: 46px 0 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.85rem, 15vw, 4.7rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-perks {
    grid-template-columns: 1fr;
  }

  .campaign-strip {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .toolbar-main {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .product-headline {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .confidence-grid {
    grid-template-columns: 1fr;
  }

  .cart-drawer,
  .profile-drawer {
    width: 100%;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 260px;
  }

  .detail-copy {
    padding: 20px;
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 2.75rem;
  }

  .campaign-tile,
  .checkout-confidence {
    padding: 14px;
  }

  .product-actions {
    grid-template-columns: 1fr 44px;
  }
}
