/* ═══════════════════════════════════════════
   SVEA Shop CSS
═══════════════════════════════════════════ */

/* Page Title */
.page-title-section {
  padding: 120px 0 60px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-title-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.page-title-section .container { position: relative; z-index: 1; }
.page-title-section h2 { margin-bottom: 10px; }

/* Filter bar */
.shop-filter-bar { border-bottom: 1px solid #eee; padding-bottom: 15px; }
.shop-sort-select {
  border: 1px solid #ddd;
  padding: 7px 12px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  border-radius: 2px;
}

/* Product Card */
.product-card {
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s;
  position: relative;
  background: #fff;
}
.product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: #da3669;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 2px;
}
[dir="rtl"] .product-badge { left: auto; right: 12px; }

.product-image { position: relative; overflow: hidden; }
.product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-zoom {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #da3669;
  font-size: 18px;
}

.product-info { padding: 18px; }
.product-name { margin-bottom: 5px; }
.product-desc { margin-bottom: 10px; font-size: 13px; }
.product-price { font-size: 18px; font-weight: 700; color: #da3669; }

/* Size selector */
.sizes-row { display: flex; gap: 6px; flex-wrap: wrap; }
.size-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.size-btn:hover, .size-btn.active {
  background: #da3669;
  border-color: #da3669;
  color: #fff;
}
.size-selector.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-5px); }
  40%,80%  { transform: translateX(5px); }
}

/* Shop Widgets (sidebar) */
.shop-widget { padding: 20px; border: 1px solid #f0f0f0; border-radius: 4px; }
.widget-title { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #da3669; font-size: 14px; letter-spacing: 1.5px; }
.category-list { list-style: none; padding: 0; }
.category-list li { padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.category-list a { color: #555; font-size: 14px; text-decoration: none; }
.category-list a:hover, .category-list a.active { color: #da3669; font-weight: 600; }

/* Price range */
.price-filter input[type=range] { width: 100%; accent-color: #da3669; }
.price-filter p { font-size: 13px; margin-top: 8px; }

/* Sidebar cart */
.cart-sidebar { background: #fafafa; }
.sidebar-cart-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #ddd;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}
[dir="rtl"] .cart-drawer { right: auto; left: -420px; transition: left 0.35s ease; }
.cart-drawer.open { right: 0; }
[dir="rtl"] .cart-drawer.open { left: 0; right: auto; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-overlay.show { opacity: 1; pointer-events: all; }

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.cart-drawer-header h5 { margin: 0; }
.cart-drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #555; }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
}

.cart-drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-drawer-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.cart-drawer-item-info { flex: 1; }
.cart-qty-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-qty-btn {
  width: 24px; height: 24px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-qty-btn:hover { background: #da3669; color: #fff; }
.cart-remove-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
}
.cart-item-price { font-weight: 700; color: #da3669; white-space: nowrap; }

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

/* Toast notification */
.svea-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.svea-toast.show { opacity: 1; transform: translateY(0); }
[dir="rtl"] .svea-toast { right: auto; left: 30px; }

/* Cart count badge */
.cart-count-badge {
  display: inline-block;
  background: #da3669;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  margin-left: 4px;
  vertical-align: middle;
}

/* Mobile */
@media (max-width: 991px) {
  .cart-sidebar { display: none; }
  .cart-drawer { width: 340px; }
}

/* bg utility */
.bg--rose { background: #da3669 !important; color: #fff; }
.bg--dark  { background: #1a1a1a !important; color: #fff; }
