/* ============================================================
   WOODMART THEME DESIGN SYSTEM - Home Elitesce
   ============================================================ */

:root {
  --woodmart-primary: #1a1a1a;
  --woodmart-primary-hover: #000000;
  --woodmart-dark: #1a1c1b;
  --woodmart-gray: #444748;
  --woodmart-light-bg: #f4f3f1;
  --woodmart-border: #e3e2e0;
  --woodmart-badge-hot: #c44d32;
  --woodmart-badge-new: #8fa18b;
  --woodmart-warm-beige: #d9c5b2;
  --woodmart-soft-sage: #8fa18b;
  --woodmart-paper-white: #faf9f7;
  --woodmart-surface-low: #f4f3f1;
  --woodmart-font-serif: 'Playfair Display', Georgia, serif;
  --woodmart-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --woodmart-shadow: 0 10px 30px -10px rgba(26, 26, 26, 0.08);
  --woodmart-shadow-soft: 0 20px 40px -15px rgba(26, 26, 26, 0.05);
  --woodmart-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--woodmart-font-main);
  color: var(--woodmart-dark);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--woodmart-transition);
}

a:hover {
  color: var(--woodmart-primary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* TOPBAR */
.woodmart-topbar {
  background-color: #111111;
  color: #cccccc;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #222222;
}

.woodmart-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-announcement {
  color: #ffffff;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* MAIN HEADER */
.woodmart-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--woodmart-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
}

.woodmart-header.header-hidden {
  transform: translateY(-100%);
}

.woodmart-header.sticky {
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 30px;
}

.site-logo,
.stitch-brand-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  text-transform: none;
  line-height: 1.1;
  transition: opacity 0.2s ease;
}

.site-logo:hover,
.stitch-brand-logo:hover {
  opacity: 0.75;
  color: #1a1a1a;
}

.site-logo span,
.stitch-brand-logo span {
  color: inherit;
  font-style: italic;
  font-weight: 400;
  margin: 0 1px;
}

/* SEARCH BAR */
.header-search {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.search-form {
  display: flex;
  border: 2px solid var(--woodmart-border);
  border-radius: 30px;
  overflow: hidden;
  transition: var(--woodmart-transition);
}

.search-form:focus-within {
  border-color: var(--woodmart-primary);
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.search-btn {
  background-color: var(--woodmart-primary);
  color: #ffffff;
  border: none;
  padding: 0 25px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--woodmart-transition);
}

.search-btn:hover {
  background-color: var(--woodmart-primary-hover);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--woodmart-border);
  border-radius: 12px;
  box-shadow: var(--woodmart-shadow);
  margin-top: 5px;
  z-index: 1100;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
  background-color: var(--woodmart-light-bg);
}

.search-result-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.header-action-btn i {
  font-size: 22px;
  color: var(--woodmart-dark);
}

.action-badge {
  position: absolute;
  top: -6px;
  left: 14px;
  background-color: var(--woodmart-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MAIN NAVIGATION */
.woodmart-nav {
  background-color: var(--woodmart-dark);
  color: #ffffff;
}

.woodmart-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  display: block;
  padding: 15px 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.nav-menu-link:hover, .nav-menu-item.active .nav-menu-link {
  color: var(--woodmart-primary);
}

.nav-tag {
  background-color: var(--woodmart-badge-hot);
  color: #ffffff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 650px;
  background: #ffffff;
  color: var(--woodmart-dark);
  box-shadow: var(--woodmart-shadow);
  border-radius: 0 0 8px 8px;
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--woodmart-transition);
  z-index: 1000;
}

.nav-menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-column h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--woodmart-dark);
  border-bottom: 2px solid var(--woodmart-primary);
  padding-bottom: 5px;
}

.mega-menu-column li {
  margin-bottom: 8px;
}

.mega-menu-column a {
  color: var(--woodmart-gray);
  font-size: 13px;
}

.mega-menu-column a:hover {
  color: var(--woodmart-primary);
}

/* HERO CAROUSEL */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 40px;
}

.hero-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 440px;
  background-color: #111;
}

.slide-item {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding: 50px;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 450px;
}

.slide-subtitle {
  color: var(--woodmart-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.slide-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.slide-btn {
  display: inline-block;
  background-color: var(--woodmart-primary);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-btn:hover {
  background-color: var(--woodmart-primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.hero-banners {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-card {
  position: relative;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.banner-title {
  font-size: 20px;
  font-weight: 700;
}

.banner-subtitle {
  font-size: 13px;
  color: var(--woodmart-primary);
  font-weight: 600;
}

/* SECTION TITLES */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-subtitle {
  color: var(--woodmart-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-top: 5px;
  text-transform: uppercase;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--woodmart-primary);
  margin: 12px auto 0;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.woodmart-product-card {
  background: #ffffff;
  border: 1px solid var(--woodmart-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: var(--woodmart-transition);
}

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

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--woodmart-light-bg);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.woodmart-product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}

.badge-item {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
}

.badge-hot { background-color: var(--woodmart-badge-hot); }
.badge-new { background-color: var(--woodmart-badge-new); }
.badge-sale { background-color: var(--woodmart-primary); }

/* PRODUCT ACTIONS HOVER OVERLAY */
.product-actions-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--woodmart-transition);
}

.woodmart-product-card:hover .product-actions-overlay {
  opacity: 1;
  transform: translateX(0);
}

.action-icon-btn {
  width: 36px;
  height: 36px;
  background: #ffffff;
  color: var(--woodmart-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: var(--woodmart-transition);
  border: none;
  font-size: 14px;
}

.action-icon-btn:hover, .action-icon-btn.active {
  background-color: var(--woodmart-primary);
  color: #ffffff;
}

.product-details {
  padding: 15px;
}

.product-category {
  font-size: 11px;
  color: #888888;
  text-transform: uppercase;
  font-weight: 600;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  margin: 5px 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  color: #ffb400;
  font-size: 12px;
  margin-bottom: 8px;
}

.product-price-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--woodmart-primary);
}

.original-price {
  font-size: 13px;
  color: #999999;
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  margin-top: 12px;
  background-color: var(--woodmart-dark);
  color: #ffffff;
  border: none;
  padding: 10px 0;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--woodmart-transition);
}

.btn-add-cart:hover {
  background-color: var(--woodmart-primary);
}

/* Hide mobile sticky buy bar and bottom bar when cart drawer is open */
body.cart-drawer-open .mobile-sticky-buy-bar,
body.cart-drawer-open .woodmart-mobile-bar {
  display: none !important;
}

/* AJAX CART DRAWER */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 99999998 !important;
  opacity: 0;
  visibility: hidden;
  transition: var(--woodmart-transition);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -105vw;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999999 !important;
  box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: var(--woodmart-transition);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-drawer-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-drawer-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--woodmart-border);
  background-color: var(--woodmart-light-bg);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
}

.btn-checkout {
  display: block;
  width: 100%;
  background: var(--woodmart-primary);
  color: #fff;
  text-align: center;
  padding: 12px 0;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
}

/* FOOTER */
.woodmart-footer {
  background-color: #111111;
  color: #aaaaaa;
  padding: 60px 0 20px;
  margin-top: 60px;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--woodmart-primary);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--woodmart-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222222;
  font-size: 13px;
}

/* MOBILE STICKY BOTTOM NAVIGATION BAR (APP UX) */
.woodmart-mobile-bar {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 56px !important;
  background: #ffffff !important;
  border-top: 1px solid var(--woodmart-border) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12) !important;
  z-index: 999999 !important;
  padding: 4px 0 !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.mobile-bar-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666666;
  font-weight: 700;
  position: relative;
  flex: 1;
  text-decoration: none;
}

.mobile-bar-item i {
  font-size: 19px;
  margin-bottom: 2px;
}

.mobile-bar-item.active, .mobile-bar-item:hover {
  color: var(--woodmart-primary);
}

.mobile-bar-badge {
  position: absolute;
  top: -3px;
  right: 18px;
  background: #e52e2e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}

/* MOBILE STICKY BUY BAR FOR PRODUCT PAGES (STITCH NORDIC WARMTH) */
.mobile-sticky-buy-bar {
  display: flex !important;
  position: fixed !important;
  bottom: 58px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 58px !important;
  background: rgba(250, 249, 247, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-top: 1px solid #e3e2e0 !important;
  padding: 0 16px !important;
  box-shadow: 0 -4px 20px rgba(26,26,26,0.06) !important;
  z-index: 999990 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.mobile-sticky-buy-bar .mobile-buy-now-btn,
.mobile-sticky-buy-bar .btn-add-cart {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  padding: 0 14px !important;
  height: 42px !important;
  flex: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 12px rgba(26,26,26,0.25) !important;
}

.mobile-sticky-buy-bar .btn-buy-now {
  background: transparent !important;
  color: #1a1a1a !important;
  border: 1.5px solid #1a1a1a !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  padding: 0 14px !important;
  height: 42px !important;
  flex: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: none !important;
}

/* RESPONSIVE BREAKPOINTS & MOBILE APP UX POLISH */
@media (max-width: 768px) {
  body {
    padding-bottom: 65px;
  }

  .product-title-header {
    order: 1 !important;
    margin-bottom: 12px !important;
  }

  .product-page-title {
    font-size: 18px !important;
  }

  .product-details-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    order: 2 !important;
  }

  .product-gallery-box {
    order: 1 !important;
  }

  .product-meta-box {
    order: 2 !important;
  }

  .woodmart-nav {
    display: none;
  }

  .woodmart-mobile-bar {
    display: block !important;
  }

  .mobile-sticky-buy-bar {
    display: flex !important;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .woodmart-product-card {
    border-radius: 12px;
  }

  .woodmart-product-card .product-details {
    padding: 10px;
  }

  .woodmart-product-card .product-title {
    font-size: 12px;
    height: 34px;
    overflow: hidden;
  }

  .topbar-announcement {
    font-size: 11px;
  }

  .topbar-right {
    display: none;
  }

  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    right: -100vw;
  }

  .cart-drawer-footer {
    padding: 16px 20px 24px 20px !important;
    background: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08) !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .btn-checkout {
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-radius: 10px !important;
    background: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(26,26,26,0.3) !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .slide-title {
    font-size: 22px;
  }

  .site-logo {
    font-size: 20px;
  }
}

/* Explicitly hide Mobile Bottom Bar & Mobile Buy Bar on PC Desktop */
@media (min-width: 769px) {
  .woodmart-mobile-bar,
  .mobile-sticky-buy-bar {
    display: none !important;
  }
}

/* MOBILE ACCORDION STYLES */
.mobile-accordion {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-accordion-header {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #222222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
}

.mobile-accordion-header .fa-chevron-down {
  transition: transform 0.3s ease;
}

.mobile-accordion-content {
  display: none;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
}

.mobile-accordion.open .mobile-accordion-content {
  display: block;
}

.mobile-accordion.open .mobile-accordion-header .fa-chevron-down {
  transform: rotate(180deg);
}

/* QUICK VIEW MODAL POPUP STYLES */
.qv-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999990;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.qv-backdrop.active {
  display: block;
  opacity: 1;
}

.qv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  z-index: 999995;
  display: none;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.qv-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.qv-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.qv-close-btn:hover {
  background: #e52e2e;
  color: #ffffff;
}

.qv-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 35px;
  align-items: center;
}

.qv-img-col {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv-img-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qv-info-col h2 {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.3;
}

.qv-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qv-price {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.qv-orig-price {
  font-size: 16px;
  color: #747878;
  text-decoration: line-through;
}

.qv-variant-chip {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #d9c5b2;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s;
}
.qv-variant-chip.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
}

@media (max-width: 768px) {
  .qv-modal-body {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .qv-img-col {
    height: 220px;
  }
}

/* ============================================================
   COOKIE CONSENT POPUP (UIVERSE DESIGN BY ILKHOERI)
   ============================================================ */
.cookie-consent-wrapper {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999;
  width: 90%;
  max-width: 320px;
  display: none;
  animation: cookieConsentSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookieConsentSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-consent-wrapper.fade-out {
  animation: cookieConsentFadeOut 0.4s ease forwards;
}

@keyframes cookieConsentFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.cookie-consent-card {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  position: relative;
  font-family: inherit;
  overflow: visible;
}

.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.cookie-svg-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: -3.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.cookie-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
  margin-right: auto;
  color: #3f3f46;
  line-height: 1.3;
}

.cookie-text {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  text-align: left;
  color: #52525b;
  line-height: 1.5;
}

.cookie-privacy-link {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s ease;
  color: #634647;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
}

.cookie-privacy-link:hover {
  color: #ddad81;
}

.cookie-actions-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.cookie-btn-decline {
  font-size: 0.8125rem;
  color: #52525b;
  cursor: pointer;
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
  text-underline-offset: 2px;
}

.cookie-btn-decline:hover {
  color: #634647;
  text-decoration: underline;
}

.cookie-btn-accept {
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 1.75rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: #634647;
  background-color: #ddad81;
  border: none;
  box-shadow: 0 2px 6px rgba(221, 173, 129, 0.3);
}

.cookie-btn-accept:hover {
  color: #ddad81;
  background-color: #634647;
}

/* Feedback Response Box */
.cookie-feedback-box {
  display: none;
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.cookie-feedback-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.cookie-feedback-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 0.25rem;
}

.cookie-feedback-desc {
  font-size: 0.8125rem;
  color: #71717a;
}

@media (max-width: 768px) {
  .cookie-consent-wrapper {
    left: 15px !important;
    right: 15px !important;
    bottom: 70px !important;
    width: auto !important;
    max-width: calc(100vw - 30px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* SIDE POP-UP PRODUCT IMAGE ZOOM (AMAZON / WOODMART STYLE) */
.zoom-loupe-container {
  position: relative !important;
  cursor: crosshair !important;
  display: block;
}

.zoom-lens-box {
  position: absolute !important;
  pointer-events: none !important;
  width: 140px;
  height: 140px;
  background: rgba(217, 197, 178, 0.25) !important;
  border: 2px solid #1a1a1a !important;
  border-radius: 6px !important;
  display: none;
  z-index: 80 !important;
  box-shadow: 0 0 12px rgba(26, 26, 26, 0.2) !important;
}

.zoom-popup-window {
  position: absolute !important;
  top: 0;
  left: calc(100% + 20px);
  width: 500px;
  height: 500px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  border-radius: 12px !important;
  border: 2px solid #e0e0e0 !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25) !important;
  display: none;
  z-index: 9999 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  overflow: hidden;
}

@media (max-width: 1280px) {
  .zoom-popup-window {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 992px) {
  .zoom-popup-window {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
  }
}

.zoom-hint-badge {
  position: absolute !important;
  bottom: 12px !important;
  right: 12px !important;
  background: rgba(17, 17, 17, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  pointer-events: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  z-index: 10 !important;
  transition: opacity 0.2s ease !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.zoom-loupe-container:hover .zoom-hint-badge {
  opacity: 0 !important;
}

/* SINGLE PRODUCT ACTION ROW ALIGNMENT FIX */
.product-action-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.product-action-row > div,
.product-action-row > button {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.product-action-row .btn-add-cart,
.product-action-row .btn-buy-now {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: auto !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* ============================================================
   GOOGLE STITCH DESIGN SYSTEM: NORDIC WARMTH LUXURY
   ============================================================ */

.font-serif-luxury {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.font-sans-clean {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Stitch Breadcrumbs */
.stitch-breadcrumbs {
  font-size: 13px;
  color: #747878;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.stitch-breadcrumbs a {
  color: #747878;
  transition: color 0.2s ease;
}
.stitch-breadcrumbs a:hover {
  color: #1a1a1a;
}
.stitch-breadcrumbs .current {
  color: #1a1a1a;
  font-weight: 500;
}

/* Stitch Product Container & Hero Grid */
.stitch-main-container {
  max-width: 1240px !important;
  margin: 30px auto 70px !important;
  padding: 0 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden;
}

.stitch-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
  width: 100%;
}
@media (max-width: 992px) {
  .stitch-product-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Stitch Gallery */
.stitch-gallery-card {
  position: relative;
  background: #f4f3f1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(26,26,26,0.06);
  border: 1px solid rgba(227, 226, 224, 0.8);
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.stitch-gallery-card img.main-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, transform-origin;
  pointer-events: none;
}

/* Product Description Embedded Images & HTML */
.product-description-body {
  max-width: 100%;
  overflow-x: hidden;
  word-break: break-word;
}
.product-description-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  display: block;
  margin: 14px auto;
  object-fit: contain;
}
.product-description-body table {
  max-width: 100% !important;
  width: 100% !important;
  border-collapse: collapse;
  margin: 14px 0;
}
.product-description-body iframe,
.product-description-body video {
  max-width: 100% !important;
}

.stitch-sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #c44d32;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(196, 77, 50, 0.3);
}

.stitch-thumbs-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.stitch-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #f4f3f1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.stitch-thumb-item.active,
.stitch-thumb-item:hover {
  border-color: #1a1a1a;
  transform: translateY(-2px);
}
.stitch-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stitch Product Meta Info */
.stitch-product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .stitch-product-title {
    font-size: 22px;
  }
}

.stitch-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.stitch-current-price {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}
.stitch-old-price {
  font-size: 16px;
  color: #747878;
  text-decoration: line-through;
}
.stitch-free-ship-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #444748;
  background: #f4f3f1;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stitch-description-lead {
  font-size: 15px;
  line-height: 1.7;
  color: #444748;
  margin-bottom: 24px;
}

/* Variant Swatches */
.stitch-variant-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: block;
}
.stitch-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.stitch-variant-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #d9c5b2;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.stitch-variant-btn:hover {
  border-color: #1a1a1a;
}
.stitch-variant-btn.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26,26,26,0.15);
}
.stitch-variant-btn.active img {
  border-color: #ffffff;
}

/* Quantity & Action Buttons */
/* Product Action Container & Buttons (Nordic Warmth Luxury) */
.stitch-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e3e2e0;
  box-shadow: 0 4px 15px -3px rgba(26, 26, 26, 0.04);
}

.stitch-action-row-main {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.stitch-qty-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #d9c5b2;
  border-radius: 10px;
  height: 50px;
  width: 125px;
  background: #faf9f7;
  padding: 0 5px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.stitch-qty-box:focus-within, 
.stitch-qty-box:hover {
  border-color: #1a1a1a;
  background: #ffffff;
}
.stitch-qty-btn {
  border: none;
  background: #ffffff;
  width: 32px;
  height: 34px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
}
.stitch-qty-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
}
.stitch-qty-input {
  width: 38px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  outline: none;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}
.stitch-qty-input::-webkit-outer-spin-button,
.stitch-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stitch-btn-primary {
  flex: 1;
  height: 50px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px -4px rgba(26, 26, 26, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.stitch-btn-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(26, 26, 26, 0.45);
}

.stitch-btn-secondary {
  width: 100%;
  height: 48px;
  background: #faf9f7;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid #1a1a1a;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.stitch-btn-secondary:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-1px);
}
.stitch-btn-secondary:hover .material-symbols-outlined {
  color: #ffffff !important;
}

/* Meta Details Row */
.stitch-meta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #e3e2e0;
  font-size: 13px;
  color: #444748;
}
.stitch-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stitch-meta-item .material-symbols-outlined,
.stitch-meta-item i {
  color: #8fa18b;
  font-size: 18px;
}

/* Bento Grid Section */
.stitch-section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-align: center;
}
.stitch-section-subtitle {
  font-size: 14px;
  color: #747878;
  text-align: center;
  margin-bottom: 36px;
}

.stitch-bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 70px;
}
@media (max-width: 992px) {
  .stitch-bento-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-card-container {
  background: #f4f3f1;
  border-radius: 16px;
  padding: 36px;
  border: 1px solid rgba(227, 226, 224, 0.8);
}
.stitch-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.stitch-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stitch-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.stitch-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa18b;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.stitch-feature-icon .material-symbols-outlined,
.stitch-feature-icon i {
  font-size: 22px;
}
.stitch-feature-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.stitch-feature-text p {
  font-size: 13px;
  line-height: 1.6;
  color: #444748;
  margin: 0;
}

/* Specifications DL */
.stitch-specs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stitch-spec-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e2e0;
  font-size: 13px;
}
.stitch-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.stitch-spec-row dt {
  color: #747878;
}
.stitch-spec-row dd {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* How to Use Section */
.stitch-how-to-use {
  background: rgba(217, 197, 178, 0.22);
  border-radius: 20px;
  padding: 48px 36px;
  margin-bottom: 70px;
  border: 1px solid rgba(217, 197, 178, 0.4);
}
.stitch-how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .stitch-how-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.stitch-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.stitch-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(26,26,26,0.2);
}
.stitch-step-text {
  font-size: 14px;
  line-height: 1.6;
  color: #444748;
  margin: 0;
  padding-top: 4px;
}

/* Luxury "You May Also Like" Cards with Hover Quick Add */
.stitch-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}
@media (max-width: 1024px) {
  .stitch-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .stitch-related-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.3s ease;
}
.stitch-product-card:hover {
  transform: translateY(-4px);
}
.stitch-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f3f1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px -15px rgba(26,26,26,0.05);
  border: 1px solid rgba(227, 226, 224, 0.6);
}
.stitch-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.stitch-product-card:hover .stitch-card-image-wrap img {
  transform: scale(1.06);
}

.stitch-badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #8fa18b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  z-index: 5;
}

.stitch-quick-add-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
}
.stitch-product-card:hover .stitch-quick-add-overlay {
  transform: translateY(0);
  opacity: 1;
}
.stitch-quick-add-btn {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1a1a1a;
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.stitch-quick-add-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.stitch-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.4;
}
.stitch-card-price {
  font-size: 14px;
  font-weight: 600;
  color: #444748;
}

/* ============================================================
   STITCH LUXURY AUTH (LOGIN & REGISTER)
   ============================================================ */
.stitch-auth-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  background: #faf9f7;
}

.stitch-auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.stitch-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.stitch-auth-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}
.stitch-auth-brand:hover {
  opacity: 0.8;
}

.stitch-auth-subtitle {
  font-size: 15px;
  color: #444748;
  margin-top: 10px;
  line-height: 1.5;
}

.stitch-auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(217, 197, 178, 0.45);
  box-shadow: 0 20px 40px -15px rgba(26, 26, 26, 0.05);
  position: relative;
  overflow: hidden;
}
@media (max-width: 576px) {
  .stitch-auth-card {
    padding: 28px 20px;
    border-radius: 14px;
  }
  .stitch-auth-brand {
    font-size: 30px;
  }
}

.stitch-auth-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d9c5b2 0%, #8fa18b 50%, #d9c5b2 100%);
  opacity: 0.85;
}

.stitch-form-group {
  margin-bottom: 22px;
}

.stitch-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.stitch-form-input {
  width: 100%;
  background: #faf9f7;
  border: 1.5px solid #d9c5b2;
  border-radius: 8px;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.stitch-form-input:focus {
  background: #ffffff;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}
.stitch-form-input::placeholder {
  color: #c4c7c7;
}

.stitch-auth-btn {
  width: 100%;
  height: 52px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px -10px rgba(26, 26, 26, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
}
.stitch-auth-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px rgba(26, 26, 26, 0.4);
}
.stitch-auth-btn .material-symbols-outlined,
.stitch-auth-btn i {
  font-size: 18px;
  transition: transform 0.2s ease;
}
.stitch-auth-btn:hover .material-symbols-outlined,
.stitch-auth-btn:hover i {
  transform: translateX(3px);
}

.stitch-auth-footer-link {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: #444748;
}
.stitch-auth-footer-link a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.stitch-auth-footer-link a:hover {
  color: #6b5c4c;
}

.stitch-auth-alert-error {
  background: #ffdad6;
  border: 1px solid rgba(186, 26, 26, 0.2);
  color: #ba1a1a;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}


