/* =========================================
   SHOP PAGE STYLES
   ========================================= */

/* SHOP BANNER */
.shop-banner {
  background: var(--black-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 80px;
}

.shop-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.shop-banner-inner > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.shop-banner-inner svg {
  color: var(--red);
  flex-shrink: 0;
}

/* SHOP LAYOUT */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* SIDEBAR */
.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px;
}

.sidebar-section {
  margin-bottom: 36px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
  transition: var(--transition);
  border-radius: 2px;
}

.filter-btn span {
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(204,0,0,0.1);
  color: var(--white);
}

.filter-btn.active {
  color: var(--red);
}

.filter-btn.active span {
  background: rgba(204,0,0,0.2);
  color: var(--red);
}

.sort-select {
  width: 100%;
  background: var(--black-light);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--red);
}

/* SHOP MAIN */
.shop-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.shop-header-row h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.shop-header-row h2 span {
  color: var(--text-muted);
  font-size: 14px;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.product-card:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,0.6), 0 0 22px rgba(204,0,0,0.12);
  transform: translateY(-3px);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--black-mid);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}

.new-badge {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-actions {
  transform: translateY(0);
}

.product-quick-btn {
  width: 100%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.product-quick-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-stars {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 10px;
}

.product-stars span {
  color: var(--text-muted);
  font-size: 12px;
}

.product-price-row {
  margin-bottom: 12px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
}

.product-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-sizes span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 8px;
  cursor: pointer;
  transition: var(--transition);
}

.product-sizes span:hover {
  border-color: var(--red);
  color: var(--red);
}

.add-to-cart {
  width: 100%;
  justify-content: center;
}

/* CART SIDEBAR */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--black-light);
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

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

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header h3 span {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.cart-close:hover {
  color: var(--white);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  text-align: center;
  min-height: 300px;
}

.cart-empty svg {
  color: rgba(255,255,255,0.15);
}

.cart-empty p {
  color: var(--text-muted);
  font-size: 15px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--black-mid);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--red);
  margin-bottom: 10px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.cart-qty-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
  padding: 0;
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.cart-shipping-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* CART FLOAT BUTTON */
.cart-float-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4);
  z-index: 1000;
  transition: var(--transition);
  color: var(--white);
}

.cart-float-btn:hover {
  background: var(--red-bright);
  transform: scale(1.08);
}

.cart-float-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--white);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--black-light);
  max-width: 700px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background: var(--red);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black-mid);
}

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

.modal-info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.modal-add-cart {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Product hidden class */
.product-card.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-banner {
    padding: 14px 40px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .shop-banner {
    padding: 14px 24px;
  }
  .shop-banner-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .cart-sidebar {
    width: 100vw;
  }
  .modal-content {
    grid-template-columns: 1fr;
  }
  .modal-img {
    aspect-ratio: 16/9;
  }
}
