/* Seven Point Crockery — Shop All Products (redesigned) */
:root {
  --navy: #142638;
  --navy-soft: #1f3a4d;
  --cream: #F8F5EF;
  --cream-deep: #efe9dd;
  --gold: #C9A15D;
  --gold-soft: #e3d5b8;
  --white: #ffffff;
  --ink: #142638;
  --muted: #5b6675;
  --line: #e7e2d6;
  --shadow: 0 6px 18px rgba(20, 38, 56, 0.08);
  --shadow-lg: 0 14px 32px rgba(20, 38, 56, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Topbar */
.topbar { background: var(--navy); color: var(--white); padding: 10px 0; font-size: 0.82rem; font-weight: 600; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.topbar-item svg { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-mark { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; flex-wrap: nowrap; }
.nav a { position: relative; font-size: 0.9rem; font-weight: 600; color: var(--navy); padding: 6px 0; white-space: nowrap; transition: color 0.2s ease; }
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--navy); }
.nav a.active::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2.5px; width: 100%; background: var(--gold); border-radius: 999px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-wrap { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-width: min(22vw, 260px); }
.search-wrap svg { color: var(--muted); flex: 0 0 auto; }
.search-wrap input { border: none; background: transparent; color: var(--ink); width: 100%; outline: none; font-size: 0.9rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; position: relative; cursor: pointer; color: var(--navy); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn .count { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.68rem; font-weight: 800; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-deep); border: 1px solid var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; cursor: pointer; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cart-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-pill .count { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 0 5px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--navy); font-size: 1.1rem; }

/* Page hero */
.page-hero { background: linear-gradient(90deg, #f7f1e6 0%, #f7f1e6 38%, rgba(247,241,230,0.85) 50%, rgba(247,241,230,0) 66%), #f7f1e6 url("../hero-products.png") no-repeat right center / auto 100%; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero-inner { display: flex; align-items: center; padding: 34px 0 40px; min-height: 280px; }
.page-hero-copy { max-width: 560px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-deep); border: 1px solid var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 8px 16px; font-size: 0.78rem; font-weight: 700; margin-bottom: 16px; }
.hero-tag svg { color: var(--gold); }
.page-title { margin: 0 0 12px; font-family: "Manrope", sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); line-height: 1.05; }
.page-title em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; color: var(--gold); }
.page-subtitle { margin: 0; font-size: 1.02rem; color: var(--muted); line-height: 1.55; max-width: 480px; }
.page-hero-visual { display: none; }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 22px auto; box-shadow: var(--shadow); }
.toolbar-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-filter { flex: 1 1 auto; }
.toolbar-sort { flex: 0 0 auto; }
.toolbar-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.toolbar-label svg { color: var(--navy); }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 10px 18px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.filter-pill:hover { border-color: var(--gold); }
.filter-pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-pill.active svg { color: var(--gold); }
.filter-dropdown { position: relative; }
.toolbar-select { min-height: 44px; padding: 8px 36px 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); font-size: 0.9rem; font-weight: 600; cursor: pointer; outline: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.toolbar-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,93,0.25); }
.view-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; }
.view-btn { width: 38px; height: 38px; border: none; background: transparent; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: all 0.2s ease; }
.view-btn:hover { color: var(--navy); }
.view-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }

/* Browse categories */
.browse-section { padding: 8px 0 32px; }
.browse-head { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 6px; }
.browse-line { flex: 1 1 auto; max-width: 220px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.browse-title { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); text-align: center; }
.browse-title em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; color: var(--gold); }
.browse-subtitle { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; }
.subcategory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.subcategory-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; text-align: center; padding: 0; }
.subcategory-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.subcategory-image { width: 100%; height: 150px; overflow: hidden; background: var(--cream); }
.subcategory-image img { width: 100%; height: 100%; object-fit: cover; }
.subcategory-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; }
.subcategory-card h3 { margin: 14px 14px 4px; font-family: "Manrope", sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.subcategory-card p { margin: 0 14px 12px; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.subcategory-cta { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 16px; background: var(--navy); color: var(--white); border-radius: 999px; padding: 9px 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; transition: background 0.2s ease; }
.subcategory-card:hover .subcategory-cta { background: var(--navy-soft); }

/* Catalog */
.catalog { display: grid; gap: 18px; min-width: 0; padding-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .product-card { flex-direction: row; }
.product-grid.list-view .product-card-link { flex-direction: row; }
.product-grid.list-view .product-image { width: 220px; height: 180px; flex: 0 0 auto; }
.product-grid.list-view .product-body { flex: 1; }
.product-grid { min-width: 0; max-width: 100%; }
.product-grid:not(.catalog-ready) > .product-card { display: none; }
#goToCartButton[hidden] { display: none; }
.catalog[hidden] { display: none; }
.subcategory-showcase[hidden] { display: none; }
.product-card { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.22s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.product-image { position: relative; height: 200px; overflow: hidden; background: var(--cream); }
.product-image img { height: 100%; width: 100%; object-fit: cover; }
.product-body { padding: 14px 16px 12px; text-align: left; display: grid; gap: 4px; }
.meta-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.product-name { margin: 0; font-family: "Manrope", sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.price-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.price { font-family: "Manrope", sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.old-price { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 0.9rem; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 16px; margin-top: auto; }
.price-on-request { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.view-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700; border: none; cursor: pointer; font-size: 0.82rem; background: var(--navy); color: var(--white); text-decoration: none; letter-spacing: 0.04em; transition: background-color 0.2s ease; }
.view-btn:hover { background: var(--navy-soft); }

.promo-strip { margin-top: 18px; border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--navy); border: 1px solid var(--navy); }
.promo-strip h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.promo-strip .primary-btn { background: var(--gold); color: var(--navy); border: none; border-radius: 999px; padding: 14px 24px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.promo-strip .primary-btn:hover { background: var(--white); }

.page-footer { padding: 26px 0 42px; color: var(--muted); font-size: 0.9rem; }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand-name { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--white); }
.footer-tagline { margin: 6px 0 0; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--white); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 18px 0 4px; }
.pagination[hidden] { display: none; }
.page-btn { min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 700; cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn:disabled { opacity: 0.45; cursor: default; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

.empty-state { background: rgba(20,38,56,0.03); border: 1px dashed rgba(20,38,56,0.14); border-radius: var(--radius); padding: 28px; color: var(--muted); font-weight: 600; text-align: center; }
.product-grid > .empty-state { grid-column: 1 / -1; width: 100%; }
.primary-btn:disabled { opacity: 0.8; cursor: default; }

/* Cart drawer */
.cart-drawer { position: fixed; right: 22px; top: 92px; width: min(360px, calc(100vw - 30px)); background: rgba(255,255,255,0.98); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 28px 60px rgba(20,38,56,0.18); padding: 18px; z-index: 1100; transform: translateX(calc(100% + 30px)); transition: transform 0.25s ease; opacity: 0; pointer-events: none; }
.cart-drawer.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cart-drawer-header h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.close-cart { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.cart-drawer-items { display: grid; gap: 12px; max-height: 340px; overflow: auto; }
.mini-item { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-item img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-item h4 { margin: 0 0 6px; font-size: 0.9rem; color: var(--navy); }
.mini-item .small { color: var(--muted); font-size: 0.75rem; }
.mini-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-balance { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.qty-balance button { width: 22px; height: 22px; border: none; background: transparent; cursor: pointer; color: var(--navy); font-weight: 700; }
.mini-price { font-weight: 800; color: var(--navy); font-size: 0.9rem; }
.mini-summary { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); }
.mini-summary-row strong { color: var(--navy); }
.mini-checkout { display: block; text-align: center; margin-top: 12px; background: var(--navy); color: var(--white); border-radius: 999px; padding: 12px; font-weight: 700; }

/* Responsive */
@media (max-width: 980px) {
  .page-hero { background: linear-gradient(90deg, rgba(247,241,230,0.92) 0%, rgba(247,241,230,0.75) 45%, rgba(247,241,230,0.15) 100%), #f7f1e6 url("../hero-products.png") no-repeat right center / cover; }
  .page-hero-inner { min-height: auto; padding: 28px 0 32px; }
  .subcategory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .toolbar { padding: 12px 14px; }
}
@media (max-width: 700px) {
  .topbar { display: none; }
  .nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-actions { width: auto; justify-content: flex-end; gap: 8px; }
  .search-wrap { display: none; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-title { font-size: 0.85rem; }
  .brand-title, .brand-sub { white-space: nowrap; }
  .cart-pill { padding: 8px 12px; font-size: 0.72rem; gap: 6px; }
  .cart-pill .count { min-width: 18px; height: 18px; font-size: 0.62rem; }
  .icon-btn { width: 38px; height: 38px; }
  .nav-toggle { width: 38px; height: 38px; }
  .brand-sub { font-size: 0.58rem; }
  .subcategory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-image { height: 150px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-group { width: 100%; justify-content: space-between; }
  .toolbar-sort { justify-content: space-between; }
  .view-toggle { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 18px; }
}
