/* =========================================================
   BELORA CARE — Store Styles
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
  --rose: #C8849A;
  --rose-light: #F5E6EB;
  --rose-dark: #A6607A;
  --gold: #C9A96E;
  --dark: #2C1A1F;
  --text: #4A2E36;
  --text-muted: #9A8085;
  --bg: #FAF7F5;
  --white: #FFFFFF;
  --border: #EDD8DF;
  --success: #27AE60;
  --danger: #E74C3C;
  --shadow: 0 4px 20px rgba(44, 26, 31, 0.09);
  --shadow-lg: 0 10px 40px rgba(44, 26, 31, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 75px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.hidden {
  display: none !important;
}

/* ---- LOADER ---- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

#loader.fade {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--rose);
  letter-spacing: 1px;
}

.loader-logo span {
  color: var(--gold);
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: var(--rose-light);
  border-radius: 99px;
  margin-top: 14px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  animation: loadbar 1.4s ease infinite;
}

@keyframes loadbar {
  0% {
    width: 0
  }

  70% {
    width: 100%
  }

  100% {
    width: 100%;
    opacity: 0
  }
}

/* ---- TOAST ---- */
.cart-pop {
  animation: cart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
  z-index: 8000;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: var(--danger);
}

/* ---- HEADER ---- */
#header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(44, 26, 31, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--rose);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--gold);
}

.search-wrap {
  flex: 1;
  position: relative;
  min-width: 200px;
}

.search-wrap input {
  width: 100%;
  padding: 10px 20px 10px 44px;
  border: 2px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.search-wrap input:focus {
  border-color: var(--rose);
  background: var(--white);
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 18px;
  margin-top: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  border: 1px solid var(--border);
}

.suggestion-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-item:not(:last-child) {
  border-bottom: 1px solid #f9f9f9;
}

.suggestion-item:hover {
  background: var(--rose-light);
}

.suggestion-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  text-align: right;
}

.suggestion-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.suggestion-price {
  font-size: 12px;
  color: var(--rose);
  font-weight: 800;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  background: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: var(--transition);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn * {
  pointer-events: none;
}

.icon-btn:hover {
  background: var(--rose-light);
  color: var(--rose);
}

.icon-btn:active {
  transform: scale(0.92);
}

.badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

/* ---- HERO ---- */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--rose-light);
  min-height: 320px;
}

.hero-slide {
  display: none;
  align-items: center;
  min-height: 320px;
  background: linear-gradient(135deg, #FAF0F2 0%, #F0D6E0 100%);
  padding: 40px 0;
}

.hero-slide.active {
  display: flex;
}

.hero-content {
  max-width: 500px;
  padding: 0 16px;
}

.hero-tag {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 12px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose);
  color: #fff;
  padding: 13px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(200, 132, 154, 0.4);
}

.hero-btn:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-img img {
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--radius);
}

.hero-default-img {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(200, 132, 154, 0.3);
  transition: var(--transition);
  cursor: pointer;
}

.hero-dot.active {
  width: 24px;
  background: var(--rose);
}

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.section-title span {
  color: var(--rose);
}

.see-all {
  font-size: 13px;
  color: var(--rose);
  font-weight: 600;
}

.see-all:hover {
  color: var(--rose-dark);
}

/* ---- CATEGORIES & BRANDS ---- */
#categories,
#brands {
  padding: 40px 0 20px;
}

#brands {
  padding-top: 0;
}


.cats-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.cats-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  padding: 12px 6px;
  min-width: 80px;
}

.cat-pill:active {
  transform: scale(0.95);
}

.cat-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light), #fff);
  border: 3px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.cat-emoji {
  font-size: 28px;
}

.cat-pill.active .cat-img {
  border-color: var(--rose);
  box-shadow: 0 4px 16px rgba(200, 132, 154, 0.35);
}

.cat-pill:hover .cat-img {
  transform: scale(1.06);
  border-color: var(--rose);
}

.cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-pill.active .cat-name {
  color: var(--rose);
}

/* ---- PRODUCTS ---- */
#products {
  padding: 10px 0 40px;
}

.products-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.products-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  min-height: 40px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-btn:active {
  transform: scale(0.96);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rose-light);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-star {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--white);
  color: #FFD700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #FFED8A;
  animation: star-shine 2s infinite;
}

@keyframes star-shine {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #FFD700);
  }

  100% {
    transform: scale(1);
  }
}

.product-badge.sale {
  background: var(--danger);
}

/* Stack badges if both exist */
.product-star+.product-badge {
  top: 44px;
}

.product-badge+.product-badge.sale {
  top: 38px;
}

/* ---- ORDER TRACKING STYLES ---- */
.track-item {
  background: var(--bg);
  transition: var(--transition);
}

.track-item:hover {
  border-color: var(--rose) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-status.processing {
  background: #e0f2fe;
  color: #075985;
}

.badge-status.active {
  background: #d1fae5;
  color: #065f46;
}

.badge-status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.product-wish {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.product-wish:hover,
.product-wish.active {
  background: #fff;
  color: var(--danger);
  transform: scale(1.1);
}

.product-wish.active {
  color: var(--danger);
}

.product-img-wrap {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF0F3, #FAF7F5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-img-placeholder {
  font-size: 56px;
}

.product-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 11px;
  color: var(--rose);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 16px;
  font-weight: 900;
  color: var(--rose);
}

.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-add {
  width: 100%;
  margin-top: auto;
  background: var(--rose);
  color: #fff;
  padding: 14px 10px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid transparent;
}

.product-add:hover {
  background: var(--rose-dark);
}

.product-add:active {
  transform: scale(0.97);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
}

/* ---- PRODUCT MODAL ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 26, 31, 0.5);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(3px);
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: flex;
}

#product-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(44, 26, 31, 0.5);
  backdrop-filter: blur(3px);
}

#product-modal.open,
#order-success.open {
  display: flex;
}

#order-success {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(44, 26, 31, 0.6);
  backdrop-filter: blur(4px);
  padding: 20px;
  overflow-y: auto;
}

.invoice-box {
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-box {
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.modal-box.open {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 0;
  float: left;
  background: var(--bg);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background: var(--rose-light);
  color: var(--rose);
}

.modal-img-wrap {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #FFF0F3, var(--bg));
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-placeholder {
  font-size: 80px;
}

.modal-brand {
  font-size: 12px;
  color: var(--rose);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-price .current {
  font-size: 24px;
  font-weight: 900;
  color: var(--rose);
}

.modal-price .old {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.variant-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

.variant-btn.selected {
  border-color: var(--rose);
  background: var(--rose-light);
  color: var(--rose);
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg);
  font-size: 18px;
  color: var(--text);
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--rose-light);
  color: var(--rose);
}

.qty-val {
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border: none;
  outline: none;
  background: none;
}

.modal-add-btn {
  width: 100%;
  padding: 15px;
  background: var(--rose);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(200, 132, 154, 0.35);
}

.modal-add-btn:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
}

.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.modal-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-tab.active {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

.modal-tab-content {
  display: none;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-tab-content.active {
  display: block;
}

/* ---- CART DRAWER ---- */
#cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  z-index: 900;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.drawer-close {
  font-size: 22px;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--rose-light);
  color: var(--rose);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--rose-light);
  flex-shrink: 0;
}

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

.cart-item-body {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--rose);
  margin-top: 4px;
}

.cart-item-remove {
  font-size: 18px;
  color: var(--text-muted);
  padding: 4px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.cart-total-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--rose);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  min-height: 52px;
  background: var(--rose);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(200, 132, 154, 0.35);
}

.checkout-btn:hover {
  background: var(--rose-dark);
}

.checkout-btn:active {
  transform: scale(0.98);
}

/* ---- CHECKOUT MODAL ---- */
#checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#checkout-modal.open {
  display: flex;
}

.checkout-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  margin: 16px;
}

.checkout-box.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--rose);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pulse-btn 2s infinite;
}

.checkout-btn:hover {
  background: var(--rose-dark);
}

@keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 132, 154, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(200, 132, 154, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(200, 132, 154, 0);
  }
}

.checkout-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg);
  transition: var(--transition);
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--rose);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

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

.coupon-wrap {
  display: flex;
  gap: 8px;
}

.coupon-wrap input {
  flex: 1;
}

.coupon-btn {
  padding: 12px 20px;
  min-height: 44px;
  background: var(--rose-light);
  color: var(--rose);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.coupon-btn:active {
  transform: scale(0.96);
}

.coupon-btn:hover {
  background: var(--rose);
  color: #fff;
}

.order-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.order-summary-total {
  font-weight: 900;
  color: var(--rose);
  font-size: 16px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.submit-order-btn {
  width: 100%;
  padding: 18px 24px;
  min-height: 56px;
  background: var(--rose);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(200, 132, 154, 0.4);
}

.submit-order-btn * {
  pointer-events: none;
}

.submit-order-btn:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

.submit-order-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(200, 132, 154, 0.2);
}

.submit-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.payment-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.pay-opt {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.pay-opt.selected {
  border-color: var(--rose);
  background: var(--rose-light);
  color: var(--rose);
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--rose);
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--rose);
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--rose);
}

/* ---- MOBILE BOTTOM NAV ---- */
#mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  box-shadow: 0 -4px 20px rgba(44, 26, 31, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.mnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  min-height: 56px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  background: transparent;
}

.mnav-btn * {
  pointer-events: none;
}

.mnav-btn:active {
  transform: scale(0.95);
  background: rgba(200, 132, 154, 0.05);
}

.mnav-btn .icon {
  font-size: 22px;
}

.mnav-btn.active {
  color: var(--rose);
}

.mnav-btn:hover {
  color: var(--rose);
}

.mnav-btn .badge {
  top: 6px;
  left: 50%;
  transform: translateX(6px);
}

/* ---- WISHLIST PANEL ---- */
#wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  z-index: 900;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#wishlist-drawer.open {
  transform: translateX(0);
}

.wishlist-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.wish-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.wish-card:hover {
  border-color: var(--rose);
}

.wish-img {
  height: 110px;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.wish-info {
  padding: 8px;
}

.wish-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.wish-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
}

/* ---- RESPONSIVE ---- */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .modal-box,
  .track-box {
    border-radius: var(--radius);
  }

  #product-modal,
  #track-modal {
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  #mobile-nav {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .search-wrap {
    flex: 1;
  }

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

  .hero-slide {
    min-height: 420px;
  }

  .hero-slide .container {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .header-actions {
    display: none;
  }

  .search-wrap {
    flex: 1;
    min-width: 150px;
  }
}

/* ---- TRACK MODAL ENHANCEMENTS ---- */
#track-modal {
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, visibility 0.3s;
}

/* This is handled by .overlay.open now */

#track-modal.open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.track-box {
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  padding: 32px;
  margin: 16px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

#track-modal.open .track-box {
  transform: translateY(0);
}

.track-results-container {
  margin-top: 20px;
}

.track-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--white);
  transition: var(--transition);
}

.track-item:hover {
  border-color: var(--rose);
  box-shadow: var(--shadow);
}

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

.track-order-num {
  font-weight: 800;
  color: var(--rose);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.track-date {
  font-size: 11px;
  color: var(--text-muted);
}

.track-item-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}

.track-total-price {
  font-weight: 900;
  color: var(--dark);
  font-size: 16px;
}

details.track-details {
  margin-top: 12px;
}

details.track-details summary {
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

details.track-details summary::after {
  content: '▼';
  font-size: 8px;
  transition: transform 0.3s;
  margin-right: auto;
}

details.track-details[open] summary::after {
  transform: rotate(180deg);
}

.track-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f9f9f9;
}

.track-product-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.track-product-info {
  flex: 1;
}

.track-product-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.track-product-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.track-product-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
}

/* =========================================================
   PWA INSTALL PROMPT
   ========================================================= */
.pwa-prompt {
  position: fixed;
  bottom: 90px;
  left: 16px;
  right: 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  z-index: 1000;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border);
}

.pwa-prompt.show {
  transform: translateY(0);
}

.pwa-prompt-content {
  position: relative;
}

.pwa-close-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.pwa-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pwa-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pwa-text h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.pwa-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.pwa-install-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.pwa-install-btn:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .pwa-prompt {
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 320px;
  }
}