:root {
  --bg:#f7f4ef;
  --card:#ffffff;
  --text:#11110f;
  --muted:#6d6a63;
  --border:#d8d1c7;
  --primary:#11110f;
  --primary-soft:#ebe6de;
  --accent:#8b6f45;
  --shadow:0 18px 45px rgba(24, 22, 18, 0.08);
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body {
  font-family:'Inter', system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  letter-spacing:0;
}

img {
  max-width:100%;
  display:block;
}

.container {
  width:min(1200px, 100% - 2rem);
  margin:0 auto;
}

.site-header {
  background:rgba(247, 244, 239, 0.92);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(6px);
}

.header-inner {
  width:min(1200px, 100% - 2rem);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  min-height:80px;
  flex-wrap:nowrap;
}

.brand {
  font-family:'Playfair Display', Georgia, serif;
  font-size:clamp(1.25rem, 2vw, 1.65rem);
  font-weight:700;
  letter-spacing:0;
  text-decoration:none;
  color:var(--text);
  white-space:nowrap;
  justify-self:start;
  min-width:0;
  flex:0 0 auto;
}

.desktop-nav {
  display:flex;
  flex:0 1 auto;
  justify-content:center;
  gap:clamp(0.9rem, 1.5vw, 1.45rem);
  min-width:max-content;
}

.desktop-nav a {
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--text);
  transition:color 0.2s ease;
}

.desktop-nav a:hover {
  color:var(--accent);
}

.desktop-search {
  display:flex;
  flex:1 1 260px;
  min-width:190px;
  justify-content:flex-end;
}

.header-search {
  display:flex;
  align-items:center;
  width:min(360px, 100%);
  border:1px solid var(--border);
  border-radius:0;
  background:rgba(255,255,255,0.7);
  min-height:44px;
}

.header-search input {
  width:100%;
  min-width:0;
  border:none;
  outline:none;
  font-size:0.95rem;
  background:transparent;
  padding:0 0.85rem;
}

.header-search button {
  align-self:stretch;
  border:none;
  border-left:1px solid var(--border);
  background:var(--primary);
  color:#fff;
  padding:0 0.95rem;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:0.72rem;
  cursor:pointer;
}

.header-controls {
  display:flex;
  align-items:center;
  gap:0.75rem;
  white-space:nowrap;
  flex:0 0 auto;
}

.menu-toggle {
  display:none;
  place-items:center;
  background:transparent;
  border:1px solid var(--border);
  border-radius:0;
  width:44px;
  height:44px;
  padding:0;
  font-weight:600;
  cursor:pointer;
  letter-spacing:0.02em;
}

.menu-toggle span {
  display:block;
  width:20px;
  height:2px;
  background:var(--text);
  margin:3px 0;
}

.mobile-panel {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:1.5rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  opacity:0;
  pointer-events:none;
  transform:translateY(-10px);
  transition:opacity 0.25s ease, transform 0.25s ease;
  box-shadow:0 20px 40px rgba(0, 0, 0, 0.08);
}

.mobile-panel.is-open {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

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

.panel-close {
  border:none;
  background:transparent;
  font-weight:600;
  cursor:pointer;
  color:var(--text);
}

.panel-search input {
  width:100%;
  border:1px solid var(--border);
  border-radius:0;
  padding:0.75rem 1rem;
  font-size:0.95rem;
  outline:none;
}

.mobile-nav {
  display:flex;
  flex-direction:column;
  gap:0.6rem;
  font-weight:600;
}

.mobile-nav a {
  text-decoration:none;
  color:var(--text);
}

main {
  padding-top:0;
}

.hero {
  background:
    linear-gradient(90deg, rgba(12,12,10,0.68), rgba(12,12,10,0.18) 58%, rgba(12,12,10,0.02)),
    url("assets/images/gutter-protection/gutter-guard-02.jpg") center/cover;
  min-height:calc(100vh - 80px);
  border-radius:0;
  margin-bottom:5rem;
  display:flex;
  align-items:flex-end;
}

.hero-content {
  padding:5rem 0;
  color:#fff;
  max-width:720px;
}

.hero-badge {
  font-size:0.72rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  margin-bottom:1rem;
}

.hero h1 {
  font-family:'Playfair Display', Georgia, serif;
  font-size: clamp(46px, 7vw, 108px);
  line-height:0.95;
  font-weight:700;
  margin-bottom:1rem;
}

.hero p {
  max-width:560px;
  margin-bottom:1.5rem;
  color:#f4efe7;
  font-size:1.02rem;
}

.hero .cta-group {
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
  margin-bottom:1.25rem;
}

.cta-group {
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
}

.page-cta {
  margin:1.5rem 0 2rem;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid var(--primary);
  border-radius:0;
  padding:0.85rem 1.5rem;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
  transition:transform 0.2s ease, background 0.2s ease;
  white-space:normal;
}

.btn-primary {
  background:var(--primary);
  color:#fff;
}

.btn-secondary {
  background:transparent;
  border:1px solid rgba(255,255,255,0.6);
  color:#fff;
}

.btn-outline {
  background:transparent;
  border-color:var(--primary);
  color:var(--primary);
}

.btn:hover {
  transform:translateY(-2px);
}

.trust-pills {
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
  font-size:0.9rem;
}

.trust-pills span {
  padding:0.35rem 0;
  border-bottom:1px solid rgba(255,255,255,0.45);
  background:transparent;
  border-radius:0;
}

.section-title {
  font-family:'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height:1;
  margin-bottom:1.4rem;
}

.category-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1px;
  margin-bottom:5rem;
  background:var(--border);
  align-items:stretch;
}

.category-card {
  position:relative;
  border-radius:0;
  overflow:hidden;
  min-height:430px;
  height:100%;
  background:#fff;
}

.category-card .card-media {
  height:100%;
}

.category-card .overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 36%, rgba(0,0,0,0.62));
  padding:1.5rem;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.category-card h3 {
  color:#fff;
  margin-bottom:0.3rem;
  font-family:'Playfair Display', Georgia, serif;
  font-size:1.8rem;
  line-height:1;
}

.category-card a {
  color:#fff;
  text-decoration:none;
  font-size:0.74rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  border-bottom:1px solid currentColor;
}

.category-card a:hover {
  text-decoration:underline;
}

.deal-scroll {
  display:flex;
  gap:1rem;
  overflow-x:auto;
  padding-bottom:0.5rem;
  margin-bottom:5rem;
}

.deal-card {
  min-width:290px;
  width:290px;
  background:#fff;
  border-radius:0;
  padding:0;
  border:1px solid var(--border);
  box-shadow:none;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  flex:0 0 auto;
}

.deal-card .card-media {
  height:260px;
  flex:0 0 260px;
  border-radius:0;
}

.deal-card h4,
.deal-card p,
.deal-card .price,
.deal-card button,
.deal-card .label-pill,
.deal-card .price-row {
  margin-left:1rem;
  margin-right:1rem;
}

.deal-card button {
  margin-bottom:1rem;
  margin-top:auto;
  width:calc(100% - 2rem);
}

.collections {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1px;
  margin-bottom:5rem;
  background:var(--border);
}

.collection-card {
  border-radius:0;
  position:relative;
  min-height:460px;
  overflow:hidden;
}

.collection-card .overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(160deg, rgba(10,10,8,0.78), rgba(10,10,8,0.16));
  display:flex;
  justify-content:center;
  align-items:center;
  padding:1.5rem;
}

.collection-card h3,
.collection-card p {
  color:#fff;
}

.collection-card h3 {
  font-family:'Playfair Display', Georgia, serif;
  font-size:clamp(2rem, 4vw, 4rem);
  line-height:1;
}

.reviews {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1rem;
  margin-bottom:3rem;
}

.review-card {
  background:#fff;
  border-radius:0;
  padding:1.5rem;
  border:1px solid var(--border);
  min-height:150px;
  height:100%;
}

.review-card p {
  font-size:0.95rem;
  color:var(--muted);
  margin-bottom:1rem;
}

.newsletter {
  background:#fff;
  border-radius:0;
  padding:2rem;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  margin-bottom:3rem;
}

.newsletter form {
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
  margin-top:1rem;
}

.newsletter input {
  flex:1;
  min-width:220px;
  padding:0.85rem 1rem;
  border-radius:0;
  border:1px solid var(--border);
  font-size:0.95rem;
}

.newsletter button {
  border-radius:0;
  border:1px solid var(--primary);
  padding:0.85rem 1.25rem;
  background:var(--primary);
  color:#fff;
  font-weight:600;
}

.site-footer {
  border-top:1px solid var(--border);
  background:var(--bg);
  padding:3rem 0 2rem;
}

.footer-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:1rem;
}

.footer-grid h4 {
  font-size:1rem;
  margin-bottom:0.75rem;
}

.footer-grid a {
  display:block;
  text-decoration:none;
  color:var(--muted);
  margin-bottom:0.5rem;
  font-size:0.95rem;
}

.footer-bottom {
  margin-top:1.5rem;
  font-size:0.9rem;
  color:var(--muted);
}

.text-link {
  text-decoration:none;
  color:inherit;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  border-bottom:1px solid currentColor;
}

.text-link:hover {
  text-decoration:underline;
}

.section-card {
  background:#fff;
  border-radius:0;
  padding:1.5rem;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.card-media {
  border-radius:0;
  overflow:hidden;
  height:260px;
  background:var(--primary-soft);
}

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

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

button,
input,
select {
  font-family:'Inter', system-ui, sans-serif;
}

@media (max-width:1024px) {
  .hero {
    min-height:55vh;
  }
  .desktop-nav,
  .desktop-search {
    display:none;
  }
  .header-inner {
    flex-wrap:nowrap;
  }
  .menu-toggle {
    display:grid;
  }
}

@media (max-width:768px) {
  .hero-content {
    padding:3rem 0;
  }
  .header-inner {
    gap:0.75rem;
  }
  .brand {
    font-size:clamp(1rem, 5vw, 1.2rem);
  }
  .menu-toggle {
    width:42px;
    height:42px;
  }
  .hero {
    min-height:640px;
  }
  .hero h1 {
    font-size:clamp(42px, 12vw, 64px);
  }
  .category-grid,
  .collections {
    grid-template-columns:1fr;
  }
  .category-card,
  .collection-card {
    min-height:360px;
  }
  .deal-scroll {
    display:grid;
    grid-template-columns:1fr;
    overflow:visible;
  }
  .deal-card {
    width:100%;
    min-width:0;
  }
  .deal-card .card-media,
  .card-media {
    height:240px;
    flex-basis:240px;
  }
  .newsletter form,
  .products-top {
    flex-direction:column;
    align-items:stretch;
  }
  .newsletter input,
  .newsletter button,
  .products-top input,
  .products-top select,
  .filter-toggle-button {
    width:100%;
  }
}

@media (max-width:480px) {
  .header-inner {
    min-height:70px;
    gap:0.45rem;
  }
  .brand {
    font-size:1rem;
    max-width:150px;
    white-space:normal;
    line-height:1.05;
  }
  .menu-toggle {
    font-size:0.78rem;
  }
  .container {
    width:min(100% - 1.25rem, 1200px);
  }
  .hero {
    min-height:600px;
    margin-bottom:3rem;
  }
  .hero .cta-group {
    flex-direction:column;
  }
  .hero .cta-group .btn,
  .page-cta .btn {
    width:100%;
  }
  .trust-pills {
    display:grid;
    grid-template-columns:1fr;
  }
}

.shop-layout {
  display:grid;
  grid-template-columns:260px 1fr;
  gap:2rem;
}

.filters-panel {
  background:#fff;
  border-radius:0;
  border:1px solid var(--border);
  padding:1.5rem;
  position:sticky;
  top:1.5rem;
  align-self:start;
}

.filters-panel h3 {
  margin-bottom:0.75rem;
  font-size:1rem;
}

.filters-panel label {
  display:flex;
  gap:0.5rem;
  align-items:center;
  margin-bottom:0.4rem;
  font-size:0.95rem;
}

.products-list {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1rem;
  align-items:stretch;
}

.products-top {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1rem;
}

.products-top input,
.products-top select {
  border:1px solid var(--border);
  border-radius:0;
  padding:0.65rem 1rem;
  outline:none;
}

.product-card {
  background:#fff;
  border-radius:0;
  border:1px solid var(--border);
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:0.65rem;
  box-shadow:var(--shadow);
  min-height:100%;
}

.product-card.hidden {
  display:none;
}

.product-card h4 {
  font-size:1.05rem;
}

.product-card p {
  color:var(--muted);
  font-size:0.9rem;
}

.product-card .price {
  font-weight:700;
  font-size:1.1rem;
}

.product-card button {
  border-radius:0;
  border:none;
  background:var(--primary);
  color:#fff;
  padding:0.7rem;
  font-weight:600;
  margin-top:auto;
  width:100%;
}

.filter-toggle-button {
  display:none;
  border:none;
  background:var(--primary);
  color:#fff;
  padding:0.7rem 1rem;
  border-radius:0;
  font-weight:600;
}

@media (max-width:900px) {
  .split-hero {
    grid-template-columns:1fr;
  }
  .product-hero {
    gap:1.5rem;
    padding-top:3rem;
  }
  .shop-layout {
    grid-template-columns:1fr;
  }
  .contact-grid,
  .product-detail {
    grid-template-columns:1fr;
  }
  .filters-panel {
    position:static;
    top:auto;
  }
  .filters-panel.open {
    display:block;
  }
  .filter-toggle-button {
    display:block;
  }
}

.deal-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:1rem;
  align-items:stretch;
}

.deal-grid .deal-card {
  width:100%;
  min-width:0;
}

.deal-card .price-row {
  display:flex;
  justify-content:space-between;
  font-weight:600;
}

.deal-card .old-price {
  text-decoration:line-through;
  color:var(--muted);
  font-weight:400;
  font-size:0.9rem;
}

.label-pill {
  display:inline-block;
  border-radius:0;
  padding:0.3rem 0.75rem;
  font-size:0.8rem;
  background:var(--primary-soft);
  color:var(--primary);
}

.category-banner {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:1rem;
}

.category-banner .category-card {
  height:200px;
}

.product-hero {
  background:var(--bg);
  border-radius:0;
  padding:4rem 0 2rem;
  margin-bottom:3rem;
}

.split-hero {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(280px, 0.8fr);
  gap:2rem;
  align-items:center;
}

.product-hero h1,
.product-hero .section-title {
  max-width:760px;
}

.product-hero p {
  font-size:1rem;
}

.product-detail {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}

.contact-section {
  margin-bottom:3rem;
}

.contact-grid {
  gap:1.5rem;
  align-items:stretch;
}

.contact-form {
  display:grid;
  gap:0.75rem;
}

.contact-form input,
.contact-form textarea {
  width:100%;
  border:1px solid var(--border);
  border-radius:0;
  background:#fff;
  padding:0.9rem 1rem;
  font:inherit;
  color:var(--text);
  outline:none;
}

.contact-form textarea {
  min-height:140px;
  resize:vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color:var(--primary);
}

.contact-form .btn {
  width:100%;
}

.product-gallery {
  border-radius:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
}

.product-gallery img {
  width:100%;
  height:420px;
  object-fit:cover;
}

.product-thumbs {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0.5rem;
  margin-top:1rem;
}

.product-thumbs img {
  height:100px;
  object-fit:cover;
  border-radius:0;
}

.product-info {
  display:flex;
  flex-direction:column;
  gap:1rem;
  background:#fff;
  padding:2rem;
  border-radius:0;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  min-height:100%;
}

.product-info h1 {
  font-family:'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
}

.quantity-control {
  display:flex;
  align-items:center;
  gap:0.5rem;
}

.quantity-control input {
  width:80px;
  border:1px solid var(--border);
  border-radius:0;
  padding:0.5rem;
}

.related-products {
  margin-top:2rem;
}

.related-products .products-list {
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
}

.accordion-item {
  border-top:1px solid var(--border);
}

.accordion-header {
  padding:1rem 0;
  cursor:pointer;
  font-weight:600;
}

.accordion-content {
  max-height:0;
  overflow:hidden;
  transition:max-height 0.25s ease;
  font-size:0.95rem;
  color:var(--muted);
}

.accordion-content.open {
  padding-bottom:1rem;
  max-height:200px;
}

@media (max-width:768px) {
  .product-info,
  .section-card {
    padding:1.25rem;
  }
  .product-gallery img {
    height:320px;
  }
}

@media (max-width:480px) {
  .product-hero {
    padding-top:2rem;
    margin-bottom:2rem;
  }
  .product-gallery img {
    height:260px;
  }
}
