* { box-sizing: border-box; }

:root{
  --header-offset: 78px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, Arial, sans-serif;
  color: #eee;
  background: #2b2b2b;
}

.no-scroll {
  overflow: hidden;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #262626;
  border-bottom: 1px solid #3a3a3a;
}

.header-container{
  width: min(1280px, 94vw);
  margin: 0 auto;
}

.nav{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand{
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: clamp(22px, 2vw, 30px);
  white-space: nowrap;
}

.nav-links{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);

  flex: 1;
  min-width: 0;
}

.nav-links li{
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-action{
  color: #ddd;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(15px, 1.15vw, 20px);
  letter-spacing: .3px;
  padding: 8px 4px;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-action:hover{
  color: #fff;
}

.nav-right{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.account-menu{
  position: relative;
}

.account-menu summary{
  list-style: none;
  cursor: pointer;
  color: #ddd;
  font-weight: 800;
  font-size: clamp(15px, 1.15vw, 20px);
  letter-spacing: .3px;
  padding: 8px 4px;
  white-space: nowrap;
}

.account-menu summary::-webkit-details-marker{
  display: none;
}

.account-menu summary::after{
  content: " ▾";
  font-size: .85em;
}

.account-menu[open] summary{
  color: #fff;
}

.account-dropdown{
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 240px;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  display: grid;
  gap: 6px;
  z-index: 3000;
}

.account-dropdown::before{
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
}

.account-user{
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.account-user strong{
  color: #111;
}

.account-dropdown a,
.account-logout-form button{
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-logout-form button:hover{
  background: #f1f1f1;
}

.account-logout-form{
  margin: 0;
}

/* Sections */
.section{
  background: #6b6651;
  padding: clamp(28px, 4vw, 52px) 0;
}

.section-title{
  text-align: center;
  color: #eee;
  margin: 0 0 26px;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: .5px;
}

/* Product Grid */
.product-grid{
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.product-card{
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 14px;
}

.product-link{
  text-decoration: none;
  color: #eee;
  display: grid;
  gap: 10px;
}

.product-link img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.product-link h3{
  margin: 0;
  font-size: 18px;
}

.price{
  margin: 8px 0 12px;
  font-weight: 900;
  font-size: 18px;
}

.price.big{
  font-size: 34px;
}

/* Buttons */
.btn{
  background: rgba(0,0,0,.35);
  color: #eee;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.btn:hover{
  background: rgba(0,0,0,.5);
}

.btn.big{
  padding: 14px 18px;
  font-size: 20px;
  border-radius: 14px;
}

/* About */
.about-layout{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  align-items: center;
}

.about-layout img{
  width: 100%;
  height: min(360px, 55vw);
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.about-text{
  font-size: 18px;
  line-height: 1.6;
}

/* Product Page */
.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: #e8e8e8;
}

.breadcrumb a{
  color: #fff;
  text-decoration: none;
}

.crumb-sep{
  opacity: .8;
}

/* Breadcrumb inside hero */
.hero-breadcrumb{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.hero-breadcrumb a{
  color: #e6e6e6;
  text-decoration: none;
  font-weight: 600;
}

.hero-breadcrumb a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Welcome / Hero */
.hero{
  background: #6b6651;
  padding: clamp(28px, 4vw, 52px) 0;
}

.hero-inner{
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.hero-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .6px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  color: #eee;
}

.hero-image{
  width: 100%;
  max-width: 860px;
  height: min(420px, 55vw);
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.product-detail{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: center;
}

.product-hero{
  width: 100%;
  height: min(420px, 60vw);
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.product-title{
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 56px);
}

.desc{
  font-size: 18px;
  line-height: 1.6;
}

/* Footer */
.site-footer{
  background: #262626;
  color: #d6d6d6;
  padding: 34px 0 18px;
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 26px;
  align-items: start;
}

.footer-col h3,
.footer-col h4{
  margin: 0 0 10px;
  color: #fff;
}

.footer-col p{
  margin: 0;
  line-height: 1.6;
  color: #cfcfcf;
}

.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a{
  color: #d6d6d6;
  text-decoration: none;
  font-weight: 700;
}

.footer-col a:hover{
  color: #fff;
}

.footer-bottom{
  border-top: 1px solid #3a3a3a;
  margin-top: 22px;
  padding-top: 14px;
  text-align: center;
  color: #bdbdbd;
}

#home, #top, #wallets, #belts, #bags, #about{
  scroll-margin-top: var(--header-offset);
}

/* Cart */
.cart-icon-btn{
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.cart-icon-btn:hover{
  background: rgba(255,255,255,.12);
}

.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 2000;
}

.cart-overlay.is-open{
  display: block;
}

.cart-overlay .cart-panel{
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: #fff;
  color: #111;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -5px 0 25px rgba(0,0,0,.25);
}

.cart-overlay.is-open .cart-panel{
  transform: translateX(0);
}

.cart-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.cart-header h3{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.cart-close{
  background: none;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  color: #111;
}

.cart-close:hover{
  background: #f3f3f3;
}

.cart-items{
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.cart-empty{
  color: #666;
  font-weight: 600;
}

.cart-items li{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}

.cart-items input[type="number"]{
  width: 84px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
}

.cart-footer{
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.cart-total{
  font-weight: 900;
  color: #111;
  margin-bottom: 12px;
}

.checkout-btn{
  width: 100%;
  background: #262626;
  color: #fff;
}

.checkout-btn:hover{
  background: #1f1f1f;
}

/* Layout */
.page-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content{
  flex: 1;
}

/* Responsive */
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .nav{
    gap: 16px;
  }

  .nav-links{
    gap: 16px;
  }
}

@media (max-width: 760px){
  .nav{
    flex-wrap: wrap;
  }

  .brand{
    flex: 1;
  }

  .nav-right{
    margin-left: auto;
  }

  .nav-links{
    order: 3;
    justify-content: flex-start;
    flex: 1 1 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .account-dropdown{
    right: 0;
  }

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

  .product-detail{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .footer-grid{
    grid-template-columns: 1fr;
  }

  .nav-user{
    max-width: 100%;
  }
}
.cart-item-info{
  display: grid;
  gap: 4px;
}

.cart-item-info span{
  color: #555;
  font-size: 14px;
}

.cart-qty-controls{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cart-small-btn,
.cart-remove{
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.cart-small-btn:hover,
.cart-remove:hover{
  background: #f1f1f1;
}

.cart-line-total{
  font-weight: 900;
  color: #111;
}
/* Authentication pages */
.auth-section{
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.auth-container{
  max-width: 520px;
}

.auth-card{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 28px;
  color: #eee;
}

.auth-card h1{
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 42px);
}

.auth-form{
  display: grid;
  gap: 18px;
}

.form-group{
  display: grid;
  gap: 7px;
}

.form-group label{
  font-weight: 800;
  color: #fff;
}

.auth-form input{
  width: 100%;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font: inherit;
}

.auth-form input:focus{
  outline: 3px solid rgba(255,255,255,.25);
  border-color: #fff;
}

.auth-help{
  margin: 0;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.4;
}

.form-error,
.field-error{
  margin: 0;
  color: #ffb3b3;
  font-weight: 800;
  line-height: 1.4;
}

.auth-submit{
  width: 100%;
  margin-top: 4px;
  background: #262626;
  color: #fff;
  font-weight: 900;
}

.auth-submit:hover{
  background: #111;
}

.cart-status{
  min-height: 20px;
  margin: 8px 0 12px;
  color: #111;
  font-weight: 800;
  line-height: 1.4;
}

.cart-status.is-error{
  color: #b00020;
}

.checkout-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

/* Member order history */
.orders-section{
  min-height: 70vh;
}

.orders-list{
  display: grid;
  gap: 22px;
}

.order-card,
.order-empty{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 24px;
  color: #eee;
}

.order-card-header{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.order-card h2,
.order-card h3{
  margin: 0;
}

.order-date{
  margin: 6px 0 0;
  color: #d7d7d7;
}

.order-summary{
  display: grid;
  gap: 8px;
  text-align: right;
}

.order-status{
  display: inline-block;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 13px;
  background: rgba(255,255,255,.16);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}

.order-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  overflow: hidden;
}

.order-table th,
.order-table td{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: left;
}

.order-table th{
  background: rgba(0,0,0,.25);
  font-weight: 900;
}

.order-digest{
  margin: 16px 0 0;
  word-break: break-all;
  color: #d7d7d7;
  font-size: 14px;
}

.order-digest code{
  color: #fff;
}


.checkout-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 700px){
  .order-card-header{
    display: grid;
  }

  .order-summary{
    text-align: left;
  }

  .order-table{
    font-size: 14px;
  }

  .order-table th,
  .order-table td{
    padding: 9px;
  }
}
.checkout-result-section{
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.checkout-result-card{
  max-width: 720px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 32px;
  color: #eee;
  text-align: center;
}

.checkout-result-card h1{
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.checkout-result-card p{
  color: #e0e0e0;
  line-height: 1.6;
}

.checkout-result-actions{
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-secondary{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.btn-secondary:hover{
  background: rgba(255,255,255,.12);
}