/* === TIENDA PUNK STYLES === */
.tienda-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.tienda-header h1 {
  font-family: 'Rubik Glitch', sans-serif;
  font-size: 3rem;
  color: #e60000;
  margin-bottom: 1rem;
}

.tienda-header p {
  color: #aaa;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filters */
.tienda-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.filter-btn {
  background: #333;
  color: white;
  border: 2px solid transparent;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Rubik Mono One', sans-serif;
  transition: all 0.3s;
  text-transform: uppercase;
}

.filter-btn.active {
  background: #e60000;
  border-color: #fff;
}

.filter-btn:hover {
  background: #555;
}

@media (max-width: 768px) {
  .tienda-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .tienda-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
}

/* Products Bento Grid */
.tienda-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-auto-rows: minmax(200px, auto);
}

.product-card {
  background: #111;
  border: 2px solid #e60000;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  grid-column: span 1;
}

.product-card:hover {
  box-shadow: 8px 8px 0px #e60000;
  transform: translate(-3px, -3px);
}

.product-card.destacado {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .tienda-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card.destacado {
    grid-column: span 2;
    grid-row: span 1; /* Less tall on medium screens */
  }
}

@media (max-width: 600px) {
  .tienda-bento-grid {
    grid-template-columns: 1fr;
  }
  .product-card.destacado {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.product-image-container {
  width: 100%;
  height: 150px;
  background: #000;
  margin-bottom: 1rem;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-card.destacado .product-image-container {
  height: 250px;
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1.2;
}

.product-price {
  font-size: 1.3rem;
  color: #e60000;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-stock {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.8rem;
}

.product-stock.out-of-stock {
  color: #e60000;
  font-weight: bold;
}

.product-description {
  color: #ccc;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Selectors */
.product-options {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.option-group label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-select {
  background: #000;
  color: #fff;
  border: 1px solid #444;
  padding: 0.6rem;
  border-radius: 4px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.custom-select:focus {
  border-color: #e60000;
}

.custom-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-to-cart-btn {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 0.8rem;
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, transform 0.1s;
  text-transform: uppercase;
  width: 100%;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: #ff0000;
}

.add-to-cart-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.add-to-cart-btn:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #e60000;
  color: #fff;
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4);
  z-index: 900;
  transition: transform 0.3s, background 0.3s;
}

.floating-cart-btn:hover {
  transform: scale(1.1);
  background: #ff0000;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  color: #e60000;
  font-weight: bold;
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #e60000;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #111;
  border-left: 3px solid #e60000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 20px rgba(0,0,0,0.8);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 2px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 1.5rem;
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-cart:hover {
  color: #e60000;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty-msg {
  text-align: center;
  color: #888;
  margin-top: 2rem;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 1rem;
  background: #000;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  position: relative;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  color: #e60000;
  font-weight: bold;
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  background: #333;
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

.qty-btn:hover {
  background: #e60000;
}

.remove-item-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
}

.remove-item-btn:hover {
  color: #e60000;
}

/* Cart Form Options */
.cart-options-section {
  padding: 1rem 1.5rem;
  border-top: 2px solid #333;
  background: #050505;
}

.delivery-group, .address-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.delivery-group label, .address-group label {
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
}

.address-group {
  display: none;
}

.address-group.active {
  display: flex;
}

.legal-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #ccc;
}

.legal-checkbox-group a {
  color: #e60000;
  text-decoration: underline;
}

/* Cart Footer */
.cart-footer {
  padding: 1.5rem;
  border-top: 2px solid #333;
  background: #0a0a0a;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cart-total span:last-child {
  font-family: 'Rubik Mono One', sans-serif;
  color: #e60000;
  font-size: 1.3rem;
}

.checkout-btn {
  width: 100%;
  background: #e60000;
  color: #fff;
  border: none;
  padding: 1rem;
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
  text-transform: uppercase;
}

.checkout-btn:hover:not(:disabled) {
  background: #ff0000;
}

.checkout-btn:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  z-index: 950;
  display: none;
}

.cart-overlay.show {
  display: block;
}

@media (max-width: 500px) {
  .cart-sidebar {
    width: 100vw;
    right: -100vw;
  }
}

/* Coming Soon Modal */
.tienda-coming-soon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tienda-coming-soon-modal {
  background: #111;
  border: 3px solid #e60000;
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(230, 0, 0, 0.3);
}

.tienda-coming-soon-modal h2 {
  font-family: 'Rubik Glitch', sans-serif;
  color: #e60000;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tienda-coming-soon-modal p {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

/* Force blur on body when modal is active, but keep menu accessible */
body.tienda-locked > *:not(.tienda-coming-soon-overlay):not(#menu-trigger):not(#punk-menu-overlay) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

body.tienda-locked #menu-trigger,
body.tienda-locked #punk-menu-overlay {
  z-index: 100000;
}
