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

html,
body{
  width:100%;
  min-height:100%;
  overflow-x:hidden;
}

:root{
  --bg:#000000;
  --surface:#15191c;
  --surface-soft:#0f1113;
  --white:#ffffff;
  --black:#000000;
  --text:#f5f5f5;
  --muted:#c8c8c8;
  --muted-2:#9b9b9b;
  --line:rgba(255,255,255,0.13);
  --line-strong:rgba(255,255,255,0.28);
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:"Inter", Arial, Helvetica, sans-serif;
  line-height:1.45;
  font-weight:500;
}

/* ================= SIDE MENU ================= */

.menu-overlay{
  position:fixed;
  inset:0;
  z-index:180;
  background:rgba(0,0,0,.62);
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
}

.menu-overlay.active{
  opacity:1;
  visibility:visible;
}

.side-menu{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  z-index:220;
  width:min(370px, 88vw);
  background:#050505;
  border-right:1px solid var(--line);
  transform:translateX(-100%);
  transition:transform .22s ease;
  overflow-y:auto;
}

.side-menu.active{
  transform:translateX(0);
}

body.menu-open{
  overflow:hidden;
}

.side-menu-head{
  height:82px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.side-menu-head img{
  height:36px;
  width:auto;
  max-width:185px;
  display:block;
  object-fit:contain;
}

.side-menu-head button{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  background:#111111;
  color:#ffffff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.side-menu-head button:hover{
  background:#ffffff;
  color:#050505;
}

.side-menu-links{
  padding:14px;
  display:grid;
  gap:4px;
}

.side-menu-label{
  padding:18px 12px 6px;
  color:#ffffff;
  font-size:11px;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.side-menu-label:first-child{
  padding-top:4px;
}

.side-menu-links a{
  min-height:48px;
  padding:0 12px;
  display:flex;
  align-items:center;
  color:#ffffff;
  text-decoration:none;
  font-size:15px;
  font-weight:650;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.side-menu-links a:hover{
  background:#111111;
}

.side-menu-links .side-menu-main{
  margin-top:12px;
  justify-content:center;
  background:#ffffff;
  color:#050505;
  border-bottom:none;
  border-radius:999px;
  font-weight:750;
}

.side-menu-links .side-menu-main:hover{
  background:#e8e8e8;
}

/* ================= HEADER ================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#050505;
  border-bottom:1px solid var(--line);
}

.top-header{
  width:min(1600px, calc(100% - 40px));
  min-height:78px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto auto minmax(0, 1fr) auto;
  align-items:center;
  gap:18px;
}

.menu-button{
  width:42px;
  height:42px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  background:transparent;
  border:1px solid transparent;
  cursor:pointer;
}

.menu-button:hover{
  border-color:var(--line);
}

.menu-button span{
  width:20px;
  height:2px;
  background:#ffffff;
  display:block;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}

.brand img{
  height:34px;
  width:auto;
  max-width:178px;
  display:block;
  object-fit:contain;
}

.desktop-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:0;
  overflow-x:auto;
}

.desktop-nav::-webkit-scrollbar{
  display:none;
}

.desktop-nav a{
  height:42px;
  padding:0 13px;
  display:flex;
  align-items:center;
  color:#ffffff;
  text-decoration:none;
  font-size:15px;
  font-weight:650;
  white-space:nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active{
  text-decoration:underline;
  text-underline-offset:5px;
}

.account-actions{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:flex-end;
}

.header-link,
.header-btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  white-space:nowrap;
}

.header-link:hover{
  text-decoration:underline;
  text-underline-offset:5px;
}

.header-btn{
  height:42px;
  padding:0 20px;
  background:#ffffff;
  color:#050505;
  border:1px solid #ffffff;
  border-radius:999px;
  font-weight:750;
}

.header-btn:hover{
  background:#e8e8e8;
  border-color:#e8e8e8;
}

/* ================= BUTTONS ================= */

.checkout-btn,
.empty-cart a,
.mobile-checkout-bar a,
.top-action{
  min-height:44px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  color:#050505;
  border:1px solid #ffffff;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  font-weight:750;
  white-space:nowrap;
}

.checkout-btn:hover,
.empty-cart a:hover,
.mobile-checkout-bar a:hover,
.top-action:hover{
  background:#e8e8e8;
  border-color:#e8e8e8;
}

/* ================= PAGE ================= */

.cart-page{
  width:min(1380px, calc(100% - 40px));
  margin:32px auto 104px;
}

/* ================= TOP ================= */

.cart-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding-bottom:30px;
  border-bottom:1px solid var(--line);
  margin-bottom:26px;
}

.section-label{
  margin-bottom:16px;
  color:#ffffff;
  font-size:13px;
  line-height:1;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.cart-top h1{
  color:#ffffff;
  font-size:clamp(52px, 6.5vw, 104px);
  line-height:.92;
  letter-spacing:-0.065em;
  font-weight:760;
  margin-bottom:20px;
}

.cart-top p{
  max-width:760px;
  color:#ffffff;
  font-size:18px;
  line-height:1.65;
  font-weight:500;
  letter-spacing:-0.01em;
}

/* ================= EMPTY CART ================= */

.empty-cart{
  max-width:720px;
  padding:34px;
  background:#15191c;
  border-radius:24px;
}

.empty-cart h2{
  color:#ffffff;
  font-size:32px;
  line-height:1;
  letter-spacing:-0.045em;
  font-weight:700;
  margin-bottom:12px;
}

.empty-cart p{
  color:#ffffff;
  font-size:16px;
  line-height:1.6;
  font-weight:500;
  margin-bottom:22px;
}

/* ================= LAYOUT ================= */

.cart-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 390px;
  gap:24px;
  align-items:start;
}

.cart-items{
  min-width:0;
}

.cart-section-head{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
  margin-bottom:4px;
}

.cart-section-head p{
  margin-bottom:7px;
  color:#ffffff;
  font-size:13px;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.cart-section-head h2,
.cart-summary h2{
  color:#ffffff;
  font-size:30px;
  line-height:1;
  letter-spacing:-0.035em;
  font-weight:650;
}

/* ================= ITEM ================= */

.cart-item{
  display:grid;
  grid-template-columns:124px minmax(0, 1fr) 150px;
  gap:18px;
  align-items:center;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}

.cart-item:last-child{
  border-bottom:none;
}

.item-image{
  width:124px;
  height:94px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111111;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
}

.item-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.item-details{
  min-width:0;
}

.item-name{
  display:block;
  color:#ffffff;
  text-decoration:none;
  font-size:17px;
  line-height:1.3;
  letter-spacing:-0.025em;
  font-weight:650;
  margin-bottom:10px;
}

.item-name:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

.item-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}

.item-meta span{
  min-height:28px;
  padding:0 10px;
  display:flex;
  align-items:center;
  color:#ffffff;
  background:#0f1113;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:11px;
  font-weight:650;
}

.item-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.qty-controls{
  display:flex;
  align-items:center;
  height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#0f1113;
  overflow:hidden;
}

.qty-controls form{
  height:100%;
}

.qty-controls button{
  width:36px;
  height:100%;
  border:none;
  background:transparent;
  color:#ffffff;
  font-size:17px;
  font-weight:750;
  cursor:pointer;
}

.qty-controls button:hover{
  background:rgba(255,255,255,0.08);
}

.qty-controls span{
  min-width:36px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  font-size:13px;
  font-weight:750;
}

.remove-btn{
  border:none;
  background:transparent;
  color:#cfcfcf;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}

.remove-btn:hover{
  color:#ffffff;
  text-decoration:underline;
  text-underline-offset:4px;
}

.item-price{
  text-align:right;
}

.item-price strong{
  display:block;
  color:#ffffff;
  font-size:22px;
  line-height:1;
  letter-spacing:-0.035em;
  font-weight:700;
  margin-bottom:6px;
}

.item-price span{
  color:#cfcfcf;
  font-size:12px;
  font-weight:500;
}

/* ================= SUMMARY ================= */

.cart-summary{
  position:sticky;
  top:102px;
  padding:24px;
  background:#15191c;
  border-radius:24px;
}

.cart-summary h2{
  margin-bottom:22px;
}

.summary-line,
.summary-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.summary-line{
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.summary-line span,
.summary-total span{
  color:#ffffff;
  font-size:14px;
  font-weight:500;
}

.summary-line strong{
  color:#ffffff;
  font-size:14px;
  font-weight:650;
  text-align:right;
}

.muted-line strong{
  color:#cfcfcf;
  font-size:12px;
  font-weight:500;
}

.summary-total{
  padding:20px 0 22px;
}

.summary-total strong{
  color:#ffffff;
  font-size:32px;
  line-height:1;
  letter-spacing:-0.045em;
  font-weight:760;
}

.checkout-btn{
  width:100%;
  height:52px;
  font-size:15px;
  margin-bottom:18px;
}

.summary-note{
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.1);
  color:#dddddd;
  font-size:13px;
  line-height:1.6;
  font-weight:500;
}

/* ================= MOBILE CHECKOUT BAR ================= */

.mobile-checkout-bar{
  display:none;
}

.mobile-bottom-nav{
  display:none;
}

/* ================= TABLET ================= */

@media(max-width:1180px){

  .top-header{
    width:calc(100% - 28px);
    min-height:auto;
    padding:12px 0;
    grid-template-columns:auto auto 1fr;
  }

  .brand img{
    height:32px;
    max-width:168px;
  }

  .desktop-nav{
    grid-column:1 / -1;
    justify-content:flex-start;
  }

  .account-actions{
    justify-self:end;
  }

  .cart-page{
    width:calc(100% - 28px);
  }

  .cart-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .cart-layout{
    grid-template-columns:1fr;
  }

  .cart-summary{
    position:relative;
    top:0;
  }

}

/* ================= SMALL TABLET ================= */

@media(max-width:900px){

  .cart-item{
    grid-template-columns:104px minmax(0, 1fr);
    align-items:start;
  }

  .item-image{
    width:104px;
    height:82px;
  }

  .item-price{
    grid-column:2;
    text-align:left;
  }

}

/* ================= PHONE ================= */

@media(max-width:768px){

  body{
    padding-bottom:140px;
  }

  .top-header{
    width:calc(100% - 18px);
    min-height:58px;
    padding:8px 0;
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
  }

  .menu-button{
    width:36px;
    height:36px;
  }

  .brand img{
    height:28px;
    max-width:128px;
  }

  .desktop-nav{
    display:none;
  }

  .account-actions{
    margin-left:auto;
    gap:7px;
  }

  .header-link{
    display:none;
  }

  .header-btn{
    height:34px;
    padding:0 12px;
    font-size:12px;
  }

  .cart-page{
    width:calc(100% - 18px);
    margin:24px auto 88px;
  }

  .cart-top{
    gap:18px;
    padding-bottom:24px;
    margin-bottom:18px;
  }

  .section-label{
    margin-bottom:12px;
    font-size:11px;
  }

  .cart-top h1{
    font-size:42px;
    line-height:.98;
    letter-spacing:-0.05em;
    margin-bottom:14px;
  }

  .cart-top p{
    font-size:15px;
    line-height:1.6;
  }

  .top-action{
    width:100%;
  }

  .empty-cart{
    padding:24px;
    border-radius:20px;
  }

  .empty-cart h2{
    font-size:28px;
  }

  .empty-cart p{
    font-size:15px;
  }

  .cart-layout{
    gap:18px;
  }

  .cart-section-head{
    min-height:auto;
    padding-bottom:14px;
  }

  .cart-section-head p{
    font-size:10.5px;
    margin-bottom:6px;
  }

  .cart-section-head h2{
    font-size:24px;
  }

  .cart-item{
    grid-template-columns:86px minmax(0, 1fr);
    gap:12px;
    padding:18px 0;
  }

  .item-image{
    width:86px;
    height:72px;
    border-radius:12px;
  }

  .item-name{
    font-size:14px;
  }

  .item-meta{
    margin-bottom:12px;
  }

  .item-meta span{
    min-height:26px;
    padding:0 9px;
  }

  .item-actions{
    gap:10px;
  }

  .qty-controls{
    height:34px;
  }

  .qty-controls button{
    width:34px;
  }

  .qty-controls span{
    min-width:34px;
  }

  .item-price{
    grid-column:1 / -1;
    text-align:left;
    padding-left:98px;
  }

  .item-price strong{
    font-size:19px;
  }

  .cart-summary{
    display:none;
  }

  .mobile-checkout-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:64px;
    z-index:130;
    min-height:72px;
    padding:10px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:#050505;
    border-top:1px solid var(--line);
  }

  .mobile-checkout-bar div{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
  }

  .mobile-checkout-bar span{
    color:#cfcfcf;
    font-size:12px;
    font-weight:650;
  }

  .mobile-checkout-bar strong{
    color:#ffffff;
    font-size:22px;
    line-height:1;
    font-weight:760;
  }

  .mobile-checkout-bar a{
    height:44px;
    padding:0 18px;
    font-size:14px;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:120;
    height:64px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#050505;
    border-top:1px solid var(--line);
  }

  .mobile-bottom-nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
  }

  .mobile-bottom-nav a:hover{
    text-decoration:underline;
    text-underline-offset:4px;
  }

}

/* ================= SMALL PHONE ================= */

@media(max-width:420px){

  .top-header,
  .cart-page{
    width:calc(100% - 14px);
  }

  .brand img{
    height:26px;
    max-width:118px;
  }

  .header-btn{
    padding:0 10px;
  }

  .cart-top h1{
    font-size:38px;
  }

  .item-price{
    padding-left:0;
  }

  .mobile-checkout-bar a{
    padding:0 14px;
  }

}

/* ================= VERY SMALL PHONE ================= */

@media(max-width:360px){

  .brand img{
    height:24px;
    max-width:108px;
  }

  .header-btn{
    height:32px;
    padding:0 8px;
    font-size:11px;
  }

  .cart-item{
    grid-template-columns:76px minmax(0, 1fr);
    gap:10px;
  }

  .item-image{
    width:76px;
    height:66px;
  }

  .cart-top h1{
    font-size:35px;
  }

  .mobile-checkout-bar{
    gap:8px;
  }

  .mobile-checkout-bar a{
    padding:0 12px;
    font-size:13px;
  }

}