:root {
  color-scheme: dark;
  font-family: 'Inter', sans-serif;
  --bg-dark: #0a1f44;
  --bg-mid: #0a2f5e;
  --bg-accent: #0ea5e9;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-15: rgba(255,255,255,0.15);
  --white-20: rgba(255,255,255,0.2);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#categorias {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top center, rgba(14, 165, 233, 0.12) 0%, transparent 38%),
    linear-gradient(180deg, var(--bg-dark) 0%, #0a2b66 22%, #0ea5e9 100%);
  background-attachment: fixed;
  color: white;
}

@media (max-width: 768px) {
  #categorias {
    scroll-margin-top: 60px;
  }
}

img {
  display: block;
  max-width: 100%;
}

.page {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
  flex: 1;
}

footer .page {
  padding: 0;
}

header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: visible;
}

.login-page header {
  min-height: auto;
}

.login-page .header-inner {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.login-page .header-actions {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  overflow: visible;
  margin-bottom: 40px;
  background: none;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

.header-inner::before,
.header-inner::after {
  content: none;
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    margin-bottom: 20px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-size: 24px;
  white-space: nowrap;
  flex-shrink: 0;
  color: white;
  text-decoration: none;
}

.brand img {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .brand {
    font-size: 18px;
    gap: 10px;
  }
  
  .brand img {
    width: 36px !important;
    height: 36px !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  overflow: visible;
}



.search {
  flex: 1 1 300px;
  max-width: 448px;
  position: relative;
  min-height: 42px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 10px 16px 10px 44px;
  color: rgba(255,255,255,0.8);
  min-width: 0;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 448px;
  z-index: 1000;
  overflow: visible;
}

@media (max-width: 1024px) {
  .search {
    flex: 1 1 200px;
    max-width: 300px;
    min-height: 38px;
    padding: 8px 14px 8px 38px;
  }
}

@media (max-width: 768px) {
  .search {
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: width 0.24s ease, max-width 0.24s ease, padding 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
  }

  .search-container {
    max-width: 44px;
    transition: flex-basis 0.24s ease, max-width 0.24s ease;
  }

  .header-actions.search-expanded {
    gap: 0;
  }

  .header-actions.search-expanded .icon-button {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    width: 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
  }

  .search-container.is-expanded {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .search.is-expanded {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 10px 44px 10px 38px;
    place-items: initial;
  }
}

.search-close-btn {
  display: none;
}

@media (max-width: 768px) {
  .search-close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .search.is-expanded .search-close-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.search::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url('https://www.figma.com/api/mcp/asset/989d92dd-2c65-4d0f-ba00-a2200ab6a3b5');
  background-size: contain;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .search::before {
    width: 18px;
    height: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.24s ease, transform 0.24s ease;
  }

  .search.is-expanded::before {
    left: 14px;
    transform: translateY(-50%);
  }
}

.search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.4;
}

.sugerencias,
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.sugerencias.activo,
.search-suggestions.activo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sugerencia-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  background: #ffffff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sugerencia-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sugerencia-item span {
  font-size: 14px;
  color: #333333;
}

.sugerencia-item:hover {
  background: #f5f7fa;
}

.sugerencia-empty {
  color: #6b7280;
  cursor: default;
}

.sugerencia-empty:hover {
  background: #ffffff;
}

@media (max-width: 768px) {
  .search input {
    opacity: 0;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, font-size 0.2s ease;
  }

  .search input::placeholder {
    color: transparent;
  }

  .search.is-expanded input {
    opacity: 1;
    font-size: 14px;
    line-height: 1.4;
    cursor: text;
    padding-right: 30px;
  }

  .search.is-expanded input::placeholder {
    color: rgba(255,255,255,0.7);
  }
}

.icon-button {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 80px rgba(138, 149, 158, 0.16);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .icon-button img {
    width: 20px !important;
    height: 20px !important;
  }
}

.icon-button:hover {
  transform: translateY(-2px);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 664px;
  gap: 100px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0px 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 540px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-copy h1 .accent {
  color: var(--bg-accent);
  display: block;
}

.hero-copy p {
  margin: 0;
  color: var(--white-80);
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 504px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
  min-height: 58px;
  padding: 0 28px;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--bg-accent);
  color: white;
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
}

.btn-primary svg {
  margin-left: 12px;
  width: 16px;
  height: 16px;
  fill: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.hero-image {
  width: 100%;
  max-width: 664px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  min-height: 560px;
  aspect-ratio: 664 / 996;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-title {
  margin: 100px auto 40px;
  text-align: center;
  font-size: clamp(2rem, 2.5vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 0 auto 100px;
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  padding: 0 20px;
}

.category-grid .category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #111c34;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  aspect-ratio: 4/5;
  flex: 0 1 350px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 36%, rgba(0,0,0,0.22) 58%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}

.category-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.category-content h3 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 800;
  color: white;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.category-content a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.category-content .category-cta {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.category-content a::after {
  content: '›';
  font-size: 1.1rem;
  line-height: 0;
}

.category-content .category-cta::after {
  content: '›';
  font-size: 1.1rem;
  line-height: 0;
}

.categoria-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.categoria-card:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.footer {
  width: 100%;
  background: #0a1f44;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 64px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-column h4,
.footer-column p,
.footer-column a,
.footer-column span {
  margin: 0;
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-links a {
  color: var(--white-70);
  text-decoration: none;
  margin-left: 16px;
}

.footer-row {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

@media (max-width: 1120px) {
  .hero {
    padding-top: 40px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    margin: 0 auto;
  }

  .category-grid .category-card {
    flex: 0 1 320px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: 32px;
  }

  .hero-copy {
    gap: 28px;
  }

  .category-grid {
    gap: 20px;
  }

  .category-grid .category-card {
    flex: 0 1 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 32px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Login Section Styles */
 .login-section {
    padding: 28px 0 60px;
  display: flex;
  justify-content: center;
  width: 100%;
}

 .login-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}


.login-form {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  max-width: 520px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.login-header p {
  color: #6a7282;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.login-form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #364153;
  margin: 0;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  height: 52px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  color: rgba(10, 10, 10, 0.5);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-wrapper input:focus {
  border-color: var(--bg-accent);
}

.input-wrapper input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.input-icon {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  color: rgba(10, 10, 10, 0.5);
  pointer-events: none;
}

.input-icon-password {
  right: 52px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: rgba(10, 10, 10, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-toggle:hover {
  color: var(--bg-accent);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.forgot-password {
  color: var(--bg-accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 48px;
  background: var(--bg-accent);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
}

.login-btn:hover {
  transform: translateY(-2px);
}

.login-btn svg {
  width: 20px;
  height: 20px;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0;
  color: #99a1af;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-divider span {
  margin: 0 12px;
  white-space: nowrap;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #f3f4f6;
  color: #364153;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--bg-accent);
  background: rgba(14, 165, 233, 0.05);
  color: var(--bg-accent);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn-google svg {
  width: 18px;
  height: 18px;
}

.login-footer {
  text-align: center;
}

.login-footer p {
  margin: 0 0 16px 0;
  color: #6a7282;
  font-size: 14px;
}

.create-account {
  color: var(--bg-accent);
  text-decoration: none;
  font-weight: 700;
}

.create-account:hover {
  text-decoration: underline;
}

.back-to-store {
  display: inline-block;
  color: #99a1af;
  text-decoration: none;
  font-size: 14px;
  margin-top: 16px;
}

.back-to-store:hover {
  color: var(--bg-accent);
}

/* Catalog cards layout tuning */
.product-grid,
main > section > div[style*="flex: 1 1 760px"] > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

main section > div > div > article.login-form[data-category] > div > h3,
.catalog-page .product-card > div > h3 {
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.35em * 2);
}

@media (max-width: 1024px) {
  .product-grid,
  main > section > div[style*="flex: 1 1 760px"] > div {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid,
  main > section > div[style*="flex: 1 1 760px"] > div {
    grid-template-columns: repeat(2, 1fr);
  }

  main section > div > div > article.login-form[data-category] > div > h3,
  .catalog-page .product-card > div > h3 {
    min-height: calc(1.35em * 2);
  }
}

@media (max-width: 480px) {
  .product-grid,
  main > section > div[style*="flex: 1 1 760px"] > div {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design for Login */
@media (max-width: 1120px) {
  .login-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 640px;
    width: 100%;
    padding: 0 24px;
  }

  .login-form {
    order: 1;
    padding: 40px;
  }
}

@media (max-width: 820px) {
  .login-section {
    padding: 24px 0 40px;
  }

  .login-container {
    margin: 0 auto;
    padding: 0 24px;
    gap: 32px;
  }

  .login-form {
    padding: 32px;
  }

  .login-header {
    margin-bottom: 32px;
  }

  .login-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .login-section {
    padding: 20px 0 32px;
  }

  .login-container {
    margin: 0 auto;
    padding: 0 16px;
  }

  .login-form {
    padding: 24px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .social-login {
    gap: 12px;
  }

  .social-btn {
    height: 44px;
    font-size: 13px;
  }
}

/* Product Detail Page */
.product-page header {
  min-height: auto;
}

.product-detail-main {
  padding: 8px 0 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--white-90);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-link:hover {
  transform: translateX(-2px);
  opacity: 0.9;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.product-image-wrap {
  width: 100%;
  margin-top: 18px;
}

.product-image-frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #e7e7e7;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 8px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-stars {
  color: #facc15;
  letter-spacing: 1px;
  font-size: 18px;
}

.product-reviews {
  color: var(--white-80);
  font-size: 14px;
}

.product-price {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
}

.product-label {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  min-width: 56px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #ffffff;
  color: #101828;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.size-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.size-pill.is-active {
  background: #d8f0ff;
  border-color: #0ea5e9;
}

.product-quantity-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 10px;
  background: #ffffff;
  border-radius: 16px;
}

.quantity-selector {
  width: fit-content;
  flex: 0 0 auto;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: #f3f3f3;
  color: #242424;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quantity-btn:hover {
  background: #e2e8f0;
}

.quantity-value {
  min-width: 24px;
  color: #242424;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
}

.product-total {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 800;
}

.add-to-cart-btn {
  width: min(100%, 470px);
  min-height: 86px;
  border: 0;
  border-radius: 100px;
  background: var(--bg-accent);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
  color: white;
  font-family: inherit;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-to-cart-btn svg {
  width: 22px;
  height: 34px;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 42px rgba(14, 165, 233, 0.32);
}

@media (max-width: 1180px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-image-wrap {
    margin-top: 0;
  }

  .product-image-wrap {
    max-width: 740px;
    margin: 0 auto;
  }

  .product-info {
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .product-detail-main {
    padding-bottom: 64px;
  }

  .product-info {
    align-items: center;
    text-align: center;
  }

  .product-rating {
    justify-content: center;
  }

  .size-options {
    justify-content: center;
  }

  .product-quantity-block {
    align-items: center;
  }

  .add-to-cart-btn {
    width: 100%;
    max-width: 470px;
  }
}

@media (max-width: 520px) {
  .product-detail {
    gap: 28px;
  }

  .size-pill {
    min-width: 50px;
    height: 40px;
    font-size: 16px;
  }

  .quantity-control {
    height: 52px;
  }

  .add-to-cart-btn {
    min-height: 72px;
    font-size: 1.5rem;
    gap: 14px;
  }

  .add-to-cart-btn svg {
    width: 18px;
    height: 28px;
  }
}

/* Catalog to product link overlay */
article.login-form[data-product-id] {
  position: relative;
}

.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

article.login-form[data-product-id] button[aria-label*="favoritos"] {
  position: relative;
  z-index: 2;
}

/* Catalog layout improvements */
.catalog-page .page {
  width: min(1600px, calc(100% - 24px));
}

@media (max-width: 1024px) {
  .catalog-page .page {
    width: min(1440px, calc(100% - 24px));
  }
}

@media (max-width: 768px) {
  .catalog-page .page {
    width: min(1440px, calc(100% - 32px));
  }
}

.catalog-page main > section > div[style*="flex: 1 1 760px"] > div {
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-stars {
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
  color: #e5e7eb;
}

.catalog-stars::before {
  content: "⭐⭐⭐⭐⭐";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--star-fill, 0%);
  overflow: hidden;
}

.catalog-rating-text {
  color: #4a5565;
  font-size: 14px;
}

.no-results {
  margin: 24px 0 0;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Cart Page */
.cart-page header {
  min-height: auto;
}

.cart-page .page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.cart-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.cart-content {
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cart-page .footer {
  margin-top: auto;
}

.cart-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--white-90);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.cart-back-link:hover {
  opacity: 0.78;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 24px;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-item-image-wrap {
  width: 96px;
  height: 96px;
  background: #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-category {
  margin: 0;
  color: var(--bg-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.cart-item-name {
  margin: 0;
  color: #0a0a0a;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.cart-item-price,
.cart-item-size {
  margin: 0;
  color: #0a1f44;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.cart-quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: #e5e7eb;
  color: #242424;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-qty-btn:hover {
  background: #d1d5db;
}

.cart-qty-value {
  min-width: 18px;
  color: #0a0a0a;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.cart-remove-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: rgba(239, 68, 68, 0.75);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 44px;
}

.cart-total-label,
.cart-total-value {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 700;
}

.cart-checkout-btn {
  width: min(60%, 380px);
  margin: 0 auto;
  display: block;
  padding: 12px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.34);
}

.cart-clear-btn {
  align-self: center;
  min-width: 220px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-90);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-clear-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cart-empty {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.cart-empty h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.cart-empty p {
  margin: 0 0 20px;
  color: #364153;
}

.cart-empty a {
  display: inline-flex;
  text-decoration: none;
  font-weight: 700;
  color: var(--bg-accent);
}

@media (max-width: 920px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 18px;
  }

  .cart-item-image-wrap {
    width: 80px;
    height: 80px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    align-items: center;
  }

  .cart-item-name {
    font-size: 20px;
  }

  .cart-item-price,
  .cart-item-size {
    font-size: 17px;
  }

  .cart-summary {
    margin-top: 20px;
  }

  .cart-checkout-btn {
    width: min(80%, 420px);
    padding: 12px 22px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .cart-main {
    align-items: flex-start;
    padding-top: 20px;
  }

  .cart-content {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cart-content {
    gap: 24px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cart-item-image-wrap {
    width: 100%;
    height: 180px;
  }

  .cart-item-actions {
    width: 100%;
  }

  .cart-summary {
    margin-top: 12px;
  }

  .cart-checkout-btn {
    width: 100%;
    max-width: 420px;
  }

  .cart-clear-btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .catalog-page main > section > div[style*="flex: 1 1 760px"] > div {
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .catalog-page main > section > div[style*="flex: 1 1 760px"] > div {
    gap: 18px;
  }
}

/* Checkout Page */
.checkout-page header {
  min-height: auto;
}

.checkout-main {
  padding: 12px 0 42px;
}

.checkout-main .back-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0 0 20px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.checkout-main .back-link:hover {
  color: #ffffff;
  opacity: 1;
  transform: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.checkout-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 24px;
  color: #0a0a0a;
}

.checkout-title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 800;
  color: #0a1f44;
}

.checkout-subtitle {
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #0a1f44;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-group label {
  font-size: 14px;
  font-weight: 600;
  color: #364153;
}

.checkout-group input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f3f4f6;
  padding: 0 14px;
  font-size: 15px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-group input:focus {
  border-color: #0ea5e9;
  background: #ffffff;
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-buy-btn,
.checkout-confirm-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  min-height: 52px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.checkout-buy-btn {
  background: #f8fafc;
  color: #0a1f44;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.checkout-buy-btn:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}

.checkout-save-feedback {
  margin: 4px 2px 0;
  min-height: 18px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
}

.checkout-confirm-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 26px rgba(14, 165, 233, 0.24);
}

.checkout-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(14, 165, 233, 0.32);
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
}

.checkout-item-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-item-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
}

.checkout-item-size,
.checkout-item-qty {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.checkout-item-price {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0a1f44;
}

.checkout-totals {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.checkout-totals p {
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #111827;
}

.checkout-totals p:last-child {
  margin-bottom: 0;
}

.checkout-total-line {
  font-size: 18px;
  font-weight: 800;
  color: #0a1f44;
}

.checkout-payment-methods {
  margin-top: 20px;
}

.checkout-payment-methods h3 {
  margin: 0 0 10px;
  color: #0a1f44;
  font-size: 16px;
  font-weight: 700;
}

.checkout-payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-payment-icons span {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.checkout-secure-box {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 13px;
  font-weight: 700;
}

.checkout-confirm-btn {
  margin-top: 18px;
}

.checkout-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.checkout-empty h3 {
  margin: 0 0 8px;
  color: #0a1f44;
}

.checkout-empty p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
}

.checkout-empty a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .checkout-main {
    padding-bottom: 24px;
  }

  .checkout-card {
    padding: 18px;
  }

  .checkout-title {
    font-size: 24px;
  }

  .checkout-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Catalog filter redesign */
.catalog-main {
  padding: 0 0 96px;
}

.catalog-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.filters-sidebar {
  flex: 0 0 286px;
  width: 286px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.filters-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
}

.filters-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-subtitle {
  margin: 0 0 4px;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-option:hover {
  background: #eef2ff;
}

.filter-option input[type='checkbox'] {
  accent-color: #0ea5e9;
  width: 16px;
  height: 16px;
  margin: 0;
}

.price-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-range-value {
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-slider {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0%, #0ea5e9 0%, #0ea5e9 100%, #cbd5e1 100%);
}

.price-slider input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
}

.price-slider input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.price-slider input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.price-slider input[type='range']::-webkit-slider-thumb:hover,
.price-slider input[type='range']::-moz-range-thumb:hover {
  transform: scale(1.08);
}

.clear-filters-btn {
  border: none;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 16px;
  background: #0ea5e9;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.clear-filters-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.32);
}

.catalog-products-wrap {
  flex: 1 1 760px;
  min-width: 280px;
}

.catalog-page .product-grid {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-page .product-card {
  width: 100%;
  max-width: none;
}

@media (max-width: 1180px) {
  .filters-sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .catalog-page .product-grid {
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-main {
    padding-bottom: 72px;
  }

  .catalog-layout {
    gap: 18px;
  }

  .filters-sidebar {
    padding: 18px;
    gap: 16px;
  }

  .catalog-page .product-grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .catalog-page .product-grid {
    grid-template-columns: 1fr;
  }
}
