:root { --compat-icon-color: #111; }             /* light theme */
[data-theme="dark"] { --compat-icon-color: #fff; } /* dark theme */

/* ===== Reset / Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #111;
}

body {
  background: #fff;
  color: #111;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 40px auto;   /* 40px top and bottom, centered */
  padding: 0 16px;     /* side padding */
}

section {
  
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

h1 {
  font-size: 2rem;   /* 32px */
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem; /* 24px */
}
h3 {
  font-size: 1.25rem; /* 20px */
}
h4 {
  font-size: 1.125rem;
}

/* ===== Text & Links ===== */
p {
  margin-bottom: 16px;
  font-size: 1rem;
}

a {
  color: #2f6bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===== Lists ===== */
ul, ol {
  margin: 16px 0 16px 24px;
}
li {
  margin-bottom: 6px;
}

/* ===== Buttons ===== */
button, .btn {
  display: inline-block;
  background: #2f6bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover {
  background: #1d4ed8;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card h3 {
  margin-bottom: 12px;
}

/* ===== Forms ===== */
input, select, textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1rem;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 2px rgba(47,107,255,0.2);
}

/* ===== Footer ===== */
footer {
  padding: 20px 16px;
  text-align: center;
  background: #f8f9fb;
  border-top: 1px solid #e2e2e2;
  font-size: 0.9rem;
  color: #555;
}

/* two-column layout shared by singles and lists */
.layout-two-col {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 24px;
}

.sidebar { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 90px); overflow: auto; }
.content { min-width: 0; }

@media (max-width: 980px) {
  .layout-two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; margin-bottom: 12px; }
}

/* Footer CSS */

.ft-wrap { max-width:1200px; margin:0 auto; padding:28px 16px 20px; color:#111; font-size:.95rem; text-align:left; }
.ft-grid { display:grid; gap:18px; grid-template-columns:repeat(4,minmax(0,1fr)); justify-items:start; align-items:start; }
@media (max-width:900px){ .ft-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px){ .ft-grid { grid-template-columns:1fr; } }

.ft-brand { display:inline-flex; align-items:center; gap:8px; font-weight:800; text-decoration:none; color:inherit; }
.ft-desc  { margin:.5rem 0 0; color:#555; line-height:1.45; max-width:32ch; }

.ft-h4    { margin:0 0 .6rem 0; font-size:1rem; font-weight:800; }
.ft-list  { list-style:none; padding:0; margin:0; }
.ft-list li { margin:0 0 .5rem 0; }
.ft-link  { color:inherit; text-decoration:none; }
.ft-link:hover { text-decoration:underline; }

.ft-join  { display:flex; gap:8px; }
.ft-inp   { flex:1; padding:.6rem .75rem; border:1px solid #000; border-radius:0; font-size:.95rem; background:#fff; color:#111; }
.ft-btn   { padding:.6rem 1rem; border:1px solid #000; background:#111; color:#fff; font-weight:700; font-size:.95rem; cursor:pointer; border-radius:0; }
.ft-btn:hover { background:#000; }

.ft-bottom{ max-width:1200px; margin:24px auto 0; padding:12px 16px 24px; border-top:1px solid #e2e2e2; text-align:left; font-size:.85rem; color:#555; }

/*Similar Products Grid*/

.sim-grid{display:grid;gap:.75rem;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.sim-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.sim-grid{grid-template-columns:1fr}}
.sim-card{border-top:2px solid #000;padding:10px}
.sim-img{width:100%;aspect-ratio:4/3;background:#f6f7f9;border:1px solid #e2e2e2;
         display:flex;align-items:center;justify-content:center;margin:0 0 .5rem 0}
.sim-img img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.sim-title{font-weight:700;line-height:1.3;margin:0 0 .25rem 0}
.sim-meta{font-size:.9rem;color:#555}
.sim-link{text-decoration:none;color:inherit;display:block}


.share-bar { margin:1rem 0; padding:0.75rem 0; border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5; }
.share-title { margin:0 0 .6rem 0; font-size:0.95rem; font-weight:700; letter-spacing:.02em; }
.share-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.share-btn {
 display:inline-flex; align-items:center; justify-content:center;
 padding:.5rem .85rem; font-size:.9rem; line-height:1.15; font-weight:600;
 text-decoration:none; color:#111; background:#fff;
 border:1px solid #111; border-radius:0; /* no rounded corners */
 transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover { background:#111; color:#fff; border-color:#111; }



.sidebar-plain{margin:0;padding:0;background:transparent;}



.hd-wrap { max-width:1200px; margin:0 auto; padding:0 16px; }
.hd-row  { display:flex; align-items:center; gap:16px; }



.section-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 25% each */
  gap: .5rem;
  width: 100%;
  margin: 0 0 1rem 0;
 }
 .section-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .9rem 1rem;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #f6f6f6;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0; /* square corners */
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
 } 
 .section-btn:hover {
  background: #eee;
  border-color: rgba(0,0,0,.25);
 }
 
 /* Optional: responsive behavior */
 @media (max-width: 900px) {
  .section-nav { grid-template-columns: repeat(2, 1fr); }
 }
 @media (max-width: 520px) {
  .section-nav { grid-template-columns: 1fr; }
 }