/* ===================== VARIABLES ===================== */
:root{
  --primary:#1a56db;
  --primary-dark:#123f9e;
  --primary-light:#eaf1ff;
  --white:#ffffff;
  --text:#1f2937;
  --text-light:#6b7280;
  --border:#e5e7eb;
  --bg:#f5f8ff;
  --star:#fbbf24;
  --danger:#ef4444;
  --radius:12px;
  --shadow:0 4px 20px rgba(26,86,219,.08);
  --navbar-h:70px;
  --footer-h:52px;
}

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

body{
  font-family:'Poppins',sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

a{text-decoration:none;color:inherit;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
img{max-width:100%;display:block;}
ul{list-style:none;}

/* ===================== BUTTONS ===================== */
.btn{
  padding:10px 20px;
  border-radius:8px;
  font-weight:600;
  font-size:14px;
  transition:.2s;
  display:inline-block;
}
.btn-primary{background:var(--primary);color:var(--white);}
.btn-primary:hover{background:var(--primary-dark);}
.btn-outline{background:var(--white);color:var(--primary);border:1.5px solid var(--primary);}
.btn-outline:hover{background:var(--primary-light);}
.btn-white{background:var(--white);color:var(--primary);}
.btn-white:hover{background:var(--primary-light);}
.btn-block{width:100%;text-align:center;}

/* ===================== NAVBAR ===================== */
.navbar{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--navbar-h);
  background:var(--white);
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:box-shadow .2s;
}
.navbar.scrolled{box-shadow:0 4px 18px rgba(26,86,219,.15);}

.navbar-inner{
  max-width:1300px;
  margin:0 auto;
  height:100%;
  display:flex;
  align-items:center;
  gap:20px;
  padding:0 20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:20px;
  font-weight:700;
  color:var(--primary);
  white-space:nowrap;
}
.logo i{font-size:24px;}
.logo b{color:var(--text);}

.hamburger{
  display:none;
  font-size:20px;
  color:var(--primary);
}

.navbar-search{
  flex:1;
  max-width:480px;
  display:flex;
  align-items:center;
  background:var(--bg);
  border:1.5px solid var(--border);
  border-radius:30px;
  padding:4px 4px 4px 4px;
  transition:.2s;
}
.navbar-search:focus-within{border-color:var(--primary);}

.navbar-search select{
  flex-shrink:0;
  max-width:180px;
  border:none;
  background:transparent;
  outline:none;
  font-size:13px;
  font-weight:500;
  font-family:inherit;
  color:var(--text);
  padding:8px 8px 8px 16px;
  border-right:1.5px solid var(--border);
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 2px center;
  padding-right:16px;
}
.navbar-search select:focus{color:var(--primary);}

.navbar-search-form{
  display:flex;
  align-items:center;
  flex:1;
  min-width:0;
}

.navbar-search-error{
  color:var(--danger);
  font-size:11px;
  padding-left:10px;
}
.navbar-search-error:empty{display:none;}

.navbar-search-form button[type="submit"]{
  flex-shrink:0;
  width:36px;height:36px;
  border:none;
  background:var(--primary);
  color:var(--white);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  cursor:pointer;
  transition:.2s;
}
.navbar-search-form button[type="submit"]:hover{background:var(--primary-dark);}

.navbar-search input{
  flex:1;
  min-width:0;
  border:none;
  background:transparent;
  outline:none;
  font-size:14px;
  font-family:inherit;
  padding:8px 0 8px 14px;
}
.navbar-search button{
  width:36px;height:36px;
  background:var(--primary);
  color:var(--white);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.navbar-search button:hover{background:var(--primary-dark);}

.navbar-actions{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}

.nav-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:11px;
  font-weight:500;
  color:var(--text-light);
  gap:2px;
}
.nav-link i{font-size:18px;color:var(--primary);}
.nav-link:hover{color:var(--primary);}

.icon-btn{
  position:relative;
  font-size:20px;
  color:var(--primary);
  width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
}
.icon-btn:hover{background:var(--primary-light);}

.badge{
  position:absolute;
  top:0;right:0;
  background:var(--danger);
  color:var(--white);
  font-size:10px;
  font-weight:700;
  min-width:18px;height:18px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  padding:0 3px;
}

.auth-actions{display:flex;gap:8px;}

/* ===================== USER MENU ===================== */
.user-menu{position:relative;}
.user-menu-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 12px 6px 8px;
  border-radius:30px;
  background:var(--bg);
  font-size:13px;
  font-weight:600;
  color:var(--text);
  max-width:180px;
}
.user-menu-btn i.fa-circle-user{font-size:24px;color:var(--primary);flex-shrink:0;}
.user-menu-btn span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.user-menu-btn:hover{background:var(--primary-light);}
.user-menu-caret{font-size:10px;color:var(--text-light);transition:transform .2s;flex-shrink:0;}
.user-menu.open .user-menu-caret{transform:rotate(180deg);}

.user-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  background:var(--white);
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
  min-width:210px;
  padding:8px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s, transform .18s, visibility .18s;
  z-index:1200;
}
.user-menu.open .user-dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.user-dropdown a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:8px;
  font-size:13.5px;
  color:var(--text);
}
.user-dropdown a i{width:16px;text-align:center;color:var(--text-light);font-size:14px;}
.user-dropdown a:hover{background:var(--bg);color:var(--primary);}
.user-dropdown a:hover i{color:var(--primary);}
.user-dropdown-divider{height:1px;background:var(--border);margin:6px 4px;}
.user-dropdown-logout{color:var(--danger);}
.user-dropdown-logout i{color:var(--danger) !important;}

/* ===================== OVERLAY ===================== */
.overlay{
  position:fixed;inset:0;
  background:rgba(15,23,42,.5);
  z-index:1500;
  display:none;
}
.overlay.active{display:block;}

/* ===================== MAIN SPACING ===================== */
main{padding-top:var(--navbar-h);padding-bottom:var(--footer-h);min-height:calc(100vh - var(--navbar-h));}

/* ===================== SLIDER ===================== */
.slider-section{
  max-width:1300px;
  margin:20px auto;
  padding:0 20px;
}
.slider{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:21/8;
  box-shadow:var(--shadow);
}
.slider-track{
  display:flex;
  height:100%;
  transition:transform .5s ease;
}
.slide{
  min-width:100%;
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:var(--white);
}
.slide-content{
  position:relative;
  z-index:2;
  margin:0 0 0 6%;
  padding:22px 26px;
  max-width:400px;
  width:max-content;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  color:var(--text);
}
.slide-content h2{
  font-size:clamp(17px,2.6vw,28px);
  font-weight:800;
  margin-bottom:8px;
  color:var(--text);
}
.slide-content p{
  font-size:clamp(12px,1.3vw,15px);
  color:var(--text-light);
  margin-bottom:16px;
}
.slide-icon{
  position:absolute;
  right:4%;
  font-size:clamp(60px,14vw,180px);
  opacity:.18;
  top:50%;
  transform:translateY(-50%);
  color:var(--white);
}

.slide-image{
  background:var(--primary-dark);
}
.slide-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
}
.slide-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.1);
  z-index:1;
}

.slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;height:38px;
  background:rgba(255,255,255,.85);
  color:var(--primary);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;
  z-index:3;
  transition:.2s;
}
.slider-arrow:hover{background:var(--white);}
.slider-prev{left:14px;}
.slider-next{right:14px;}

.slider-pause{
  position:absolute;
  top:14px;
  right:14px;
  width:32px;height:32px;
  background:rgba(255,255,255,.85);
  color:var(--primary);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;
  z-index:3;
  transition:.2s;
}
.slider-pause:hover{background:var(--white);}

.slider-dots{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:3;
}
.slider-dots span{
  width:8px;height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.5);
  cursor:pointer;
  transition:.2s;
}
.slider-dots span.active{
  background:var(--white);
  width:22px;
  border-radius:5px;
}

/* ===================== CATEGORY ===================== */
.category-section{
  max-width:1300px;
  margin:0 auto 10px;
  padding:0 20px;
}
.category-wrapper{
  display:flex;
  align-items:center;
  gap:10px;
}
.cat-arrow{
  flex-shrink:0;
  width:34px;height:34px;
  border-radius:50%;
  background:var(--white);
  color:var(--primary);
  box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;
}
.cat-arrow:hover{background:var(--primary-light);}

.category-list{
  flex:1;
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding:14px 4px;
  scrollbar-width:none;
}
.category-list::-webkit-scrollbar{display:none;}

.cat-btn{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--white);
  border:1.5px solid var(--border);
  padding:10px 18px;
  border-radius:30px;
  font-size:13px;
  font-weight:500;
  color:var(--text);
  transition:.2s;
  white-space:nowrap;
}
.cat-btn i{color:var(--primary);font-size:15px;}
.cat-btn:hover{border-color:var(--primary);}
.cat-btn.active{
  background:var(--primary);
  border-color:var(--primary);
  color:var(--white);
}
.cat-btn.active i{color:var(--white);}

/* ===================== PRODUCTS ===================== */
.products-section{
  max-width:1300px;
  margin:10px auto 60px;
  padding:0 20px;
}
.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.section-header-title{display:flex;align-items:baseline;gap:10px;}
.section-header h2{font-size:20px;font-weight:700;}
.product-count{font-size:13px;color:var(--text-light);}

.sort-wrapper{
  display:flex;
  align-items:center;
  gap:8px;
}
.sort-wrapper label{
  font-size:13px;
  font-weight:500;
  color:var(--text-light);
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.sort-wrapper label i{color:var(--primary);}
.sort-wrapper select{
  border:1.5px solid var(--border);
  border-radius:8px;
  padding:8px 30px 8px 12px;
  font-size:13px;
  font-family:inherit;
  font-weight:500;
  color:var(--text);
  background:var(--white);
  outline:none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  transition:.2s;
}
.sort-wrapper select:focus{border-color:var(--primary);}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px;
}

.product-card{
  background:var(--white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .2s, box-shadow .2s;
  display:flex;
  flex-direction:column;
  cursor:pointer;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 28px rgba(26,86,219,.16);
}

.product-img{
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:46px;
  color:var(--white);
  background:var(--bg);
  position:relative;
  min-height:0;
  min-width:0;
  overflow:hidden;
}
.product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-badge{
  position:absolute;
  top:8px;left:8px;
  background:var(--danger);
  color:var(--white);
  font-size:10px;
  font-weight:700;
  padding:3px 8px;
  border-radius:20px;
}

.product-info{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.product-name{
  font-size:14px;
  font-weight:600;
  color:var(--text);
  min-height:38px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-price{
  font-size:16px;
  font-weight:700;
  color:var(--primary);
}
.product-rating{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  font-size:12px;
  color:var(--text-light);
}
.product-rating .stars{white-space:nowrap;flex-shrink:0;}
.product-rating .stars i{color:var(--star);font-size:12px;}
.product-rating .stars i.far{color:#d1d5db;}

.add-cart-btn,.add-cart-btn-cc{
  margin-top:8px;
  background:var(--primary-light);
  color:var(--primary);
  font-weight:600;
  font-size:13px;
  padding:9px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:.2s;
}
.add-cart-btn:hover,.add-cart-btn-cc:hover{background:var(--primary);color:var(--white);}

.empty-state{
  text-align:center;
  padding:60px 0;
  color:var(--text-light);
  font-size:15px;
}
.empty-state i{font-size:40px;color:var(--border);margin-bottom:10px;}

/* ===================== TRANSAKSI / ORDER HISTORY ===================== */
.btn-sm{padding:7px 14px;font-size:12.5px;}
.order-filter{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.order-status-select{
  border:1.5px solid var(--border);
  border-radius:8px;
  padding:9px 30px 9px 14px;
  font-size:13px;
  font-family:inherit;
  color:var(--text);
  background:var(--white);
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
}
.order-status-select:focus{border-color:var(--primary);outline:none;}
.order-alert{
  width:100%;
  background:#fef2f2;
  color:var(--danger);
  border:1px solid #fecaca;
  border-radius:8px;
  padding:10px 14px;
  font-size:13px;
}
.order-list-header{
  font-size:13px;
  color:var(--text-light);
  margin-bottom:12px;
}
.order-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.order-card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px 18px;
}
.order-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid var(--border);
}
.order-nomer{
  font-size:15px;
  font-weight:700;
  color:var(--primary);
}
.order-nomer:hover{text-decoration:underline;}
.order-date{
  font-size:12.5px;
  color:var(--text-light);
  margin-top:4px;
  display:flex;
  align-items:center;
  gap:6px;
}
.order-status-badge{
  flex-shrink:0;
  font-size:11.5px;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
  white-space:nowrap;
  background:var(--primary-light);
  color:var(--primary);
}
.order-status-badge[data-status="Menunggu Verifikasi"]{background:#fef3c7;color:#b45309;}
.order-status-badge[data-status="Pesanan Diproses"]{background:#dbeafe;color:#1d4ed8;}
.order-status-badge[data-status="Sedang Dikirim"]{background:#e0e7ff;color:#4338ca;}
.order-status-badge[data-status="Selesai"]{background:#d1fae5;color:#047857;}
.order-card-mid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.order-cust{
  font-size:13px;
  color:var(--text-light);
  display:flex;
  align-items:center;
  gap:6px;
}
.order-total{
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.order-card-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.order-update-date{
  font-size:12px;
  color:var(--text-light);
  margin-left:auto;
}
.order-pagination{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.order-pagination .disabled{opacity:.4;pointer-events:none;}
.order-total-pages{font-size:13px;color:var(--text-light);}

/* ===================== FOOTER ===================== */
.footer{
  position:fixed;
  left:0;right:0;bottom:0;
  height:var(--footer-h);
  background:var(--primary-dark);
  color:rgba(255,255,255,.85);
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  font-size:13px;
  z-index:1000;
}

/* ===================== CART SIDEBAR ===================== */
.cart-sidebar{
  position:fixed;
  top:0;right:-400px;
  width:380px;
  max-width:90vw;
  height:100vh;
  background:var(--white);
  z-index:2000;
  display:flex;
  flex-direction:column;
  transition:right .3s ease;
  box-shadow:-6px 0 24px rgba(0,0,0,.12);
}
.cart-sidebar.open{right:0;}

.cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
}
.cart-header h3{font-size:16px;display:flex;align-items:center;gap:8px;}

.close-btn{
  width:32px;height:32px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-light);
  font-size:16px;
}
.close-btn:hover{background:var(--bg);color:var(--text);}

.cart-items{
  flex:1;
  overflow-y:auto;
  padding:10px 20px;
}
.cart-empty{
  text-align:center;
  color:var(--text-light);
  margin-top:40px;
  font-size:14px;
}

.cart-item{
  display:flex;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}
.cart-item-img{
  width:56px;height:56px;
  border-radius:8px;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  color:var(--white);
  font-size:20px;
}
.cart-item-info{flex:1;min-width:0;}
.cart-item-info .name{font-size:13px;font-weight:600;margin-bottom:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cart-item-info .price{font-size:13px;color:var(--primary);font-weight:700;}

.qty-control{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}
.qty-control button{
  width:22px;height:22px;
  border:1px solid var(--border);
  border-radius:5px;
  font-size:12px;
  display:flex;align-items:center;justify-content:center;
}
.qty-control button:hover{background:var(--primary-light);border-color:var(--primary);}
.qty-control span{font-size:13px;min-width:16px;text-align:center;}

.remove-item{
  color:var(--text-light);
  font-size:14px;
  align-self:flex-start;
}
.remove-item:hover{color:var(--danger);}

.cart-footer{
  padding:16px 20px 20px;
  border-top:1px solid var(--border);
}
.cart-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  font-size:15px;
}
.cart-total b{color:var(--primary);font-size:18px;}

/* ===================== MODALS ===================== */
.modal{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2100;
  padding:20px;
}
.modal.open{display:flex;}
.modal-box{
  background:var(--white);
  border-radius:16px;
  width:100%;
  max-width:380px;
  padding:30px 26px 26px;
  position:relative;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}
.modal-box .close-btn{position:absolute;top:12px;right:12px;}

.lightbox-box{
  position:relative;
  max-width:90vw;
  max-height:90vh;
  display:flex;
}
.lightbox-box img{
  max-width:90vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.4);
  background:var(--white);
}
.lightbox-close{
  position:absolute;
  top:-16px;
  right:-16px;
  background:var(--white);
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.lightbox-close:hover{background:var(--bg);}

.modal-tabs{
  display:flex;
  background:var(--bg);
  border-radius:10px;
  padding:4px;
  margin-bottom:20px;
}
.tab-btn{
  flex:1;
  padding:9px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  color:var(--text-light);
}
.tab-btn.active{background:var(--white);color:var(--primary);box-shadow:0 2px 6px rgba(0,0,0,.08);}

.modal-form{display:flex;flex-direction:column;gap:6px;}
.modal-form label{font-size:12px;font-weight:600;color:var(--text-light);margin-top:8px;}
.modal-form input{
  padding:11px 14px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  outline:none;
}
.modal-form input:focus{border-color:var(--primary);}
.modal-form button{margin-top:18px;}

.modal-product{max-width:680px;padding:26px;}

.product-detail{
  display:flex;
  gap:26px;
}
.product-detail-img{
  flex:0 0 260px;
  aspect-ratio:1/1;
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
  font-size:80px;
  align-self:flex-start;
}
.product-detail-info{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.detail-category{
  font-size:12px;
  font-weight:600;
  color:var(--primary);
  background:var(--primary-light);
  padding:4px 10px;
  border-radius:20px;
  align-self:flex-start;
  margin-bottom:10px;
}
.product-detail-info h3{
  font-size:19px;
  font-weight:700;
  margin-bottom:8px;
}
.product-detail-info .product-rating{margin-bottom:10px;font-size:13px;}
.product-detail-info .product-rating .stars i{font-size:14px;}
.detail-price{
  font-size:24px;
  font-weight:800;
  color:var(--primary);
  margin-bottom:14px;
}
.detail-desc{
  font-size:13px;
  color:var(--text-light);
  margin-bottom:18px;
  line-height:1.6;
}
.detail-qty-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  font-size:14px;
  font-weight:500;
}
.detail-qty-row .qty-control{gap:12px;}
.detail-qty-row .qty-control button{width:30px;height:30px;font-size:14px;}
.detail-qty-row .qty-control span{font-size:15px;min-width:20px;}

@media (max-width:600px){
  .product-detail{flex-direction:column;}
  .product-detail-img{flex-basis:auto;width:100%;}
}

.modal-about h3{
  font-size:19px;
  margin-bottom:14px;
  display:flex;align-items:center;gap:8px;
  color:var(--primary);
}
.modal-about p{font-size:14px;color:var(--text-light);margin-bottom:20px;}
.about-stats{
  display:flex;
  justify-content:space-between;
  text-align:center;
  border-top:1px solid var(--border);
  padding-top:16px;
}
.about-stats b{display:block;font-size:18px;color:var(--primary);}
.about-stats span{font-size:12px;color:var(--text-light);}

/* ===================== AUTH PAGE (login/register) ===================== */
.auth-page{
  min-height:calc(100vh - var(--navbar-h));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}
.auth-card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  width:100%;
  max-width:380px;
  padding:34px 28px 28px;
  text-align:center;
}
.auth-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:24px;
  font-weight:700;
  color:var(--primary);
  margin-bottom:6px;
}
.auth-logo b{color:var(--text);}
.auth-subtitle{
  font-size:13px;
  color:var(--text-light);
  margin-bottom:22px;
}
.auth-card .modal-form{text-align:left;}
.auth-link{
  display:block;
  margin-top:14px;
  font-size:13px;
  color:var(--primary);
  font-weight:500;
}
.auth-link:hover{text-decoration:underline;}
.auth-footer-text{
  font-size:13px;
  color:var(--text-light);
  margin-top:18px;
}
.auth-footer-text a{color:var(--primary);font-weight:600;}
.auth-back-btn{margin-top:10px;}
.auth-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:20px 0 16px;
  font-size:12px;
  color:var(--text-light);
}
.auth-divider::before,.auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--border);
}
.auth-google{display:flex;justify-content:center;}
.auth-legal{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--border);
  font-size:11.5px;
  color:var(--text-light);
  display:flex;
  justify-content:center;
  gap:14px;
}
.auth-legal a{color:var(--text-light);}
.auth-legal a:hover{color:var(--primary);}

/* ===================== CART PAGE ===================== */
.cart-page-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:20px;
}
.cart-page-item{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px 18px;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.cart-page-name{
  flex:2 1 220px;
  font-size:14px;
  font-weight:600;
  color:var(--text);
}
.cart-page-name:hover{color:var(--primary);}
.cart-page-price{
  flex:1 1 100px;
  font-size:13px;
  color:var(--text-light);
}
.cart-page-qty{
  width:70px;
  padding:8px 10px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-size:13px;
  font-family:inherit;
  text-align:center;
  outline:none;
}
.cart-page-qty:focus{border-color:var(--primary);}
.cart-page-subtotal{
  flex:1 1 110px;
  font-size:14px;
  font-weight:700;
  color:var(--primary);
  text-align:right;
}
.cart-page-del{
  width:34px;height:34px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-light);
  cursor:pointer;
  flex-shrink:0;
}
.cart-page-del:hover{background:#fef2f2;color:var(--danger);}
.cart-page-del input{position:absolute;opacity:0;width:1px;height:1px;}

.cart-page-footer{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}
.cart-page-total{
  display:flex;
  align-items:baseline;
  gap:10px;
  font-size:14px;
  color:var(--text-light);
}
.cart-page-total b{font-size:20px;color:var(--primary);}
.cart-page-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* ===================== PROFILE PAGE ===================== */
.profile-card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:26px 24px;
  max-width:760px;
}
.profile-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 20px;
}
.profile-field{display:flex;flex-direction:column;gap:6px;}
.profile-field.full{grid-column:1 / -1;}
.profile-field label{font-size:12.5px;font-weight:600;color:var(--text-light);}
.profile-field input,
.profile-field select,
.profile-field textarea{
  padding:11px 14px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  color:var(--text);
  outline:none;
  background:var(--white);
}
.profile-field textarea{resize:vertical;min-height:80px;}
.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus{border-color:var(--primary);}
.profile-field input:disabled,
.profile-field input[readonly],
.profile-field select:disabled,
.profile-field textarea:disabled,
.profile-field textarea[readonly]{
  background:var(--bg);
  color:var(--text-light);
  border-color:var(--border);
  cursor:not-allowed;
}
.profile-field select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:32px;
}
.profile-footer{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:flex-end;
}
@media (max-width:600px){
  .profile-form{grid-template-columns:1fr;}
}
.captcha-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.captcha-img{
  height:44px;
  border-radius:8px;
  border:1.5px solid var(--border);
  flex-shrink:0;
}
.captcha-row input{flex:1;}

/* ===================== LEGACY BOOTSTRAP-STYLE PAGES =====================
   itemdet.html, index.html and a few other pages still use the original
   CodeCharge Studio scaffolding markup (content-wrapper, row, col-N, card...)
   instead of the claudev1 theme classes. Rather than rewrite that HTML
   (risky, it would move CCS's BEGIN END block markers), we just give
   those existing classes the theme's look. */
.content-wrapper{max-width:1300px;margin:10px auto 60px;padding:0 20px;}
.content-header{margin-bottom:16px;}
.content-header h1{font-size:22px;font-weight:700;}
.content-header small{font-size:13px;font-weight:400;color:var(--text-light);margin-left:6px;}
.content-wrapper .container,
.content-wrapper .container-fluid{width:100%;}

.content-wrapper .row{display:flex;flex-wrap:wrap;margin:0 -10px;}
.content-wrapper .row > [class*="col-"]{padding:0 10px;}
.col-1{width:8.3333%;} .col-2{width:16.6667%;} .col-3{width:25%;}
.col-4{width:33.3333%;} .col-5{width:41.6667%;} .col-6{width:50%;}
.col-7{width:58.3333%;} .col-8{width:66.6667%;} .col-9{width:75%;}
.col-10{width:83.3333%;} .col-11{width:91.6667%;} .col-12{width:100%;}
[class*="col-md-"],[class*="col-lg-"],[class*="col-sm-"]{width:100%;}
@media (min-width:576px){
  .col-sm-1{width:8.3333%;} .col-sm-2{width:16.6667%;} .col-sm-3{width:25%;}
  .col-sm-4{width:33.3333%;} .col-sm-5{width:41.6667%;} .col-sm-6{width:50%;}
  .col-sm-7{width:58.3333%;} .col-sm-8{width:66.6667%;} .col-sm-9{width:75%;}
  .col-sm-10{width:83.3333%;} .col-sm-11{width:91.6667%;} .col-sm-12{width:100%;}
}
@media (min-width:768px){
  .col-md-1{width:8.3333%;} .col-md-2{width:16.6667%;} .col-md-3{width:25%;}
  .col-md-4{width:33.3333%;} .col-md-5{width:41.6667%;} .col-md-6{width:50%;}
  .col-md-7{width:58.3333%;} .col-md-8{width:66.6667%;} .col-md-9{width:75%;}
  .col-md-10{width:83.3333%;} .col-md-11{width:91.6667%;} .col-md-12{width:100%;}
}
@media (min-width:992px){
  .col-lg-1{width:8.3333%;} .col-lg-2{width:16.6667%;} .col-lg-3{width:25%;}
  .col-lg-4{width:33.3333%;} .col-lg-5{width:41.6667%;} .col-lg-6{width:50%;}
  .col-lg-7{width:58.3333%;} .col-lg-8{width:66.6667%;} .col-lg-9{width:75%;}
  .col-lg-10{width:83.3333%;} .col-lg-11{width:91.6667%;} .col-lg-12{width:100%;}
}

.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;}
.card.shadow-none{box-shadow:none;border:1.5px solid var(--border);}
.card.card-outline{border-top:3px solid var(--primary);box-shadow:none;border-left:1.5px solid var(--border);border-right:1.5px solid var(--border);border-bottom:1.5px solid var(--border);}
.card-body{padding:20px;}
.card-body.p-0{padding:0;}
.card-body.p-1{padding:6px;}
.card-header{padding:14px 20px;border-bottom:1.5px solid var(--border);font-weight:600;}
.card-header.p-0{padding:0 0 10px;border-bottom:none;}

.bg-gray{background:var(--primary-light);border-radius:var(--radius);}
.bg-gray h2{color:var(--primary);font-size:24px;font-weight:800;}
.bg-gray del{color:var(--text-light);font-weight:400;font-size:14px;}

.detail-buy-form{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.quantity input,
.form-control{
  padding:11px 14px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  color:var(--text);
  outline:none;
  background:var(--white);
}
.quantity input{width:90px;}
.quantity input:focus,
.form-control:focus{border-color:var(--primary);}

.Button.btn-danger,.btn-danger{background:var(--danger);color:var(--white);}
.btn-outline-primary{background:var(--white);color:var(--primary);border:1.5px solid var(--primary);}
.btn-outline-primary:hover{background:var(--primary-light);}
.btn-xs{padding:5px 10px;font-size:11.5px;}

.product-image{width:100%;border-radius:var(--radius);object-fit:cover;aspect-ratio:1/1;cursor:zoom-in;}
.product-image-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;}
.product-image-thumb{width:64px;height:64px;border-radius:8px;overflow:hidden;border:1.5px solid var(--border);flex-shrink:0;cursor:pointer;transition:border-color .2s;}
.product-image-thumb img{width:100%;height:100%;object-fit:cover;}
.product-image-thumb:hover{border-color:var(--primary);}
.product-image-thumb.active{border-color:var(--primary);border-width:2px;}

/* shown by script.js in place of a photo that fails to load (missing/empty imagefoto.php) */
.img-fallback-box{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  background:var(--primary-light);
  color:var(--primary);
  font-size:22px;
}
.img-fallback-box.product-image{aspect-ratio:1/1;border-radius:var(--radius);font-size:64px;}
.product-img .img-fallback-box{aspect-ratio:1/1;}

.product-share{display:flex;gap:10px;}
.product-share .text-gray{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:var(--primary-light);
  color:var(--primary);
  transition:.2s;
}
.product-share .text-gray i{font-size:16px;}
.product-share .text-gray:hover{background:var(--primary);color:var(--white);}

.breadcrumb{display:flex;gap:6px;font-size:13px;color:var(--text-light);}
.breadcrumb-item a{color:var(--primary);}

.nav-tabs{display:flex;gap:6px;border-bottom:1.5px solid var(--border);margin-bottom:16px;flex-wrap:wrap;}
.nav-tabs .nav-link{padding:10px 16px;font-size:13.5px;font-weight:600;color:var(--text-light);border-bottom:2px solid transparent;margin-bottom:-1.5px;}
.nav-tabs .nav-link.active{color:var(--primary);border-bottom-color:var(--primary);}
.tab-pane{display:none;font-size:13.5px;color:var(--text-light);line-height:1.7;}
.tab-pane.show.active{display:block;}

small,.small{font-size:12.5px;}
hr{border:none;border-top:1.5px solid var(--border);margin:16px 0;}

/* spacing utilities used by the legacy pages above */
.m-0{margin:0 !important;}
.mt-0{margin-top:0 !important;} .mb-0{margin-bottom:0 !important;}
.mt-3{margin-top:1rem !important;} .my-3{margin-top:1rem !important;margin-bottom:1rem !important;}
.mt-4{margin-top:1.5rem !important;} .mb-4{margin-bottom:1.5rem !important;}
.mb-1{margin-bottom:.25rem !important;} .mb-2{margin-bottom:.5rem !important;}
.p-0{padding:0 !important;} .p-1{padding:.25rem !important;} .p-3{padding:1rem !important;}
.py-2{padding-top:.5rem !important;padding-bottom:.5rem !important;}
.px-3{padding-left:1rem !important;padding-right:1rem !important;}
.d-inline-block{display:inline-block;}
.d-none{display:none !important;}
@media (min-width:576px){.d-sm-none{display:none !important;}.float-sm-right{float:right;}}
@media (min-width:576px){.col-sm-offset-2{margin-left:16.6667%;}}

/* ===================== AKTIVASI AKUN PAGE (aktivasicust.html) ===================== */
.form-horizontal{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  margin-bottom:20px;
}
fieldset{border:none;padding:0;margin:0;}
legend{
  border:none;
  padding:0;
  width:auto;
  font-size:16px;
  font-weight:700;
  color:var(--text);
  margin-bottom:18px;
}

.alert{padding:12px 16px;border-radius:8px;font-size:13.5px;margin-bottom:16px;}
.alert-danger{background:#fef2f2;color:var(--danger);border:1px solid #fecaca;}

table.Grid{
  width:100%;
  border-collapse:collapse;
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
table.Grid td,
table.Grid th{padding:10px 20px;text-align:left;}
tr.Caption th{
  font-size:11.5px;
  font-weight:600;
  color:var(--text-light);
  text-transform:uppercase;
  letter-spacing:.3px;
  background:var(--bg);
  padding-top:10px;
  padding-bottom:10px;
}
tr.Row td{
  font-size:15px;
  font-weight:600;
  color:var(--text);
  padding-top:6px;
  padding-bottom:16px;
}
tr.Error td{background:#fef2f2;color:var(--danger);font-size:13px;}
tr.Footer td{padding:18px 20px;border-top:1px solid var(--border);}
tr.NoRecords td{padding:50px 20px;text-align:center;color:var(--text-light);font-size:14px;}
tr.NoRecords td::before{
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  content:"\f059";
  display:block;
  font-size:40px;
  color:var(--border);
  margin-bottom:10px;
}
tr.NoRecords h5{font-size:14px;font-weight:500;color:var(--text-light);margin:0;}
tr.NoRecords img{display:none;}

.button{
  display:inline-block;
  border:none;
  border-radius:30px;
  padding:11px 24px;
  font-size:14px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  background:var(--primary);
  color:var(--white);
  transition:.2s;
}
.button:hover{background:var(--primary-dark);}

/* ===================== TOAST ===================== */
.toast{
  position:fixed;
  top:24px;
  right:24px;
  transform:translateX(20px);
  background:var(--primary);
  color:var(--white);
  padding:18px 28px;
  border-radius:14px;
  font-size:16px;
  font-weight:600;
  box-shadow:0 10px 30px rgba(26,86,219,.35);
  z-index:3000;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  display:flex;
  align-items:center;
  gap:12px;
}
.toast i{font-size:20px;}
.toast.show{
  opacity:1;
  transform:translateX(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width:900px){
  .navbar-search{max-width:320px;}
  .navbar-search select{max-width:110px;font-size:12px;padding-left:10px;}
  .nav-link span{display:none;}
  .user-menu-btn span{display:none;}
  .user-menu-btn{padding:6px 8px;}
}

@media (max-width:768px){
  .hamburger{display:block;}
  .navbar-inner{flex-wrap:wrap;height:auto;min-height:var(--navbar-h);padding:10px 16px;}
  .navbar-search{
    order:3;
    max-width:100%;
    width:100%;
    flex-basis:100%;
    display:none;
  }
  .navbar-search.mobile-open{display:flex;}
  .navbar-search select{max-width:150px;font-size:13px;}
  .navbar-actions{margin-left:auto;gap:10px;}
  .auth-actions .btn{padding:8px 12px;font-size:12px;}
  .slide-content{max-width:80%;padding:14px 18px;}
  .slide-content p{display:none;}
  .slider-pause{width:28px;height:28px;font-size:11px;top:10px;right:10px;}
}

@media (max-width:480px){
  .auth-actions .btn-outline{display:none;}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .slider{aspect-ratio:16/10;}
}
