/* General Body and typography */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 6rem; /* Offset per l'header fisso */
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #faf9f6;
  color: #333;
  letter-spacing: 0.01em;
  font-size: 16px;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #232323;
  font-weight: 700;
}

p {
  line-height: 1.6;
  font-size: 1rem;
}

a {
  color: #bfa14a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #232323;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(218, 165, 32, 0.08);
  border-bottom: 1px solid #e7c87344;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.logo {
  height: 50px;
  object-fit: contain;
}

.cart-icon-container {
  position: relative;
}

.cart-icon-container button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.cart-icon-svg {
  width: 2rem;
  height: 2rem;
  stroke: #232323;
  fill: none;
  transition: stroke 0.2s;
}

.cart-icon-container button:hover .cart-icon-svg {
  stroke: #bfa14a;
}

#cart-count {
  background: #e7c873;
  color: #fff;
  border-radius: 50%;
  padding: 0.15em 0.5em;
  font-size: 0.9rem;
  font-weight: 700;
  position: absolute;
  top: -5px;
  right: -5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 3rem;
  background: linear-gradient(135deg, #fff 50%, #fdf6e3 100%);
}

.hero-img {
  max-width: 320px;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.15);
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text .hero-sub {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-badge {
  max-width: 250px;
  margin-top: 1rem;
}

/* Info Section & Promo Section */
.info-section, .promo-section {
  max-width: 100%;
  margin: 3rem 1rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(218, 165, 32, 0.07);
}

.info-section {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.info-text {
  flex: 2;
  min-width: 280px;
}

.info-imgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.info-img {
  max-width: 250px;
  border-radius: 1rem;

}

.vai-promo {
  margin-top: 1.5rem;
}

/* Beauty Card Section */
.beauty-card-section {

  background-color: #faf9f6;
}

.beauty-card-section img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.promo-section {
  text-align: center;
}

.promo-section h2 {
  margin-bottom: 4rem;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.promo-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.promo-img {
  max-width: 140px;
  border-radius: 30rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.promo-details {
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
  font-size: 1.05rem;
}

.promo-details p {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.promo-details p::before {
  content: '✔';
  color: #bfa14a;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.hashtag {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 2rem;
  color: #232323;
}

/* Products Section */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 0.5rem;
  background: #faf9f6;
  max-width: 1350px;
  justify-self: center;
  border-radius: 4rem;
}

#giftcard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem 0.5rem;
  background: #faf9f600;

  justify-self: center;
  border-radius: 4rem;
}




.product-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(218, 165, 32, 0.1);
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.2s;
  border: 1px solid #e7c87333;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(218, 165, 32, 0.2);
}

.product-card img {
  width: 100%;
  max-width: 350px;
  border-radius: 1.2rem;
  margin-bottom: 1rem;
}

.product-card h2 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.product-card .prices {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 1.2rem;
}

.product-card .price-old {
  color: #aaa;
  text-decoration: line-through;
  font-size: 1rem;
}

.product-card .price-new {
  color: #232323;
  font-size: 1.3rem;
  font-weight: bold;
}
.modal-content h2{
  font-weight: 100;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.modal-content span{
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
}
.product-card .product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
  width: 100%;
}

.product-card .btn-main,
.product-card .btn-secondary {
  width: 100%;
  margin: 0;
}

/* Buttons */
.btn-main {
  background: #232323;
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.8em 2.5em;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

.btn-main:hover, .btn-main:focus {
  background: #bfa14a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: none;
  border: 2px solid #232323;
  color: #232323;
  border-radius: 2rem;
  padding: 0.8em 2.5em;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-secondary:hover, .btn-secondary:focus {
  background: #e7c873;
  color: #fff;
  border: 2px solid #232323;
}

.btn-link {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.btn-link:hover {
  color: #232323;
}

/* Cart Dropdown */
.cart-dropdown {
  position: fixed;
  top: 90px;
  right: 2rem;
  width: 350px;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  padding: 1.2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #ddd;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.cart-dropdown.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
}

.cart-dropdown h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

#cart-items {
  max-height: 40vh;
  overflow-y: auto;
}

.cart-grid-header, .cart-grid-row {
  display: grid;
  grid-template-columns: 3fr 2fr 1.5fr 0.5fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-grid-header {
  font-weight: bold;
  font-size: 0.9rem;
  color: #777;
  border-bottom: 2px solid #eee;
}

.cart-grid-row span {
  font-size: 0.95rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #ddd;
}

.cart-trash {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.cart-trash:hover {
  color: #e53e3e;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Cart Page Specifics */
.cart-page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.cart-page-container h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.cart-page-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 0.5fr;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  font-weight: 700;
  color: #555;
  font-size: 0.9rem;
  text-transform: uppercase;
}

#cart-page-items .cart-page-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 0.5fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-info img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.cart-item-details .name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.cart-item-details .desc {
  font-size: 0.9rem;
  color: #777;
}

#cart-page-items .qty-controls {
  justify-content: center;
}

#cart-page-items .cart-trash {
  justify-self: flex-end;
}

.continue-shopping {
  margin: 1rem;
  display: inline-block;
 font-weight: 600;
 margin-top: 0;
}

.summary-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.1);
  border: 1px solid #e7c87333;
  position: sticky;
  top: 100px;
  margin-top: 1rem;
}
div#cart-page-items {
  padding: 0.5rem;
}
.summary-card h2 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row, .summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Coupon Styles */
.coupon-section {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
#coupon-input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.7rem;
  font-size: 0.9rem;
}
#apply-coupon-btn {
  border: none;
  background: #232323;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}
#apply-coupon-btn:hover {
  background: #bfa14a;
}
#coupon-feedback {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  font-weight: bold;
  text-align: center;
}
#coupon-feedback.success {
  color: #28a745;
}
#coupon-feedback.error {
  color: #e53e3e;
}

.summary-total {
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #eee;
}

.summary-card .btn-secondary {
  width: 100%;
  text-align: center;
  padding: 0.8em 1em;
  margin: 0;
}

/* Payment Method Styles */
.payment-method {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.payment-method h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-option:hover {
  border-color: #bfa14a;
}

.payment-option input[type="radio"] {
  accent-color: #bfa14a;
}

.payment-option img {
  height: 24px;
}

.payment-error-message {
  color: #e53e3e;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

#confirmation-message{
  margin-top: 1rem;
  color: #bfa14a;
}

/* Cross-Sell Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.visible .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

#cross-sell-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cross-sell-product {
  display: flex;
  flex-direction: column; /* Changed to column for vertical layout */
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.cross-sell-product:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.cross-sell-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%; /* Ensure it takes full width */
}

#cross-sell-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

.cross-sell-details {
  flex-grow: 1;
  text-align: left;
}

.cross-sell-product .btn-main {
  padding: 0.6em 1.2em;
  font-size: 0.9rem;
  white-space: nowrap;
  width: 100%; /* Make button full width of its container */
}

#cross-sell-item .name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
}

#cross-sell-item .desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

#cross-sell-item .price {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.cross-sell-actions {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background: #232323;
  color: #f0f0f0;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}

.footer-info p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}
.footer-info a {
  color: #e7c873;
}
.cart-items-column

 {
    max-width: 100vw;
    padding: 0.5rem;
    justify-content: center;
    justify-self: center;
}
.cart-summary-column {
  max-width: 100vw;
  padding: 0.5rem;
}
/* Responsive Styles */
@media (max-width: 900px) {
  .beauty-card-section img {
border-radius: 0;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .info-section {
    flex-direction: column;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
    margin-top: 2rem;
  }

  .shipping-form-container {
    margin-bottom: 2rem;
  }
  .cart-page-container {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .header {
    padding: 0.8rem 1rem;
  }
  .logo {
    height: 40px;
  }
  .hero {
    padding: 2rem 1rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .info-section, .promo-section {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }
  .products {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }

  .product-card {

    max-width: 340px;
  }
  .cart-dropdown {
    width: 94vw;
    right: 3vw;
    top: 80px;
  }
  .footer {
    padding: 2rem 1rem;
  }
  .cart-page-container {
    padding: 0 1rem;
  }
  .cart-page-header {
    display: none;
  }
  #cart-page-items .cart-page-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    border: none;
  }
  .cart-item-info {
    flex-direction: column;
  }
  #cart-page-items .qty-controls, #cart-page-items .cart-trash {
    justify-self: center;
  }
} 

/* Shipping Form Styles */
.shipping-form-container {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.1);
  border: 1px solid #e7c87333;
  margin-top: 2rem;
}

.shipping-form-container h2 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.shipping-form .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.shipping-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.shipping-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.shipping-form input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shipping-form input:focus {
  outline: none;
  border-color: #bfa14a;
  box-shadow: 0 0 0 3px rgba(191, 161, 74, 0.2);
}

.shipping-form .error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    height: 1em;
    visibility: hidden;
}

.shipping-form input.invalid {
    border-color: #e53e3e;
}

.shipping-form .form-group .error-message.visible {
    visibility: visible;
}

/* Toast Message */
.toast-message {
    background-color: #e53e3e;
    color: white;
    padding: 0 1.2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    font-size: 0.95rem;
}

.toast-message.visible {
    opacity: 1;
    visibility: visible;
    max-height: 5em;
    padding: 0.8rem 1.2rem;
    margin-top: 1rem;
} 