*[hidden] { display: none !important; }

:root{
  /* Premium Dark Theme */
  --bg:#121212;
  --panel:#1e1e1e;
  --panel2:#252525;
  --text:#e0e0e0;
  --muted:#a0a0a0;
  --stroke:rgba(255,255,255,0.1);
  --brand:rgb(205, 127, 50);
  --brand2:rgba(205, 127, 50, 0.2);
  --ok:#1fa76f;
  --bad:#ff4d64;
  --shadow: 0 12px 40px rgba(0,0,0,0.6);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color:var(--text);
}
a{color:inherit}
.container{max-width:100%; margin:0 auto; padding:0 16px}
@media (min-width: 768px) { .container{padding:0 32px} }

.header{
  position:sticky; top:0; z-index:50;
  background: rgba(30,30,30,0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border-radius: 0 0 32px 32px;
}
.header__inner{display:flex; align-items:center; justify-content:space-between; padding:16px 0}
.header__right{display:flex; align-items:center; gap:12px}

.brand{display:flex; gap:12px; align-items:center; text-decoration:none}
.brand__logoWrap{position:relative; width:70px; height:70px; flex:0 0 70px}
.brand--link:hover{opacity:.95}
.brand__logo{
  width:70px; height:70px;
  display:grid; place-items:center;
  font-weight:800;
  border-radius: 50%;
}
.brand__logo--img{
  filter: brightness(0) saturate(100%) invert(56%) sepia(35%) saturate(1450%) hue-rotate(352deg) brightness(88%) contrast(100%);
  width:100%; height:100%; object-fit:contain; display:block; transform: scale(1.1); border-radius: 50%;
}
.brand__logo.fallback{position:absolute; inset:0; display:none; place-items:center}
.brand__subtitle{color:var(--muted); font-size:13px; font-style: italic;}
.brand__hint{color:var(--muted); font-size:12px; font-family: sans-serif;}
.brand__phone{display:inline-block; margin-top:3px; font-weight:700; text-decoration:none; color: var(--brand); font-family: sans-serif;}

.cartButton{
  display:flex; gap:10px; align-items:center;
  padding:10px 16px;
  border:1px solid transparent;
  border-radius:999px;
  background: var(--panel);
  color:var(--text);
  cursor:pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-family: sans-serif;
}
.cartButton:hover{transform: translateY(-2px); transition: transform 0.2s;}
.cartButton__icon{font-weight:700}
.cartButton__meta{color:var(--brand); font-weight:700}

.pill{
  padding:8px 14px;
  border:1px solid transparent;
  border-radius:999px;
  background: var(--panel);
  color:var(--muted);
  font-weight:650;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-family: sans-serif;
}

.hero{padding:32px 0 16px; text-align: center;}
.hero__title{margin:0; font-size:42px; line-height:1.1; font-weight: 400; color: var(--brand); font-style: italic;}
.hero__desc{margin:10px 0 0; color:var(--muted); font-size: 16px; font-family: sans-serif;}

.categories{
  display:flex; gap:12px; flex-wrap:wrap;
  padding:20px 0 16px;
  justify-content: center;
}
.chip{
  padding:12px 20px;
  border:1px solid transparent;
  border-radius:999px;
  background: var(--panel2);
  color:var(--muted);
  cursor:pointer;
  font-weight:700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
  font-family: sans-serif;
}
.chip--active{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(199,154,85,0.4);
}
.chip--disabled{
  opacity: .55;
  cursor: not-allowed;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:20px;
  padding: 10px 0 50px;
}
.card{
  grid-column: span 12;
  display:flex; 
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap:16px;
  border:1px solid transparent;
  border-radius:40px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 20px;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

@media (min-width:720px){ .card{grid-column: span 6;} }
@media (min-width:1250px){ .card{grid-column: span 4;} }
@media (min-width:1700px){ .card{grid-column: span 3;} }
@media (min-width:2200px){ .card{grid-column: span 2;} }

.card__img{width:160px; height:160px; object-fit:cover; flex:0 0 160px; border-radius: 32px; margin-top: 10px;}
.card__body{padding:0; display:flex; flex-direction:column; gap:8px; min-width:0; flex: 1; align-items: center;}
.card__title{font-weight:400; font-size: 22px; font-style: italic;}
.card__desc{color:var(--muted); font-size:14px; line-height:1.4; min-height:40px; font-family: sans-serif;}
.card__bottom{display:flex; flex-direction: column; align-items:center; gap:16px; margin-top:auto; width: 100%;}
.price{font-weight:900; color: var(--brand); font-size: 20px; font-family: sans-serif;}
.priceBox{display:flex; flex-direction:column; gap:4px; align-items: center;}
.price--old{
  color: #ff6b6b;
  position: relative;
  font-size: 14px;
}
.crossed-num {
  position: relative;
  display: inline-block;
}
.crossed-num::after{
  content:"";
  position:absolute; left:0; right:0; top:50%;
  border-top:2px solid #ff6b6b;
  transform: rotate(-12deg);
  transform-origin:center;
  border-radius: 2px;
}
.card__actions{display:flex; gap:10px; align-items:center; flex-wrap:nowrap; justify-content: center;}
.card__options { margin-top: auto; margin-bottom: 10px; }

.card__actions .primaryBtn,
.card__actions .qty {
  width: 140px; 
  min-width: 140px;
  height: 44px;
  padding: 0; 
  box-sizing: border-box;
}

.card__actions .qty {
  justify-content: space-between;
  padding: 0 6px;
}

.sizeSwitch{display:flex; gap:8px}
.chip--size{padding:8px 14px; border-radius: 999px;}

.primaryBtn,.secondaryBtn{
  display:inline-flex; justify-content:center; align-items:center;
  padding:12px 24px;
  border-radius:999px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  font-weight:800;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: sans-serif;
}
.primaryBtn{
  background: var(--brand);
  color:#fff;
  box-shadow: 0 8px 20px rgba(199,154,85,0.4);
}
.primaryBtn:hover{
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 25px rgba(199,154,85,0.5);
}
.primaryBtn:disabled, .primaryBtn[disabled] {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
.secondaryBtn{
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.secondaryBtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.iconBtn{
  background: var(--panel);
  border:none;
  color: var(--text);
  width:40px; height:40px;
  border-radius:50%;
  cursor:pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.iconBtn:hover{transform: scale(1.1);}

.drawerOverlay{
  position:fixed; inset:0; z-index:80;
  background: rgba(0,0,0,.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.drawerOverlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer{
  position:fixed; top:16px; right:16px; bottom:16px; z-index:90;
  width:min(400px, 90vw);
  background: var(--panel);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display:flex; flex-direction:column;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--stroke);
}
.drawer.is-open {
  transform: translateX(0);
}

.drawer__header{display:flex; justify-content:space-between; align-items:center; padding:20px; border-bottom:1px solid var(--stroke)}
.drawer__title{font-weight:400; font-size: 24px; font-style: italic;}
.drawer__content{padding:16px; overflow:auto; flex:1}
.drawer__footer{padding:20px; border-top:1px solid var(--stroke)}
.totalRow{display:flex; justify-content:space-between; align-items:center; margin-bottom:16px}
.muted{color:var(--muted); font-family: sans-serif;}
.small{font-size:12px}
.big{font-size:24px; font-weight: 800; color: var(--brand); font-family: sans-serif;}

.cartItems{display:flex; flex-direction:column; gap:16px}
.cartItem{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  padding:12px;
  border:none;
  border-radius:24px;
  background: var(--panel2);
}
.cartItem__title{font-weight:400; font-style: italic; font-size: 18px;}
.cartItem__meta{color:var(--muted); font-size:12px; font-family: sans-serif;}
.qty{
  display:flex; gap:8px; align-items:center; justify-content:flex-end;
}
.qtyBtn{
  width:32px; height:32px; border-radius:50%;
  border:none;
  background: var(--panel2);
  color: var(--text);
  cursor:pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.qtyBtn:hover{transform: scale(1.1);}
.qtyVal{min-width:24px; text-align:center; font-weight:800}
.delBtn{margin-left:8px; color:var(--bad)}

.checkout{padding:24px 0 60px; display:grid; grid-template-columns: 1fr; gap:24px}
@media (min-width:920px){ .checkout{grid-template-columns: 1.3fr .9fr;} .panel--sticky{position:sticky; top:100px; height:fit-content;} }
.panel{
  border:none;
  border-radius:32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding:24px;
}
.panel__title{margin:0 0 16px; font-size:24px; font-weight: 400; font-style: italic;}
.formGrid{display:grid; grid-template-columns: 1fr; gap:16px}
@media (min-width:720px){ .formGrid{grid-template-columns: 1fr 1fr;} .field--wide{grid-column: span 2;} }
.field{display:flex; flex-direction:column; gap:8px}
.field__label{color:var(--muted); font-size:13px; font-weight:800; padding-left: 12px; font-family: sans-serif;}
.field__hint{color:var(--muted); font-size:12px; padding-left: 12px; font-family: sans-serif;}
.input{
  padding:14px 20px;
  border-radius:999px;
  border:1px solid transparent;
  background: var(--panel2);
  color: var(--text);
  outline:none;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  font-family: sans-serif;
}
.input:focus{background: var(--panel2); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(205, 127, 50, 0.2)}

.radioList{display:flex; flex-direction:column; gap:12px}
.radioList--horizontal{flex-direction:row; flex-wrap:wrap}
.radio{display:flex; gap:10px; align-items:center; font-weight:700}
.hintCard{
  margin-top:16px;
  padding:20px;
  border-radius:24px;
  border:2px dashed rgba(205, 127, 50, 0.3);
  background: rgba(205, 127, 50, 0.05);
}
.hintCard__title{font-weight:800; margin-bottom:8px; color: var(--brand);}

.rowBetween{display:flex; justify-content:space-between; align-items:center}
.error{color:var(--bad); margin-top:10px; font-weight:700; font-size:14px}
.successCard{text-align:center; padding:30px 0}
.successCard__row{margin-bottom:12px; font-size:20px}
.map-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--panel2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-top: 10px;
}
.mapContainer {
  width: 100%;
  height: 100%;
  margin-top: 0;
  border: none;
  border-radius: 0;
}
.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(16px);
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-size: 13px;
  color: var(--text);
  z-index: 50;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-overlay.is-visible {
  transform: translateY(0);
}
.map-overlay strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--brand);
}

/* Custom Address Suggestions */
.address-wrapper {
  position: relative;
}
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  background: var(--panel2);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 10000;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 8px;
  display: none;
}
.address-suggestions.is-visible {
  display: block;
}
.suggestion-item {
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--stroke);
  transition: background 0.1s;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: var(--panel);
}
.suggestion-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.suggestion-item small {
  color: var(--muted);
  font-size: 12px;
}

/* Fullscreen success overlay */
#success {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  margin: 0;
  padding: 20px;
  background: rgba(18,18,18,0.95);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
#success:not([hidden]) {
  opacity: 1;
  visibility: visible;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes successPop {
  0% { opacity: 0; transform: scale(0.8) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

#success .panel__title {
  font-size: 42px;
  margin-bottom: 32px;
  text-align: center;
  color: var(--brand);
}
#success .successCard {
  max-width: 500px;
  width: 90%;
}
#success .secondaryBtn {
  margin-top: 32px;
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  padding: 18px 36px;
  font-size: 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(199,154,85,0.4);
}

/* Order preview items */
.orderLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--stroke);
}
.orderLine:last-child {
  border-bottom: none;
}
.orderLine__info {
  display: flex;
  align-items: center;
}
.orderLine__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-right: 16px;
  background: var(--panel2);
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* FAB Cart */
.fabCart {
  position: fixed; bottom: 24px; right: 24px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(199,154,85,0.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fabCart:active { transform: scale(0.9); }
.fabCart.bump {
  animation: cartBump 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cartBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.fabCart__icon {
  font-size: 28px;
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}
.fabCart__icon--close { opacity: 0; transform: rotate(-90deg); }
.fabCart.is-open .fabCart__icon--cart { opacity: 0; transform: rotate(90deg); }
.fabCart.is-open .fabCart__icon--close { opacity: 1; transform: rotate(0); }

.fabCart__badge {
  position: absolute; top: 0; right: 0;
  background: var(--panel); color: var(--brand);
  font-size: 12px; font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand);
}

.fly-item {
  position: fixed;
  z-index: 1001;
  pointer-events: none;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
