/* =========================================================
   THEME
   ========================================================= */
:root {
  --color1: #ab4e68;
  --color2: #b07156;
  --color3: #533745;
  --color4: #9d9171;
  --color5: #c4a287;
  --color6: #4a646c;
  --color7: #333;
  --color8: #ffffff;
  --transition: all 0.3s ease-in-out;

  --bg: #0c0c10;
  --bg-2: #111117;
  --panel: #15151b;
  --panel-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.55);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.brand-font {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.4px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.site-container {
  max-width: 1200px;
  width: min(90%, 1200px);
  margin: 0 auto;
}

.glass-panel {
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  padding: 1rem;
}

.card-soft {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.fade-in-up {
  animation: fadeInUp 0.4s ease-in-out;
}

.fade-in-scale {
  animation: fadeInScale 0.4s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   GENERIC HERO
   ========================================================= */
.page-hero {
  min-height: 32vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.6)),
    var(--hero-image, url('../assets/img/hero-home.jpg')) center/cover fixed;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.07), transparent 35%);
}

.page-hero .content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin-bottom: 0.25rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* =========================================================
   GENERIC SECTIONS / TOOLS
   ========================================================= */
.section-dark {
  padding: 85px 0;
  background: linear-gradient(180deg, #101017, #15151d);
}

.section-light {
  padding: 85px 0;
  background: #f5f5f8;
  color: #111;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.68);
}

.section-light .section-subtitle {
  color: rgba(20, 20, 20, 0.65);
}

.section-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.result-count {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.breadcrumb-wrap {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.breadcrumb-wrap a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.breadcrumb-wrap a:hover {
  color: #fff;
}

.toolbar-wrap {
  background: linear-gradient(180deg, #111117 0%, #16161d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toolbar-card {
  margin-top: -34px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  position: relative;
  z-index: 4;
  backdrop-filter: blur(12px);
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 12px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.form-select option {
  color: #111;
  background: #fff;
}

.search-addon {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px 0 0 12px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chip-btn.active {
  background: #fff;
  color: #111;
  border-color: #fff;
  font-weight: 600;
}

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-gallery {
  padding: 1rem;
}

.main-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.main-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: 0.35s ease;
}

.main-image-wrap:hover img {
  transform: scale(1.02);
}

.img-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.img-badges span {
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 0.33rem 0.6rem;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbs {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.thumb-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121219;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.thumb-btn img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
  opacity: 0.82;
}

.thumb-btn.active {
  border-color: rgba(255, 255, 255, 0.35);
}

.thumb-btn.active img,
.thumb-btn:hover img {
  opacity: 1;
}

.product-info {
  padding: 1rem;
  position: sticky;
  top: 92px;
}

.product-cat {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-name {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.06;
  margin: 0.35rem 0 0.5rem;
}

.stars {
  color: #f5b301;
}

.review-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.price-main {
  font-size: 1.8rem;
  font-weight: 700;
}

.price-old-hero {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.45);
}

.save-pill {
  background: rgba(116, 255, 153, 0.08);
  border: 1px solid rgba(116, 255, 153, 0.16);
  color: #c7ffd0;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.86rem;
}

.desc {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.sep {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.label {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.45rem;
}

.size-group,
.color-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.size-btn {
  min-width: 48px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.size-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.size-btn.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: 0.2s ease;
}

.color-btn.active {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.color-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  outline: none;
}

.stock-pill {
  background: rgba(116, 255, 153, 0.08);
  border: 1px solid rgba(116, 255, 153, 0.16);
  color: #c7ffd0;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.btn-buy {
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.12);
}

.btn-wish {
  width: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.btn-back-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  margin-top: 0.6rem;
}

.btn-back-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mini-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.mini-meta .item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

/* =========================================================
   ACCORDION
   ========================================================= */
.detail-card {
  margin-top: 22px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-item:last-child {
  border-bottom: 0;
}

.accordion-button {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 600;
}

.accordion-button::after {
  filter: invert(1);
  opacity: 0.85;
}

.accordion-body {
  color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-list {
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.cart-item-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.cart-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.cart-price {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.qty-value {
  min-width: 42px;
  text-align: center;
  font-weight: 600;
}

.cart-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 140px;
}

.item-total {
  font-weight: 700;
}

.btn-remove {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-remove:hover {
  background: rgba(255, 255, 255, 0.08);
}

.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem;
  position: sticky;
  top: 92px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.summary-row.total {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.btn-main {
  width: 100%;
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.12);
}

.btn-soft-link {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.btn-soft-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-clear {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 0.9rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.empty-state {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   PROFILE
   ========================================================= */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: block;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================================
   LOGIN MODAL
   ========================================================= */
.modal-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 11990;
}

.login-modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 22px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 12000;
}

#login-modal-toggle:checked ~ .login-modal-backdrop,
#login-modal-toggle:checked ~ .login-modal-shell {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body:has(#login-modal-toggle:checked) {
  overflow: hidden;
}

.login-auth-card {
  width: min(100%, 405px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #2c2930;
  border: 1px solid rgba(83, 55, 69, 0.12);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s ease;
}

#login-modal-toggle:checked ~ .login-modal-shell .login-auth-card {
  transform: translateY(0) scale(1);
}

.login-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  color: var(--color3);
  background:
    radial-gradient(circle at 92% 0%, rgba(176, 113, 86, 0.12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fcf9fa 100%);
  border-bottom: 1px solid rgba(83, 55, 69, 0.09);
}

.login-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--color1), var(--color2));
}

.login-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-title-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--color1), var(--color3));
  box-shadow: 0 7px 18px rgba(171, 78, 104, 0.22);
  font-size: 1rem;
}

.login-eyebrow {
  display: block;
  margin-bottom: 1px;
  color: #7d7177;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.login-modal-header h2 {
  margin: 0;
  color: #332a2f;
  font-size: clamp(1.22rem, 2.6vw, 1.42rem);
  font-weight: 700;
  line-height: 1.12;
}

.login-modal-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(83, 55, 69, 0.12);
  border-radius: 10px;
  background: rgba(83, 55, 69, 0.04);
  color: #665b61;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.login-modal-close:hover {
  color: var(--color1);
  background: rgba(171, 78, 104, 0.09);
  transform: rotate(3deg);
}

.login-modal-close:focus-visible,
.login-social-btn:focus-visible,
.password-toggle:focus-visible,
.auth-link:focus-visible,
.login-submit:focus-visible {
  outline: 3px solid rgba(176, 113, 86, 0.28);
  outline-offset: 2px;
}

.login-modal-body {
  padding: 16px 18px 15px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 55, 69, 0.24) transparent;
}

.login-modal-body::-webkit-scrollbar {
  width: 7px;
}

.login-modal-body::-webkit-scrollbar-thumb {
  background: rgba(83, 55, 69, 0.24);
  border-radius: 999px;
}

.login-intro {
  margin: 0 0 12px;
  color: #746a70;
  font-size: 0.85rem;
  line-height: 1.42;
}

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

.login-social-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.login-social-btn:hover {
  transform: translateY(-1px);
}

.login-social-google {
  color: #fff;
  background: #4285f4;
  border-color: #4285f4;
  box-shadow: 0 6px 14px rgba(66, 133, 244, 0.22);
}

.login-social-google:hover {
  color: #fff;
  background: #3367d6;
  border-color: #3367d6;
  box-shadow: 0 8px 18px rgba(66, 133, 244, 0.28);
}

.login-google-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.login-google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-social-facebook {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.2);
}

.login-social-facebook:hover {
  color: #fff;
  background: #1269d8;
  border-color: #1269d8;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.26);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #92878d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(83, 55, 69, 0.12);
}

.login-form {
  display: grid;
  gap: 11px;
}

.auth-field {
  display: grid;
  gap: 5px;
  margin: 0;
}

.auth-field label {
  color: #40373c;
  font-size: 0.8rem;
  font-weight: 700;
}

.password-field,
.password-wrapper {
  position: relative;
}

.login-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-shell > i:first-child {
  position: absolute;
  left: 13px;
  z-index: 1;
  color: #8b7f85;
  font-size: 0.94rem;
  pointer-events: none;
  transition: color 0.18s ease;
}

.auth-input.login-input {
  width: 100%;
  height: 43px;
  padding: 9px 41px 9px 39px;
  border: 1px solid rgba(83, 55, 69, 0.16);
  border-radius: 10px;
  outline: none;
  background: #fbfafb;
  color: #302a2e;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.auth-input.login-input::placeholder {
  color: #aaa0a5;
}

.login-input-shell:focus-within > i:first-child {
  color: var(--color1);
}

.auth-input.login-input:focus {
  border-color: rgba(171, 78, 104, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(171, 78, 104, 0.11);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #776d72;
  cursor: pointer;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.password-toggle:hover {
  color: var(--color1);
  background: rgba(171, 78, 104, 0.08);
}

.auth-btn.login-submit {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color1), #8c3e59);
  color: #fff;
  box-shadow: 0 9px 20px rgba(171, 78, 104, 0.22);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-btn.login-submit:hover {
  background: linear-gradient(135deg, var(--color1), #8c3e59);
  color: #fff;
  box-shadow: 0 11px 24px rgba(171, 78, 104, 0.28);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.auth-btn.login-submit:active {
  box-shadow: 0 7px 16px rgba(171, 78, 104, 0.22);
  transform: translateY(0);
}

.auth-actions.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(83, 55, 69, 0.1);
}

.auth-link {
  color: var(--color1);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.auth-link:hover {
  color: #7f354f;
  text-decoration: none;
}

.login-register-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-align: right;
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: #8c8287;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.login-security-note i {
  color: #6a8079;
}

.auth-alert.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(171, 78, 104, 0.2);
  border-radius: 10px;
  background: rgba(171, 78, 104, 0.08);
  color: #6f3347;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-alert.login-alert i {
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-alert.ok.login-alert {
  border-color: rgba(74, 100, 108, 0.2);
  background: rgba(74, 100, 108, 0.08);
  color: #38565f;
}

/* =========================================================
   AUTH PAGE
   ========================================================= */
.auth-page {
  display: grid;
  place-items: center;
  padding: 10px 0 30px;
}

.auth-card-page {
  width: 100%;
  max-width: 820px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
}

.auth-section-title {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-weight: 700;
  color: var(--color3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-span-2 {
  grid-column: 1 / -1;
}

.auth-hint {
  color: var(--color6);
  font-size: 0.9rem;
}

.auth-note {
  margin-top: 14px;
  color: var(--color6);
  font-size: 0.95rem;
}

@media (max-width: 575px) {
  .login-modal-shell {
    align-items: center;
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      8px
      max(8px, env(safe-area-inset-bottom, 0px));
  }

  .login-auth-card {
    width: min(100%, 380px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 15px;
  }

  .login-modal-header {
    padding: 14px 15px 12px;
  }

  .login-modal-header::before {
    left: 15px;
    right: 15px;
  }

  .login-title-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .login-modal-body {
    padding: 14px 15px 13px;
  }

  .login-intro {
    margin-bottom: 10px;
    font-size: 0.81rem;
  }

  .login-social-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .login-divider {
    margin: 11px 0;
    font-size: 0.64rem;
  }

  .auth-actions.login-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .login-register-link {
    text-align: left;
  }
}

@media (max-height: 700px) and (min-width: 576px) {
  .login-modal-shell {
    align-items: start;
  }

  .login-auth-card {
    margin-block: 8px;
  }

  .login-modal-header {
    padding-block: 13px 11px;
  }

  .login-modal-body {
    padding-block: 13px;
  }

  .login-intro {
    margin-bottom: 10px;
  }

  .login-divider {
    margin-block: 10px;
  }

  .login-form {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-modal-backdrop,
  .login-modal-shell,
  .login-auth-card,
  .login-social-btn,
  .login-modal-close,
  .auth-btn.login-submit {
    transition: none;
  }
}

/* =========================================================
   NEWSLETTER / PROMO
   ========================================================= */
.newsletter {
  background: linear-gradient(120deg, #101015, #1a1a23);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.newsletter input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter input:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.promo-box {
  background: linear-gradient(145deg, #fff, #f0f0f4);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.promo-box .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* =========================================================
   FOOTER / TOAST / REVEAL
   ========================================================= */
footer {
  background: #09090b;
  color: rgba(255, 255, 255, 0.72);
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-right: 1rem;
}

footer a:hover {
  color: #fff;
}

.toast {
  border-radius: 14px !important;
}

.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .page-hero {
    background-attachment: scroll;
  }

  .toolbar-card {
    margin-top: -22px;
  }

  .product-info,
  .summary-card {
    position: static;
    top: auto;
  }

  .main-image-wrap img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .cart-item {
    grid-template-columns: 90px 1fr;
    align-items: start;
  }

  .cart-item-img {
    height: 90px;
  }

  .cart-right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: auto;
  }
}

@media (max-width: 575px) {
  .main-image-wrap img {
    height: 340px;
  }

  .thumb-btn img {
    height: 70px;
  }

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

  .btn-wish {
    width: 100%;
    height: 46px;
  }

  .section-dark,
  .section-light {
    padding: 56px 0;
  }
}
