/* Basic styling for the CozyCase store */
:root {
  --background: #f8f7f4;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #555;
  --primary: #2ce8d2;
  --primary-2: #1b4ddf;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --max-width:550
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100%, var(--max-width));
  padding: 0 1.25rem;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(68, 4, 50);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-row .cart-container {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-row {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  min-height: auto;
  gap: 1rem;
}

.brand {
  position: static;
  transform: none;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-size: 2.0rem;
  color: #ffffff;
  font-family: "Dancing Script", cursive;
  flex-basis: 100%;
  text-align: center;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  background: transparent;
  transition: transform 0.15s ease, background 0.15s ease, border 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.button--primary:hover {
  background: var(--primary-2);
}

.button--large {
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
}

.search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.search-input {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  width: min(180px, 100%);
  display: none;
}

.search-container.active .search-input {
  display: block;
}

.search-button {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  transform: scale(1.1);
}

.search-button:active {
  transform: scale(0.95);
}

.search-wrapper {
  position: relative;
}

.search-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
  min-width: 150px;
}

.search-wrapper:hover .search-options {
  display: block;
}

.search-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease;
}

.search-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hero {
  padding: 7rem 0 25rem;
  text-align: center;
  background-image: url("fotos/Mamita4.jpg");
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}


.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  margin: 0;
  position: relative;
  z-index: 2;
  color:#000000;
}

.hero p {
  margin: 1rem auto 2rem;
  max-width: 620px;
  color: var(--muted);
  position: relative;
  z-index: 2;
  color: #000000;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.7);
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.section-hero-text {
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.section-subtitle {
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.card__media {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(44, 110, 232, 0.2), rgba(56, 56, 56, 0.08));
}

.card__body {
  padding: 1.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
}

.card__title {
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}

.card__description {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card__body ul {
  text-align: left;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item__info {
  font-size: 0.95rem;
}

.cart-item__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-item__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-item__button {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-weight: 700;
}

.cart-item__button:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cart-summary {
  margin-top: 1rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-weight: 600;
}

.cart-summary__actions {
  margin-top: 1rem;
}

.cart-empty {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.site-footer {
  padding: 2.5rem 0;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  z-index: 30;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal__body {
  padding: 1.25rem;
}

@media (max-width: 500px) {
  .nav {
    display: none;
  }

  .header-row {
    justify-content: space-between;
  }

  .hero {
    padding: 5rem 0 4rem;
  }
}
.nav a {
    color:#ffffff; /* #2c6ee8; */
}

/* Interior Gallery Styles */
.interior-preview {
  text-align: center;
}

.interior-gallery {
  margin: 2rem 0;
  overflow: hidden;
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Product Detail Styles */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.thumbnail:hover {
  border-color: var(--primary);
}

.product-info h1 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
}

.product-info .description {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.product-info .price {
  font-size: 1.5rem;
  margin: 0 0 2rem 0;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.gallery-scroll img {
  flex: 0 0 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-scroll img:hover {
  transform: scale(1.05);
}

.interior-cta {
  margin-top: 2rem;
}

/* Interior Page Gallery */
.interior-showcase {
  margin: 3rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}