:root{
  --accent:#ff6f91; /* lively pink */
  --accent-2:#ffd6e0; /* pale pink */
  --bg:#fff7fb; /* very light pink background */
  --card:#ffffff;
  --text:#2b2b2b;
  --muted:#9a8a9e;
  --success:#2a9d8f;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}
*{box-sizing:border-box}
body{margin:0; background:var(--bg); color:var(--text); padding:28px;}
.container{max-width:1100px; margin:0 auto; background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.98)); padding:28px; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,0.06)}
header{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px}
.logo{display:flex; align-items:center; gap:12px}
.logo-img{border-radius:50%; width:56px; height:56px}
.brand{font-weight:800; color:var(--accent); font-size:18px}
nav{display:flex; gap:18px}
nav a{color:var(--muted); text-decoration:none; font-weight:600; font-size:13px}

.product{display:grid; grid-template-columns:420px 1fr; gap:32px; align-items:start}
.gallery{background:var(--card); padding:18px; border-radius:8px}
.image-stage{position:relative}
.sale-badge{position:absolute; left:12px; top:12px; background:var(--accent); color:#fff; padding:8px 12px; border-radius:30px; font-weight:700; font-size:13px; z-index:4}
.img-wrap{width:100%; height:420px; border-radius:6px; overflow:hidden; background:linear-gradient(180deg, rgba(255,230,240,0.6), rgba(255,245,250,0.6)); position:relative; display:flex; align-items:center; justify-content:center}
.img-wrap:focus{outline:2px dashed rgba(255,111,145,0.2)}
.main-image{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(1); max-width:none; width:auto; height:100%; transition:transform 160ms ease}

.zoom-controls{position:absolute; right:12px; bottom:12px; display:flex; gap:8px; z-index:6}
.zoom-controls button{background:rgba(255,255,255,0.9); border:1px solid rgba(0,0,0,0.06); padding:8px 10px; border-radius:6px; cursor:pointer; font-weight:700}

/* Fullscreen styles */
:fullscreen .img-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 10000;
}
:fullscreen .main-image {
  width: auto;
  height: 100vh;
  max-width: 100vw;
  object-fit: contain;
}
:fullscreen .zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
:fullscreen .sale-badge {
  display: none;
}

/* Webkit (Safari) fullscreen */
:-webkit-full-screen .img-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 10000;
}
:-webkit-full-screen .main-image {
  width: auto;
  height: 100vh;
  max-width: 100vw;
  object-fit: contain;
}
:-webkit-full-screen .zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
:-webkit-full-screen .sale-badge {
  display: none;
}

/* MS (IE) fullscreen */
:-ms-fullscreen .img-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 10000;
}
:-ms-fullscreen .main-image {
  width: auto;
  height: 100vh;
  max-width: 100vw;
  object-fit: contain;
}
:-ms-fullscreen .zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
:-ms-fullscreen .sale-badge {
  display: none;
}

.thumbs{display:flex; gap:10px; margin-top:14px}
.thumbs img{width:70px; height:70px; object-fit:cover; border-radius:6px; cursor:pointer; opacity:.95; border:2px solid transparent}
.thumbs img.active{border-color:var(--accent); box-shadow:0 6px 18px rgba(255,111,145,0.12)}

.info{padding:6px 2px}
.title{font-size:26px; font-weight:800; margin:2px 0 8px}
.price-row{display:flex; align-items:center; gap:12px; margin-bottom:12px}
.oldprice{color:#b59; text-decoration:line-through; font-weight:700}
.price{color:var(--accent); font-weight:900; font-size:20px}
.ship{font-size:13px; color:var(--success)}
.short{color:#5a5a5a; margin-bottom:10px}
.desc{line-height:1.6; color:#444; margin-bottom:16px}
.desc h3{margin:10px 0 6px}

.purchase{display:flex; gap:12px; align-items:center; margin-bottom:12px}
.purchase label{font-weight:700}
.purchase input[type=number]{width:72px; padding:8px; border-radius:8px; border:1px solid rgba(0,0,0,0.06)}
.btn{background:green; color:white; border:none; padding:10px 16px; border-radius:8px; font-weight:800; cursor:pointer}

.meta{font-size:13px; color:var(--muted); margin-top:8px}

.tabs{margin-top:20px}
.tab-buttons{display:flex; gap:18px; border-bottom:1px solid rgba(0,0,0,0.04); padding-bottom:8px}
.tab-buttons button{background:none; border:none; padding:8px; cursor:pointer; font-weight:700; color:var(--muted)}
.tab-buttons button.active{color:var(--accent)}
.tab-content{padding-top:16px; color:#333}
.info-table{width:100%; border-collapse:collapse}
.info-table td{padding:8px 6px; border-bottom:1px dashed rgba(0,0,0,0.03)}

/* Lightbox styles */
.lightbox{display:none; position:fixed; inset:0; align-items:center; justify-content:center; background:rgba(0,0,0,0.7); z-index:9999}
.lb-img{max-width:88vw; max-height:88vh; box-shadow:0 12px 40px rgba(0,0,0,0.6); border-radius:6px}
.lb-close, .lb-prev, .lb-next{position:fixed; background:rgba(255,255,255,0.95); border:none; padding:10px; border-radius:8px; cursor:pointer; font-weight:700}
.lb-close{right:22px; top:22px}
.lb-prev{left:22px; top:50%; transform:translateY(-50%)}
.lb-next{right:22px; top:50%; transform:translateY(-50%)}

/* responsive */
@media (max-width:900px){
  .product{grid-template-columns:1fr}
  .img-wrap{height:360px}
}

/* ===== Header / Navigation (replace existing header / nav / logo rules) ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 6px;
  margin-bottom: 20px;
}

/* Logo area */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.brand {
  font-weight: 800;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Navigation links */
nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* link style */
nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, transform 120ms ease;
  position: relative;
}

/* hover / focus */
nav a:hover,
nav a:focus {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255,214,224,0.6), rgba(255,244,246,0.35));
  transform: translateY(-2px);
  outline: none;
}

/* active link underline style */
nav a.active,
nav a[aria-current="page"] {
  color: var(--accent);
}
nav a.active::after,
nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #ff8fb3);
  opacity: 1;
  transform-origin: center;
}

/* make nav accessible on keyboard */
nav a:focus-visible {
  box-shadow: 0 0 0 4px rgba(255,111,145,0.12);
  border-radius: 8px;
}

/* small-screen behavior: wrap links and keep spacing */
@media (max-width: 700px) {
  header { padding: 10px; }
  nav {
    gap: 10px;
    flex-wrap: wrap;          /* allow links to wrap into multiple lines */
    justify-content: flex-end;
  }
  nav a { padding: 8px 10px; font-size: 14px; }
  .brand { font-size: 16px; }
}

