:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #6f6f6f;
  --line: #e7e2dc;
  --soft: #f7f4ef;
  --accent: #8c5a2e;
  --accent-dark: #55351e;
  --green: #236a4b;
  --shadow: 0 20px 60px rgba(23, 21, 19, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

main,
.products-area,
.shop-shell {
  min-width: 0;
}

body.drawer-open {
  overflow: hidden;
}

.welcome-home {
  align-items: center;
  background: #f6f1ea;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  min-height: 100vh;
  overflow: hidden;
}

.welcome-copy {
  padding: 64px clamp(24px, 7vw, 96px);
  position: relative;
  z-index: 1;
}

.welcome-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 22px;
}

.welcome-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 540px;
}

.welcome-button {
  font-size: 20px;
  font-weight: 700;
  height: 84px;
  margin: 37px 0 0 136px;
  min-width: 0;
  padding: 0;
  width: 292px;
}

.welcome-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  height: 100vh;
  padding: 28px 28px 28px 0;
}

.welcome-gallery img {
  background: var(--soft);
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.welcome-gallery img:first-child {
  object-position: center top;
}

.shop-view {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.top-strip {
  background: #a3d9f9;
  color: #111;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-main {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 78px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  grid-column: 2;
  justify-self: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.search-box {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  gap: 8px;
  height: 40px;
  max-width: 320px;
  min-width: 160px;
  padding: 0 12px;
  width: min(24vw, 320px);
}

.search-icon {
  border: 2px solid var(--muted);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 14px;
  position: relative;
  width: 14px;
}

.search-icon::after {
  background: var(--muted);
  content: "";
  height: 2px;
  position: absolute;
  right: -6px;
  top: 10px;
  transform: rotate(45deg);
  width: 7px;
}

.search-box input {
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.select-control {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  height: 40px;
  padding: 0 32px 0 12px;
}

.cart-trigger,
.filter-toggle,
.primary-button,
.outline-button,
.whatsapp-button,
.clear-button {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  gap: 8px;
  height: 40px;
  justify-content: center;
  padding: 0 16px;
  text-transform: uppercase;
}

.cart-trigger,
.primary-button {
  background: var(--ink);
  color: #fff;
}

.primary-button.welcome-button {
  height: 84px;
  padding: 0;
}

.cart-count {
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
  min-width: 22px;
  padding: 1px 6px;
  text-align: center;
}

.nav-bar {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  justify-content: center;
  min-height: 46px;
  overflow-x: auto;
  padding: 0 18px;
  white-space: nowrap;
}

.nav-bar a {
  color: #252525;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 42px 28px 34px;
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.page-hero p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.shop-shell {
  display: grid;
  gap: 30px;
  grid-template-columns: 260px 1fr;
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px;
}

.filters-panel {
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 24px;
  position: sticky;
  top: 154px;
}

.panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-head h2,
.filter-group h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.filter-group {
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.filter-list {
  display: grid;
  gap: 10px;
}

.filter-option {
  align-items: center;
  color: #2b2b2b;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.filter-option input {
  accent-color: var(--ink);
}

.filter-option span:first-of-type {
  flex: 1;
}

.filter-count {
  color: var(--muted);
  font-size: 12px;
}

.range-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

input[type="range"] {
  accent-color: var(--accent-dark);
  width: 100%;
}

.clear-button {
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.result-count {
  color: var(--muted);
  margin: 0;
}

.sort-label {
  align-items: center;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

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

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

.product-media {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  overflow: hidden;
  position: relative;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s ease;
  width: 100%;
}

.product-media .hover-img {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.product-card:hover .product-media img {
  transform: scale(1.02);
}

.product-card:hover .product-media .hover-img {
  opacity: 1;
}

.badge {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  left: 10px;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
  z-index: 1;
}

.quick-trigger {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ink);
  bottom: 12px;
  left: 50%;
  min-height: 38px;
  opacity: 0;
  padding: 0 16px;
  position: absolute;
  text-transform: uppercase;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover .quick-trigger,
.quick-trigger:focus-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-info {
  padding-top: 13px;
}

.product-brand {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.product-title {
  display: block;
  font-size: 14px;
  min-height: 42px;
  overflow-wrap: anywhere;
}

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

.price-text {
  font-weight: 700;
}

.add-button {
  background: #fff;
  border: 1px solid var(--ink);
  height: 34px;
  padding: 0 12px;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.pagination button {
  background: #fff;
  border: 1px solid var(--line);
  height: 38px;
  min-width: 38px;
}

.pagination button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.empty-state {
  background: var(--soft);
  padding: 48px 20px;
  text-align: center;
}

.overlay {
  background: rgba(20, 20, 20, 0.48);
  inset: 0;
  position: fixed;
  z-index: 40;
}

.cart-drawer {
  background: #fff;
  bottom: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-width: 420px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  width: min(100%, 420px);
  z-index: 50;
}

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

.drawer-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

.drawer-head h2 {
  margin: 0;
}

.icon-close {
  background: transparent;
  border: 0;
  height: 34px;
  position: relative;
  width: 34px;
}

.icon-close::before,
.icon-close::after {
  background: var(--ink);
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  top: 16px;
  width: 18px;
}

.icon-close::before {
  transform: rotate(45deg);
}

.icon-close::after {
  transform: rotate(-45deg);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px 24px;
}

.cart-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr;
  padding: 14px 0;
}

.cart-item + .cart-item {
  border-top: 1px solid var(--line);
}

.cart-item img {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  object-fit: cover;
  width: 72px;
}

.cart-item-title {
  font-size: 13px;
  margin: 0 0 8px;
}

.cart-item-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}

.qty-button,
.remove-button {
  background: #fff;
  border: 1px solid var(--line);
  height: 30px;
  min-width: 30px;
}

.remove-button {
  color: #8a2f23;
  margin-left: auto;
  padding: 0 8px;
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px 24px;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.whatsapp-button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  width: 100%;
}

.floating-whatsapp {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(23, 105, 65, 0.26);
  display: inline-flex;
  height: 68px;
  justify-content: center;
  padding: 6px;
  position: fixed;
  right: 105px;
  bottom: 105px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 68px;
  z-index: 1000;
}

.floating-whatsapp:hover {
  box-shadow: 0 18px 42px rgba(23, 105, 65, 0.32);
  transform: translateY(-2px);
}

.floating-whatsapp img {
  display: block;
  height: 100%;
  width: 100%;
}

.cart-note {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}

.quick-view {
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.8fr);
  left: 50%;
  max-height: 90vh;
  max-width: 980px;
  opacity: 0;
  overflow: auto;
  padding: 28px;
  pointer-events: none;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: min(calc(100% - 32px), 980px);
  z-index: 60;
}

.quick-view.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.quick-close {
  position: absolute;
  right: 12px;
  top: 12px;
}

.quick-media {
  min-width: 0;
}

#quickMainImage {
  aspect-ratio: 1 / 1;
  background: var(--soft);
  object-fit: cover;
  width: 100%;
}

.quick-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 10px;
}

.quick-thumbs button {
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
}

.quick-thumbs button.active {
  border-color: var(--ink);
}

.quick-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.quick-info {
  align-self: center;
}

.quick-info h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.quick-price {
  font-size: 20px;
  font-weight: 700;
}

.quick-categories {
  color: var(--muted);
}

.quick-description {
  border-top: 1px solid var(--line);
  color: #333;
  font-size: 13px;
  line-height: 1.65;
  margin-top: 18px;
  max-height: 210px;
  overflow: auto;
  padding-top: 16px;
}

.quick-description p {
  margin: 0 0 6px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.outline-button {
  background: #fff;
  color: var(--ink);
}

.text-button {
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.mobile-only {
  display: none;
}

.icon-button {
  background: transparent;
  border: 0;
  height: 40px;
  padding: 8px;
  width: 40px;
}

.icon-button span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-box {
    width: min(30vw, 260px);
  }
}

@media (max-width: 860px) {
  .mobile-only {
    display: inline-flex;
  }

  .welcome-home {
    display: block;
    min-height: 100vh;
  }

  .welcome-copy {
    padding: 48px 20px 24px;
  }

  .welcome-copy h1 {
    font-size: 38px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .welcome-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .welcome-button {
    height: 64px;
    margin: 24px 0 0;
    max-width: 100%;
    width: 325px;
  }

  .primary-button.welcome-button {
    height: 64px;
  }

  .welcome-gallery {
    gap: 10px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(190px, 30vh));
    height: auto;
    padding: 0 16px 24px;
  }

  .welcome-gallery img:first-child {
    grid-row: auto;
  }

  .header-main {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 68px;
    padding: 0 12px;
  }

  .brand {
    grid-column: 2;
    justify-self: start;
  }

  .brand-name {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 8px;
    min-width: 0;
  }

  .search-box {
    display: none;
  }

  .nav-bar {
    display: none;
  }

  .nav-bar.open {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0;
    justify-content: stretch;
    padding: 0;
  }

  .nav-bar.open a {
    border-top: 1px solid var(--line);
    padding: 14px 18px;
  }

  .page-hero {
    align-items: start;
    display: grid;
    gap: 16px;
    max-width: 100vw;
    padding: 28px 16px;
  }

  .page-hero p:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .shop-shell {
    display: block;
    padding: 20px 16px 28px;
  }

  .filters-panel {
    background: #fff;
    bottom: 0;
    border-right: 0;
    box-shadow: var(--shadow);
    left: 0;
    max-width: 360px;
    overflow: auto;
    padding: 24px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    width: min(90%, 360px);
    z-index: 55;
  }

  .filters-panel.open {
    transform: translateX(0);
  }

  .toolbar {
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
  }

  .result-count {
    flex: 1;
    font-size: 13px;
    min-width: 0;
  }

  .sort-label span {
    display: none;
  }

  .products-area {
    max-width: calc(100vw - 32px);
    overflow: hidden;
    width: calc(100vw - 32px);
  }

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

  .quick-trigger {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .quick-view {
    display: block;
    padding: 22px;
  }

  .floating-whatsapp {
    bottom: 86px;
    right: 18px;
  }

  .quick-info {
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .top-strip {
    font-size: 11px;
  }

  .header-main {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding: 10px 12px;
    position: relative;
  }

  .floating-whatsapp {
    height: 58px;
    left: min(calc(100vw - 74px), 318px);
    padding: 5px;
    right: auto;
    width: 58px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: calc(100vw - 24px);
  }

  .brand {
    gap: 8px;
  }

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

  .brand-name {
    display: none;
  }

  .select-control {
    max-width: 76px;
    padding-left: 8px;
    width: 76px;
  }

  .cart-trigger {
    display: inline-flex !important;
    left: 96px;
    min-width: 42px;
    padding: 0 8px;
    position: fixed;
    right: auto;
    top: 94px;
    z-index: 1001;
  }

  .cart-trigger span:first-child {
    display: none;
  }

  .product-title {
    font-size: 13px;
    min-height: 56px;
  }

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

  .toolbar {
    align-items: start;
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .sort-label {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sort-label .select-control {
    max-width: none;
    width: 100%;
  }

  .product-meta {
    align-items: flex-start;
    display: grid;
  }

  .add-button {
    width: 100%;
  }

  .quick-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
