/* ===== STRUCTURE (no colors) ===== */
:root { --topbar-h: 74px; --footer-h: 52px; }


* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif; }

.app-container { min-height: 100vh; display: flex; flex-direction: column; }

/* TOP BAR */
.top-bar{
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  justify-content: space-between;
  min-height: var(--topbar-h);
  padding: 0 clamp(18px, 4vw, 40px);
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.menu-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .material-symbols-outlined{ font-size: 24px; }
.site-title{
  margin: 0;
  letter-spacing: .5px;
  font-size: clamp(1.6rem, 2vw, 2rem);
}
.top-nav{
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}
.top-nav ul{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 18px);
  list-style: none;
}
.top-nav li{ display:flex; }
.top-nav li.nav-basket{
  margin-left: 0;
  padding-left: 0;
  border-left: 1px solid transparent;
}
.top-nav a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: .04em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.top-nav a .label{ font-size: 1.05rem; letter-spacing: .02em; }
.top-nav a .material-symbols-outlined{ font-size: 21px; }
.top-nav a.active{ font-weight: 600; }
.material-symbols-outlined{ font-size:22px; line-height:1; }

.nav-basket__icon{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 400;
  transition: font-variation-settings .2s ease, color .2s ease;
}

.nav-basket__icon[data-state="full"]{
  font-variation-settings: 'FILL' 1, 'wght' 600;
  color: var(--accent);
}

.nav-basket__icon[data-state="full"]::after{
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  top: -2px;
  right: -2px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

@media (min-width: 961px){
  .top-nav li.nav-basket{
    margin-left: clamp(12px, 2vw, 28px);
    padding-left: clamp(12px, 2vw, 28px);
    border-left-color: var(--glass-border);
  }
}

.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* MAIN */
main{
  flex: 1 1 auto;
  padding-bottom: var(--footer-h);
  min-height: calc(100vh - var(--footer-h));
  display: flex;
  flex-direction: column;
}

.content{ padding:24px; flex:1; overflow:auto; }

/* icon buttons (shape only; colors in theme) */
 .icon-link,.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:36px; border-radius:10px; text-decoration:none; border:1px solid transparent;
}
.menu-toggle:focus-visible,
.top-nav a:focus-visible,
.icon-link:focus-visible,
.icon-btn:focus-visible{
  outline:2px solid currentColor;
  outline-offset:2px;
}

/* MODAL (generic) */
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:2000;
}
.modal:not(.hidden){ display:flex; }
.modal.hidden{ display:none; }
.modal-content{
  position:relative; width:min(680px,90vw); border:1px solid transparent; border-radius:12px; padding:24px;
}
.modal-close{
  position:absolute; top:10px; right:14px; background:transparent; border:0; font-size:28px; cursor:pointer;
}

/* FOOTER — full-width */
.site-footer{
  position:fixed; left:0; right:0; bottom:0; height:var(--footer-h);
  display:flex; align-items:center; z-index:1000;
}
.footer-inner{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:0 12px;
}


/* Mobile nav overlay */
body.nav-open{ overflow:hidden; }
@media (min-width:1600px){
  body.nav-open{ overflow: initial; }
}
@media (max-width:1600px){
  body.nav-ready.nav-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    z-index: 990;
  }
}


.gallery-grid .card,
.gallery-grid figure,
.grid .item{
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-grid img,
.grid .item img,
figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

