.product-upload { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.site { width: 100%; max-width: 100%; overflow-x: clip; }
body { overflow-x: hidden; }
.product-grid, .product-card, .photo { min-width: 0; }
.hero-art { background: linear-gradient(#3d160855, #3d160822), url('/assets/editorial-hero.jpg') center / cover no-repeat; }
.hero-art .sun, .hero-art > .product-art { display: none; }
.hero-art p { color: #fffaf2; text-shadow: 0 2px 12px #370000; }
.story-image { background: url('/assets/editorial-story.jpg') center / cover no-repeat; }
.story-image .product-art { display: none; }
.story-copy p { max-width: 520px; }
.story-copy .story-signoff { color: var(--wine); font-family: 'Cormorant Garamond', serif; font-size: 23px; line-height: 1.15; margin-top: 28px; }
.admin-list .product-upload { width: 50px; height: 50px; object-fit: cover; }
.brand-mark { width: 58px; height: 27px; display: block; margin-bottom: 3px; }
.logo.compact .brand-mark { width: 36px; height: 17px; margin-bottom: 2px; }
.view-all { display: flex; justify-content: center; margin-top: 55px; }
.page-home .product-card:nth-child(n + 4) { display: none; }
.page-shop .hero, .page-shop .intro, .page-shop .story, .page-shop .occasion, .page-shop .contact { display: none; }
.page-shop .shop { min-height: calc(100vh - 240px); }
.page-story .hero, .page-story .intro, .page-story .shop, .page-story .occasion, .page-story .contact { display: none; }
.page-story .story { min-height: calc(100vh - 240px); }
@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .product-card { width: 100%; overflow: hidden; }
  .photo { width: 100%; }
  .brand-mark { width: 42px; height: 20px; }
  .logo.compact .brand-mark { width: 30px; height: 15px; }
  .page-shop .shop, .page-story .story { min-height: calc(100vh - 180px); }
}
@media (max-width: 700px) { .admin-list .product-upload { width: 43px; height: 43px; } }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  color: var(--wine);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fav-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.fav-btn.active {
  color: #c92a2a;
}

.admin-list-btn {
  border: 1px solid #b69b71;
  background: transparent;
  padding: 10px;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}
/* Supabase / catalogue enhancements */
.notice{margin:20px 0;padding:12px 14px;border:1px solid #d8b9ad;background:#fff8f2;color:#7a4d48;font-size:11px}
.standalone-error{margin:15vh auto}
.instagram-button{display:inline-flex;align-items:center;gap:12px;margin-left:12px;border:1px solid #d8b258;color:#f9eee2;padding:13px 19px;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.instagram-button span{font-size:17px;line-height:0}
.switch-auth{margin-top:15px;cursor:pointer;text-align:center;text-decoration:underline;text-underline-offset:3px}
.profile-actions{margin:20px 0;display:grid;gap:10px}
.photo{cursor:pointer}
.product-upload{display:block;width:100%;height:100%;object-fit:cover;position:relative;z-index:1}
.modal-image{position:relative;overflow:hidden}
.modal-image>img{width:100%;height:100%;min-height:570px;object-fit:cover;display:block}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:50%;background:#fffaf2dd;color:var(--wine);font-size:29px;z-index:3;display:grid;place-items:center}
.carousel-arrow.prev{left:14px}.carousel-arrow.next{right:14px}
.carousel-dots{position:absolute;left:0;right:0;bottom:15px;display:flex;justify-content:center;gap:7px;z-index:3}
.carousel-dots button{width:8px;height:8px;border-radius:50%;padding:0;border:1px solid #fff;background:#fff8;cursor:pointer}.carousel-dots button.active{background:var(--wine);border-color:var(--wine)}
.modal-actions{display:flex;gap:10px;margin-top:15px}
.category-manager{background:#eee3d7;padding:17px;margin:0 0 25px}.category-manager>strong{font-family:'Cormorant Garamond';font-size:24px;color:var(--wine)}
.category-manager form{display:flex;gap:8px;margin:12px 0}.category-manager form input{flex:1;border:1px solid #cfbda9;background:#fffaf3;padding:9px;font-size:11px}
.category-chips{display:flex;gap:7px;flex-wrap:wrap}.category-chips span{border:1px solid #cfbda9;background:#fffaf3;padding:6px 8px;font-size:10px}.category-chips button{border:0;background:none;color:#9a3333;padding:0 0 0 6px}
.image-manager{grid-column:1/-1;background:#f5ede5;border:1px dashed #cbb49d;padding:12px}.image-manager label{display:block;font-size:11px;margin-bottom:6px}.image-manager input[type=file]{width:100%}.image-manager small{display:block;color:#806966;margin-top:5px;font-size:9px}.image-preview-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.image-preview{width:70px;height:70px;position:relative;background:#eee}.image-preview img{width:100%;height:100%;object-fit:cover}.image-preview button{position:absolute;top:2px;right:2px;width:20px;height:20px;border:0;border-radius:50%;background:#800000;color:#fff;line-height:1}
@media(max-width:700px){.instagram-button{margin:12px 0 0}.modal-image>img{min-height:295px}.modal-actions{align-items:stretch}.category-manager form{flex-direction:column}.image-preview{width:58px;height:58px}}

/* Mobile catalogue card polish */
@media (max-width: 700px) {
  .shop { padding-left: 18px; padding-right: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; width: 100%; }
  .product-card { width: 100%; min-width: 0; }
  .photo { width: 100%; height: auto; aspect-ratio: 4 / 5; min-height: 0; background: #f0e8df; }
  .photo .product-upload { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .photo:before { width: 58%; }
  .photo .product-art { transform: scale(.68); }
  .product-info { padding: 12px 2px 0; }
  .product-info p { font-size: 8px; margin-bottom: 4px; }
  .product-info h3 { font-size: 23px; line-height: 1; }
  .product-info strong { font-size: 12px; margin: 3px 0 10px; }
  .product-info button { font-size: 8px; letter-spacing: .08em; }
  .fav-btn { top: 9px; right: 9px; width: 32px; height: 32px; font-size: 18px; }
}

/* Product reviews */
.reviews-section { margin-top: 38px; padding-top: 30px; border-top: 1px solid #d8cabb; }
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.reviews-head h3 { font-size: 30px; }
.reviews-head small { display: block; margin-top: 2px; color: #806966; font-size: 9px; text-align: right; }
.review-stars { display: flex; align-items: center; gap: 2px; }
.review-stars button { border: 0; background: transparent; padding: 0; color: #d8cabb; font-size: 16px; line-height: 1; cursor: default; }
.review-stars button.filled { color: var(--gold); }
.review-stars.interactive button { cursor: pointer; font-size: 22px; }
.review-stars.interactive button:hover { color: var(--gold); }
.review-form { background: #f2e9e0; padding: 17px; display: grid; gap: 10px; margin-bottom: 22px; }
.review-form strong { color: var(--wine); font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; }
.review-form textarea { width: 100%; min-height: 85px; resize: vertical; border: 1px solid #cfbda9; background: #fffaf3; padding: 10px; outline-color: var(--gold); font-size: 11px; }
.review-form .gold-button { justify-self: start; }
.review-own-actions { display: flex; gap: 8px; }
.review-delete { color: #9a3333; border-color: #c99c90; }
.review-signin { padding: 16px; background: #f2e9e0; margin-bottom: 22px; }
.review-signin p { color: #765d5a; font-size: 11px; margin: 0 0 12px; }
.review-list { display: grid; gap: 0; }
.review-item { padding: 16px 0; border-top: 1px solid #d8cabb; }
.review-item-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-item-top strong { color: var(--wine); font-size: 11px; }
.review-item > p { color: #6c5653; font-size: 11px; margin: 8px 0 6px !important; }
.review-item > small { color: #927976; font-size: 9px; }
@media (max-width: 700px) {
  .reviews-section { margin-top: 30px; padding-top: 25px; }
  .reviews-head h3 { font-size: 27px; }
  .review-form { padding: 14px; }
  .review-form .gold-button { width: 100%; }
  .review-item-top { align-items: flex-start; }
}

/* Restore the original breathing room in the contact CTA. */
.contact .gold-button,
.contact .instagram-button { margin-top: 18px; }
.contact .gold-button + .instagram-button { margin-left: 16px; }

@media (max-width: 700px) {
  .contact .gold-button,
  .contact .instagram-button {
    display: flex;
    width: min(320px, 100%);
    margin: 12px auto 0;
  }
  .contact .gold-button + .instagram-button { margin-left: auto; margin-top: 12px; }
}

/* Product gallery touch/swipe support */
.modal-image {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.modal-image > img {
  -webkit-user-drag: none;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fffaf3;
  color: var(--wine);
  border: 1px solid #d8cabb;
  box-shadow: 0 12px 35px rgba(60, 25, 20, .18);
}
.cookie-consent strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}
.cookie-consent p {
  margin: 0;
  color: #765d5a;
  font-size: 10px;
  line-height: 1.55;
  max-width: 560px;
}
.cookie-consent .cookie-accept {
  flex: 0 0 auto;
  min-width: 100px;
  margin: 0;
}
@media (max-width: 700px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: block;
    padding: 16px;
  }
  .cookie-consent strong { font-size: 20px; }
  .cookie-consent p { font-size: 9px; }
  .cookie-consent .cookie-accept {
    width: 100%;
    margin-top: 12px;
  }
}
