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

body {
  background-color: #f4f4f4;

}


.navbar {
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
background: transparent;
z-index: 15;
padding: 0.25rem 1rem;
transition: top 0.3s;
}

/* logo */
.logo h1 {
  height: auto;
  width: auto;
  background: transparent;
  align-items: center;
  margin-bottom: 0;
  line-height: 0.9;
  font-size: 1.8em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* tagline below logo */
.logo .tagline {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: #333;
  display: block;
  margin-top: 5px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* navbar */
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
padding: 0 2rem 0 0;
}

.nav-links li {
position: relative;
}

.nav-links a {
text-decoration: none;
color: #000;
font-weight: 800;
text-transform: lowercase;
}

.nav-links a:hover {
color: #000;
text-decoration: underline;
}

.dropdown {
position: relative;
}

.dropdown > a {
position: relative;
z-index: 2;
}

/* Dropdown menu */
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
background-color: white;
border: 1px solid black; /* 1px all around */
display: none;
flex-direction: column;
min-width: 180px;
z-index: 5;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
display: flex;
}

.dropdown-menu li {
padding: 0.5rem 1rem;
border-bottom: 1px solid black;
background-color: white;
list-style: none;
}

.dropdown-menu li:last-child {
border-bottom: none;
}

.nav-links li {
position: relative;
}

.dropdown-menu a {
text-decoration: none;
color: black;
font-weight: normal;
display: block;
width: 100%;
}

.dropdown-menu a:hover {
background-color: #f4f4f4;
}

/* Product Page Layout */
.product-page {
  display: flex;
  gap: 3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image Gallery */
.image-gallery {
  flex: 1;
}

.main-image {
  position: relative;
  padding: 2rem;
  background: transparent;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.main-image img {
  width: 100%;
  display: block;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.75;
  transition: background 0.3s, opacity 0.3s;
}

.nav:hover {
  background: #222;
  opacity: 1;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.thumbnail-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.thumbnail-row img {
  width: 60px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s;
}

.thumbnail-row img:hover {
  border-color: #aaa;
}

/* Product Info */
.product-info {
  flex: 1;
  padding-top: 8rem;
}

.product-info .title {

  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info .description {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  /* text-transform: lowercase; */
  color: #555;
}

/* Size Chart Table */
.size-chart table {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  border: 1px solid #ddd;
  overflow: hidden;
}

.size-chart th,
.size-chart td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.size-chart th {
  background: #fafafa;
  font-weight: 600;
}

.size-chart tr:last-child td {
  border-bottom: none;
}

.service-details {
  margin-top: 2rem;
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', sans-serif;
}

.service-details h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-details table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #ccc;
}

.service-details th,
.service-details td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.service-details th {
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 0.9rem;
}

.service-details td {
  font-size: 0.9rem;
  vertical-align: top;
}

.add-to-cart {
  width: 100%;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid black;
  color: black;
  padding: 0.25rem;
  font-weight: bold;
  /* cursor: pointer; */
}

.add-to-cart:hover {
  text-decoration: underline;
  color: #000;
}

/* ========== Responsive Addon (Management) ========== */

/* Fluid media + safe wrapping */
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
body { overflow-wrap: anywhere; }

/* Tablet tweaks */
@media (max-width: 992px){
  .navbar { padding: .5rem 1rem; gap: .75rem; }
  .logo h1 { font-size: 1.6rem; }
  .logo .tagline { font-size: .85rem; }

  .product-page { gap: 2rem; padding: 1.5rem; }
  .main-image { max-width: 520px; }
}

/* 2‑line hamburger (hidden on desktop) */
.nav-toggle{
  display:none;
  position:relative;
  width:28px; height:18px;
  background:transparent; border:0; padding:0;
  cursor:pointer; outline-offset:4px;
}
.nav-toggle::before,
.nav-toggle::after{
  content:""; position:absolute; left:0; right:0;
  height:1.5px; background:#000;
  transition:transform .2s ease, top .2s ease;
}
.nav-toggle::before{ top:3px; }
.nav-toggle::after { top:13px; }
.nav-toggle.is-active::before{ top:8px; transform:rotate(45deg); }
.nav-toggle.is-active::after { top:8px; transform:rotate(-45deg); }

/* Mobile core */
@media (max-width: 768px){

  /* Header layout + hamburger */
  .navbar { position: sticky; top: 0; z-index: 1100; flex-wrap: wrap; row-gap: .5rem; background-color: #f4f4f4;}
  .social-links { order: 3; width: 100%; justify-content: flex-start; }
  .nav-toggle { display: block; margin-left: auto; }
  nav { position: relative; width: 100%; }

  /* Collapsed panel: no peeking */
  .nav-links{
    position: absolute; left: 0; right: 0; top: 100%;
    display: block !important;          /* override desktop flex */
    max-height: 0; overflow: hidden;
    padding: 0; margin: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    border: 0 !important;
    transition: max-height .25s ease, padding .2s ease, margin .2s ease;
    z-index: 1050;
  }

  /* Open panel: bordered + item borders */
  .nav-links.is-open{
    padding: 0;
    margin-top: .4rem;                        /* reveal top border */
    max-height: calc(100vh - 56px);
    overflow: auto;
    border: 1px solid #000 !important;
    border-radius: 6px;                       /* set to 0 for square */
    background: #fff;
  }
  .nav-links.is-open > li{
    list-style: none;
    border-bottom: 1px solid #000;
  }
  .nav-links.is-open > li:last-child{ border-bottom: none; }
  .nav-links a{ display:block; padding:.55rem 1rem; color:#000; }

  /* Dropdowns: tap/focus to open with their own border */
  .dropdown:hover .dropdown-menu { display: none !important; }
  .nav-links.is-open .dropdown-menu{
    position: static; display: none; width: 100%;
    border: 1px solid #000; border-radius: 4px;
    background: #fff; margin: .5rem 1rem;
  }
  .nav-links.is-open .dropdown:focus-within .dropdown-menu{ display: block; }
  .nav-links.is-open .dropdown-menu li{
    list-style: none; border-bottom: 1px solid #000;
  }
  .nav-links.is-open .dropdown-menu li:last-child{ border-bottom: none; }

  /* Product page stacks */
  .product-page{
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem;
  }

  /* Main image sizes and nav buttons */
  .main-image{
    padding: 1rem;
    max-width: 92vw;
    margin: 0 auto;
  }
  .nav{ 
    z-index: 2; 
    width: 36px; height: 36px; font-size: 1.25rem;
  }
  .nav.prev{ left: 10px; }
  .nav.next{ right: 6px; }

  /* Thumbnails become scrollable row */
  .thumbnail-row{
    gap: 10px; margin-top: 12px;
    padding-bottom: 6px;
    overflow-x: auto; scrollbar-width: thin;
  }
  .thumbnail-row img{ width: 56px; }

  .product-info{
    padding: 2rem;
  }
  .product-info .title{
    font-size: 1.2rem;
  }

  .size-chart, .service-details{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Button touch target */
  .add-to-cart{
    padding: .5rem .75rem;
    font-size: 1rem;
  }
}
@media (max-width: 560px){
  .logo h1 { font-size: 1.4rem; line-height: 1; }
  .thumbnail-row img{ width: 52px; }
}

.main-image, .image-gallery, .product-page { position: relative; z-index: 1; }
