:root{
  --radius: 10px; /* 🔥 tirando a cuadrado */
}

body{
  margin:0;
  font-family:Arial;
  background:#fff;
  padding-top:110px;

}

/* HEADER */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:75px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  background:#151515;
  z-index:1000;
  transition:all 0.3s ease;
}



header img{
  height:55px;
  transition:0.3s;
}



.search{
  padding:10px 15px;
  width:300px;
  border:1px solid #ddd;
  border-radius:var(--radius);
  outline:none;
}

.cart-btn{
  position:absolute;
  right:30px;
  cursor:pointer;
  background:white;
  color:#8B1020;
  padding:10px 15px;
  font-weight:bold;
  border-radius:var(--radius);
}

/* NAVBAR */
.top-nav{
  position: fixed;
  top: 74px;
  left: 0;
  width:100%;
  background:#151515;
  display:flex;
  justify-content:center;
  gap:40px;
  padding:10px 0;
  z-index:999;
}

.top-nav a{
  color:white;
  text-decoration:none;
  font-weight:bold;
  position:relative;
  padding:5px 0;
}

.top-nav a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:white;
  transition:0.3s;
}

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

/* BANNER */
.banner{
  width:92%;
  max-width:1300px;
  height:350px;
  margin:20px auto;
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.slides{
  display:flex;
  height:100%;
}

.slide{
  min-width:100%;
  position:relative;
}

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

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
  display:flex;
  justify-content:center;
  align-items:center;
  color:white;
  pointer-events: none;
}

/* LAYOUT */
.layout{
  max-width:1300px;
  width:92%;
  margin:auto;
  padding:20px;

  display:grid;
  grid-template-columns:250px 1fr;
  gap:30px;
}

.sidebar{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;

  position:sticky;
  top:160px;

  height:fit-content;
}

.sidebar button{
  width:100%;
  text-align:left;

  padding:14px 16px;

  border:none;
  border-radius:8px;

  background:#f5f5f5;

  cursor:pointer;
  transition:.2s;
}

.sidebar button:hover{
  background:#e8e8e8;
}

.sidebar button.active{
  background:#151515;
  color:white;
}
.filters-title {
  margin: 0 0 10px;
  color: #151515;
  font-size: 1.1rem;
}

.category-select {
  display: none;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  background: white;
  font-weight: bold;
  color: #151515;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%231F3B32' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5 8 12l6.5-6.5' stroke='%231F3B32' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;

  padding-right: 40px;
}

.category-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-dropdown {
  display: none;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 15px;
  position: relative;
}

.category-dropdown-btn {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #151515;
  border-radius: var(--radius);
  background: white;
  color: #151515;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.category-dropdown-menu {
  display: none;
  margin-top: 8px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid #eee;
}

.category-dropdown.open .category-dropdown-menu {
  display: block;
}

.category-dropdown-menu button {
  width: 100%;
  padding: 13px 16px;
  border: none;
  background: white;
  color: #151515;
  text-align: left;
  font-weight: bold;
  cursor: pointer;
}

.category-dropdown-menu button:hover,
.category-dropdown-menu button.active {
  background: #151515;
  color: white;
}
/* PRODUCTS */
.products{
  flex:1;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:20px;
}

.product-img{
  width:100%;
  height:140px;
  object-fit:contain;
  background:#ffffff;
  border-radius:var(--radius);
  margin-bottom:10px;
  transition: transform .25s ease;
}

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

.card{
  border:1px solid #ffffff;
  padding:12px;
  border-radius:var(--radius);
  background:#ffffff;
  transition:0.2s;
  cursor:pointer;

  display:flex;
  flex-direction:column;
}


.card:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.card h3{
  font-size:16px;
  margin:5px 0;
  min-height:44px;
  line-height:22px;
}

.add.added{
  background:#C97A56;
  color:white;
}

.price{
  font-weight:bold;
  margin:10px 0;
  color:#151515;
}

.add{
  padding:8px 16px;

  width:auto;
  min-width:120px;

  margin-top:auto;
  align-self:center;

  border:none;
  border-radius:10px;

  background:#151515;
  color:#fff;

  font-size:13px;
  font-weight:600;

  cursor:pointer;
  transition:.2s;
}

.add:hover{
  background:#2e5a4c;
  transform:translateY(-1px);
}

.add.added{
  background:#8B1020;
  color:white;
}

/* CART */
.cart{
  position:fixed;
  top:0;
  right:0;
  width:320px;
  height:100%;
  background:#fff;
  transform:translateX(100%);
  transition:.3s;
  padding:15px;
  z-index:2000;
}

.cart.open{
  transform:translateX(0);
}




/* ========================= */
/* 🖥️ DESKTOP GRANDE (1200px+) */
/* ========================= */
@media (min-width:1201px){

  .layout{
    max-width:1300px;
    width:92%;
  }

  .banner{
    max-width:1300px;
    width:92%;
  }

  .products{
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  }
}


/* ========================= */
/* 🖥️ ULTRA WIDE (1600px+) */
/* ========================= */
@media (min-width:1600px){

  .layout,
  .banner{
    max-width:1400px; /* 🔥 no se estira infinito */
  }
}

/* ========================= */
/* 🆕 USER STATUS (HEADER)    */
/* ========================= */
.user-status {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-logout {
    padding: 8px 15px;
    border-radius: var(--radius);
    border: 1px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-login:hover {
    background: white;
    color: #151515;
}

.btn-logout {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.btn-logout:hover {
    background: #ff4d4d;
    color: white;
}

/* ========================= */
/* 🆕 MODAL DE LOGIN          */
/* ========================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 3000; /* Por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #151515;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    box-sizing: border-box; /* Evita que el input se salga del modal */
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #151515;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #2e5a4c;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}



.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #888;
    transition: 0.3s;
}

.tab-btn.active {
    color: #151515;
    border-bottom: 2px solid #151515;
}

.auth-form h3 {
    margin-top: 0;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #151515;
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 99999;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.25s ease;
  max-width: 320px;
  font-weight: bold;
}

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

.toast.error {
  background: #b3261e;
}

.toast.success {
  background: #151515;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-top: 10px;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;

  width: 100%;        /* 🔥 CLAVE */
  box-sizing: border-box;
}

.pay-option:hover {
  border-color: #151515;
}

.pay-option input {
  transform: scale(1.3);
}

.payment-methods {
  display: flex;
  flex-direction: column;   
  align-items: stretch;     
}

.payment-methods label {
  width: 100%;             
}
.payment-methods strong {
  margin-bottom: 8px;
  display: block;
}

.address-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: white;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  cursor: pointer;
  box-sizing: border-box;
}

.address-option input {
  margin-top: 4px;
  transform: scale(1.2);
}

.address-option:has(input:checked) {
  border-color: #151515;
  background: #eef4f1;
}

.shipping-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-top: 8px;
  background: white;
  border-radius: var(--radius);
  border: 2px solid #ddd;
  cursor: pointer;
}

.shipping-option:has(input:checked) {
  border-color: #151515;
  background: #eef4f1;
}

/* LOADER GLOBAL */
.loader {
  border: 4px solid #eee;
  border-top: 4px solid #151515;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.hamburger-btn {
  display: none;
}
.top-row {
  display: contents;
}
/* TABLET Y PC: mantener categorías en la barra lateral */
@media (min-width:769px) and (max-width:1200px){
  .layout{
    display:grid;
    grid-template-columns:220px minmax(0, 1fr);
    gap:20px;
  }

  .category-select {
    display:none;
  }

  .category-buttons {
    display:flex;
    flex-direction:column;
  }

  .sidebar{
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    justify-content:flex-start;
    position:sticky;
    top:160px;
  }

  .sidebar button{
    width:100%;
    text-align:left;
  }
}
/* CELULAR */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }
  .category-select {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 15px;

    padding: 12px 16px;

    border: 2px solid #151515;
    border-radius: 8px;

    background: white;
    color: #151515;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
  }
  .sidebar h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #151515;
  }
  .category-buttons {
    display: none;
  }
  header {
    height: auto;
    min-height: 95px;
    padding: 12px 10px 8px 10px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "search"
      "actions";
    gap: 8px;
    box-sizing: border-box;
  }

  header a {
    grid-area: logo;
    text-align: center;
  }

  header img {
    height: 50px;
  }

  .search-row {
    grid-area: search;
    display: grid;
    grid-template-columns: 40px 1fr 44px;
    gap: 8px;
    align-items: center;
  }

  .search {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cart-btn {
    position: static;
    width: 44px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
    background:white;
    color:#8B1020;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-btn span {
    font-size: 11px;
    margin-left: 2px;
  }

  .actions-row {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
  }

  .hamburger-btn {
    display: flex;
    height: 40px;
    width: 40px;
    border: none;
    border-radius: var(--radius);
    background: #151515;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .top-row {
    grid-area: logo;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .top-row a {
    flex: 1;
    text-align: center;
  }
  .user-status,
  #user-status {
    width: 100%;
    display: none;
    justify-content: center;
    min-width: 0;
  }

  .btn-login,
  .btn-logout {
    width: 100%;
    height: 40px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .user-info {
    width: 100%;
    gap: 6px;
  }

  .user-info span {
    display: none;
    font-size: 11px;
    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .user-status{
    display:none;
  }
  .top-row a {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
  }
  .top-nav {
    display: none;
    position: fixed;
    top: 88px;
    left: 10px;
    width: 185px;
    z-index: 2000;
    background: #151515;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.635);
    border-top-left-radius: 0;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 11px 12px;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-align: left;
    font-size: 14px;
  }

  .top-nav a:last-child {
    border-bottom: none;
  }

  .banner {
    margin-top: 10px;
    height: 200px;
    width: 95%;
  }

  .layout {
    width: 95%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .sidebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    position: static;
    width: 100%;
    padding-bottom: 8px;
  }

  .sidebar button {
    width: auto;
    white-space: nowrap;
    text-align: center;
    padding: 10px 14px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-img {
    height: 120px;
    transition: transform .25s ease;
  }
  .card h3{
    min-height:48px;
    line-height:24px;

  }

  .card:hover .product-img {
      transform: scale(1.05);
  }
    .btn-logout {
      width: auto;        
      padding: 6px 10px;  
      font-size: 11px;
      height: auto;
    }

  .modal {
    padding: 150px 12px 20px;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .modal-content {
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
  }
  
  .footer {
      background: #151515;
      color: white;
      padding: 30px 20px;
      margin-top: 50px;
  }

  .footer-container {
      max-width: 1200px;
      margin: auto;
      text-align: center;
  }

  .footer-links {
      margin-top: 10px;
  }

  .footer-links a {
      color: white;
      text-decoration: none;
      margin: 0 10px;
  }

  .footer-links a:hover {
      text-decoration: underline;
  }

  
  
  
}

#scrollTopBtn {
  position: fixed;
  right: 25px;
  bottom: 25px;

  width: 55px;
  height: 55px;

  background: #346d5b;
  color: #fff;

  border: none;
  border-radius: 50%;

  font-size: 28px;
  font-weight: bold;

  cursor: pointer;

  z-index: 999999;

  display: none;

  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

#scrollTopBtn.show {
  display: block;
}

#scrollTopBtn:hover {
  background: #40826d;
  transform: translateY(-2px);
}
.load-more-btn{
  background:#C97A56;

  color:white;

  border:none;
  border-radius:8px;

  padding:10px 22px;

  min-width:180px;

  font-size:14px;
  font-weight:600;

  cursor:pointer;

  transition:.2s;
}

.load-more-btn:hover{
  background:#B66B49;
  transform:translateY(-1px);
}
@media (min-width: 769px) {
  #mobile-login-link,
  #mobile-logout-link,
  #mobile-profile-link {
    display: none !important;
  }
}

/* RECOMENDACIONES POR CATEGORÍA */
.recommendations-home{
  width:92%;
  max-width:1300px;
  margin:35px auto 60px;
}
.recommendations-header{
  margin-bottom:22px;
}
.recommendations-header h2{
  margin:0 0 6px;
  color:#151515;
  font-size:1.8rem;
}
.recommendations-header p{
  margin:0;
  color:#666;
}
.recommendation-section{
  margin:30px 0;
}
.recommendation-section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:14px;
}
.recommendation-section-title h3{
  margin:0;
  color:#151515;
  font-size:1.35rem;
}
.recommendation-see-all{
  border:0;
  background:none;
  color:#151515;
  font-weight:bold;
  cursor:pointer;
  text-decoration:underline;
}
.recommendation-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.recommendation-grid .card{
  min-width:0;
}
@media(max-width:950px){
  .recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
  .recommendations-home{width:94%;}
  .recommendation-grid{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:10px;
  }
  .recommendation-grid .card{
    min-width:78%;
    scroll-snap-align:start;
  }
}


/* === IDENTIDAD 1000DIABLOS === */
:root{--brand:#151515;--brand-accent:#8B1020;--brand-paper:#F5F1ED;--brand-muted:#746A64}
body{font-family:Inter,Arial,sans-serif;background:#FAF9F7;color:#151515}
header,.top-nav,.footer{background:var(--brand)}
.brand-wordmark{display:inline-block;color:#fff;font-size:1.55rem;font-weight:900;letter-spacing:.08em;line-height:1}
.brand-wordmark span{color:#D7283D}
header a{text-decoration:none}
.cart-btn{color:var(--brand-accent)}
.fashion-hero{width:92%;max-width:1300px;min-height:430px;margin:24px auto 8px;display:grid;grid-template-columns:1.1fr .9fr;background:var(--brand);color:#fff;overflow:hidden;position:relative}
.fashion-hero__content{padding:72px clamp(28px,7vw,95px);z-index:1}
.fashion-hero__eyebrow{font-size:.78rem;letter-spacing:.24em;font-weight:800;color:#E5A7AF}
.fashion-hero h1{font-family:Georgia,serif;font-size:clamp(2.8rem,6vw,5.8rem);line-height:.95;margin:20px 0;max-width:680px}
.fashion-hero__content>p:not(.fashion-hero__eyebrow){font-size:1.15rem;color:#D7D1CD}
.hero-cta{display:inline-block;margin-top:25px;padding:14px 24px;background:#fff;color:#151515;text-decoration:none;font-weight:900;letter-spacing:.08em}
.fashion-hero__art{display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(circle at 50% 40%,#A51628 0,#570812 38%,#190205 75%);transform:skewX(-7deg);margin-right:-50px}
.fashion-hero__art span,.fashion-hero__art strong{transform:skewX(7deg)}
.fashion-hero__art span{font-family:Georgia,serif;font-size:clamp(5rem,11vw,10rem);line-height:.75;color:rgba(255,255,255,.12)}
.fashion-hero__art strong{font-size:clamp(1.4rem,3vw,3rem);letter-spacing:.28em;margin-top:20px}
.product-card,.product-detail-info,.cart-table,.cart-summary,.account-section,.account-hero{border-radius:2px!important}
.btn-primary,.load-more-btn{background:var(--brand)!important;border-radius:2px!important}
@media(max-width:760px){.fashion-hero{grid-template-columns:1fr;min-height:520px}.fashion-hero__content{padding:48px 28px}.fashion-hero__art{min-height:190px;margin:0;transform:none}.fashion-hero__art span,.fashion-hero__art strong{transform:none}}
