* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #103b35;
  --primary-dark: #0b2c27;
  --gold: #d4ab63;
  --gold-dark: #bb8f43;
  --bg: #faf7f2;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e7dece;
  --shadow: 0 12px 32px rgba(16, 59, 53, 0.08);
  --shadow-lg: 0 22px 50px rgba(16, 59, 53, 0.16);
  --card-radius: 24px;
}

body {
  font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1320px, 94%);
  margin: 0 auto;
}

/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5000;
}

.popup-overlay.hidden {
  display: none;
}

.popup-box {
  width: min(930px, 100%);
  background: linear-gradient(135deg, #ffffff, #fbf7f1);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eee3d4;
  animation: popupIn 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  cursor: pointer;
  z-index: 3;
}

.popup-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 22px;
}

.popup-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.popup-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: center;
  padding: 10px 24px 28px;
}

.popup-image-wrap {
  background: linear-gradient(135deg, #f7f0e4, #ffffff);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid #eee2d0;
}

.popup-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.popup-chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3e6cf;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.popup-text h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
}

.popup-text p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.popup-offer-box {
  background: linear-gradient(135deg, #ffdf72, #ffc72c);
  border-radius: 22px;
  padding: 18px 20px;
  color: #4b2d00;
}

.popup-offer-box span {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 700;
}

.popup-offer-box strong {
  font-size: 34px;
  font-weight: 800;
}

/* TOPBAR */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: rgba(255, 255, 255, 0.96);
}

.topbar-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-mail,
.topbar-link {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: 0.25s ease;
}

.topbar-mail:hover,
.topbar-link:hover {
  color: #f3ddb0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 15px;
  transition: 0.28s ease;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--gold);
  color: #2b2315;
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.35);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.96);
}

.header-wrap {
  min-height: 96px;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 18px;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  animation: fadeUp 0.45s ease;
}

.brand-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 32px;
  line-height: 0.95;
  color: var(--primary);
  font-weight: 800;
}

.brand-text p {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* SEARCH */
.search-box {
  display: flex;
  align-items: center;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease;
}

.search-box input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 22px;
  font-size: 16px;
  color: var(--text);
}

.search-box input::placeholder {
  color: #98a2b3;
}

.search-box button {
  height: 100%;
  border: none;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #2c2314;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.25s ease;
}

.search-box button:hover {
  filter: brightness(1.05);
}

/* DESKTOP ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.55s ease;
}

.action-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: transparent;
  min-width: 132px;
}

.icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.count-badge {
  position: absolute;
  top: -9px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 800;
}

/* MOBILE TOOLS */
.mobile-header-tools {
  display: none;
}

/* MENU */
.menu-toggle {
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  display: inline-flex;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE SEARCH */
.mobile-search-wrap {
  display: none;
  padding-bottom: 12px;
}

.mobile-search-wrap.active {
  display: block;
}

.mobile-search button {
  padding: 0 18px;
}

/* NAV */
.nav-wrap {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.nav-menu {
  min-height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu a {
  position: relative;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 0;
  transition: 0.25s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 0.28s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  width: 100%;
  height: 85vh;
  background: #f5b000;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

.scroll-down {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down span {
  width: 24px;
  height: 40px;
  border: 2px solid #103b35;
  border-radius: 50px;
  display: block;
  position: relative;
}

.scroll-down span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #103b35;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: scrollMove 1.5s infinite;
}

/* DEMO SECTION */
.demo-section {
  padding: 56px 0 72px;
}

.demo-card {
  background: linear-gradient(135deg, #ffffff, #f7f1e8);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 46px 28px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(16, 59, 53, 0.05);
}

.demo-chip {
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1e9dc;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.demo-card h2 {
  font-size: 44px;
  line-height: 1.08;
  color: var(--primary);
  font-weight: 800;
}

.demo-card p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
  align-items: stretch;
}

/* PRODUCT CARD - PREMIUM */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  border: 1px solid #e7dbc9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 59, 53, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  isolation: isolate;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(16, 59, 53, 0.12);
  border-color: #d7c4a9;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 171, 99, 0.08), transparent 34%);
  pointer-events: none;
  z-index: 0;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

/* IMAGE WRAP */
.product-img {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9f6f1 0%, #f3ede3 100%);
  border-radius: 22px 22px 0 0;
}

.product-img > a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-img .img-primary,
.product-img .img-secondary,
.product-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.45s ease,
    transform 0.65s ease,
    filter 0.35s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.product-img .img-primary {
  opacity: 1;
  z-index: 1;
}

.product-img .img-secondary {
  opacity: 0;
  z-index: 2;
}

.product-card:not(.no-hover-image):hover .product-img .img-primary {
  opacity: 0;
  transform: scale(1.04);
}

.product-card:not(.no-hover-image):hover .product-img .img-secondary {
  opacity: 1;
  transform: scale(1.02);
}

.product-card.no-hover-image:hover .product-img .img-primary,
.product-card:hover .product-img img:only-child {
  opacity: 1;
  transform: scale(1.06);
}

.product-card.no-hover-image .product-img .img-secondary {
  display: none;
}

/* BADGES */
.product-badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  z-index: 4;
  pointer-events: none;
}

.product-discount-badge,
.product-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.product-discount-badge {
  background: linear-gradient(135deg, #103b35, #0b2c27);
  color: #fff;
}

.product-stock-badge {
  background: rgba(255, 250, 240, 0.96);
  color: #8b5e12;
  border: 1px solid #ecd8ae;
}

.product-stock-badge.out {
  background: rgba(255, 240, 240, 0.96);
  color: #b42318;
  border-color: #f3b7b7;
}

/* COLOR DOTS */
.product-color-preview {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 4;
}

.product-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.product-color-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #103b35;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* CONTENT */
.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 18px;
}

.product-category-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #8b6b3b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-content h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #103b35;
  font-weight: 800;
  min-height: 49px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-content h3 a {
  transition: color 0.25s ease;
}

.product-card:hover .product-content h3 a {
  color: #0b2c27;
}

.product-short {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 14px;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.product-colors-text {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.price-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.price {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0;
}

.old-price {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 700;
  line-height: 1.2;
}

/* BUTTONS */
.product-actions {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  margin-top: auto;
}

.product-actions-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-actions button {
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    background 0.25s ease;
}

.wishlist-add {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #f5e6c5, #eed8ab);
  color: #103b35;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(212, 171, 99, 0.18);
}

.wishlist-add.active {
  background: linear-gradient(135deg, #103b35, #0b2c27);
  color: #fff;
}

.cart-add,
.product-buy-now {
  height: 46px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cart-add {
  background: linear-gradient(135deg, #103b35, #0b2c27);
  color: #fff;
  box-shadow: 0 10px 20px rgba(16, 59, 53, 0.14);
}

.product-buy-now {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #2b2315;
  box-shadow: 0 10px 20px rgba(212, 171, 99, 0.2);
}

.product-actions button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.product-actions button:active {
  transform: translateY(0);
}

/* LIST / DEMO FALLBACK */
.product-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.product-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.product-item h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 4px;
}

.product-item p {
  color: var(--muted);
  font-size: 15px;
}

.product-buttons {
  display: flex;
  gap: 10px;
}

.small-btn {
  border: none;
  background: #f3e6cf;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.small-btn:hover {
  background: #ead9b9;
}

.no-result {
  display: none;
  text-align: center;
  margin-top: 20px;
  color: #c62828;
  font-weight: 700;
}

/* CART POPUP */
.cart-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: flex-end;
  z-index: 9999;
}

.cart-popup.active {
  display: flex;
}

.cart-box {
  width: 380px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideCart 0.3s ease;
}

.cart-header {
  padding: 16px 20px;
  background: #103b35;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 18px;
}

.cart-header button {
  background: #fff;
  color: #103b35;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-info {
  flex: 1;
}

.cart-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #103b35;
}

.cart-info p {
  font-size: 13px;
  color: #666;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.qty-control button {
  width: 26px;
  height: 26px;
  border: none;
  background: #103b35;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.qty-control span {
  font-size: 14px;
  font-weight: 600;
}

.remove-btn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #d93636;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

.cart-footer p {
  margin: 4px 0;
  font-size: 14px;
}

.cart-footer h4 {
  margin-top: 8px;
  font-size: 18px;
  color: #103b35;
}

.checkout-btn {
  display: block;
  margin-top: 10px;
  background: #103b35;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.checkout-btn:hover {
  background: #0b2c27;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #103b35;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* WISHLIST POPUP */
.wishlist-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: flex-end;
  z-index: 9999;
}

.wishlist-popup.active {
  display: flex;
}

.wishlist-box {
  width: 380px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideWishlist 0.3s ease;
}

.wishlist-header {
  padding: 16px 20px;
  background: #103b35;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wishlist-header h3 {
  font-size: 18px;
}

.wishlist-header button {
  background: #fff;
  color: #103b35;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.wishlist-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
}

.wishlist-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.wishlist-info {
  flex: 1;
}

.wishlist-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #103b35;
}

.wishlist-info p {
  font-size: 13px;
  color: #666;
}

.empty-wishlist {
  text-align: center;
  padding: 40px 10px;
  color: #888;
}

.wishlist-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.buy-btn,
.remove-wishlist {
  border: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
  min-width: auto;
}

.buy-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 59, 53, 0.12);
}

.buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(16, 59, 53, 0.16);
}

.remove-wishlist {
  background: #ff5252;
  color: #fff;
}

.remove-wishlist:hover {
  transform: translateY(-1px);
  background: #ef4444;
}

.wishlist-bottom-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.buy-all-btn {
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #2c2314;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  width: auto;
  min-width: 140px;
}

.buy-all-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

/* CHECKOUT */
.checkout {
  padding: 60px 0;
}

.checkout-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.checkout-form {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.checkout-form h2 {
  margin-bottom: 20px;
  color: #103b35;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.form-group textarea {
  min-height: 90px;
  resize: none;
}

.checkout-summary {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.checkout-summary h2 {
  margin-bottom: 20px;
  color: #103b35;
}

.checkout-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-item-info h4 {
  font-size: 14px;
  color: #103b35;
}

.checkout-item-info p {
  font-size: 13px;
  color: #666;
}

.checkout-total {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #103b35;
}

.place-order-btn {
  width: 100%;
  margin-top: 15px;
  background: #103b35;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.place-order-btn:hover {
  background: #0b2c27;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: "Assistant", sans-serif;
  margin-top: 60px;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
  align-items: flex-start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h3 {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.footer-col a {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.75);
  transition: 0.25s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-center {
  text-align: center;
}

.footer-center h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-center p {
  margin-bottom: 22px;
  color: rgba(255,255,255,0.8);
}

.footer-subscribe {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-subscribe input {
  padding: 12px;
  border: none;
  width: 65%;
  border-radius: 8px;
}

.footer-subscribe button {
  background: var(--gold);
  border: none;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  color: #2c2314;
}

.footer-contact div {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-contact i {
  margin-right: 8px;
  color: var(--gold);
}

.footer-social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--gold);
  color: #000;
}

.footer-info {
  text-align: left;
  padding-left: 10px;
}

.footer-info strong {
  margin: 10px 0;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ANIMATION */
@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideCart {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideWishlist {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes scrollMove {
  0% { opacity: 0; top: 6px; }
  30% { opacity: 1; }
  60% { top: 18px; opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* TABLET */
@media (max-width: 1200px) {
  .header-wrap {
    grid-template-columns: 260px 1fr auto;
  }

  .header-actions {
    display: none;
  }

  .brand-text h1 {
    font-size: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-img {
    height: 280px;
  }
}

/* POPUP RESPONSIVE */
@media (max-width: 991px) {
  .popup-box {
    width: min(700px, 100%);
    border-radius: 22px;
  }

  .popup-content {
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 10px 18px 22px;
  }

  .popup-image {
    max-height: 240px;
  }

  .popup-text h2 {
    font-size: 28px;
  }

  .popup-text p {
    font-size: 16px;
    line-height: 1.6;
  }

  .popup-offer-box strong {
    font-size: 28px;
  }

  .checkout-wrap {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-center {
    grid-column: span 2;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .popup-overlay {
    padding: 14px;
    align-items: center;
    justify-content: center;
  }

  .popup-box {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  .popup-top {
    padding: 14px 16px 6px;
  }

  .popup-brand {
    font-size: 18px;
  }

  .popup-content {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 16px 18px;
  }

  .popup-image-wrap {
    padding: 14px;
    border-radius: 18px;
  }

  .popup-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
  }

  .popup-chip {
    font-size: 12px;
    padding: 7px 12px;
    margin-bottom: 10px;
  }

  .popup-text h2 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .popup-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .popup-offer-box {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .popup-offer-box span {
    font-size: 13px;
  }

  .popup-offer-box strong {
    font-size: 24px;
    line-height: 1.2;
  }

  .popup-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .topbar-inner {
    min-height: auto;
    padding: 12px 0;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar-mail,
  .topbar-link {
    font-size: 12px;
  }

  .topbar-divider {
    display: none;
  }

  .social-links {
    gap: 8px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .header-wrap {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 14px 0 10px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-logo img {
    width: 54px;
    height: 54px;
  }

  .brand-text h1 {
    font-size: 24px;
  }

  .brand-text p {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .desktop-search {
    display: none;
  }

  .mobile-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-tool-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .nav-wrap {
    display: none;
    border-top: none;
    padding-bottom: 14px;
  }

  .nav-wrap.active {
    display: block;
  }

  .nav-menu {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 8px 14px;
    margin-top: 4px;
  }

  .nav-menu a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid #f1eadf;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .hero {
    height: auto;
  }

  .hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .scroll-down {
    display: none;
  }

  .demo-section {
    padding: 34px 0 46px;
  }

  .demo-card {
    padding: 34px 18px;
    border-radius: 24px;
  }

  .demo-card h2 {
    font-size: 30px;
  }

  .demo-card p {
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-img {
    height: 210px;
    border-radius: 18px 18px 0 0;
  }

  .product-content {
    padding: 14px;
  }

  .product-content h3 {
    font-size: 17px;
    min-height: 46px;
  }

  .product-short {
    font-size: 13px;
    min-height: 42px;
  }

  .price {
    font-size: 19px;
  }

  .product-actions {
    grid-template-columns: 42px 1fr;
    gap: 8px;
  }

  .wishlist-add {
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 12px;
  }

  .cart-add,
  .product-buy-now {
    height: 42px;
    font-size: 13px;
    border-radius: 12px;
  }

  .product-actions-bottom {
    gap: 8px;
  }

  .product-discount-badge,
  .product-stock-badge {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .cart-box,
  .wishlist-box {
    width: 100%;
  }

  .cart-item img,
  .wishlist-item img {
    width: 55px;
    height: 55px;
  }

  .checkout-items {
    max-height: 200px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links-col,
  .footer-info {
    display: none;
  }

  .footer-subscribe {
    flex-direction: column;
  }

  .footer-subscribe input,
  .footer-subscribe button {
    width: 100%;
  }

  .buy-btn,
  .remove-wishlist {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .buy-all-btn {
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    min-width: 130px;
  }
}

/* SMALL PHONE */
@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .popup-overlay {
    padding: 10px;
  }

  .popup-box {
    border-radius: 18px;
  }

  .popup-top {
    padding: 12px 14px 4px;
  }

  .popup-brand {
    font-size: 16px;
  }

  .popup-content {
    padding: 8px 14px 16px;
    gap: 12px;
  }

  .popup-image-wrap {
    padding: 12px;
    border-radius: 16px;
  }

  .popup-image {
    max-height: 145px;
  }

  .popup-chip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .popup-text h2 {
    font-size: 19px;
  }

  .popup-text p {
    font-size: 13px;
  }

  .popup-offer-box {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .popup-offer-box span {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .popup-offer-box strong {
    font-size: 20px;
  }

  .popup-close {
    width: 34px;
    height: 34px;
  }

  .brand-text h1 {
    font-size: 22px;
  }

  .brand-text p {
    font-size: 8px;
  }

  .demo-card h2 {
    font-size: 26px;
  }