/* Shop page — extends style.css */
.shop-hero {
  background: linear-gradient(120deg, rgba(31,42,55,.95), rgba(44,62,80,.92)), url('../images/work3.jpg') center/cover;
  color: #fff; padding: 70px 0 50px; text-align: center;
}
.shop-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.shop-hero p { color: #dbe1e8; max-width: 560px; margin: 0 auto; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 0; position: sticky; top: 73px; background: #fff; z-index: 40; border-bottom: 1px solid var(--color-border);
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs a {
  padding: 9px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--color-border); color: var(--color-navy); transition: all var(--transition);
}
.filter-tabs a:hover, .filter-tabs a.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.shop-search { display: flex; gap: 8px; }
.shop-search input { padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: .9rem; min-width: 220px; }
.shop-search button { padding: 10px 16px; border-radius: var(--radius-sm); border: none; background: var(--color-dark); color: #fff; font-weight: 600; }

.products-section { padding: 40px 0 90px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.product-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-thumb { position: relative; aspect-ratio: 4/3; background: var(--color-light); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge-sale { background: var(--color-primary); color: #fff; }
.badge-out { background: #6b7280; color: #fff; }
.badge-category { background: rgba(31,42,55,.85); color: #fff; position: absolute; top: 12px; right: 12px; font-size: .68rem; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin: 0; }
.product-desc { font-size: .85rem; color: var(--color-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price-now { font-size: 1.2rem; font-weight: 700; color: var(--color-primary-dark); font-family: var(--font-heading); }
.price-old { font-size: .88rem; color: #9aa5b1; text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; margin-top: 6px; }
.product-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: .85rem; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--color-muted); }
.empty-state .icon { font-size: 2.6rem; margin-bottom: 14px; }

/* Cart drawer */
.cart-toggle { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--color-primary); color: #fff; font-size: .68rem;
  font-weight: 700; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cart-overlay { position: fixed; inset: 0; background: rgba(15,20,26,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 92vw; background: #fff; z-index: 201;
  box-shadow: -12px 0 40px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--color-border); }
.cart-close { background: none; border: none; font-size: 1.4rem; color: var(--color-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--color-light); }
.cart-item-info { flex: 1; }
.cart-item-info h5 { margin: 0 0 4px; font-size: .9rem; }
.cart-qty { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.cart-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--color-border); background: #fff; }
.cart-remove { color: #b91c1c; font-size: .78rem; margin-top: 4px; background:none;border:none;padding:0; }
.cart-empty { text-align: center; color: var(--color-muted); padding: 40px 0; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--color-border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; font-family: var(--font-heading); }

.quickview-overlay { position: fixed; inset: 0; background: rgba(15,20,26,.6); z-index: 210; display: none; align-items: center; justify-content: center; padding: 20px; }
.quickview-overlay.open { display: flex; }
.quickview-box { background: #fff; border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.quickview-box img { width: 100%; height: 100%; object-fit: cover; }
.quickview-info { padding: 30px; }
.quickview-close { position: absolute; top: 14px; right: 16px; background: rgba(0,0,0,.06); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; }

@media (max-width: 700px) {
  .shop-toolbar { top: 0; flex-direction: column; align-items: stretch; }
  .shop-search input { min-width: 0; flex: 1; }
  .quickview-box { grid-template-columns: 1fr; }
}
