:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-muted: #efefef;
  --ink: #141414;
  --ink-soft: #202020;
  --muted: #626262;
  --muted-soft: #8c8c8c;
  --line: #dfdfdf;
  --white: #ffffff;
  --accent: #111111;
  --brand-red: #a00000;
  --brand-red-strong: #b30000;
  --brand-red-tint: rgba(179, 0, 0, 0.08);
  --rating-gold: #c69400;
  --overlay-dark: rgba(0, 0, 0, 0.55);
  --cart-panel-width: 33.333vw;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
/* background layer */

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("./assets/jcf-logo.JPEG");
  background-size: 600px;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.25;   /* CHANGE THIS VALUE */
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  
}

.brand {
  display: flex;
  flex-direction: row;   /* STACKS logo and text */
  align-items: center;      /* centers them */
  line-height: 1.1;
  gap: 0.5rem;             /* space between logo and text */  
}

.brand-logo {
  width: 75px;
  height: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.title {
  font-family: 'Montserrat', 'Segoe UI', sans-serif; /* sleek, modern font */
  font-weight: 800;           /* bold for a strong presence */
  font-size: 2rem;          /* big enough to stand out */
  color: var(--brand-red);
  letter-spacing: 1px;        /* spacing between letters for style */
  text-transform: uppercase;  /* all caps for impact */
  margin-left: 0px;          /* push it closer to left edge */
  margin-top: 0;  
             /* remove any top margin if needed */
}

nav,
.actions,
.row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.actions {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(420px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  padding: 0.8rem;
  z-index: 1200;
  display: grid;
  gap: 0.7rem;
}

.account-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.account-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.account-section h4 {
  margin: 0;
}

.account-form {
  display: grid;
  gap: 0.45rem;
}

.account-form textarea {
  resize: vertical;
  min-height: 80px;
}

.account-scroll {
  max-height: 170px;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
}

.account-order-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem;
  font-size: 0.92rem;
}

.account-logout {
  justify-self: end;
}

.cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
}

.cart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--white);
}

.sr-only-control {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

button:hover {
  background: var(--brand-red-strong);
  color: var(--white);
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: var(--white);
}

.secondary,
.ghost {
  background: var(--surface-muted);
  color: var(--ink);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
  transition: width 0.25s ease, margin 0.25s ease;
}

body.cart-panel-open main {
  max-width: none;
  width: calc(100vw - var(--cart-panel-width));
  margin-left: 0;
  margin-right: var(--cart-panel-width);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  min-height: 65vh;
  border-radius: 24px;
  padding: 4rem;
  background-color: var(--ink-soft);
  background-image: linear-gradient(135deg, rgba(16, 16, 16, 0.62), rgba(20, 20, 20, 0.5)), url("/assets/landing-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  display: grid;
  align-content: center;
  gap: 1rem;
}
.landing-hero {
  /* Replace 'your-hero-image.jpg' with your actual image path */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), 
              url('assets/landing-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 40px;
}
.welcome-container {
  margin-bottom: 2rem;
  animation: fadeInDown 1.2s ease-out;
}

.welcome-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  line-height: 1;
}

.welcome-top {
  font-size: 0.9rem;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.welcome-brand {
  font-size: 3.5rem;
  font-weight: 900;
  font-style: italic;
  /* Gold Gradient to match your logo */
  background: linear-gradient(45deg, #d4af37, #fcf6ba, #b8860b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
  letter-spacing: -2px;
}

.welcome-sub {
  font-size: 1rem;
  letter-spacing: 4px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-weight: 600;
}

/* Smooth entry animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive adjustment */
@media (max-width: 768px) {
  .welcome-brand {
    font-size: 2.2rem;
  }
  .welcome-top {
    font-size: 0.7rem;
    letter-spacing: 5px;
  }
}
.hero-content {
  max-width: 800px;
  z-index: 2;
}

/* Ensures the Crimson text pops against the dark background */
.landing-hero h1 span {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 18ch;
}

.catalog-hero-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 3rem;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2)
  );

  color: white;
  max-width: 600px;
}

.catalog-hero {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
  display: block;
}

.catalog-header {
  margin-bottom: 0.65rem;
}

.catalog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0.2rem 0 0.6rem 0;
}

.hero-description {
  font-size: 1rem;
  color: #d8d8d8;
  margin-bottom: 1.2rem;
}

.catalog-hero-copy {
  display: grid;
  gap: 0.6rem;
}

.catalog-hero h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
}

.catalog-hero p {
  margin: 0;
  max-width: 60ch;
}

.catalog-hero-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.featured-hero {
  background-image: linear-gradient(135deg, rgba(17, 17, 17, 0.788), rgba(42, 42, 42, 0.753)), url("./assets/hero-featured-placeholder.jpg");
  background-size: cover;
  background-position: center;
}

.men-hero {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;

  background-image: linear-gradient(135deg, rgba(10, 10, 10, 0.45), rgba(10, 10, 10, 0.3)), url("./assets/men-hero.jpg");
  background-size: cover;
  background-position: center;
}

.women-hero {
  background-image: linear-gradient(135deg, rgba(36, 36, 36, 0.45), rgba(106, 58, 82, 0.35)), url("./assets/women-hero.jpg");
  background-size: cover;
  background-position: center;
}
.catalog-hero-image {
  width: 100%;               /* fills the container width */
  max-height: 500px;         /* limits height so it doesn’t dominate page */
  object-fit: cover;         /* crops image nicely without stretching */
  border-radius: 12px;       /* optional: soft rounded corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* subtle depth */
  display: block;            /* removes inline spacing issues */
  margin: 1rem 0;            /* spacing above & below */
  transition: transform 0.3s ease; /* smooth hover effect */
}

.catalog-hero-image:hover {
  transform: scale(1.03);    /* slight zoom on hover */
}

.unisex-hero {
  background-image: linear-gradient(135deg, rgba(31, 31, 31, 0.45), rgba(63, 63, 63, 0.35)), url("./assets/unisex-hero.jpg");
  background-size: cover;
  background-position: center;
}

.men-hero {
  animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 110%;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted-soft);
}

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

.section-head h2 {
  margin: 0;
}

input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  min-height: 40px;
}

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

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: visible;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.magnifier-frame {
  position: relative;
  overflow: visible;
  perspective: 1000px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95), rgba(243, 243, 243, 0.9));
}

.card .magnifier-frame {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 0 0;
}

.card .magnify-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
  transform-origin: center center;
}

.card .magnifier-frame > img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
  transform-origin: center center;
}

.magnifier-frame.magnifier-active {
  cursor: none;
}

.img-magnifier-lens {
  position: absolute;
  left: 0;
  top: 0;
  width: 130px;
  height: 130px;
  display: none;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid var(--brand-red-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 8px var(--brand-red-tint);
  background-color: rgba(255, 255, 255, 0.2);
  background-repeat: no-repeat;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card:hover .magnify-image {
  transform: translateY(-10px) scale(1.06) rotateX(4deg) rotateY(-6deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.32));
}

.card:hover .magnifier-frame > img {
  transform: translateY(-10px) scale(1.06) rotateX(4deg) rotateY(-6deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.32));
}

.card-content {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.card-content h3 {
  margin: 0;
}

.link-button {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.link-button:hover {
  background: transparent;
  color: var(--brand-red-strong);
  transform: none;
}

.card-rating {
  margin: 0;
  color: var(--rating-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 1fr);
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.product-detail img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: contain;
  padding: 0.75rem;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.22));
}

.detail-image-wrap {
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dcdcdc;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.image-nav-prev {
  left: 10px;
}

.image-nav-next {
  right: 10px;
}

.product-detail-content {
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.product-detail-content h3 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

#detail-description {
  margin: 0.35rem 0 0.5rem;
  white-space: pre-line;
  line-height: 1.6;
  color: #222;
}

.detail-price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.detail-rating {
  margin: 0;
  color: var(--rating-gold);
  font-weight: 700;
}

.review-section {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.review-section h4 {
  margin: 0;
}

.review-summary {
  display: grid;
  gap: 0.55rem;
}

.review-overall-score {
  margin: 0;
  color: var(--rating-gold);
  font-weight: 700;
}

.review-breakdown {
  display: grid;
  gap: 0.35rem;
}

.review-bar-row {
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.review-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--rating-gold);
}

.review-form {
  display: grid;
  gap: 0.55rem;
}

.review-list {
  display: grid;
  gap: 0.55rem;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  background: var(--surface);
}

.review-item-rating,
.review-meta {
  margin: 0;
}

.review-item-rating {
  color: var(--rating-gold);
}

.review-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

#cart-items,
#admin-products {
  display: grid;
  gap: 0.75rem;
}

#cart-items {
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 0.2rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cart-item,
.admin-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-item-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.saved-for-later {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.saved-list {
  display: grid;
  gap: 0.6rem;
}

.compact-head h3 {
  margin: 0;
}

.admin-item {
  align-items: stretch;
  flex-direction: column;
}

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

.admin-item-form textarea {
  grid-column: 1 / -1;
  min-height: 64px;
}

.admin-item-actions {
  justify-content: flex-end;
}

.cart-summary,
.steps,
.auth-form,
.checkout-panel,
.admin-form {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.order-history {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.order-history .order-line {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
}

.steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.step {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.9rem;
}

.step.active {
  background: var(--ink);
  color: var(--white);
}

.checkout-panel {
  display: grid;
  gap: 0.75rem;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--overlay-dark);
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal .auth-form {
  width: min(420px, 100%);
}

.auth-form {
  display: grid;
  gap: 0.75rem;
  min-width: 320px;
}

.modal-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.modal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 180px;
  opacity: 0.06;
  pointer-events: none;
}

.modal-shell > * {
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.cart-side-panel {
  position: fixed;
  right: 0;
  top: var(--top-nav-height, 96px);
  width: var(--cart-panel-width);
  max-height: calc(100vh - var(--top-nav-height, 96px));
  height: calc(100vh - var(--top-nav-height, 96px));
  overflow: auto;
  background: var(--white);
  border-left: 1px solid var(--line);
  padding: 0.9rem;
  box-shadow: -8px 0 22px rgba(0, 0, 0, 0.08);
  z-index: 9;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  overflow: hidden;
}

.cart-side-panel.hidden {
  display: none !important;
}

.cart-side-panel h3 {
  margin: 0;
}

.cart-side-items {
  display: grid;
  gap: 0.45rem;
  min-height: 0;
  overflow-y: scroll;
  align-content: start;
  padding-right: 0.2rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.cart-side-items::-webkit-scrollbar {
  width: 10px;
}

.cart-side-items::-webkit-scrollbar-thumb {
  background: #b9b9b9;
  border-radius: 999px;
}

.cart-side-items::-webkit-scrollbar-track {
  background: var(--surface-muted);
}

.cart-side-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cart-side-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem;
}

.cart-side-item strong {
  display: block;
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .top-nav {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .hero {
    padding: 2rem;
  }

  .catalog-hero {
    padding: 1.35rem;
    grid-template-columns: 1fr;
  }

  .catalog-hero-image {
    max-height: 180px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail img {
    min-height: 240px;
  }
}

@media (max-width: 1120px) {
  .cart-side-panel {
    display: none;
  }

  body.cart-panel-open main {
    width: auto;
    margin-right: auto;
  }
}

.site-footer {
  background: #101010;
  opacity: 0.95;
  color: #c7c7c7;
  padding-top: 60px;
  margin-top: 100px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 20px 40px;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #929292;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #252525;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #7d7d7d;
}
