/* ======== styles.css ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #121212;
  color: white;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #506fbc;
}
header {
  background: #000;
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(80, 111, 188, 0.7);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* <-- Added to prevent overflow on small screens */
}
.logo {
  display: flex;
  align-items: center;
  user-select: none;
}
.logo img {
  max-height: 100px;
  width: auto;
  display: block;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav li {
  position: relative;
}
nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  display: inline-block;
  cursor: pointer;
}
nav a.active {
  color: #506fbc;
  font-weight: 700;
}
nav a:hover:not(.active) {
  color: #506fbc;
}
/* Language selector */
.lang-selector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-button {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.8rem;
  outline: none;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
  user-select: none;
}
.lang-button:hover {
  color: #506fbc;
}
.lang-dropdown {
  position: absolute;
  top: 2.5rem;
  right: 0;
  background: #1a1a1a;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
  display: none;
  min-width: 160px;
  z-index: 1100;
}
.lang-dropdown.active {
  display: block;
}
.lang-dropdown button {
  width: 100%;
  border: none;
  background: none;
  color: white;
  padding: 0.6rem 1rem;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease;
}
.lang-dropdown button:hover {
  background: #506fbc;
  color: #fff;
}
.flag-icon {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* Hero Section (only on index.html) */
.hero-logo {
  text-align: center;
  margin-bottom: 3rem;
}
.hero-logo img {
  max-height: 200px;
  width: auto;
  user-select: none;
}

.hero-entries {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-entry {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-entry.left .photo-wrapper {
  order: 0;
}
.hero-entry.left .entry-text {
  order: 1;
  text-align: left;
}
.hero-entry.right .photo-wrapper {
  order: 1;
}
.hero-entry.right .entry-text {
  order: 0;
  text-align: right;
}

.photo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(80, 111, 188, 0.6);
  cursor: pointer;
  user-select: none;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-wrapper:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  max-width: 170px;
  padding: 0.8rem 1rem;
  transform: translate(-50%, -50%);
  background-color: rgba(80, 111, 188, 0.75);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  user-select: none;
}

.photo-wrapper:hover .photo-overlay {
  opacity: 1;
}

/* Text styling */
.entry-text h3 {
  font-size: 1.5rem;
  color: #506fbc;
  margin-bottom: 0.3rem;
  font-weight: 900;
  user-select: none;
}
.entry-text p {
  font-size: 1.1rem;
  color: #a4c1e0;
  user-select: none;
  margin: 0;
}

/* Responsive */
@media (max-width: 800px) {
  .hero-entry {
    flex-direction: column;
    text-align: center !important;
    gap: 1rem;
  }
  .hero-entry.left .photo-wrapper,
  .hero-entry.right .photo-wrapper {
    order: 0 !important;
  }
  .hero-entry.left .entry-text,
  .hero-entry.right .entry-text {
    order: 1 !important;
    text-align: center !important;
  }
  .photo-wrapper {
    width: 90vw;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }
}

/* Product card stacked with carousel on top */
.product-card {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,139,0.5);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.carousel-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  user-select: none;
}

.carousel-image-wrapper {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,255,0.6);
  overflow: hidden;
  position: relative;
}
.carousel-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.carousel-nav {
  position: absolute;
  inset: 0;
  top: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.25rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.carousel-nav button {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.25);
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  user-select: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0.0;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

/* Reveal arrows when hovering/focusing the gallery on larger screens */
@media (hover: hover) and (pointer: fine) {
  .carousel-image-wrapper:hover .carousel-nav button,
  .carousel-image-wrapper:focus-within .carousel-nav button {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.4);
  }
}
.carousel-nav button:hover {
  background: rgba(80, 111, 188, 0.9);
}

.carousel-dots {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  background: #333a;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.carousel-dot.active {
  background: #506fbc;
}

.product-info {
  color: #eee;
  max-width: 100%;
}

.product-info h3 {
  color: #f9fafb;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-info p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.price {
  font-weight: 900;
  font-size: 1.8rem;
  color: #506fbc !important;
  margin-bottom: 1.5rem;
}

.product-info label,
.product-info [data-i18n="size_label"],
.product-info [data-i18n="qty_label"],
.product-info [data-i18n="total_label"] {
  color: #506fbc !important;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: inline-block;
}

select, input[type="number"] {
  width: 100%;
  max-width: 250px;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  background-color: #333;
  color: white;
  transition: outline 0.3s ease;
}
select:focus, input[type="number"]:focus {
  outline: 2px solid #506fbc;
  background-color: #445fa0;
}

#size-chart-btn {
  background: none;
  border: none;
  color: #506fbc;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0;
  text-decoration: underline;
  user-select: none;
}
#size-chart-btn:hover {
  color: #405a9d;
}

.btn-add-cart {
  width: max-content;
  padding: 0.85rem 2rem;
  background-color: #506fbc;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-add-cart:hover {
  background: #405a9d;
}

/* Contact section styles */
#contact {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 2rem;
  color: white;
}
#contact h2 {
  color: #506fbc;
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
#contact p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
#contact label {
  margin-top: 1rem;
  display: block;
  font-weight: 700;
  color: #eee;
}
#contact input,
#contact textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: white;
  font-size: 1rem;
  resize: vertical;
}
#contact button {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #506fbc;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: background 0.3s ease;
}
#contact button:hover {
  background: #405a9d;
}

/* Cart modal and backdrop */


#cart-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,139,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1990;
}
#cart-backdrop.active {
  opacity: 1; pointer-events: auto;
}
#cart-modal {
  position: fixed;
  top: 0; right: -100vw;
  width: 100vw; max-width: 400px; height: 100vh;
  background: #121c3d;
  color: white;
  border-radius: 0 0 0 12px;
  box-shadow: -5px 0 20px rgba(0,0,139,0.9);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  visibility: hidden;
}
#cart-modal.open {
  right: 0;
  visibility: visible;
}
#cart-modal header {
  padding: 1.2rem 1rem;
  font-size: 1.6rem;
  font-weight: 900;
  border-bottom: 1px solid #d52b1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #506fbc;
  color: white;
}
#cart-modal header button.close-cart {
  background: none;
  border: none;
  color: #d52b1e;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
}
#cart-modal header button.close-cart:hover {
  color: #fff;
}
#cart-items {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.7rem;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cart-item.removing {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}
.cart-item div.item-info {
  flex: 1 1 70%;
}
.cart-item div.item-info strong {
  display: block;
  margin-bottom: 6px;
}
.cart-item div.item-controls {
  flex: 1 1 30%;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
.cart-item div.item-controls input {
  width: 50px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: #252f58;
  color: #eee;
  margin-left: auto;
  font-size: 1rem;
  text-align: center;
}
.cart-item div.item-controls input:focus {
  outline: 2px solid #506fbc;
  background: #344f9c;
}
.cart-item div.item-controls button.remove-item {
  background: #d52b1e;
  border: none;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.3s ease;
}
.cart-item div.item-controls button.remove-item:hover {
  background: #a31b16;
}
#cart-footer {
  padding: 1.2rem 1rem;
  border-top: 1px solid #d52b1e;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: right;
  background: linear-gradient(135deg, #111217, #18191f);
  color: white;
  font-family: inherit;
}

/* Checkout styling */
#checkout {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  font-family: inherit;
  display: none;
  color: white;
}
#checkout.show {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
#checkout > .checkout-left,
#checkout > .checkout-right {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}
#checkout > .checkout-left {
  flex: 1 1 55%;
  min-width: 320px;
}
#checkout > .checkout-right {
  flex: 1 1 40%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#checkout h2 {
  color: #506fbc;
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
#checkout form label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 700;
  color: #eee;
}
#checkout form input[type="text"],
#checkout form input[type="email"],
#checkout form input[type="tel"],
#checkout form select,
#checkout form textarea {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  transition: outline 0.3s ease;
}
#checkout form input[type="text"]:focus,
#checkout form input[type="email"]:focus,
#checkout form input[type="tel"]:focus,
#checkout form select:focus,
#checkout form textarea:focus {
  outline: 2px solid #506fbc;
  background: #344f9c;
}
#checkout form .checkbox-group {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
#checkout form .checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}
#checkout form .checkbox-group label {
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
#checkout form textarea {
  resize: vertical;
  min-height: 80px;
}
#order-summary {
  color: white;
  font-family: inherit;
}
#order-summary h3 {
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #506fbc;
  padding-bottom: 0.5rem;
}
#order-items {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}
#order-items .order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
}
#order-items .order-item .item-desc {
  flex: 1 1 auto;
}
#order-items .order-item .item-qty {
  flex-shrink: 0;
  margin: 0 1rem;
}
#order-items .order-item .item-price {
  flex-shrink: 0;
  font-weight: 700;
  white-space: nowrap;
}
#order-subtotal,
#order-shipping,
#order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
#order-total {
  font-size: 1.4rem;
  margin-top: 1.2rem;
  color: #d52b1e;
}
#shipping-description {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: #bbb;
}
#payment-methods {
  margin-top: 1rem;
}
#payment-methods > label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.8rem;
}
#payment-methods .payment-option {
  margin-bottom: 1rem;
}
#payment-methods .payment-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}
#payment-instructions,
#pickup-explanation {
  background: #252f58;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-top: 0.5rem;
  white-space: pre-line;
}
#terms-group {
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
#terms-group input[type="checkbox"] {
  cursor: pointer;
}
#terms-group label {
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
  cursor: pointer;
}
#confirm-order-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: #506fbc;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
  user-select: none;
}
#confirm-order-btn:disabled,
#confirm-order-btn[disabled] {
  background: #555;
  cursor: not-allowed;
}
#confirm-order-btn:hover:not(:disabled) {
  background: #405a9d;
}

/* Size Chart Modal */
#size-chart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90vw;
  width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
  transform: translate(-50%, -50%);
  z-index: 3000;
  padding: 1.5rem 2rem;
  display: none; /* Hidden by default */
  color: white;
}
#size-chart-modal.active {
  display: block; /* Show modal when active */
}
#size-chart-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
#size-chart-modal header h3 {
  font-weight: 900;
  font-size: 1.6rem;
  color: #506fbc;
}
#size-chart-modal header button.close-size-chart {
  background: none;
  border: none;
  color: #506fbc;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
  user-select: none;
}
#size-chart-modal header button.close-size-chart:hover {
  color: #fff;
}
#size-chart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
#size-chart-table th, #size-chart-table td {
  border: 1px solid #444;
  padding: 0.5rem 0.75rem;
  text-align: center;
}
#size-chart-table th {
  background: #506fbc;
  font-weight: 700;
}
#composition-care {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #bbb;
  white-space: pre-line;
}

/* Responsive */
@media (max-width: 900px) {
  #checkout.show {
    flex-direction: column;
  }
  #checkout > .checkout-left,
  #checkout > .checkout-right {
    flex: 1 1 100%;
    min-width: auto;
  }
  #order-items {
    max-height: 150px;
  }
  .product-card {
    flex-direction: column;
    align-items: center;
  }
  .carousel-container, .product-info {
    max-width: 100%;
    flex: 1 1 100%;
  }
  #size-chart-modal {
    width: 90vw;
  }
}
footer {
  background-color: #000;
  color: white;
  padding: 1rem 3rem;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.7);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  height: 50px;
  user-select: none;
  pointer-events: none;
}
.footer-left span {
  font-weight: 600;
}
.footer-left a#footer-terms-link {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.footer-left a#footer-terms-link:hover {
  color: #506fbc;
}

.footer-right a.footer-icon {
  font-size: 1.8rem;
  margin-left: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
  color: white;
  user-select: none;
}
.footer-right a.footer-icon:hover {
  color: #506fbc;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-right a.footer-icon {
    margin-left: 0.5rem;
  }
}
/* Spacing styles specifically for the terms section */
#terms h3 {
  margin-top: 2rem;    /* space above each heading */
  margin-bottom: 1rem; /* space below each heading */
}

#terms p {
  margin-bottom: 1.5rem; /* space after each paragraph */
  line-height: 1.6;      /* improves readability */
}

/* Hamburger menu button - hidden by default */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0.5rem;
}

/* Nav menu default */
nav#primary-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Show hamburger button */
  #nav-toggle {
    display: block;
  }
  /* Hide nav links initially */
  nav#primary-navigation ul {
    width: 100%; /* Added to fill width on mobile */
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  /* When nav open */
  nav#primary-navigation ul.open {
    max-height: 500px; /* enough to show menu */
  }
  /* Menu links stacked with some margin */
  nav#primary-navigation li {
    margin: 1rem 0;
  }
}







/* Announcement bar */
.announcement-bar {
  width: 100%;
  background: #d52b1e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  z-index: 1001;
}

.announcement-text {
  display: inline-block;
  padding-left: 100%;
  animation: announcement-marquee 18s linear infinite;
}

@keyframes announcement-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-text {
    animation: none;
    padding-left: 0;
  }
}

/* Loading state for checkout confirm button */
#confirm-order-btn.loading {
  position: relative;
  cursor: wait;
  opacity: 0.8;
}

#confirm-order-btn.loading .btn-label {
  visibility: hidden;
}

#confirm-order-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  animation: btn-spinner 0.7s linear infinite;
}

@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}


.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem 3rem;
}

.product-grid .product-card {
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.product-card-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}


.contact-company-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: #e2e6ff;
}

.contact-company-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #9fb4ff;
}

.contact-company-info a {
  color: #9fb4ff;
  text-decoration: underline;
}


.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}


/* Loading state for contact submit button */
.contact-submit.loading {
  position: relative;
  cursor: wait;
  opacity: 0.8;
}

.contact-submit.loading .btn-label {
  visibility: hidden;
}

.contact-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: btn-spinner 0.7s linear infinite;
}


button.btn-add-cart.out-of-stock {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ============================
   HOME TOP LOGO
   ============================ */

.home-logo {
  padding: 1.5rem 1.5rem 0.5rem;
  background: #000;
}

.home-logo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start; /* center on mobile via media query */
}

.home-logo-inner img {
  height: 48px;
  width: auto;
}

/* ============================
   HERO SECTION (HOME)
   ============================ */

.hero-section {
  padding: 3rem 1.5rem 3rem;
  background: #000;
  color: #fff;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-tagline {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 0.5rem;
}

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

.hero-subtitle {
  max-width: 520px;
  margin-bottom: 1.5rem;
  color: #d0d0d0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: #ffffff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #555;
  color: #fff;
  text-decoration: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #bcbcbc;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto;
}

/* ============================
   BENEFITS SPLIT SECTION
   ============================ */

.benefits-section {
  padding: 4rem 1.5rem;
  background: #0f0f10;
  color: #fff;
}

.benefits-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.benefits-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 500px;
  display: block;
}

.benefits-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.benefit-card h3 {
  margin-bottom: 0.3rem;
}

/* ============================
   3-TILE FEATURE STRIP
   ============================ */

.feature-tiles {
  padding: 3rem 1.5rem 2.5rem;
  background: #050505;
  color: #fff;
}

.feature-tiles-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-tile {
  background: #111;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature-tile-image {
  position: relative;
  width: 100%;
  padding-top: 100%;    /* 1:1 square ratio */
  overflow: hidden;
}

.feature-tile-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-tile-body {
  padding: 1rem 1.1rem 1.2rem;
}

.feature-tile-body h3 {
  margin-bottom: 0.4rem;
}

.feature-tile-body p {
  font-size: 0.95rem;
  color: #d4d4d4;
}

/* ============================
   PRODUCT HIGHLIGHTS
   ============================ */

.highlight-section {
  padding: 3rem 1.5rem;
  background: #050505;
  color: #fff;
}

.section-title {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  font-size: 1.6rem;
}

.highlight-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

.highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #111;
}

.highlight-image img {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto;
}

.highlight-price {
  margin-top: 0.5rem;
  font-weight: 600;
}

.btn-link {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #555;
}

/* ============================
   WHY PROSOKKAR
   ============================ */

.why-section {
  padding: 3rem 1.5rem;
  background: #000;
  color: #fff;
}

.why-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================
   TRUST STRIP
   ============================ */

.trust-strip {
  padding: 1.5rem 1.5rem 2rem;
  background: #060606;
  color: #fff;
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

/* ============================
   REVIEWS SECTION (SLIDER)
   ============================ */

.reviews-section {
  padding: 3rem 1.5rem;
  background: #050505;
  color: #fff;
}

.reviews-inner {
  max-width: 900px;
  margin: 0 auto;
}

.reviews-grid {
  position: relative;
  margin-top: 1.5rem;
  min-height: 170px; /* enough to hold one card without jumping */
}

/* Each review card = one slide */
.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Visible slide */
.review-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.review-stars {
  color: #f5c242; /* gold stars */
  font-size: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: #e2e2e2;
}

.review-name {
  font-size: 0.9rem;
  color: #b3b3b3;
}

/* ============================
   MOBILE FIXES (HOME)
   ============================ */

@media (max-width: 900px) {

  /* Logo centered on mobile */
  .home-logo-inner {
    justify-content: center;
  }

  /* HERO */
  .hero-section {
    padding: 2rem 1.2rem 2.5rem;
    text-align: center;
  }

  .hero-inner {
    display: flex;
    flex-direction: column-reverse; /* image below text */
    align-items: center;
    gap: 1.75rem;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
    text-align: center;
  }

  .hero-image img {
    max-width: 260px;
  }

  /* BENEFITS SPLIT – image stays left, slightly larger */
  .benefits-section {
    padding: 2.5rem 1.2rem;
  }

  .benefits-wrapper {
    grid-template-columns: 160px 1fr; /* slightly larger image column */
    align-items: flex-start;
    gap: 1.25rem;
  }

  .benefits-image img {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .benefits-content {
    gap: 1.1rem;
  }

  .benefit-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .benefit-card p {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  /* 3-TILE STRIP */
  .feature-tiles {
    padding: 2.5rem 1.2rem 2rem;
  }

  .feature-tiles-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-tile-image {
    max-width: 330px;
    margin: 0 auto;
  }

  /* PRODUCT HIGHLIGHTS */
  .highlight-section {
    padding: 2.5rem 1.2rem;
  }

  .highlight-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .highlight-image img {
    max-width: 220px;
  }

  /* WHY SECTION */
  .why-section {
    padding: 2.5rem 1.2rem;
  }

  .why-inner {
    max-width: 100%;
  }

  /* TRUST STRIP */
  .trust-strip {
    padding: 1.5rem 1.2rem 2rem;
  }

  .trust-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* REVIEWS */
  .reviews-section {
    padding: 2.5rem 1.2rem;
  }

  .reviews-inner {
    max-width: 100%;
  }

  .review-card {
    padding: 1.15rem 1.15rem 1.3rem;
  }
}


/* ===== Mobile refinements for product + checkout pages ===== */
@media (max-width: 768px) {
  /* General spacing */
  main {
    padding: 0 1rem;
  }

  /* Product detail card */
  .product-card {
    padding: 1.5rem;
    gap: 1.2rem;
    max-width: 100%;
  }

  .product-info h3 {
    font-size: 1.6rem;
  }

  .product-info .price {
    font-size: 1.4rem;
  }

  .product-info p {
    font-size: 0.95rem;
  }

  .carousel-container {
    max-width: 100%;
  }

  /* Checkout layout: stack columns nicely */
  #checkout {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem !important;
    margin: 2rem auto !important;
  }

  #checkout > .checkout-left,
  #checkout > .checkout-right {
    min-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 1.5rem !important;
    padding: 1.5rem 1.2rem;
  }

  #order-summary h3 {
    font-size: 1.5rem;
  }

  #order-items {
    max-height: 260px;
  }

  /* Form inputs full width and easier to tap */
  #checkout form input[type="text"],
  #checkout form input[type="email"],
  #checkout form input[type="tel"],
  #checkout form select,
  #checkout form textarea {
    font-size: 1rem;
  }

  /* Cart toggle button a bit larger on mobile */
  .cart-toggle-btn {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  header .top-bar,
  header nav {
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  #checkout > .checkout-left,
  #checkout > .checkout-right {
    padding: 1.2rem 1rem;
  }

  .product-card {
    padding: 1.2rem;
  }
}


/* ===== Header, hamburger, language selector refinements ===== */
#nav-toggle {
  display: none; /* desktop hidden; mobile handled in media query below */
  background: rgba(0,0,0,0.3);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 0.3rem 0.7rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#nav-toggle:hover,
#nav-toggle:focus-visible {
  background: #506fbc;
  color: #fff;
  border-color: #506fbc;
  outline: none;
}

.lang-selector-wrapper {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.lang-button {
  border-radius: 999px;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-button:focus-visible {
  outline: 2px solid #506fbc;
  outline-offset: 2px;
}

/* Mobile-specific header tweaks */
@media (max-width: 768px) {
  .nav-container {
    align-items: center;
    column-gap: 0.75rem;
  }

  .logo img {
    max-height: 70px;
  }

  /* Show hamburger next to language globe on mobile */
  #nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .lang-selector-wrapper {
    order: 3;
  }

  nav#primary-navigation {
    flex-basis: 100%;
    order: 4;
    margin-top: 0.5rem;
  }

  nav#primary-navigation ul {
    background: #0e0e0e;
    padding: 0.5rem 0.5rem 0.8rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.7);
  }

  nav#primary-navigation li {
    margin: 0.4rem 0;
  }

  nav#primary-navigation a {
    display: block;
    padding: 0.3rem 0.1rem;
  }

  .lang-dropdown {
    right: 0;
    left: auto;
  }
}

/* Cart modal refinements (desktop & mobile) */
#cart-modal header h2 {
  font-size: 1.4rem;
}

#cart-modal {
  border-radius: 12px 0 0 12px;
}

/* On very small screens, let cart slide in full-width */
@media (max-width: 600px) {
  #cart-modal {
    max-width: 100vw;
    border-radius: 0;
  }

  #cart-modal header h2 {
    font-size: 1.2rem;
  }
}

/* Size chart modal refinements */
#size-chart-modal {
  box-shadow: 0 0 30px rgba(0,0,0,0.85);
}

#size-chart-modal header {
  border-bottom: 1px solid #333;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}

#size-chart-modal header h3 {
  font-size: 1.4rem;
}

#size-chart-modal header button.close-size-chart {
  font-size: 1.6rem;
}

/* Mobile size chart modal */
@media (max-width: 768px) {
  #size-chart-modal {
    width: 95vw;
    max-width: 95vw;
    padding: 1rem 1.2rem;
    max-height: 85vh;
  }

  #size-chart-table th,
  #size-chart-table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }
}


/* Explicit open state for nav toggle to avoid sticky hover on mobile */
#nav-toggle.is-open {
  background: #506fbc;
  color: #fff;
  border-color: #506fbc;
}

#nav-toggle:hover:not(.is-open),
#nav-toggle:focus-visible:not(.is-open) {
  background: rgba(80, 111, 188, 0.2);
}


/* Override mobile nav panel behavior to avoid visible strip when closed */
@media (max-width: 768px) {
  nav#primary-navigation ul {
    width: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: #0e0e0e;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.7);
    transition: max-height 0.3s ease, padding 0.2s ease;
  }

  nav#primary-navigation ul.open {
    max-height: 500px;
    padding: 0.5rem 0.5rem 0.8rem;
  }
}


/* ===== UI POLISH PASS ===== */

/* Subtle background depth */
body {
  background-color: #050506;
  background-image:
    radial-gradient(circle at top left, rgba(180,180,180,0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.9), #050506 70%);
}

/* Constrain main content width for nicer reading */
main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Improve headings & text rhythm */
main h1,
main h2 {
  letter-spacing: 0.02em;
}

main h3 {
  letter-spacing: 0.01em;
}

/* SHOP GRID: cleaner product tiles */
.product-grid {
  gap: 1.75rem;
}

.product-grid .product-card {
  max-width: 320px;
  padding: 1.6rem 1.4rem;
  gap: 1rem;
  background: radial-gradient(circle at top left, rgba(80,111,188,0.18), #181818);
  box-shadow: 0 14px 30px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-grid .product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.product-grid .product-card p {
  font-size: 0.92rem;
  color: #d0d0d0;
  margin-bottom: 0.5rem;
}

.product-grid .product-card .price {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
  border-color: rgba(80,111,188,0.7);
  background: radial-gradient(circle at top left, rgba(80,111,188,0.28), #181818);
}

/* PRODUCT DETAIL LAYOUT */
#product-detail .product-card {
  max-width: 1120px;
}

@media (min-width: 960px) {
  #product-detail .product-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  #product-detail .carousel-container {
    max-width: 480px;
  }

  #product-detail .product-info {
    flex: 1 1 50%;
  }
}

#product-detail .product-info h3 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

#product-detail .product-info p {
  font-size: 0.96rem;
  color: #e0e0e0;
}

/* Total price row on product detail */
#product-detail .product-info > div span#total-price {
  font-weight: 800;
}

/* BUTTON CONSISTENCY */
.btn-add-cart,
#confirm-order-btn,
#checkout-continue,
button#size-chart-btn {
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#confirm-order-btn {
  background: linear-gradient(135deg, #506fbc, #708dff);
  box-shadow: 0 10px 26px rgba(80,111,188,0.55);
}

#confirm-order-btn:hover:not(.loading) {
  background: linear-gradient(135deg, #405a9d, #6070d0);
}

/* CHECKOUT CARDS */
#checkout > .checkout-left,
#checkout > .checkout-right {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.75);
}

/* On mobile, soften shadows a bit */
@media (max-width: 768px) {
  #checkout > .checkout-left,
  #checkout > .checkout-right {
    box-shadow: 0 12px 26px rgba(0,0,0,0.75);
  }
}

/* FOOTER polish */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top center, rgba(80,111,188,0.18), #05060b);
}

/* Give modals a bit more visual depth */
#cart-modal {
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

#size-chart-modal {
  border-radius: 16px;
}


/* Header cart button */
.cart-toggle-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.7);
  padding: 0.25rem 0.7rem;
  font-size: 0.9rem;
  color: #f9fafb;
  cursor: pointer;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.1s ease, box-shadow 0.2s ease;
}

.cart-toggle-header:hover,
.cart-toggle-header:focus-visible {
  background: rgba(30,64,175,0.35);
  border-color: rgba(191,219,254,0.9);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.9);
}

.cart-toggle-header .cart-icon {
  display: inline-block;
}

.cart-toggle-header 

/* On mobile, keep header cart inline with burger and globe */
@media (max-width: 768px) {
  .cart-toggle-header {
    margin-left: 0.25rem;
    padding: 0.2rem 0.55rem;
    order: 2;
  }
}


/* Product detail wrapper for nicer layout margins */
#shop #product-detail {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}


/* Product page main container */
#shop #product-detail {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}


/* === V47 CLEAN CSS OVERRIDES === */

/* Header cart button: neutral dark pill, not floating */
.cart-toggle-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  padding: 0.25rem 0.7rem;
  font-size: 0.9rem;
  color: #f9fafb;
  cursor: pointer;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: relative;
  z-index: 20;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.1s ease, box-shadow 0.2s ease;
}

.cart-toggle-header:hover,
.cart-toggle-header:focus-visible {
  background: rgba(30,64,175,0.35);
  border-color: rgba(191,219,254,0.9);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.9);
}

.cart-toggle-header .cart-icon {
  display: inline-block;
}

.cart-toggle-header #cart-count {
  min-width: 1.3rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cart-toggle-header {
    margin-left: 0.25rem;
    padding: 0.2rem 0.55rem;
    order: 2;
  }
}

/* Product page title neutral */
.product-info h3 {
  color: #f9fafb !important;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Contact / Terms / About titles neutral */
#contact h2,
#terms h2,
#about h2,
main h2[data-i18n="contact_title"],
main h2[data-i18n="terms_title"],
main h2[data-i18n="about_title"] {
  color: #f9fafb !important;
}

/* WHY section text/titles calmer */
.entry-text h3,
.why-header h2 {
  color: #f9fafb !important;
}

.entry-text p {
  color: #d0d0d0 !important;
}

.why-card {
  padding: 1.4rem 1.3rem;
  border-radius: 1rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.28);
  box-shadow: 0 14px 30px rgba(0,0,0,0.75);
}

/* Generic headings in main */
main h1,
main h2,
main h3 {
  color: #f9fafb;
}


/* Smaller carousel controls on mobile */
@media (max-width: 640px) {
  .carousel-nav button {
    font-size: 0.9rem;
    width: 1.8rem;
    height: 1.8rem;
    opacity: 0.85; /* mobile: a bit less transparent */
    background: rgba(15, 23, 42, 0.4);
  }
}


/* === Enhanced checkout summary layout with thumbnails === */

#checkout.show {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

#checkout > .checkout-left,
#checkout > .checkout-right {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
}

.checkout-right {
  position: relative;
}

@media (min-width: 900px) {
  .checkout-right {
    position: sticky;
    top: 6.5rem;
  }
}

#order-summary {
  padding: 1.75rem 1.75rem 1.5rem 1.75rem;
}

#order-summary > h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.checkout-summary-items {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.75rem 0.9rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.checkout-summary-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.checkout-summary-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.checkout-summary-item-title {
  font-weight: 600;
  color: #e5e7eb;
}

.checkout-summary-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.checkout-summary-item-meta span {
  display: inline-flex;
  align-items: center;
}

.checkout-summary-item-price {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  color: #f97316;
}

/* Tweak totals typography */
#order-subtotal,
#order-shipping,
#order-total {
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

#order-total {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: #facc15;
}

#shipping-description {
  font-size: 0.78rem;
  color: #9ca3af;
}



/* Enhanced cart item layout with thumbnails */
.cart-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.75rem 0.9rem;
  align-items: center;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 0.75rem;
}

.cart-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.cart-item .item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
}

.cart-item .item-title {
  font-weight: 600;
  color: #e5e7eb;
}

.cart-item .item-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.cart-item .item-qty-row {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
}

.cart-item .item-qty-row input.cart-qty {
  width: 72px;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #f9fafb;
  font-size: 0.8rem;
}

.cart-item .item-line-total {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f97316;
}

.cart-item .item-controls {
  align-self: flex-start;
}

.cart-item .item-controls button.remove-item {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  padding: 0;
}


/* Mobile-specific tweaks: make cart thumbnails smaller so they don't dominate on small screens */
@media (max-width: 768px) {
  .cart-item-thumb {
    width: 28px;
    height: 28px;
  }

  .cart-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
}


/* Honeypot fields (anti-spam) */
.honeypot { display: none !important; }
