@font-face {
  font-family: "Quattrocento Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("https://store.caltora.shop/cdn/fonts/quattrocento_sans/quattrocentosans_n4.ce5e9bf514e68f53bdd875976847cf755c702eaa.woff2") format("woff2");
}

@font-face {
  font-family: "Quattrocento Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("https://store.caltora.shop/cdn/fonts/quattrocento_sans/quattrocentosans_n7.bdda9092621b2e3b4284b12e8f0c092969b176c1.woff2") format("woff2");
}

@font-face {
  font-family: "Trirong";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("https://store.caltora.shop/cdn/fonts/trirong/trirong_n3.20e715e45e9574a31fa3f43d52c7c395e835e6b5.woff2") format("woff2");
}

:root {
  --bg: #efecec;
  --text: #252525;
  --muted: #505655;
  --accent: #2c332f;
  --surface: #ffffff;
  --line: rgba(37, 37, 37, 0.14);
  --radius: 10px;
  --content-max: 1200px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Quattrocento Sans", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.page-width {
  width: min(var(--content-max), calc(100vw - 2rem));
  margin: 0 auto;
}

.announcement-bar {
  background: var(--accent);
  color: #efecec;
  text-align: center;
  font-size: 0.92rem;
  padding: 0.6rem 1rem;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  justify-self: center;
  font-family: "Trirong", serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  letter-spacing: 0.04em;
}

.menu-toggle,
.search-toggle,
.icon-link,
.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-link {
  text-decoration: none;
}

.menu-toggle:hover,
.search-toggle:hover,
.icon-link:hover,
.icon-btn:hover {
  border-color: rgba(37, 37, 37, 0.35);
  transform: translateY(-1px);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.icon-wrap {
  position: relative;
  display: inline-flex;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.6rem 0 1rem;
  border-top: 1px solid var(--line);
}

.desktop-nav > .nav-item {
  position: relative;
}

.nav-link {
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0.92;
  padding: 0.2rem 0;
}

.nav-link:hover {
  opacity: 1;
}

.has-children > .nav-link::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.7rem;
}

.subnav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: 0.2s ease;
}

.has-children:hover .subnav,
.has-children:focus-within .subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.subnav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.subnav a:hover {
  background: rgba(44, 51, 47, 0.08);
}

.search-panel,
.mobile-nav {
  display: none;
}

.search-panel.active,
.mobile-nav.active {
  display: block;
}

.search-panel {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.search-form {
  display: flex;
  gap: 0.7rem;
}

.input,
.select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}

.btn {
  appearance: none;
  border: none;
  padding: 0.72rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.section {
  padding: 2rem 0;
}

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

.collection-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

.collection-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.collection-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.collection-card-label span:last-child {
  opacity: 0.55;
}

.hero-title {
  text-align: center;
  margin: 0;
  font-family: "Trirong", serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.3vw, 3.1rem);
  letter-spacing: 0.02em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  position: relative;
  background: #f7f5f5;
}

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

.badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 0.97rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
}

.price {
  font-weight: 700;
}

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

.link-row {
  display: flex;
  gap: 0.55rem;
}

.link-row .btn {
  flex: 1;
  text-align: center;
  font-size: 0.86rem;
  padding: 0.6rem 0.7rem;
}

.catalog-controls {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.newsletter {
  background: var(--accent);
  color: #efecec;
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  text-align: center;
}

.newsletter h2 {
  font-family: "Trirong", serif;
  font-weight: 300;
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
}

.newsletter p {
  margin: 0 auto 1.05rem;
  max-width: 640px;
  color: rgba(239, 236, 236, 0.88);
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 540px;
  margin: 0 auto;
}

.newsletter-form .input {
  background: rgba(255, 255, 255, 0.95);
}

.site-footer {
  margin-top: 1.2rem;
  background: var(--accent);
  color: #efecec;
  padding: 1.1rem 0 1.6rem;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
}

.payment-pill {
  border: 1px solid rgba(239, 236, 236, 0.34);
  color: rgba(239, 236, 236, 0.92);
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-size: 0.74rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: rgba(239, 236, 236, 0.88);
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-title {
  font-family: "Trirong", serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 300;
  margin: 0 0 1rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.35rem;
}

.product-gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: #f8f7f7;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

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

.thumb.active {
  border-color: var(--accent);
}

.product-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.product-panel h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.3;
}

.product-panel .price {
  font-size: 1.2rem;
  margin-top: 0.35rem;
}

.stock-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0.45rem 0 0.6rem;
}

.stock-pill.in {
  background: rgba(53, 137, 90, 0.14);
  color: #17663e;
}

.stock-pill.out {
  background: rgba(135, 34, 34, 0.13);
  color: #7a2424;
}

.quantity-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.quantity-row .input {
  width: 84px;
}

.product-description {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: #3f3f3f;
}

.product-description h3,
.product-description h4,
.product-description h5 {
  font-family: "Trirong", serif;
  font-weight: 300;
  margin: 1rem 0 0.4rem;
}

.empty-state {
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
}

.cart-items {
  display: grid;
  gap: 0.7rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.65rem;
}

.cart-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.cart-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
  position: sticky;
  top: 138px;
  align-self: start;
}

.row-between {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.small {
  font-size: 0.86rem;
}

hr.soft {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.8rem 0;
}

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

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

  .cart-summary {
    position: static;
  }
}

@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    border-top: 1px solid var(--line);
    padding: 0.5rem 0 0.8rem;
  }

  .mobile-nav .nav-link {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav .subnav {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0.2rem 0 0.3rem 1rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: block;
    background: transparent;
  }

  .mobile-nav .subnav a {
    padding: 0.3rem 0;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

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

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 1.7rem;
  }

  .collage-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-item .line-total {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
