/* ======================
   GLOBAL RESET
====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #111;
}

/* ======================
   INTRO SECTION
====================== */
.intro-cat {
  text-align: center;
  padding: 4rem 1rem 1rem 1rem;
}

.intro-brand {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.intro-tagline {
  font-family: cursive;
  font-size: 1.4rem;
  font-weight: bold;
}

.intro-sub {
  margin-top: 0.75rem;
  font-size: 1.2rem;
  font-family: "Courier New", Courier, monospace;
}

/* ======================
   MAIN LAYOUT
====================== */
.main-catalogue {
  display: flex;
  width: 100%;
  gap: 1rem;
  padding: 0 1rem;
}

/* ======================
   CATALOGUE SIDEBAR
====================== */
.catalogue {
  flex: 0 0 220px;
  padding: 1rem;
  border-right: 1px solid #000;
  font-family: Cambria, Cochin, serif;
}
.border {
  border-bottom: 1px solid black; 
  margin: 0.5rem 0; 
}

/* ======================
   CATEGORY CONTENT
====================== */
.category {
  flex: 1;
  padding: 0 1rem 4rem;
}

.title h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1.5rem;
}

/* ======================
   PRODUCT GRID
====================== */
.options-cat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.product {
  text-align: center;
  border-radius: 1.25rem;
  border: 2px solid rgb(144, 122, 25);
  cursor: pointer;
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.items {
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* ======================
   MOBILE VIEW
====================== */
@media (max-width: 768px) {

  /* Hide catalogue on mobile */
  .catalogue {
    display: none;
  }

  .main-catalogue {
    padding: 0.5rem;
  }

  .category {
    padding: 0 0.5rem 3rem;
  }

  .options-cat {
    grid-template-columns: 1fr;
  }

  .title h1 {
    text-align: center;
  }
}

/* ======================
   TABLET VIEW
====================== */
@media (min-width: 768px) {
  .options-cat {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================
   DESKTOP / LARGE SCREENS
====================== */
@media (min-width: 1200px) {
  .options-cat {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ======================
   GLOBAL REUSABLE MODAL
====================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: min(95%, 1000px);
  height: min(90vh, 720px);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

