/* Imports shared base */
/* Shop-specific styles — mobile first */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}

/* ── SHOP HERO ── */
.shop-hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, #f8f4f0 0%, #f2ebe8 100%);
  text-align: center;
}
.breadcrumb { font-size: 0.78rem; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary-dark); }
.breadcrumb a:hover { color: var(--accent); }
.shop-hero h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.shop-hero h1 em { font-style: italic; color: var(--primary-dark); }
.shop-hero p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ── TOOLBAR ── */
.shop-toolbar {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 32px;
}
.filter-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-tag {
  padding: 6px 14px; font-size: 0.75rem; letter-spacing: 0.5px; font-weight: 500;
  background: none; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 24px;
  cursor: pointer; color: var(--text-light); transition: all 0.2s; font-family: var(--font-body);
}
.filter-tag:hover, .filter-tag.active { background: var(--primary); color: white; border-color: var(--primary); }
.toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-count { font-size: 0.8rem; color: var(--text-light); }
.sort-select { padding: 7px 12px; font-size: 0.8rem; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius); background: white; color: var(--text); font-family: var(--font-body); cursor: pointer; outline: none; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { width: 30px; height: 30px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: var(--text-light); transition: all 0.2s; }
.view-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ── SHOP LAYOUT ── */
.shop-layout { padding: 0 0 72px; }

/* ── SIDEBAR (hidden on mobile) ── */
.shop-sidebar { display: none; }
.sidebar-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-title { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 9px; }
.sidebar-list a { font-size: 0.83rem; color: var(--text-light); display: flex; justify-content: space-between; transition: color 0.2s; }
.sidebar-list a:hover, .sidebar-list a.active { color: var(--primary-dark); }
.sidebar-list a span { background: rgba(0,0,0,0.06); border-radius: 10px; padding: 1px 7px; font-size: 0.7rem; }
.price-range { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-light); margin-bottom: 9px; }
.price-range strong { color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--primary); }
.color-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.swatch:hover, .swatch.active { border-color: var(--text); }
.size-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.size-f { padding: 5px 11px; font-size: 0.76rem; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius); cursor: pointer; background: none; font-family: var(--font-body); color: var(--text-light); transition: all 0.2s; }
.size-f:hover, .size-f.active { background: var(--primary); color: white; border-color: var(--primary); }
.clear-filters { width: 100%; padding: 9px; font-size: 0.8rem; border: 1.5px solid rgba(0,0,0,0.12); border-radius: var(--radius); background: none; cursor: pointer; font-family: var(--font-body); color: var(--text-light); transition: all 0.25s; margin-top: 4px; }
.clear-filters:hover { border-color: var(--primary-dark); color: var(--primary-dark); }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-card { background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-img { position: relative; overflow: hidden; height: 320px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 20px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-new { background: var(--primary); color: white; }
.badge-bestseller { background: var(--accent); color: white; }
.badge-custom { background: var(--text); color: white; }
.product-actions { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 6px; padding: 12px; opacity: 0; transform: translateY(8px); transition: all 0.3s; }
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.add-to-cart-btn { flex: 1; padding: 9px; background: white; color: var(--text); font-size: 0.78rem; font-weight: 500; border: none; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); transition: all 0.2s; }
.add-to-cart-btn:hover { background: var(--primary); color: white; }
.wishlist-btn { width: 36px; height: 36px; background: white; border: none; border-radius: var(--radius); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.wishlist-btn:hover, .wishlist-btn.liked { background: var(--primary); color: white; }
.product-info { padding: 16px 18px 20px; }
.product-collection { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.product-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--text); margin-bottom: 5px; }
.product-desc { font-size: 0.81rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 0.96rem; font-weight: 600; color: var(--text); }
.product-price s { font-size: 0.8rem; color: var(--text-light); font-weight: 400; margin-right: 4px; }
.product-sizes { display: flex; gap: 4px; flex-wrap: wrap; }
.sz { font-size: 0.66rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 3px; padding: 2px 5px; color: var(--text-light); }

/* ── CART SIDEBAR ── */
.cart-sidebar { position: fixed; right: 0; top: 0; bottom: 0; width: 100%; background: white; z-index: 500; transform: translateX(100%); transition: transform 0.35s ease; box-shadow: -8px 0 32px rgba(0,0,0,0.12); display: flex; flex-direction: column; }
.cart-sidebar.open { transform: translateX(0); }
.cart-header { padding: 20px 22px; border-bottom: 1px solid rgba(0,0,0,0.07); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: var(--font-heading); font-size: 1.2rem; }
.cart-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--text-light); }
.cart-empty-icon { font-size: 2.2rem; margin-bottom: 10px; }
.cart-empty p { font-size: 0.88rem; line-height: 1.7; }
.cart-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cart-item-img { width: 66px; height: 82px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 3px; }
.cart-item-meta { font-size: 0.74rem; color: var(--text-light); margin-bottom: 8px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { font-weight: 600; font-size: 0.88rem; }
.qty-control { display: flex; align-items: center; gap: 7px; }
.qty-btn { background: none; border: 1px solid rgba(0,0,0,0.1); width: 22px; height: 22px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-val { font-size: 0.82rem; font-weight: 500; min-width: 18px; text-align: center; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 0.78rem; transition: color 0.2s; }
.cart-remove:hover { color: #c0392b; }
.cart-footer { padding: 18px 22px; border-top: 1px solid rgba(0,0,0,0.07); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.95rem; font-weight: 500; }
.cart-total strong { font-family: var(--font-heading); font-size: 1.15rem; }
.checkout-btn { width: 100%; padding: 13px; background: var(--primary); color: white; font-size: 0.88rem; font-weight: 500; border: none; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); transition: background 0.3s; margin-bottom: 8px; }
.checkout-btn:hover { background: var(--primary-dark); }
.continue-btn { width: 100%; padding: 10px; background: transparent; color: var(--text-light); font-size: 0.83rem; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); transition: all 0.2s; }
.continue-btn:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 499; display: none; }
.cart-overlay.open { display: block; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 7px; padding: 40px 0 0; }
.page-btn { width: 36px; height: 36px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius); background: none; cursor: pointer; font-size: 0.83rem; font-family: var(--font-body); color: var(--text-light); transition: all 0.2s; }
.page-btn.active, .page-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.ellipsis { border: none; cursor: default; background: none; }
.page-btn.ellipsis:hover { background: none; color: var(--text-light); }

/* ── NEWSLETTER STRIP ── */
.newsletter-strip { background: linear-gradient(135deg, #f2ebe8, #f8f4f0); padding: 56px 0; text-align: center; }
.newsletter-strip h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-strip h2 em { font-style: italic; color: var(--primary-dark); }
.newsletter-strip p { color: var(--text-light); margin-bottom: 22px; font-size: 0.93rem; }
.nl-form { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.nl-form input { padding: 12px 16px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius); width: 100%; max-width: 320px; font-family: var(--font-body); font-size: 0.88rem; background: white; outline: none; }
.nl-form input:focus { border-color: var(--primary); }
.nl-btn { padding: 12px 28px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: background 0.3s; }
.nl-btn:hover { background: var(--primary-dark); }

/* ── SHOP FOOTER ── */
.shop-footer { background: var(--text); color: white; padding: 36px 0 22px; text-align: center; }
.shop-footer-logo { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 14px; color: white; }
.shop-footer-logo span { font-style: italic; color: var(--primary); }
.shop-footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: color 0.25s; }
.shop-footer-links a:hover { color: white; }
.shop-copyright { font-size: 0.76rem; color: rgba(255,255,255,0.3); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--text); color: white; padding: 11px 22px; border-radius: var(--radius); font-size: 0.86rem; z-index: 9999; transition: transform 0.35s ease; box-shadow: var(--shadow-md); white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── NAV CART BTN ── */
.cart-btn { position: relative; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text); }
.cart-count { position: absolute; top: -5px; right: -7px; background: var(--primary); color: white; font-size: 0.62rem; font-weight: 600; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ════════════════════════════════
   MIN-WIDTH: 480px
════════════════════════════════ */
@media (min-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════
   MIN-WIDTH: 600px
════════════════════════════════ */
@media (min-width: 600px) {
  .shop-toolbar { flex-direction: row; justify-content: space-between; align-items: center; }
  .nl-form { flex-direction: row; justify-content: center; }
  .nl-form input { width: 260px; }
}

/* ════════════════════════════════
   MIN-WIDTH: 768px
════════════════════════════════ */
@media (min-width: 768px) {
  .cart-sidebar { width: 380px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-hero h1 { font-size: 3rem; }
}

/* ════════════════════════════════
   MIN-WIDTH: 1024px
════════════════════════════════ */
@media (min-width: 1024px) {
  .shop-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f4f0 0%, #f2ebe8 100%);
    text-align: center;
  }
  .shop-hero h1 { font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; color: var(--text); margin-bottom: 12px; }
  .shop-hero h1 em { font-style: italic; color: var(--primary-dark); }
  .shop-hero p { color: var(--text-light); max-width: 520px; margin: 0 auto; font-size: 1rem; line-height: 1.8; }
  .filter-tags {padding: 7px 16px; font-size: 0.78rem;}
  .shop-sidebar { display: block; }
  .shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.list-view { grid-template-columns: 1fr; }
  .product-grid.list-view .product-card { display: grid; grid-template-columns: 260px 1fr; }
  .product-grid.list-view .product-img { height: 100%; min-height: 260px; }
}
