@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");
/* === HARD RESET FOR WORDPRESS THEME === */
.hc-mvc,
.hc-mvc * {
  box-sizing: border-box;
}

.hc-mvc {
  all: initial;
  font-family: "Space Grotesk","Segoe UI",sans-serif;
}

.hc-mvc a { text-decoration: none; }
.hc-mvc img { display: block; max-width: 100%; }


:root {
  --bg: #0b0b0b;
  --card: #22150f;
  --panel: #1a100c;
  --accent: #f2c186;
  --accent-2: #b86b3b;
  --accent-3: #ffffff;
  --text: #ffffff;
  --muted: #e5d7c7;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.1 3 10v11h6v-6h6v6h6V10z'/%3E%3C/svg%3E");
  --icon-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zm10 0h6v6h-6zM4 14h6v6H4zm10 0h6v6h-6z'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M11 10h2v8h-2zm0-4h2v2h-2zM12 2a10 10 0 100 20 10 10 0 000-20z'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 4.55 3.14 8.74 8 10 4.86-1.26 8-5.45 8-10V5z'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 110-8 4 4 0 010 8zm9-2a3 3 0 11-6 0 3 3 0 016 0zM3 20a6 6 0 1112 0v2H3zm12.5-5.5a4.5 4.5 0 014.5 4.5v3h-3v-3a1.5 1.5 0 00-1.5-1.5H13a6.5 6.5 0 012.5-3z'/%3E%3C/svg%3E");
  --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 10-10 0v2H5v13h14V9zm-8-2a3 3 0 016 0v2H9zm3 6a2 2 0 110 4 2 2 0 010-4z'/%3E%3C/svg%3E");
  --icon-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M10 17v-3H3v-4h7V7l6 5zm-2-2h2.7l3.3-3-3.3-3H8zm6-11h8v16h-8v-2h6V6h-6z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    linear-gradient(160deg, rgba(181, 185, 184, 0.944), rgba(243, 244, 245, 0.35)),
    url("https://hccnmold.com/wp-content/uploads/2026/01/bg-scaled.jpg") center/cover no-repeat fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(200, 155, 109, 0.78), rgba(184, 130, 79, 0.78));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ✅ FIX: make transparent logo visible on brown header */
.brand img {
  height: 88px;
  width: auto;
  display: block;

  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  /* optional: make logo stand out without white box */
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

/* ✅ FIX: you had a broken line "ilter: none;" causing CSS issues */
.brand img { filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000000;
}

.nav .nav-item::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  opacity: 0.8;
}

.nav .nav-home::before {
  mask-image: var(--icon-home);
  -webkit-mask-image: var(--icon-home);
}
.nav .nav-products::before {
  mask-image: var(--icon-grid);
  -webkit-mask-image: var(--icon-grid);
}
.nav .nav-about::before {
  mask-image: var(--icon-info);
  -webkit-mask-image: var(--icon-info);
}
.nav .nav-admin-products::before {
  mask-image: var(--icon-shield);
  -webkit-mask-image: var(--icon-shield);
}
.nav .nav-admin-users::before {
  mask-image: var(--icon-users);
  -webkit-mask-image: var(--icon-users);
}
.nav .nav-login::before {
  mask-image: var(--icon-lock);
  -webkit-mask-image: var(--icon-lock);
}
.nav .nav-logout::before {
  mask-image: var(--icon-logout);
  -webkit-mask-image: var(--icon-logout);
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  color: #000000;
}

.nav a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch a {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.lang-switch a.active {
  color: var(--text);
  background: var(--card);
}

.lang-switch a:hover {
  background: var(--card);
  color: var(--text);
}

.nav-toggle-control {
  display: none;
}

.nav-toggle-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle-button span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(145deg, rgba(239, 240, 240, 0.1), rgba(250, 246, 249, 0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hero-logo img {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  color: #000000;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 520px;
  color: #000000;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #c89b6d, #b8824f);
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-brand img {
  height: 36px;
  width: auto;
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text);
  margin-top: 0.2rem;
}

.panel {
  background: linear-gradient(180deg, #cdb195, #b89373);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.25rem;
}

.category-panel {
  background:
    url("https://hccnmold.com/wp-content/uploads/2026/01/cho.gif") center/120% auto no-repeat,
    linear-gradient(180deg, rgba(205, 177, 149, 0.88), rgba(184, 147, 115, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #2e2016;
}

.panel.narrow {
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #5b3a25;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0.2rem 0 0.6rem;
}

p {
  color: var(--text);
  line-height: 1.6;
}

label {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

input,
select,
textarea,
button {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
}

select option {
  background: #0f172a;
  color: var(--text);
}

button {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b1021;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(124, 245, 255, 0.25);
}

.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  transition: background 0.2s ease;
}

.button.ghost {
  background: var(--card);
}

.button.small {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, #cdb195, #b89373);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border-color: rgba(242, 193, 134, 0.35);
  filter: saturate(1.02);
}

.card-thumb {
  background: #1b120e;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .eyebrow {
  color: #5b3a25;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.card h3 a {
  color: var(--text) !important;
}

.card h3 a:hover {
  color: var(--accent);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-card .card-body {
  min-height: 160px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.category-card {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.category-card h3 a {
  color: #433022;
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.category-card h3 a:hover {
  color: #2c1f16;
}

.category-card .button {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1021;
  font-weight: 700;
}

.category-card .eyebrow {
  color: #6b5a4c;
}

.category-card .category-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  margin-left: -6px;
}

.table {
  display: grid;
  gap: 0.5rem;
}

.table-row {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr 1.3fr 0.8fr 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.table-head {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.link-danger {
  color: #ff8b8b;
  background: none;
  border: none;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
}

.alert.error {
  border-color: #ff8b8b;
  background: rgba(255, 139, 139, 0.1);
}

.alert.success {
  border-color: #7cf5b5;
  background: rgba(124, 245, 181, 0.08);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.preview {
  margin: 0.5rem 0;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.pill-close {
  width: auto;
  padding: 0.2rem 0.5rem;
  background: transparent;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.product-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.product-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }

  .brand img {
    height: 80px;
  }

  .nav-toggle-button {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  #nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a,
  .nav .inline-form,
  .nav .lang-switch {
    width: 100%;
  }

  .nav .inline-form {
    justify-content: flex-start;
  }

  .nav .inline-form button {
    width: 100%;
    text-align: left;
  }

  .lang-switch {
    justify-content: flex-start;
  }

  .content {
    padding: 1.25rem;
  }
}

@media (max-width: 900px) {
  .table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav .nav-item {
  color: #000 !important;
}

.site-footer .footer-brand img{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  max-width:140px;
  height:auto;
  background: rgba(255,255,255,.92);
  padding:6px 10px;
  border-radius:12px;
}

.site-footer .footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.hc-modal { position: fixed; inset: 0; z-index: 999999; display: none; }
.hc-modal.is-open { display: block; }

.hc-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }

.hc-modal__dialog {
  position: relative;
  width: min(980px, calc(100% - 32px));
  margin: 60px auto;
  background: #c9ad8f;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  overflow: hidden;
}

.hc-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.25)
  );

  color: #3a2618;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hc-modal__close:hover {
  transform: scale(1.05);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.8),
    rgba(255,255,255,0.45)
  );
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.hc-modal__close:active {
  transform: scale(0.96);
}

.hc-modal__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding: 22px;
}

.hc-modal__media {
  background: #111;
  border-radius: 14px;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hc-modal__media img { max-width: 100%; max-height: 420px; object-fit: contain; display: block; }

.hc-modal__content { color: #1b120c; }

@media (max-width: 820px){
  .hc-modal__dialog { margin: 24px auto; }
  .hc-modal__body { grid-template-columns: 1fr; }
  .hc-modal__media { min-height: 240px; }
}

/* Keep blank lines + line breaks in product popup */
.hc-mvc #hcModalText {
  white-space: pre-wrap;
}
/* =====================================================
   MOBILE FIX (Most compatible - vh only)
   Goal: ONE scroll container (the dialog)
   ===================================================== */

/* Modal base */
.hc-mvc .hc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  overflow: hidden; /* keep overlay stable */
}

.hc-mvc .hc-modal.is-open { display: block; }

/* Make dialog the ONLY scroll container */
.hc-mvc .hc-modal__dialog {
  max-height: 90vh;
  margin: 24px auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Remove height locks that cause iOS jump */
.hc-mvc .hc-modal__body {
  max-height: none;
  overflow: visible;
}

/* Keep image stable */
.hc-mvc .hc-modal__media {
  overflow: hidden;
}

.hc-mvc .hc-modal__media img {
  max-height: 45vh;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Let description flow normally */
.hc-mvc .hc-modal__content {
  max-height: none;
  overflow: visible;
}

/* Keep blank lines / line breaks */
.hc-mvc #hcModalText {
  white-space: pre-wrap;
}

