/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
}

body {
  margin: 0;
  background: #f4f7fb;
}

/* ===== HEADER ===== */
.jd-header {
  height: 56px;
  background: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.jd-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.jd-menu-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

.jd-desktop-nav {
  display: none;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}

.jd-desktop-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.jd-desktop-nav a:hover {
  opacity: 0.9;
}

.jd-desktop-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.jd-auth-btn {
  background: #fff;
  color: #0d6efd;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.jd-cart-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.jd-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 6px;
  font-weight: 700;
}

/* ===== DRAWER OVERLAY ===== */
.jd-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 999;
}

/* ===== DRAWER ===== */
.jd-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: -6px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 1000;
}

.jd-drawer.open {
  right: 0;
}

.jd-drawer-overlay.show {
  display: block;
}

.jd-drawer h4 {
  margin: 15px 0 8px;
  color: #0d6efd;
  font-size: 15px;
}

.jd-drawer a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.jd-drawer a:hover {
  color: #0d6efd;
}

.jd-divider {
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

.jd-support {
  color: #25d366;
  font-weight: 600;
}

@media (min-width: 900px) {
  .jd-menu-btn,
  .jd-drawer,
  .jd-drawer-overlay {
    display: none;
  }
  .jd-desktop-nav {
    display: flex;
  }
  .jd-desktop-actions {
    display: flex;
  }
  .jd-header {
    justify-content: space-between;
    padding: 0 20px;
  }
  .jd-logo {
    color: #fff;
  }
}


/* AUTH CARD */
.auth-container {
  padding: 20px;
}

.auth-card {
  background: #fff;
  max-width: 420px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 5px;
}

.auth-sub {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== AUTH ANIMATED ===== */
.auth-page {
  min-height: calc(100vh - 56px);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.auth-visual {
  position: relative;
  background: linear-gradient(135deg, #0d6efd, #0aa2c0);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: 0 20px 40px rgba(13,110,253,0.25);
}

.auth-visual-inner {
  position: relative;
  z-index: 2;
}

.auth-visual-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-visual-sub {
  font-size: 14px;
  color: #e7f1ff;
  margin-bottom: 16px;
}

.auth-visual-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-visual-pills span {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  filter: blur(0.2px);
  animation: floatOrb 6s ease-in-out infinite;
}

.orb-1 {
  width: 120px;
  height: 120px;
  top: -30px;
  right: 40px;
  animation-delay: 0s;
}

.orb-2 {
  width: 160px;
  height: 160px;
  bottom: -40px;
  left: 30px;
  animation-delay: 1s;
}

.orb-3 {
  width: 90px;
  height: 90px;
  bottom: 60px;
  right: -20px;
  animation-delay: 2s;
}

.auth-card--wide {
  width: 100%;
  max-width: 460px;
}

.auth-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #555;
  margin: 10px 0 16px;
}

.auth-check input {
  margin-top: 2px;
}

.auth-check a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.auth-switch a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 700;
  margin-left: 6px;
}

.auth-actions-row {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 14px;
}

.auth-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

@keyframes floatOrb {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    min-height: 220px;
    order: 2;
  }
  .auth-card--wide {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ===== ADDRESS FORM ===== */
.address-page {
  padding: 20px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.address-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.address-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.address-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.address-field--full {
  grid-column: 1 / -1;
}

.address-default {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}

.address-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.address-map-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.address-map-head p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.map-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.map-box {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid #e5e7eb;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #0d6efd;
  border-radius: 50% 50% 50% 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  box-shadow: 0 8px 16px rgba(13,110,253,0.35);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #0d6efd;
  transform: translateX(-50%);
}

.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
  z-index: 5;
  background: rgba(255,255,255,0.75);
}

.map-meta {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
}

.address-check {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .address-form {
    grid-template-columns: 1fr;
  }
  .map-box {
    height: 300px;
  }
}

/* FORM */
.auth-group {
  margin-bottom: 15px;
}

.auth-group label {
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

.auth-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.auth-group input:focus {
  outline: none;
  border-color: #0d6efd;
}

/* BUTTON */
.auth-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #0d6efd, #0aa2c0);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-btn:hover {
  opacity: 0.95;
}

/* ERROR */
.auth-error {
  background: #ffe5e5;
  color: #c0392b;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

.auth-success {
  background: #e9f9ef;
  color: #1e7e34;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

/* ===== PROFILE ===== */
.profile-container {
  padding: 20px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.profile-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin: 20px auto;
}

.profile-card h2 {
  text-align: center;
  margin-bottom: 5px;
}

.profile-sub {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

.profile-card h3 {
  margin: 0 0 12px;
  color: #0d6efd;
  font-size: 16px;
}

.profile-summary {
  text-align: center;
  padding-top: 26px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #e6f2ff, #0d6efd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
}

.profile-name {
  margin: 4px 0 2px;
  font-size: 20px;
}

.profile-meta {
  margin: 2px 0;
  color: #666;
  font-size: 14px;
}

.profile-links a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.profile-links a:hover {
  color: #0d6efd;
}

.profile-divider {
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

.profile-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #333;
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.address-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  background: #fafcff;
}

.address-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.address-text {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.address-empty {
  color: #777;
  font-size: 14px;
  padding: 8px 0;
}

.founder {
  display: flex;
  gap: 14px;
  align-items: center;
}

.founder-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6f2ff;
}

.founder-info {
  flex: 1;
}

.founder-name {
  margin: 0 0 6px;
  font-weight: 600;
}

.founder-desc {
  margin: 0 0 8px;
  color: #666;
  font-size: 13px;
}

.founder-links a {
  margin-right: 10px;
  font-size: 13px;
  color: #0d6efd;
  text-decoration: none;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.action-btn:last-child {
  background: #0aa2c0;
}

.profile-support {
  color: #25d366;
  font-weight: 600;
  text-decoration: none;
}

.profile-logout {
  display: block;
  text-align: center;
  padding: 10px 0;
  color: #c0392b;
  text-decoration: none;
  font-weight: 600;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 1000;
}

.modal-overlay.show {
  display: block;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
}

.modal.open {
  display: block;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}

.modal-header h4 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.modal-body {
  padding: 10px 16px 16px;
}

/* =========================
BOTTOM MOBILE NAV
========================= */

.jd-bottom-nav{
position:fixed;
left:0;
right:0;
bottom:0;
height:64px;
padding-bottom:env(safe-area-inset-bottom);
display:flex;
align-items:center;
justify-content:space-around;

background:rgba(255,255,255,.98);
backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);

border-top:1px solid #e9edf3;

box-shadow:
0 -2px 10px rgba(0,0,0,.03),
0 -8px 30px rgba(0,0,0,.05);

z-index:1000;
}

.jd-nav-item{
flex:1;
height:100%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:4px;

text-decoration:none;
color:#64748b;
font-size:11px;
font-weight:600;

transition:.2s ease;
position:relative;
-webkit-tap-highlight-color:transparent;
}

.jd-nav-item:hover{
color:#0d6efd;
}

.jd-nav-item.active{
color:#0d6efd;
}

.jd-nav-item.active:before{
content:"";
position:absolute;
top:0;
width:28px;
height:3px;
border-radius:20px;
background:#0d6efd;
}

.jd-nav-icon{
font-size:20px;
line-height:1;
}

.jd-nav-item:hover .jd-nav-icon,
.jd-nav-item.active .jd-nav-icon{
transform:translateY(-1px) scale(1.04);
}

.jd-nav-text{
line-height:1;
}


/* =========================
CART POPUP
========================= */

.cart-pop{
position:fixed;
left:14px;
right:14px;
bottom:78px;

display:flex;
justify-content:space-between;
align-items:center;

padding:14px 16px;

border-radius:16px;
background:linear-gradient(
135deg,
#0d6efd,
#2b7cff
);

color:#fff;

box-shadow:
0 12px 30px rgba(13,110,253,.28);

z-index:999;
}

.cart-pop-text{
display:flex;
flex-direction:column;
gap:3px;
font-size:14px;
font-weight:500;
}

.cart-pop-amount{
font-weight:700;
}

.cart-pop-btn{
text-decoration:none;
background:#fff;
color:#0d6efd;
padding:10px 14px;
border-radius:11px;
font-size:13px;
font-weight:700;
white-space:nowrap;
transition:.2s;
}

.cart-pop-btn:hover{
transform:translateY(-1px);
}


/* =========================
DESKTOP FOOTER
========================= */

.jd-footer{
display:none;
margin-top:50px;
background:#0d6efd;
color:#fff;
padding:54px 24px 22px;
}

.jd-footer-inner{
max-width:1180px;
margin:auto;

display:grid;
grid-template-columns:1.6fr 1fr 1fr 1fr;
gap:40px;
}

.jd-footer-col{
display:flex;
flex-direction:column;
gap:10px;
}

.jd-footer-brand{
font-size:24px;
font-weight:800;
margin-bottom:8px;
}

.jd-footer-desc{
font-size:14px;
line-height:1.7;
color:#dbeafe;
margin:0;
max-width:360px;
}

.jd-footer-contact{
margin-top:6px;
font-size:14px;
font-weight:600;
}

.jd-footer-title{
font-size:15px;
font-weight:700;
margin-bottom:6px;
}

.jd-footer-col a{
text-decoration:none;
font-size:14px;
color:#dbeafe;
transition:.2s;
}

.jd-footer-col a:hover{
color:#fff;
padding-left:4px;
}

.jd-footer-bottom{
margin-top:36px;
padding-top:18px;
border-top:1px solid rgba(255,255,255,.2);

text-align:center;
font-size:12px;
color:#dbeafe;
}


/* =========================
RESPONSIVE
========================= */

@media (max-width:520px){

.jd-nav-icon{
font-size:19px;
}

.jd-nav-text{
font-size:10px;
}

.cart-pop{
padding:13px 14px;
}

}


@media (max-width:1100px){

.jd-footer-inner{
grid-template-columns:1fr 1fr;
}

}


@media (min-width:900px){

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

.jd-footer{
display:block;
}

}


@media (max-width:699px){

.jd-footer-inner{
grid-template-columns:1fr;
gap:30px;
}

}

/* ===== HOME ===== */
.home-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e6f2ff, #0d6efd);
  color: #fff;
  margin-bottom: 22px;
}

.hero-track {
  position: relative;
  min-height: 220px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-content {
  padding: 26px;
  max-width: 520px;
}

.hero-tag {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: #e7f1ff;
}

.hero-btn {
  display: inline-block;
  background: #fff;
  color: #0d6efd;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.hero-dots .dot.active {
  background: #fff;
}

.home-section {
  margin: 20px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head a {
  font-size: 13px;
  color: #0d6efd;
  text-decoration: none;
}

.muted {
  color: #777;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border: 1px solid #eef2f7;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card--mini {
  min-width: 220px;
}

.product-media {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  font-size: 12px;
  color: #7a8aa8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.product-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f2ff;
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.product-sub {
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
}

.product-price {
  font-weight: 700;
  margin-bottom: 10px;
}

.product-mrp {
  margin-left: 6px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
}

.product-btn {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #0d6efd, #0aa2c0);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.about-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.about-card p {
  color: #555;
  font-size: 14px;
}

.about-points {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.about-points div {
  background: #f6f9ff;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

.about-btn {
  display: inline-block;
  margin-top: 12px;
  background: #0d6efd;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.scroll-row {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.scroll-track {
  display: flex;
  gap: 10px;
  padding: 0 12px;
  animation: scrollX 18s linear infinite;
}

.product-track {
  animation-duration: 22s;
}

.scroll-card {
  min-width: 130px;
  background: #f4f7fb;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: #333;
  border: 1px solid #eef2f7;
}

.product-empty {
  padding: 12px;
  color: #777;
  font-size: 14px;
}

/* ===== CART POPUP ===== */
.cart-pop {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 70px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.cart-pop-text {
  font-size: 13px;
  color: #333;
}

.cart-pop-amount {
  display: block;
  font-weight: 700;
  margin-top: 4px;
}

.cart-pop-btn {
  background: #0d6efd;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

/* ===== CART PAGE ===== */
.cart-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.cart-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border: 1px solid #eef2f7;
  margin: 12px 0;
}

.cart-location-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-location-title {
  font-size: 13px;
  font-weight: 700;
  color: #0d6efd;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cart-location-name {
  margin-top: 6px;
  font-weight: 700;
}

.cart-location-text,
.cart-location-empty {
  color: #555;
  font-size: 13px;
  margin-top: 4px;
}

.cart-location-badge {
  margin-top: 8px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.cart-location-badge.ok {
  background: #e9f9ef;
  color: #1e7e34;
}

.cart-location-badge.bad {
  background: #ffe5e5;
  color: #c0392b;
}

.cart-location-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-btn,
.cart-btn-outline {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-btn {
  background: #0d6efd;
  color: #fff;
}

.cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-btn-outline {
  background: #e6f2ff;
  color: #0d6efd;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

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

.cart-item-media {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-qty {
  color: #666;
  font-size: 13px;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-form {
  margin: 0;
}

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

.cart-remove-form {
  margin: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #f7f9fc;
  cursor: pointer;
  font-weight: 700;
}

.remove-btn {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.cart-floor {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e9eef5;
}

.cart-floor-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-floor-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f7f9fc;
  font-weight: 700;
  cursor: pointer;
}

.floor-modal-list {
  display: grid;
  gap: 8px;
}

.floor-modal-item {
  margin: 0;
}

.floor-modal-btn {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}

.cart-floor-options {
  display: grid;
  gap: 8px;
}

.floor-name {
  flex: 1;
}

.floor-amount {
  font-weight: 700;
}

.cart-floor-note {
  margin-top: 6px;
  font-size: 12px;
  color: #8a6d00;
}

.cart-coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cart-coupon input {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.cart-breakdown .price-line,
.cart-breakdown .price-total {
  font-size: 14px;
}

.cart-slot-select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.date-scroll,
.slot-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.date-chip,
.slot-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 86px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.date-chip {
  display: grid;
  gap: 2px;
}

.date-day {
  font-size: 11px;
  color: #6b7280;
}

.date-num {
  font-size: 16px;
}

.date-month {
  font-size: 11px;
  color: #6b7280;
}

.date-chip.selected,
.slot-chip.selected {
  border-color: #0d6efd;
  background: #e6f2ff;
  color: #0d6efd;
}

.date-chip.disabled,
.slot-chip.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
}

.cart-place-btn {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #0d6efd, #0aa2c0);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-place-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-pay-note {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.cart-note {
  margin-top: 8px;
  font-size: 12px;
  color: #8a6d00;
}

.address-modal-list {
  display: grid;
  gap: 12px;
}

.address-badge {
  font-size: 11px;
  font-weight: 700;
  background: #e6f2ff;
  color: #0d6efd;
  padding: 4px 8px;
  border-radius: 999px;
}

.address-badge.ok {
  background: #e9f9ef;
  color: #1e7e34;
}

.address-badge.bad {
  background: #ffe5e5;
  color: #c0392b;
}

.address-list-page {
  padding: 20px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-list-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.address-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.address-list-title {
  font-weight: 700;
  font-size: 14px;
}

.address-list-text {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.address-map-link a {
  font-size: 12px;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.address-select-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.address-select-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .cart-item-card {
    grid-template-columns: 84px 1fr;
  }
  .cart-item-media {
    width: 84px;
  }
  .cart-location-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cart-coupon {
    grid-template-columns: 1fr;
  }
}

/* ===== CHECKOUT ===== */
.checkout-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.checkout-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  margin: 12px 0;
}

.checkout-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #0d6efd;
}

.price-line,
.price-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.price-total {
  border-top: 1px solid #eee;
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
}

.price-saved {
  margin-top: 8px;
  color: #1e7e34;
  font-size: 13px;
  font-weight: 600;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-row input {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.coupon-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.floor-options {
  display: grid;
  gap: 8px;
}

.floor-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.floor-option input {
  margin: 0;
}

.checkout-note {
  margin: 10px 0 12px;
  font-size: 13px;
  color: #8a6d00;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 8px;
  padding: 8px 10px;
}

/* ===== SELECT LOCATION ===== */
.location-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.location-header h2 {
  margin: 0;
}

.location-add-btn {
  background: #0d6efd;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #eef2f7;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.address-card-click {
  cursor: pointer;
}

/* Not serviceable modal */
.ns-modal {
  animation: nsPop 0.25s ease;
}

.ns-body {
  text-align: center;
  padding-top: 6px;
}

.ns-graphic {
  width: 160px;
  height: auto;
  margin: 6px auto 10px;
  animation: nsFloat 2.4s ease-in-out infinite;
}

.ns-title {
  margin: 6px 0 4px;
  font-weight: 700;
  font-size: 16px;
}

.ns-text {
  margin: 0 0 12px;
  color: #555;
  font-size: 13px;
}

.ns-btn {
  border: none;
  background: linear-gradient(90deg, #0d6efd, #0aa2c0);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes nsFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes nsPop {
  0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ===== PAYMENT ===== */
.payment-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.payment-hero {
  background: linear-gradient(135deg, #e6f2ff, #0aa2c0);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-hero h2 {
  margin: 0 0 6px;
}

.speed-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pay-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border: 1px solid #eef2f7;
  animation: payFade 0.35s ease;
}

.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pay-tag {
  background: #e6f2ff;
  color: #0d6efd;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.pay-text {
  color: #666;
  font-size: 13px;
  margin: 0 0 12px;
}

.pay-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e9eef5;
}

.pay-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333;
}

.upi-grid,
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.upi-btn,
.bank-btn {
  border: 1px solid #e6e6e6;
  background: #f7f9fc;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.upi-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.upi-input input,
.card-form input,
.card-form select {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.card-form {
  display: grid;
  gap: 8px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pay-btn {
  border: none;
  background: linear-gradient(90deg, #0d6efd, #0aa2c0);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.pay-btn.small {
  padding: 10px 12px;
  font-size: 12px;
}

@keyframes payFade {
  0% { transform: translateY(4px); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (min-width: 900px) {
  .payment-grid {
    grid-template-columns: 1fr;
  }
}

/* Order placed modal */
.order-modal {
  text-align: center;
}

.order-body {
  padding-top: 10px;
}

.order-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e9f9ef;
  color: #1e7e34;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  animation: orderPop 0.3s ease, orderPulse 1.8s ease-in-out infinite;
}

.order-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 16px;
}

.order-text {
  margin: 0 0 12px;
  color: #555;
  font-size: 13px;
}

.order-btn {
  display: inline-block;
  background: linear-gradient(90deg, #0d6efd, #0aa2c0);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

@keyframes orderPop {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes orderPulse {
  0% { box-shadow: 0 0 0 0 rgba(30,126,52,0.35); }
  70% { box-shadow: 0 0 0 12px rgba(30,126,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,126,52,0); }
}

/* ===== ORDER HISTORY ===== */
.orders-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.order-chip {
  min-width: 160px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  display: grid;
  gap: 8px;
}

.order-chip-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-chip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-chip-id {
  font-weight: 700;
  font-size: 12px;
}

.order-chip-amount {
  font-weight: 700;
  font-size: 14px;
}

.order-chip-date {
  color: #666;
  font-size: 12px;
}

.orders-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

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

.order-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.order-media {
  width: 84px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.order-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.order-id {
  color: #666;
  font-size: 12px;
}

.copy-btn {
  border: none;
  background: #e6f2ff;
  color: #0d6efd;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}

.order-amount {
  font-weight: 700;
  margin-bottom: 6px;
}

.help-btn {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.order-history-card {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.ohc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.ohc-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ohc-order-id {
  margin-top: 3px;
  font-size: 12px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ohc-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-placed,
.status-confirmed {
  background: #e6f2ff;
  color: #0d6efd;
}

.status-on-the-way {
  background: #fff3cd;
  color: #8a6d00;
}

.status-delivered {
  background: #e9f9ef;
  color: #1e7e34;
}

.status-cancelled {
  background: #ffe5e5;
  color: #c0392b;
}

.ohc-body {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: start;
}

.ohc-image {
  width: 86px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ohc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ohc-line {
  font-size: 12px;
  color: #374151;
  margin-bottom: 5px;
}

.ohc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ohc-track {
  margin-top: 16px;
  padding: 12px 0;
}

/* Status Timeline */
.status-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
}

/* Cancelled Timeline (2 steps instead of 4) */
.status-timeline.timeline-cancelled {
  justify-content: flex-start;
}

.status-timeline.timeline-cancelled .timeline-step {
  flex: 0 0 auto;
}

.status-timeline.timeline-cancelled .timeline-connector {
  flex: 1;
  max-width: 120px;
}

/* Timeline Step */
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.timeline-step.completed .step-circle {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.timeline-step.completed .step-icon {
  color: white;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step.completed .cancelled-circle {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.timeline-step.completed .cancelled-circle .step-icon {
  color: white;
}

.timeline-step:not(.completed) .step-circle {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.timeline-step:not(.completed) .step-icon {
  color: #d1d5db;
}

.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.step-circle.cancelled-circle {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.step-circle.cancelled-circle .step-icon {
  color: white;
}

.step-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #374151;
  margin-top: 4px;
  line-height: 1.2;
  max-width: 50px;
}

.timeline-step.completed .step-label {
  color: #059669;
}

.timeline-step.completed .cancelled-circle + .step-label {
  color: #dc2626;
}

/* Timeline Connector */
.timeline-connector {
  flex: 1;
  height: 3px;
  background: #e5e7eb;
  position: relative;
  margin: 0 -2px;
  transition: background 0.4s ease;
  z-index: 1;
}

.timeline-connector.completed {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.timeline-cancelled .timeline-connector.completed {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Cancelled State */
.ohc-track.is-cancelled .step-circle {
  background: #f3f4f6;
  border-color: #fecaca;
}

.ohc-track.is-cancelled .step-icon {
  color: #ef4444;
}

.ohc-track.is-cancelled .timeline-connector {
  background: #fecaca;
}

.ohc-track.is-cancelled .timeline-step.completed .step-circle {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.ohc-track.is-cancelled .timeline-step.completed .step-icon {
  color: white;
}

.ohc-track.is-cancelled .timeline-connector.completed {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.ohc-track.is-cancelled .timeline-step.completed .step-label {
  color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .status-timeline {
    gap: 2px;
  }

  .timeline-step {
    gap: 4px;
  }

  .step-circle {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }

  .step-icon {
    width: 20px;
    height: 20px;
  }

  .step-label {
    font-size: 11px;
    max-width: 45px;
  }

  .timeline-connector {
    margin: 0 -1px;
  }

  .status-timeline.timeline-cancelled .timeline-connector {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .status-timeline {
    gap: 0;
  }

  .step-circle {
    width: 35px;
    height: 35px;
    border-width: 2px;
  }

  .step-icon {
    width: 18px;
    height: 18px;
  }

  .step-label {
    font-size: 10px;
    max-width: 40px;
  }

  .timeline-connector {
    height: 2px;
    margin: 0;
  }

  .status-timeline.timeline-cancelled .timeline-connector {
    max-width: 80px;
  }
}

/* Animations */
@keyframes scaleIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  }
}

.timeline-step:last-child .step-circle.completed {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ohc-btn {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.ohc-btn.alt {
  background: #e6f2ff;
  color: #0d6efd;
}

.address-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.address-title {
  font-weight: 700;
}

.address-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

.address-status.ok {
  background: #e9f9ef;
  color: #1e7e34;
}

.address-status.bad {
  background: #ffe5e5;
  color: #c0392b;
}

.address-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.address-edit {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.address-delete-form {
  margin: 0;
}

.address-delete {
  background: none;
  border: none;
  color: #c0392b;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

/* Invoice */
.invoice-table {
  display: grid;
  gap: 8px;
}

.invoice-row {
  display: grid;
  grid-template-columns: 1.4fr 0.4fr 0.6fr 0.6fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
}

.invoice-head {
  font-weight: 700;
  color: #333;
}

.invoice-name {
  font-weight: 600;
}

.invoice-center {
  text-align: center;
}

.invoice-right {
  text-align: right;
}

@media (max-width: 600px) {
  .invoice-row {
    grid-template-columns: 1.2fr 0.4fr 0.6fr 0.6fr 0.7fr;
    font-size: 12px;
  }
}

/* ===== PRODUCTS PAGE ===== */
.products-container {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.pd-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 14px;
}

.pd-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pd-thumbs {
  display: none;
}

.pd-thumb {
  border: 1px solid #d9dce1;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  width: 62px;
  height: 62px;
  cursor: pointer;
}

.pd-thumb.is-active {
  border-color: #111827;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-main-image-wrap {
  position: relative;
}

.pd-main-image {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pd-slide.is-active {
  opacity: 1;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-empty {
  color: #8a8f99;
  font-size: 14px;
}

.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pd-prev {
  left: 10px;
}

.pd-next {
  right: 10px;
}

.pd-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.pd-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: #c9d0db;
  padding: 0;
  cursor: pointer;
}

.pd-dot.is-active {
  background: #111827;
}

.pd-info {
  padding: 4px 2px;
}

.pd-title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #1f2937;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pd-sp {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.pd-discount {
  color: #16a34a;
  font-size: 16px;
  font-weight: 700;
}

.pd-mrp {
  margin-top: 6px;
  color: #4b5563;
  font-size: 14px;
}

.pd-qty {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 4px;
  gap: 8px;
}

.pd-qty-btn {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
  font-weight: 700;
}

.pd-qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
}

.pd-cart-form {
  margin-top: 14px;
}

.pd-cart-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #3b00d6 0%, #6c2bff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.pd-desc-card {
  margin-top: 14px;
  background: #fff;
  border: 2px solid #111827;
  border-radius: 22px;
  padding: 18px;
}

.pd-desc-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.pd-desc-card p {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .pd-hero {
    grid-template-columns: minmax(420px, 640px) minmax(420px, 1fr);
    gap: 20px;
    padding: 18px;
    align-items: start;
  }

  .pd-gallery {
    grid-template-columns: 68px 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .pd-thumbs {
    display: grid;
    gap: 10px;
    align-content: start;
  }

  .pd-title {
    font-size: 44px;
  }

  .pd-sp {
    font-size: 36px;
  }

  .pd-info {
    width: 100%;
  }

  .pd-cart-btn {
    width: auto;
    min-width: 260px;
    padding: 12px 22px;
  }
}

@media (max-width: 899px) {
  .pd-cart-btn {
    font-size: 16px;
  }
}

@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 20px;
  }
  .hero-track {
    min-height: 200px;
  }
}

/* ===== POLICY ===== */
.policy-container {
  padding: 20px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.policy-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.policy-card h2 {
  margin: 0 0 6px;
}

.policy-updated {
  color: #777;
  font-size: 13px;
  margin-top: 0;
}

.policy-card h3 {
  margin: 18px 0 8px;
  color: #0d6efd;
  font-size: 16px;
}

.policy-list {
  margin: 8px 0 12px;
}

.policy-list div {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
  color: #444;
}

.policy-contact div {
  padding: 4px 0;
  font-size: 14px;
}

/* ===== BOT CHAT STYLES ===== */
.help-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.help-btn:hover {
  background: #218838;
}

/* Chat Modal */
.bot-chat-modal {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bot-chat-modal.open {
  display: flex;
  opacity: 1;
}

.bot-chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: white;
  max-height: 100vh;
}

/* Mobile Chat */
@media (max-width: 768px) {
  .bot-chat-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* Desktop Chat */
@media (min-width: 769px) {
  .bot-chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    height: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
  }

  .bot-chat-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }
}

/* Chat Header */
.chat-header {
  background: #0d6efd;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid #e0e0e0;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-header-info {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.chat-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9f9f9;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.chat-message {
  display: flex;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.bot {
  justify-content: flex-start;
}

.chat-message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message.bot .message-content {
  background: #e8e8e8;
  color: #333;
}

.chat-message.user .message-content {
  background: #0d6efd;
  color: white;
}

/* Chat Options */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.chat-option-btn {
  background: white;
  border: 1.5px solid #0d6efd;
  color: #0d6efd;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 500;
}

.chat-option-btn:hover {
  background: #0d6efd;
  color: white;
}

/* Date Picker */
.date-picker-container {
  margin-top: 12px;
}

.date-picker-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Slot Selection */
.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.slot-btn {
  background: white;
  border: 1.5px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
  font-weight: 500;
}

.slot-btn:hover {
  border-color: #0d6efd;
  background: #f0f7ff;
}

.slot-btn.selected {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* Textarea */
.chat-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  max-height: 150px;
  margin-top: 8px;
}

/* Chat Input Area */
.chat-input-area {
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 8px;
  background: white;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.chat-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

.chat-send-btn {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.chat-send-btn:hover {
  background: #0b5ed7;
}

.chat-send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .chat-header h3 {
    font-size: 15px;
  }

  .message-content {
    font-size: 13px;
  }

  .chat-option-btn {
    font-size: 12px;
    padding: 9px 10px;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading Indicator */
.chat-loading {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
}

.chat-loading span {
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}

.chat-loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    opacity: 0.5;
  }
  40% {
    opacity: 1;
  }
}
