/* ==========================================================================
   CAOMISA SHOP - STOREFRONT STYLES
   ========================================================================== */

@font-face {
  font-family: "CaomisaInter";
  src: url("assets/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Design Tokens & Theme Colors */
  --brand-primary: #f97c00;
  --brand-secondary: #001a64;
  --brand-dark: #000b2f;
  --text-main: #2d3748;
  --text-muted: #718096;
  --bg-light: #f7fafc;
  --bg-card: #ffffff;
  --line: #edf2f7;
  --white: #ffffff;
  --danger: #e53e3e;
  --success: #22c55e;
  --accent: #d96500;

  /* Typography */
  --font-body: "CaomisaInter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(10,46,86,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10,46,86,0.07);

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transition Curve */
  --transition: all 0.2s ease-in-out;
}

[hidden],
.zoom-modal[hidden] {
  display: none !important;
}

/* --- Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

body.cart-open,
body.zoom-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- Top Announcement Strip --- */
.top-strip {
  background: linear-gradient(90deg, #f97c00 0%, #ff9a1f 50%, #f97c00 100%);
  color: var(--white);
  height: 40px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  white-space: nowrap;
}

.promo-marquee {
  display: flex;
  width: max-content;
  align-items: center;
  height: 100%;
  animation: marquee 20s linear infinite;
}

.promo-marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.promo-marquee span {
  display: inline-flex;
  align-items: center;
}

.promo-marquee svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #020b36 0%, #061d68 45%, #0a348e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(2, 11, 54, 0.1);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  height: 70px;
}

.brand img {
  height: 40px;
  transition: transform 0.2s ease;
}

.brand:hover img {
  transform: scale(1.03);
}

.icon-button,
.menu-toggle,
.cart-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--white);
  transition: var(--transition);
}

.icon-button:hover,
.menu-toggle:hover,
.cart-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.icon-button svg,
.menu-toggle svg,
.cart-button svg {
  width: 22px;
  height: 22px;
}

.cart-button {
  position: relative;
}

.cart-button span {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav svg {
  width: 14px;
  height: 14px;
}

/* --- Search Panel --- */
.search-panel {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: min(450px, calc(100vw - 20px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.search-panel label {
  display: none;
}

.search-panel > div:first-child {
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--brand-dark);
  outline: none;
  transition: var(--transition);
}

.search-panel input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.search-panel .icon-button {
  background: var(--bg-light);
  color: var(--brand-secondary);
}

.search-results {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.search-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.search-preview-item:hover {
  background: rgba(249, 124, 0, 0.08);
}

.search-preview-item img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-preview-item div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-preview-item strong {
  font-size: 0.9rem;
  color: var(--brand-secondary);
}

.search-preview-item span {
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.search-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Category Panel --- */
.category-panel {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  animation: slideDown 0.15s ease-out;
}

.category-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.category-choice:hover {
  background: rgba(249, 124, 0, 0.08);
  color: var(--brand-primary);
}

/* --- Hero Slider --- */
.store-banner {
  width: 100%;
  background: #f7fbff;
  overflow: hidden;
  position: relative;
}

.banner-slider {
  width: 100%;
  height: clamp(320px, 35vw, 550px);
  position: relative;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide picture,
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-controls span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls span.is-active {
  background: var(--brand-primary);
  width: 25px;
}

/* --- Store Sections --- */
.section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.section-action {
  text-align: center;
  margin-top: 30px;
}

.secondary-button {
  display: inline-block;
  border: 2px solid var(--brand-secondary);
  color: var(--brand-secondary);
  font-weight: 700;
  padding: 10px 32px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.secondary-button:hover {
  background: var(--brand-secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 700;
  padding: 12px 36px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(249, 124, 0, 0.15);
  transition: var(--transition);
}

.primary-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(249, 124, 0, 0.25);
}

.primary-button:disabled {
  background: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* --- Products Grid & Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 124, 0, 0.2);
}

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-card-badge.badge-custom {
  background: var(--brand-secondary);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7fafc;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-1: 1;
  text-align: center;
}

.product-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-pricing {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card-pricing .old-price {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-card-pricing .new-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--success);
}

/* --- Collections Carousel --- */
.collections {
  overflow: hidden;
}

.collection-carousel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.collection-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  width: 100%;
  padding: 10px 0;
}

.collection-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.collection-grid a {
  flex: 0 0 calc(20% - 16px);
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.collection-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.collection-grid img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-light);
}

.collection-grid strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.collection-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: var(--transition);
}

.collection-arrow:hover {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}

.collection-arrow-prev { left: 0; }
.collection-arrow-next { right: 0; }

/* --- Promo Banners --- */
.promo-banners {
  margin-top: 40px;
}

.promo-banner {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.promo-banner img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.promo-banner:hover img {
  transform: scale(1.01);
}

/* --- About Us photo grid --- */
.about-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Features Row --- */
.feature-row {
  max-width: 1200px;
  margin: 50px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-row article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-row article svg {
  width: 32px;
  height: 32px;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.feature-row article strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.feature-row article span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Catalog view pills --- */
.category-filters-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.category-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-filter-pill {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  transition: var(--transition);
}

.category-filter-pill:hover,
.category-filter-pill.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--white);
}

/* --- Product Detail Page Layout --- */
.product-page-container {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* Product Media */
.product-media-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-container {
  position: relative;
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.zoom-badge:hover {
  background: var(--brand-primary);
}

.thumbnails-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0;
}

.thumb-btn {
  flex: 0 0 70px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}

.thumb-btn.is-active,
.thumb-btn:hover {
  border-color: var(--brand-primary);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Stack */
.product-info-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-info-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-secondary);
  line-height: 1.25;
}

.product-reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-row {
  display: flex;
  gap: 2px;
  color: #ff9800;
}

.stars-row svg {
  width: 16px;
  height: 16px;
}

.stars-row svg.is-filled {
  fill: #ff9800;
}

.review-count-link {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.product-pricing-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pricing-row .original-price {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.pricing-row .current-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--success);
}

.pricing-row .discount-tag {
  background: var(--danger);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.pricing-installments {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.pricing-installments strong {
  color: var(--brand-secondary);
}

/* Options / Variant selection */
.option-selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-selector-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  transition: var(--transition);
}

.size-pill:hover:not(.out-of-stock),
.size-pill.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--white);
}

.size-pill.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f1f5f9;
  text-decoration: line-through;
}



/* Custom Jersey Fields */
.customization-box {
  background: rgba(249, 124, 0, 0.04);
  border: 1px dashed var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customization-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.custom-fields-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.custom-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

.custom-field input {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
  transition: var(--transition);
}

.custom-field input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

/* Buy panel action elements */
.quantity-and-buy {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--white);
  padding: 0 8px;
}

.quantity-selector button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.quantity-selector span {
  width: 30px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.quantity-and-buy .primary-button {
  flex: 1;
}

/* Collapsible description / accordions */
.product-description-accordions {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  font-weight: 700;
  color: var(--brand-secondary);
  font-size: 0.95rem;
}

.accordion-header svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-content {
  padding-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* Description text inside accordion */
.description-body {
  white-space: pre-wrap;
}

/* --- Reviews Section --- */
.product-reviews-section {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.reviews-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.reviews-summary-card {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.reviews-summary-card h3 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-secondary);
  line-height: 1;
}

.reviews-summary-card .stars-row {
  font-size: 1.5rem;
}

.reviews-summary-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.reviews-bars-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.reviews-bar-row span {
  width: 45px;
}

.reviews-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.reviews-bar-fill {
  height: 100%;
  background: #ff9800;
  border-radius: var(--radius-full);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-secondary);
}

.reviewer-city {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.review-card-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
}

.review-card-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--line);
}

/* --- Cart Drawer --- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  transition: visibility 0.3s;
}

.cart-drawer[aria-hidden="false"] {
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 11, 47, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.cart-drawer[aria-hidden="false"] .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--white);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer[aria-hidden="false"] .cart-panel {
  transform: translate3d(0, 0, 0);
}

.cart-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head div {
  display: flex;
  flex-direction: column;
}

.cart-head span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-light);
  border: 1px solid var(--line);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1.3;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cart-item-meta strong {
  color: var(--brand-primary);
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--success);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
}

.cart-item-quantity button {
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-quantity span {
  width: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-summary {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-row span {
  font-weight: 700;
  color: var(--brand-secondary);
}

.cart-total-row strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--success);
}

.cart-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-action-row button {
  width: 100%;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 110;
  background: var(--brand-secondary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Modals (Zoom) --- */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.zoom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 11, 47, 0.6);
  backdrop-filter: blur(5px);
}

.zoom-modal-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.zoom-modal-content img {
  max-height: 80vh;
  object-fit: contain;
}

.zoom-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--brand-secondary);
  z-index: 5;
}

.zoom-close-btn:hover {
  background: rgba(0,0,0,0.1);
}

/* --- Integrated Checkout Page --- */
.checkout-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 70vh;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}

.checkout-form-column,
.checkout-summary-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-card-header i {
  color: var(--brand-primary);
  width: 24px;
  height: 24px;
}

.checkout-card-header h3 {
  font-size: 1.25rem;
  color: var(--brand-secondary);
  font-weight: 800;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.input-group {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group.full-width {
  grid-column: span 6;
}

/* Responsive grid columns */
@media (max-width: 600px) {
  .input-group {
    grid-column: span 6;
  }
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.input-group input {
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
  font-family: inherit;
  background: #f8fafc;
}

.input-group input:focus {
  border-color: var(--brand-primary);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 124, 0, 0.15);
}

.cep-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cep-input-wrapper input {
  width: 100%;
}

.cep-loading-spinner {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(249, 124, 0, 0.2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Shipping & Payment Cards */
.shipping-options-box,
.payment-selection-box {
  margin-top: 24px;
}

.shipping-options-box h4 {
  font-size: 0.95rem;
  color: var(--brand-secondary);
  margin-bottom: 12px;
  font-weight: 700;
}

.shipping-option-card,
.payment-option-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
}

.shipping-option-card.active,
.payment-option-card.active {
  border-color: var(--brand-primary);
  background: rgba(249, 124, 0, 0.03);
}

.shipping-option-info,
.payment-option-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-option-info i {
  color: var(--brand-primary);
  width: 20px;
  height: 20px;
}

.shipping-option-info strong,
.payment-option-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--brand-secondary);
  font-weight: 700;
}

.shipping-option-info span,
.payment-option-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shipping-price {
  font-weight: 800;
  color: var(--success);
  font-size: 0.95rem;
}

.pix-badge {
  background: var(--success);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.checked-icon {
  color: var(--brand-primary);
  width: 22px;
  height: 22px;
}

.pix-info-alert {
  background: rgba(0, 26, 100, 0.04);
  border-left: 4px solid var(--brand-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--brand-secondary);
  margin-top: 20px;
}

.pix-info-alert i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--brand-secondary);
}

.checkout-pay-button {
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(249, 124, 0, 0.2);
}

.security-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.security-guarantee i {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* Sticky card for summary */
.sticky-card {
  position: sticky;
  top: 90px;
}

/* Order Summary list */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 280px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-item-row img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--line);
}

.checkout-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1.2;
}

.checkout-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-item-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.checkout-financial-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-line .discount-text {
  color: var(--danger);
  font-weight: 700;
}

.summary-line .free-badge {
  color: var(--success);
  font-weight: 800;
}

.summary-line.total-line {
  font-size: 1.25rem;
  color: var(--brand-secondary);
  font-weight: 800;
  padding-top: 4px;
}

.summary-line.total-line strong {
  color: var(--brand-secondary);
}

.security-badges-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.security-badge-item i {
  width: 16px;
  height: 16px;
}

/* PIX SUCCESS SCREEN STYLES */
.pix-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin-bottom: 20px;
}

.success-checkmark i {
  width: 44px;
  height: 44px;
}

.pix-success-container h2 {
  font-size: 1.6rem;
  color: var(--brand-secondary);
  font-weight: 800;
  margin-bottom: 8px;
}

.pix-success-container p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.pix-timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 62, 62, 0.05);
  border: 1px dashed var(--danger);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  color: var(--danger);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.pix-timer-box i {
  width: 20px;
  height: 20px;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.pix-qr-code-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pix-qr-code-box svg {
  display: block;
}

.pix-copia-cola-box {
  width: 100%;
  max-width: 480px;
  text-align: left;
  margin-bottom: 24px;
}

.pix-copia-cola-box label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copia-cola-input-group {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}

.copia-cola-input-group input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 0.85rem;
  background: transparent;
  font-family: monospace;
  color: var(--text-main);
  outline: none;
}

.copia-cola-input-group button {
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 700;
  padding: 0 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.copia-cola-input-group button:hover {
  background: var(--accent);
}

.pix-instructions {
  width: 100%;
  max-width: 480px;
  text-align: left;
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.pix-instructions h4 {
  font-size: 0.9rem;
  color: var(--brand-secondary);
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pix-instructions ol {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.6;
}

.pix-instructions li {
  margin-bottom: 8px;
}

.already-paid-btn {
  width: 100%;
  max-width: 320px;
  padding: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* RESPONSIVE CHECKOUT */
@media (max-width: 992px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .sticky-card {
    position: static;
  }
}

/* --- Footer --- */
.site-footer {
  background: #020b36;
  color: var(--white);
  padding: 60px 0 20px;
  font-size: 0.85rem;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col strong {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary);
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

.footer-logo {
  height: 44px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.footer-brand-col p {
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.footer-social-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-col p {
  color: rgba(255,255,255,0.8);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--brand-primary);
  padding-left: 4px;
}

.payment-methods-img {
  width: 100%;
  height: 48px;
  background-image: url("assets/payment-methods-new.webp");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* --- Policies Page Specific Styles --- */
.policy-page {
  line-height: 1.8;
}

.policy-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-secondary);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-page-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-grid;
  }
  
  .main-nav {
    display: none; /* Mobile menu toggled by class */
  }
  
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #020b36;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .about-more-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .collection-grid a {
    flex: 0 0 calc(33.3% - 10px);
    min-width: 110px;
    padding: 10px;
    gap: 8px;
  }
  
  .collection-grid img {
    width: 50px;
    height: 50px;
  }

  .collection-carousel {
    padding: 0 30px;
  }
  
  .reviews-dashboard {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .reviews-summary-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 20px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 480px) {
  .header-main {
    padding: 10px;
  }
  
  .brand img {
    height: 32px;
  }
  
  .product-card-info {
    padding: 10px;
  }
  
  .product-card-title {
    font-size: 0.85rem;
    height: 34px;
  }
  
  .product-card-pricing .new-price {
    font-size: 1rem;
  }
  
  .collection-grid a {
    flex: 0 0 calc(50% - 10px);
  }
}
