@font-face {
  font-family: 'Montserrat';
  src: url('../../fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Playwrite';
  src: url('../../fonts/Playwrite_DE_SAS/static/PlaywriteDESAS-Regular.ttf') format('truetype');
  font-weight: bold;
}

* { 
  box-sizing: border-box; 
  transition: all 0.2s ease-in-out; 
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background-image: linear-gradient(174.2deg, rgba(255,244,228,1) 7.1%, rgba(240,246,238,1) 67.4%);
  background-attachment: fixed;
}

:root{
  --accent: #0ea5a4;
  --accent-600: #028f8b;
  --muted: #6c757d;
  --card-radius: .5rem;
  --img-height: 160px;
  --nav-mobile-h: 56px;
}

.shop-main { padding-top: 6.5rem; }

main h1 {
  color: #0d6efd;
}

.site-search {
  flex-shrink: 0;
}
.site-search .search {
  position: relative;
  height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1rem;
  background: #e9e9e9;
  border-radius: 22px;
  box-shadow: 0 0.625rem 2rem rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.site-search .search:hover {
  box-shadow: 0 0.75rem 2.5rem rgba(0,0,0,0.12);
  filter: brightness(0.95);
  transform: translateY(-0.125rem);
}
.site-search .search button {
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.2s ease, background-color 0.2s ease;
}
.site-search .search button img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0.5);
}
.site-search .search button:hover {
  background: #007A70;
}
.site-search .search button:hover img {
  filter: brightness(0) invert(1);
}
.site-search .search:focus-within button {
  left: calc(100% - 3rem);
  background: #007A70;
}
.site-search .search:focus-within button img {
  filter: brightness(0) invert(1);
}
.site-search .search input {
  border: 0;
  outline: none;
  background: #e9e9e9;
  padding: 0.75rem 3rem 0.75rem 3rem;
  width: 100%;
}

.site-search .search .form-control:focus { 
  box-shadow: none; 
  outline: none; 
}

.filters { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; margin-bottom:1rem; }
.filters label {
  cursor:pointer;
  padding:.35rem .6rem;
  border-radius:6px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  color:#212529;
  font-size:.9rem;
  user-select:none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.filters label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

#filter-all:checked ~ .filters label[for="filter-all"],
#filter-spices:checked ~ .filters label[for="filter-spices"],
#filter-pantry:checked ~ .filters label[for="filter-pantry"],
#filter-oils:checked ~ .filters label[for="filter-oils"],
#filter-blenders:checked ~ .filters label[for="filter-blenders"],
#filter-cutlery:checked ~ .filters label[for="filter-cutlery"],
#filter-electric:checked ~ .filters label[for="filter-electric"],
#filter-cookware:checked ~ .filters label[for="filter-cookware"],
#filter-bakeware:checked ~ .filters label[for="filter-bakeware"],
#filter-storage:checked ~ .filters label[for="filter-storage"],
#filter-dinnerware:checked ~ .filters label[for="filter-dinnerware"],
#filter-cleaning:checked ~ .filters label[for="filter-cleaning"],
#filter-apparel:checked ~ .filters label[for="filter-apparel"],
#filter-kitchenware:checked ~ .filters label[for="filter-kitchenware"],
#filter-tabletop:checked ~ .filters label[for="filter-tabletop"],
#filter-textiles:checked ~ .filters label[for="filter-textiles"],
#filter-drinkware:checked ~ .filters label[for="filter-drinkware"],
#filter-accessories:checked ~ .filters label[for="filter-accessories"],
#filter-stationery:checked ~ .filters label[for="filter-stationery"],
#filter-gift-kits:checked ~ .filters label[for="filter-gift-kits"],
#filter-kids:checked ~ .filters label[for="filter-kids"],
#filter-home-decor:checked ~ .filters label[for="filter-home-decor"],
#filter-sustainable:checked ~ .filters label[for="filter-sustainable"],
#filter-limited:checked ~ .filters label[for="filter-limited"],
#filter-recipes:checked ~ .filters label[for="filter-recipes"],
#filter-ebooks:checked ~ .filters label[for="filter-ebooks"],
#filter-printables:checked ~ .filters label[for="filter-printables"] {
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  color:#fff;
  border-color:transparent;
  box-shadow:0 2px 8px rgba(14,165,164,.18);
}

.product { display:block; }

.product .card-img-top { height: var(--img-height); object-fit: cover; border-radius: 24px 24px 0 0;}
.product-card .card-body { display:flex; flex-direction:column; gap:0.5rem; }
.product-card .meta { color: var(--muted); font-size:.9rem; }

.product-card details summary { cursor:pointer; list-style:none; }
.product-card details summary::-webkit-details-marker { display:none; }

.btn-add[aria-disabled="true"] { pointer-events:none; opacity:.85; }

.btn-add {
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.product-card .btn-primary.btn-add:not([disabled]):not([aria-disabled="true"]):hover {
  background-color: #007a70;
  transform: scale(1.03)
}

.product-card .btn-add:not([disabled]):not([aria-disabled="true"]):hover {
  background-color: #007A70;
  transform: translateY(-0.125rem);
}

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 24px;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
  position: relative;
  z-index: 10;
}

.product-card .btn-primary {
  background-color: #007A70;
  border-color: #007A70;
}

.product-card .btn-primary:hover {
  background-color: #005b52;
  border-color: #005b52;
}

.product-card .btn-outline-secondary {
  color: #007A70;
  border-color: #007A70;
}

.product-card .btn-outline-secondary:hover {
  background-color: #007A70;
  color: #fff;
}

.small.text-muted { color: var(--muted); font-size:.82rem; }

#filter-spices:checked ~ #products .product { display:none; }
#filter-spices:checked ~ #products .product.spices { display:block; }

#filter-pantry:checked ~ #products .product { display:none; }
#filter-pantry:checked ~ #products .product.pantry { display:block; }

#filter-oils:checked ~ #products .product { display:none; }
#filter-oils:checked ~ #products .product.oils { display:block; }

#filter-blenders:checked ~ #products .product { display:none; }
#filter-blenders:checked ~ #products .product.blenders { display:block; }

#filter-cutlery:checked ~ #products .product { display:none; }
#filter-cutlery:checked ~ #products .product.cutlery { display:block; }

#filter-electric:checked ~ #products .product { display:none; }
#filter-electric:checked ~ #products .product.electric { display:block; }

#filter-cookware:checked ~ #products .product { display:none; }
#filter-cookware:checked ~ #products .product.cookware { display:block; }

#filter-bakeware:checked ~ #products .product { display:none; }
#filter-bakeware:checked ~ #products .product.bakeware { display:block; }

#filter-storage:checked ~ #products .product { display:none; }
#filter-storage:checked ~ #products .product.storage { display:block; }

#filter-dinnerware:checked ~ #products .product { display:none; }
#filter-dinnerware:checked ~ #products .product.dinnerware { display:block; }

#filter-cleaning:checked ~ #products .product { display:none; }
#filter-cleaning:checked ~ #products .product.cleaning { display:block; }

#filter-apparel:checked ~ #products .product { display:none; }
#filter-apparel:checked ~ #products .product.apparel { display:block; }

#filter-kitchenware:checked ~ #products .product { display:none; }
#filter-kitchenware:checked ~ #products .product.kitchenware { display:block; }

#filter-tabletop:checked ~ #products .product { display:none; }
#filter-tabletop:checked ~ #products .product.tabletop { display:block; }

#filter-textiles:checked ~ #products .product { display:none; }
#filter-textiles:checked ~ #products .product.textiles { display:block; }

#filter-drinkware:checked ~ #products .product { display:none; }
#filter-drinkware:checked ~ #products .product.drinkware { display:block; }

#filter-accessories:checked ~ #products .product { display:none; }
#filter-accessories:checked ~ #products .product.accessories { display:block; }

#filter-stationery:checked ~ #products .product { display:none; }
#filter-stationery:checked ~ #products .product.stationery { display:block; }

#filter-gift-kits:checked ~ #products .product { display:none; }
#filter-gift-kits:checked ~ #products .product.gift-kits { display:block; }

#filter-kids:checked ~ #products .product { display:none; }
#filter-kids:checked ~ #products .product.kids { display:block; }

#filter-home-decor:checked ~ #products .product { display:none; }
#filter-home-decor:checked ~ #products .product.home-decor { display:block; }

#filter-sustainable:checked ~ #products .product { display:none; }
#filter-sustainable:checked ~ #products .product.sustainable { display:block; }

#filter-limited:checked ~ #products .product { display:none; }
#filter-limited:checked ~ #products .product.limited { display:block; }

#filter-recipes:checked ~ #products .product { display:none; }
#filter-recipes:checked ~ #products .product.recipes { display:block; }

#filter-ebooks:checked ~ #products .product { display:none; }
#filter-ebooks:checked ~ #products .product.ebooks { display:block; }

#filter-printables:checked ~ #products .product { display:none; }
#filter-printables:checked ~ #products .product.printables { display:block; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20,32,37,0.55);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal:target {
  display: flex;
}

.modal-content {
  background: #fff;
  color: #222;
  padding: 1.25rem;
  border-radius: 12px;
  width: 90%;
  max-width: 30rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: pop 0.3s ease;
  position: relative;
  word-spacing: 0.1rem;
}

.modal-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; 
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.modal-content h2 { margin-bottom: 0.75rem; }
.modal-content p { line-height: 1.5; }

.close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  text-decoration: none;
  font-size: 1.5rem;
  color: #333;
  transition: color 0.2s ease, transform 0.2s ease;
}
.close:hover {
  color: #000;
  transform: scale(1.3);
}

@keyframes pop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content .cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.modal-content .accept,
.modal-content .reject,
.modal-content .customize {
  margin-top: 0.25rem;
}

.modal-content .accept {
  background-color: #00bfa5;
  width: 100%;
  color: #fff;
  border: none;
  border-radius: 32px;
}
.modal-content .reject {
  background-color: #e9fffa;
  color: #007a70;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 32px;
}
.modal-content .customize {
  background-color: #eaf7f4;
  color: #007a70;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 32px;
}

.modal-content .accept:hover {
  background-color: #007a70;
}

.modal-content .reject:hover, .modal-content .customize:hover {
  background-color: #007a70;
  color: #fff;
}

.cookie-modal {
  width: min(900px, 92vw);
  max-height: min(86vh, 900px);
  border-radius: 28px;
  padding: 1.25rem 1.25rem 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem;
}

.cookie-header {
  padding: 0.25rem 0.5rem 0.5rem;
}

.cookie-header h2 {
  margin: 0 0 .25rem;
  color: #124a45;
}

.cookie-intro {
  color: #3a6f69;
  line-height: 1.7;
  margin: 0.25rem 0 0.75rem;
}

.cookie-actions-top {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}

.ghost-action {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: #1c6a63;
  text-decoration: none;
}

.ghost-action:hover {
  color: #0e4f49;
  text-decoration: underline;
}

.cookie-body {
  overflow: auto;
  padding: 0.25rem 0.5rem 1rem;
  max-height: 60vh;
}

.cookie-group details {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 0.85rem 0;
}

.cookie-group details:last-of-type {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cookie-group summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.cookie-group summary::-webkit-details-marker { display: none; }

.cookie-group .sum-text .title { font-weight: 800; color: #1c5d58; }

.cookie-group .sum-text .desc {
  color: #5a7a76;
  font-size: .95rem;
  margin-top: .25rem;
  line-height: 1.6;
}

.cookie-group[open], .cookie-group details[open] {
  background: linear-gradient(180deg, rgba(240,246,238,.35), rgba(255,255,255,.35));
  border-radius: 12px;
}

.cookie-group details[open] { padding: 0.85rem; }

.cookie-group .list {
  margin: 0.6rem 0 0 1.2rem;
  color: #496b66;
  line-height: 1.6;
}

.badge.locked {
  background: #eef7f5;
  color: #1b6b64;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .track {
  width: 56px;
  height: 32px;
  background: #e8efee;
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  transition: background .2s ease;
}

.switch .track::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: left .2s ease, transform .2s ease;
}

.switch .switch-text::after {
  content: 'OFF';
  color: #6c8c89;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .8rem;
}

.switch input:checked + .track {
  background: #147d73;
}

.switch input:checked + .track::before {
  left: 28px;
  transform: translateX(0);
}

.switch input:checked ~ .switch-text::after {
  content: 'ON';
  color: #147d73;
}

.cookie-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.5rem 1.1rem;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 0 28px 28px;
}

.cookie-footer .legal {
  color: #5d7f7a;
}

.cookie-footer .legal a {
  color: #1c6a63;
  text-decoration: underline;
}

.btn-cta {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #1b6b64;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(27,107,100,0.25);
}

.btn-cta:hover { background: #12544f; }

.partners-link {
  display: inline-block;
  margin-top: 1rem;
  color: #1c6a63;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}

.partners-link:hover { text-decoration: underline; }

.h3 {
  color: #007A70;
  font-family: 'Playwrite', serif;
  font-size: 1.5rem;
}

@media (max-width:576px){
  .filters { 
    gap:.3rem;
    padding: 0 0.5rem;
  }
  .filters label { 
    font-size:.75rem; 
    padding:.3rem .5rem;
    min-height: 32px;
  }
  .product .card-img-top { height:200px; }
  
  .product-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {

  .shop-main { 
    padding-top: calc(var(--nav-mobile-h) + 4.5rem);
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .site-search { 
    order: -1; 
    width: 100%; 
  }
  
  .site-search .search {
    position: fixed;
    top: calc(var(--nav-mobile-h) + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 900;
    margin: 0;
    height: 3rem;
    padding: 0 0.75rem;
  }

  .site-search .search input {
    font-size: 0.9rem;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
  }

  .site-search .search button {
    padding: 0.35rem;
    left: 0.75rem;
  }

  .site-search .search button img {
    width: 1.2rem;
    height: 1.2rem;
  }

  .site-search .search:focus-within button {
    left: calc(100% - 2.75rem);
  }

  header.d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  header .h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
    width: 100%;
  }

  .filters {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0;
  }

  .filters label {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #products.row {
    margin: 0 !important;
  }

  #products .col-12,
  #products .col-sm-6,
  #products .col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .product {
    margin-bottom: 1rem;
    width: 100%;
  }

  .product-card {
    margin-bottom: 0;
    width: 100%;
  }

  .product .card-img-top {
    height: 220px;
    width: 100%;
  }

  .product-card .card-body {
    padding: 1rem;
  }

  .product-card .card-title {
    font-size: 1.9rem;
  }

  .product-card .meta {
    font-size: 1.2rem;
  }

  .btn-sm {
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    min-height: 36px;
    border-radius: 8px;
  }

  #card-desc {
    font-size: 1.2rem;
    align-items: flex-start !important;
  }

  #card-desc > div:first-child {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #card-desc .d-flex.gap-2 {
    width: 100%;
    justify-content: flex-end;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    padding: 1rem;
    margin: 0.5rem;
  }

  .modal-image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .close {
    font-size: 1.75rem;
    top: 0.5rem;
    right: 0.75rem;
    z-index: 1;
  }

  .cookie-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    padding: 1rem 0.75rem 0;
  }

  .cookie-body {
    max-height: calc(100vh - 220px);
  }

  .cookie-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }

  .cookie-actions-top {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .ghost-action {
    width: 100%;
    text-align: center;
  }

  .footer-policy-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {

  header .h3 {
    font-size: 1.5rem;
  }

  .shop-main {
    padding-top: calc(var(--nav-mobile-h) + 4.25rem);
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .site-search .search {
    left: 0.5rem;
    right: 0.5rem;
    height: 2.75rem;
  }

  .site-search .search input {
    font-size: 0.85rem;
    padding: 0.45rem 2.25rem;
  }

  .site-search .search button {
    left: 0.5rem;
  }

  .site-search .search:focus-within button {
    left: calc(100% - 2.5rem);
  }

  .filters {
    gap: 0.3rem;
  }

  .filters label {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    min-height: 34px;
  }

  .product .card-img-top {
    height: 200px;
  }

  .product-card .card-body {
    padding: 0.85rem;
  }

  .product-card .card-title {
    font-size: 1rem;
  }

  .product-card .meta {
    font-size: 0.8rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    min-height: 34px;
  }

  .modal-content h2 {
    font-size: 1.25rem;
  }

  .modal-content p {
    font-size: 0.9rem;
  }

  .footer-title {
    font-size: 2rem;
  }

  .socials-logo img {
    width: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #products .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .filters {
    gap: 0.45rem;
  }

  .filters label {
    font-size: 0.85rem;
  }
}