/* =========================
   RESET + GLOBAL FONT
   ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root { --header-height: 70px; }

body {
  font-family: "Times New Roman", Times, serif;
  background: #f4f6f8;
  color: #333;
  padding-top: var(--header-height);
}

input, textarea, button { font-family: "Times New Roman", Times, serif; }

/* =========================
   SKIP LINK
   ========================= */
.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  background: #ff9800;
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 20000;
}
.skip-link:focus { transform: translateY(0); }

/* =========================
   VISIBLE FOCUS STYLES
   ========================= */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.dot:focus-visible,
.panel-close:focus-visible,
.product-modal-close:focus-visible,
.arrow:focus-visible,
.pause-play:focus-visible,
.style-item:focus-visible {
  outline: 3px solid #ff9800;
  outline-offset: 3px;
}

/* =========================
   FIXED HEADER / NAVBAR
   ========================= */
header {
  background: #222;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

.navbar {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  min-width: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 5px;
  flex-shrink: 0;
}

.logo span {
  display: block;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  margin-left: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s ease, border-radius 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: #555;
  border-radius: 6px;
}

/* =========================
   PAGE LAYOUT
   ========================= */
.home-content,
.products-content,
.contact-content,
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  padding: 20px;
  gap: 12px;
}

#main-content:focus { outline: none; }

/* Full-bleed helper */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* =========================
   HERO / SLIDESHOW
   ========================= */
.hero { width: 100%; margin-top: 10px; }

.slideshow {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 4s ease;
}
.slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 30px;
  padding-bottom: 70px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
  color: white;
  text-align: left;
}

.hero-overlay h2 { font-size: 34px; margin-bottom: 8px; }
.hero-overlay p { font-size: 16px; margin-bottom: 14px; max-width: 520px; }

.hero-btn {
  display: inline-block;
  background: #ff9800;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 10px;
}
.hero-btn:hover { filter: brightness(0.95); }

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.arrow.left { left: 20px; }
.arrow.right { right: 20px; }
.arrow:hover { background: rgba(0,0,0,0.8); }

/* Pause/Play button */
.pause-play {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 12;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
}
.pause-play:hover { background: rgba(0,0,0,0.8); }

/* Dots */
.dots {
  position: absolute;
  bottom: 6px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.dot.active { background: #ff9800; }

/* =========================
   FEATURED PRODUCTS
   ========================= */
.featured {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 20px;
  text-align: center;
}

.section-title { font-size: 28px; margin-bottom: 18px; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
}

.featured-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #333;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: transform 0.2s ease;
}
.featured-card:hover { transform: translateY(-2px); }

.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

.price { font-weight: bold; margin-top: 6px; }

/* =========================
   PRODUCTS CATEGORY GRID (3 tiles)
   ========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Important: keep category images contained */
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

/* =========================
   Category styles panel
   ========================= */
.category-panel {
  width: 100%;
  max-width: 1200px;
  margin: 25px auto 0;
  padding: 18px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-align: left;
}

.category-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-close {
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
}
.panel-close:hover { background: #ddd; }

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.style-item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.style-item:hover,
.style-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.style-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.style-item:hover img,
.style-item:focus-visible img {
  transform: scale(1.05);
}

.style-info {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.style-name { font-weight: bold; }
.style-price { font-weight: bold; }

/* =========================
   PRODUCT MODAL
   ========================= */
.product-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  padding: 30px 16px;
}

.product-modal-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(0,0,0,0.08);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 40px;
}
.product-modal-close:hover { background: rgba(0,0,0,0.15); }

#productModalImg {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #111;
  display: block;
}

.product-modal-details {
  padding: 16px 18px 20px;
  text-align: left;
}

.product-modal-details h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.product-modal-details p {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}
.product-modal-price { font-weight: bold; font-size: 18px; }

/* Optional modal gallery thumbs (if you enabled multiple images) */
.modal-gallery { padding: 10px 14px 0; background: #fff; }
.modal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; }

.modal-thumb {
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
}
.modal-thumb.active { border-color: #ff9800; }

.modal-thumb img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* =========================
   CONTACT FORM
   ========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
}

button {
  padding: 12px;
  background: #222;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
button:hover { background: #444; }

/* =========================
   FOOTER
   ========================= */
.footer {
  background: #222;
  color: white;
  padding: 20px 40px;
  text-align: center;
  margin-top: 40px;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer .social-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.footer .social-links a:hover { color: #ff9800; }

/* =========================
   ABOUT PAGE (story + fade in/out)
   ========================= */
.about-intro {
  max-width: 800px;
  font-size: 18px;
  margin-bottom: 8px;
}

.about-section {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 18px;
  margin: 24px 0;
  text-align: left;
}

.about-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.about-text h2 { font-size: 26px; margin-bottom: 10px; }

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* fade effect */
.scroll-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade.is-fading-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 800px) {
  .about-section { grid-template-columns: 1fr; }
  .about-media img { height: 240px; }

  header {
    position: static;
  }

  body {
    padding-top: 0;
  }

  .navbar {
    min-height: auto;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    gap: 10px !important;
  }

  .logo {
    width: 100%;
    justify-content: center !important;
    text-align: center;
    flex-direction: column !important;
    gap: 6px !important;
    font-size: 18px !important;
  }

  .logo-img {
    height: 36px;
    margin-right: 0;
  }

  .logo span {
    font-size: 1rem;
    line-height: 1.2;
  }

  .nav-links {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px 10px !important;
  }

  .nav-links li {
    margin: 0 !important;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .slideshow { height: 360px; }
}

@media (max-width: 600px) {
  .slideshow { height: 320px; }

  .hero-overlay {
    padding: 20px;
    padding-bottom: 70px;
    align-items: center;
    text-align: center;
  }

  .hero-overlay h2 { font-size: 24px; }
  .hero-overlay p { font-size: 15px; max-width: 100%; }

  .product-card img { height: 160px; }
  .styles-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* =========================
   ABOUT: INSTAGRAM SECTION
   ========================= */
.about-instagram {
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 18px;
  margin: 24px 0 10px;
  text-align: center;
}

.about-instagram h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.about-instagram-intro {
  font-size: 16px;
  margin-bottom: 10px;
}

.about-instagram-link a {
  font-weight: bold;
  text-decoration: none;
}
.about-instagram-link a:hover {
  text-decoration: underline;
}

.ig-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

/* Helps keep embeds from overflowing on small screens */
.ig-embeds blockquote.instagram-media {
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto !important;
}

/* =========================
   FORCE MOBILE HEADER FIX
   Put this at the VERY END of style.css
   ========================= */
@media (max-width: 800px) {
  header {
    position: static !important;
  }

  body {
    padding-top: 0 !important;
  }

  .navbar {
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
  }

  .logo {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    font-size: 18px !important;
    min-width: 0 !important;
  }

  .logo-img {
    height: 36px !important;
    margin-right: 0 !important;
  }

  .logo span {
    display: block !important;
    width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .nav-links {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links li {
    margin: 0 !important;
  }

  .nav-links a {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    padding: 6px 8px !important;
  }
}

@media (max-width: 600px) {
  .slideshow {
    height: 320px !important;
  }

  .hero-overlay {
    padding: 20px !important;
    padding-bottom: 70px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-overlay h2 {
    font-size: 24px !important;
  }

  .hero-overlay p {
    font-size: 15px !important;
    max-width: 100% !important;
  }
}