/* ==========================================================================
   TAMARAVIBES - BRAND DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Color Palette */
  --clr-primary: #D97757;
  --clr-primary-hover: #C55E3E;
  --clr-primary-light: #FBF0EB;
  
  --clr-secondary: #2A6F68;
  --clr-secondary-hover: #1F5550;
  
  --clr-accent: #E8AC84;
  --clr-accent-soft: #FAF0E6;
  
  --clr-etsy: #F1641E;
  --clr-etsy-dark: #D84E0B;
  
  --clr-amazon: #FF9900;
  --clr-amazon-dark: #E68A00;
  
  --clr-dark: #1E1926;
  --clr-text: #2D2836;
  --clr-text-muted: #6C6675;
  --clr-text-light: #9C95A6;
  
  --clr-bg: #FAF7F2;
  --clr-bg-alt: #F4EFE6;
  --clr-card-bg: #FFFFFF;
  --clr-glass-bg: rgba(250, 247, 242, 0.85);
  --clr-glass-border: rgba(217, 119, 87, 0.12);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 25, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 25, 38, 0.07);
  --shadow-lg: 0 16px 36px rgba(30, 25, 38, 0.11);
  --shadow-book: -12px 18px 30px rgba(30, 25, 38, 0.18), -2px 2px 6px rgba(30, 25, 38, 0.08);
  --shadow-hover: 0 20px 40px rgba(217, 119, 87, 0.15);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --container-max: 1240px;
  --container-gutter: 1.5rem;
  --header-height: 80px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  box-sizing: border-box;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-bg-alt {
  background-color: var(--clr-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--clr-text-muted);
}

/* --- BUTTONS & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--clr-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}

.btn-primary:hover {
  background-color: var(--clr-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 87, 0.45);
}

.btn-secondary {
  background-color: var(--clr-card-bg);
  color: var(--clr-dark);
  border: 1px solid rgba(30, 25, 38, 0.12);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-etsy {
  background-color: var(--clr-etsy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(241, 100, 30, 0.3);
}

.btn-etsy:hover {
  background-color: var(--clr-etsy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(241, 100, 30, 0.45);
}

.btn-amazon {
  background-color: var(--clr-amazon);
  color: #111111;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
}

.btn-amazon:hover {
  background-color: var(--clr-amazon-dark);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.45);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- STICKY NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--clr-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-glass-border);
  box-shadow: var(--shadow-sm);
  height: 72px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: nowrap;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- ANIMATED SOLID BUBBLE BACKDROP FOR LOGO --- */
.logo-bubble-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 48% 52% 56% 44% / 52% 46% 54% 48%;
  background: linear-gradient(135deg, #FCEAE0 0%, #F8D9C8 100%);
  border: 1.5px solid rgba(217, 119, 87, 0.3);
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.18);
  flex-shrink: 0;
  transition: all var(--transition-normal);
  animation: logoBubbleFloat 5s ease-in-out infinite alternate;
}

.brand-logo:hover .logo-bubble-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.3);
}

.logo-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  filter: none !important; /* Keep portrait logo line-art black as requested */
}

@keyframes logoBubbleFloat {
  0% {
    border-radius: 48% 52% 56% 44% / 52% 46% 54% 48%;
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    border-radius: 56% 44% 48% 52% / 44% 55% 45% 56%;
    transform: translateY(-2px) rotate(3deg);
  }
  100% {
    border-radius: 44% 56% 52% 48% / 55% 45% 55% 45%;
    transform: translateY(1px) rotate(-2deg);
  }
}

.brand-logo .logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--clr-primary);
  border-radius: 50%;
  display: inline-block;
  margin-left: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.nav-link {
  font-weight: 500;
  color: var(--clr-text);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  text-decoration: none;
  margin-right: 2rem;
  white-space: nowrap;
}

.nav-menu .nav-link:last-child {
  margin-right: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--clr-primary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-actions > * {
  margin-left: 0.85rem;
}

.nav-actions > *:first-child {
  margin-left: 0;
}

/* --- SHOP DROPDOWN NAVIGATION BUTTON & MENU --- */
.shop-dropdown-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.shop-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  height: 40px;
  min-height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--clr-primary) 0%, #B84F2E 100%);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.3);
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.shop-dropdown-btn:hover,
.shop-dropdown-btn.active {
  background: linear-gradient(135deg, var(--clr-primary-hover) 0%, #A03D1E 100%);
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.45);
  transform: translateY(-2px);
}

.shop-dropdown-btn .dropdown-chevron {
  transition: transform var(--transition-fast);
  stroke-width: 2.8;
  flex-shrink: 0;
}

.shop-dropdown-btn.active .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Floating Menu Container */
.shop-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background-color: var(--clr-card-bg);
  border: 1px solid rgba(30, 25, 38, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(30, 25, 38, 0.16);
  padding: 0.5rem;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.shop-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Individual Dropdown Link Items */
.shop-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--clr-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shop-dropdown-item:hover {
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  transform: translateX(4px);
}

.dropdown-item-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.dropdown-item-text {
  flex-grow: 1;
}

/* Dark Mode adaptation for Dropdown Menu */
[data-theme="dark"] .shop-dropdown-menu {
  background-color: #221E2E;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .shop-dropdown-item {
  color: #F5EEF8;
}

[data-theme="dark"] .shop-dropdown-item:hover {
  background-color: rgba(217, 119, 87, 0.22);
  color: var(--clr-accent);
}

/* --- THEME TOGGLE BUTTON & DARK MODE (WebOS TV Compatible) --- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background-color: var(--clr-bg-alt);
  border: 1.5px solid var(--clr-glass-border);
  color: var(--clr-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  background-color: var(--clr-primary-light);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn .theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: 1.05rem;
  margin: 0;
  padding: 0;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* --- DARK THEME OVERRIDES --- */
[data-theme="dark"] {
  --clr-bg: #121019;
  --clr-bg-alt: #1A1724;
  --clr-card-bg: #221E2E;
  --clr-dark: #F5EEF8;
  --clr-text: #E5DEF0;
  --clr-text-muted: #A8A0B5;
  --clr-text-light: #7E768B;
  --clr-primary-light: rgba(217, 119, 87, 0.18);
  --clr-accent-soft: rgba(232, 172, 132, 0.15);
  --clr-glass-bg: rgba(18, 16, 25, 0.90);
  --clr-glass-border: rgba(217, 119, 87, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 20px 40px rgba(217, 119, 87, 0.25);
}

[data-theme="dark"] .navbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .category-card {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .about-badge-card {
  background-color: #2D273B;
}

[data-theme="dark"] .brand-logo {
  color: #FFFFFF;
}

[data-theme="dark"] .logo-bubble-wrapper {
  background: linear-gradient(135deg, #EBE1F8 0%, #F5E8DE 100%);
  border-color: rgba(232, 172, 132, 0.45);
  box-shadow: 0 6px 18px rgba(232, 172, 132, 0.35);
}

[data-theme="dark"] .logo-icon-img,
[data-theme="dark"] #footerLogoImg {
  filter: none !important; /* Retain pure black portrait lines */
}

[data-theme="dark"] .tagline-badge {
  background-color: rgba(217, 119, 87, 0.2);
  color: var(--clr-accent);
}

[data-theme="dark"] .hero-stat-item h3 {
  color: var(--clr-accent);
}

/* --- DARK MODE HERO & FLOATING BADGES --- */
[data-theme="dark"] .hero-image-wrapper {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: #221E2E;
}

[data-theme="dark"] .floating-badge {
  background-color: rgba(34, 30, 46, 0.92);
  border-color: rgba(217, 119, 87, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .floating-badge-icon {
  background-color: rgba(217, 119, 87, 0.22);
  color: var(--clr-accent);
}

[data-theme="dark"] .floating-badge-text strong {
  color: #F5EEF8;
}

[data-theme="dark"] .floating-badge-text span {
  color: #A8A0B5;
}

/* --- DARK MODE DISCOUNT BADGES & PRICES --- */
[data-theme="dark"] .product-badge {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #B84F2E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.35);
}

[data-theme="dark"] .product-price {
  color: var(--clr-dark);
}

[data-theme="dark"] .product-price.sale-price {
  color: var(--clr-accent);
}

[data-theme="dark"] .product-original-price {
  color: #8E859E;
  text-decoration: line-through;
}

[data-theme="dark"] .product-platform-tag.platform-etsy {
  background-color: rgba(241, 100, 30, 0.22);
  color: #FF8F5A;
}

[data-theme="dark"] .product-platform-tag.platform-amazon {
  background-color: rgba(255, 153, 0, 0.22);
  color: #FFB74D;
}

/* --- DARK MODE CONTROLS & CARDS --- */
[data-theme="dark"] .search-input {
  background-color: var(--clr-card-bg);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--clr-dark);
}

[data-theme="dark"] .filter-btn {
  background-color: var(--clr-card-bg);
  color: var(--clr-text);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-btn.active {
  background-color: var(--clr-primary);
  color: #FFFFFF;
  border-color: var(--clr-primary);
}

[data-theme="dark"] .newsletter-card {
  background-color: var(--clr-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .newsletter-input {
  background-color: #1A1724;
  border-color: rgba(255, 255, 255, 0.15);
  color: #F5EEF8;
}

/* --- DARK MODE FOOTER --- */
[data-theme="dark"] .footer {
  background-color: #0B0914;
  color: #B5AEC5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-brand .brand-logo {
  color: #FFFFFF;
}

[data-theme="dark"] .footer-desc,
[data-theme="dark"] .footer-links a {
  color: #B5AEC5;
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--clr-accent);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #8E859E;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--clr-dark);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 3.5rem;
  overflow: hidden;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(232, 172, 132, 0.18) 0%, rgba(250, 247, 242, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(217, 119, 87, 0.1) 0%, rgba(250, 247, 242, 0) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 2.5rem;
  min-height: 560px;
  width: 100%;
}

.hero-3d {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* --- 3D MODEL DRAG & ROTATE INTERACTIVE BUBBLE --- */
.drag-rotate-bubble {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 119, 87, 0.28);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(30, 25, 38, 0.12), 0 2px 6px rgba(217, 119, 87, 0.12);
  color: var(--clr-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bubbleFloat 3s ease-in-out infinite alternate;
}

.drag-rotate-bubble .bubble-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  animation: iconPulseRotate 4s ease-in-out infinite;
}

.drag-rotate-bubble .bubble-text {
  font-family: var(--font-body);
  color: var(--clr-dark);
}

.drag-rotate-bubble.is-hidden {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px) scale(0.92) !important;
  pointer-events: none !important;
}

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

@keyframes iconPulseRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.15);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Dark mode styling for Drag & Rotate Bubble */
[data-theme="dark"] .drag-rotate-bubble {
  background: rgba(34, 30, 46, 0.92);
  border-color: rgba(232, 172, 132, 0.35);
  color: #F5EEF8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .drag-rotate-bubble .bubble-icon-wrap {
  color: var(--clr-accent);
}

[data-theme="dark"] .drag-rotate-bubble .bubble-text {
  color: #F5EEF8;
}

.hero-content {
  max-width: 620px;
  margin: 0;
  text-align: left;
}

.hero-badge {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--clr-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.hero-title span {
  color: var(--clr-primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.1875rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
  max-width: 520px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background-color: #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

.floating-badge {
  position: absolute;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 119, 87, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(30, 25, 38, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.badge-top-left {
  top: 1.25rem;
  left: 1.25rem;
}

.badge-bottom-right {
  bottom: 1.25rem;
  right: 1.25rem;
  animation-delay: 2s;
}

.floating-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--clr-dark);
}

.floating-badge-text span {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

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

/* --- TRUST & BRAND HIGHLIGHTS --- */
.trust-bar {
  padding: 2.5rem 0;
  background-color: var(--clr-card-bg);
  border-top: 1px solid rgba(30, 25, 38, 0.05);
  border-bottom: 1px solid rgba(30, 25, 38, 0.05);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--clr-bg);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 0.2rem;
}

.trust-info p {
  font-size: 0.825rem;
  color: var(--clr-text-muted);
}

/* --- SHOP BY CATEGORY --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  background-color: var(--clr-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 25, 38, 0.06);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--clr-accent);
}

.category-img-wrapper {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.category-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--transition-slow);
}

.category-card-tshirts .category-img-wrapper img,
.category-card[data-category="tshirts"] .category-img-wrapper img {
  object-position: 50% 10%;
}

.category-card-sweatshirts .category-img-wrapper img,
.category-card[data-category="sweatshirts"] .category-img-wrapper img {
  object-position: 50% 15%;
}

.category-card-homedecor .category-img-wrapper img,
.category-card[data-category="homedecor"] .category-img-wrapper img {
  object-position: 50% 25%;
}

.category-card:hover .category-img-wrapper img {
  transform: scale(1.08);
}

.category-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.category-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-link svg {
  transition: transform var(--transition-fast);
}

.category-card:hover .category-link svg {
  transform: translateX(4px);
}

/* --- FEATURED COLLECTION & FILTERING --- */
.filter-search-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(30, 25, 38, 0.12);
  background-color: var(--clr-card-bg);
  color: var(--clr-dark);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.85;
}

.search-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.15);
  color: var(--clr-dark);
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-light);
  pointer-events: none;
}

.books-search-bar {
  max-width: 520px;
  margin: 0 auto 2.5rem auto;
}

.books-search-bar .search-input {
  background-color: #ffffff;
  color: #1E1926 !important;
  border: 1.5px solid rgba(255, 153, 0, 0.4);
  font-weight: 400;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.books-search-bar .search-input::placeholder {
  color: #6C6675;
  font-weight: 400;
  opacity: 0.85;
}

.books-search-bar .search-icon {
  color: #FF9900;
}

.books-search-bar .search-input:focus {
  background-color: #ffffff;
  border-color: #FF9900;
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.3);
  color: #1E1926 !important;
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background-color: var(--clr-card-bg);
  border: 1px solid rgba(30, 25, 38, 0.08);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--clr-primary);
  color: #ffffff;
  border-color: var(--clr-primary);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.25);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* PRODUCT CARD */
.product-card {
  background-color: var(--clr-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 25, 38, 0.06);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--clr-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: 5;
  letter-spacing: 0.02em;
}

.product-platform-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 5;
}

.platform-etsy {
  background-color: rgba(241, 100, 30, 0.12);
  color: var(--clr-etsy);
}

.platform-amazon {
  background-color: rgba(255, 153, 0, 0.15);
  color: #B36B00;
}

.product-img-wrapper {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect ratio */
  overflow: hidden;
  background-color: var(--clr-bg-alt);
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-primary);
  margin-bottom: 0.4rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 25, 38, 0.06);
}

.product-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1;
}

.product-price.sale-price {
  color: var(--clr-primary);
}

.product-original-price {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.no-results {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
  background-color: var(--clr-card-bg);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(30, 25, 38, 0.15);
}

/* --- AMAZON BOOKS DEDICATED SHOWCASE --- */
.books-section {
  background: linear-gradient(180deg, #1E1926 0%, #2A2335 100%);
  color: #ffffff;
  padding: 7rem 0;
  overflow: hidden;
}

.books-section .section-title {
  color: #ffffff;
}

.books-section .section-subtitle {
  color: #C0B7CC;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.book-card-3d {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.book-card-3d:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 153, 0, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 3D BOOK COVER EFFECT */
.book-cover-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.25rem;
}

.book-cover-3d {
  width: 100%;
  max-width: 230px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--shadow-book);
  transform: rotateY(-14deg) rotateX(4deg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  transform-style: preserve-3d;
}

.book-card-3d:hover .book-cover-3d {
  transform: rotateY(-4deg) rotateX(2deg) scale(1.03);
  box-shadow: -16px 24px 36px rgba(0, 0, 0, 0.35);
}

.book-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  width: 100%;
}

.book-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 153, 0, 0.15);
  color: var(--clr-amazon);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 auto 0.85rem auto;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  text-align: center;
}

.book-subtitle {
  font-size: 0.95rem;
  color: var(--clr-accent);
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
}

.book-description {
  font-size: 0.9rem;
  color: #D3CCE0;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-align: center;
  max-width: 480px;
}

.book-highlights {
  margin: 0 auto 1.5rem auto;
  display: inline-block;
  text-align: left;
}

.book-highlights li {
  font-size: 0.85rem;
  color: #BDB3CD;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.book-highlights li::before {
  content: '✓';
  color: var(--clr-amazon);
  font-weight: 700;
}

.book-meta-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* --- WHY TAMARAVIBES --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  background-color: var(--clr-card-bg);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 25, 38, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--clr-primary-light);
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 0.75rem;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-column {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.about-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background-color: var(--clr-card-bg);
}

.about-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-badge-card {
  position: absolute;
  bottom: -15px;
  right: 10px;
  background-color: var(--clr-dark);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 230px;
  z-index: 5;
}

.about-badge-card h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-accent);
}

.about-badge-card p {
  font-size: 0.8rem;
  color: #C0B7CC;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-quote {
  padding: 1.25rem 1.5rem;
  background-color: var(--clr-primary-light);
  border-left: 4px solid var(--clr-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--clr-dark);
  font-weight: 600;
  margin-top: 1rem;
}

/* --- REVIEWS / TESTIMONIALS --- */
.reviews-carousel-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.review-card {
  background-color: var(--clr-card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 25, 38, 0.06);
  text-align: center;
}

.review-stars {
  color: #FFC107;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.review-comment {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--clr-dark);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  color: var(--clr-dark);
  font-size: 1rem;
}

.review-meta {
  font-size: 0.825rem;
  color: var(--clr-text-muted);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #B84F2E 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.25rem auto;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- NEWSLETTER SIGNUP --- */
.newsletter-card {
  background-color: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30, 25, 38, 0.06);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 1.5rem auto 0 auto;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(30, 25, 38, 0.15);
  font-size: 0.95rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--clr-primary);
}

.newsletter-message {
  font-size: 0.875rem;
  margin-top: 1rem;
  font-weight: 600;
}

.newsletter-message.success {
  color: var(--clr-secondary);
}

.newsletter-message.error {
  color: #D93838;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--clr-dark);
  color: #A39BAE;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem 2rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-desc {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 380px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--clr-primary);
  transform: translateY(-3px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-whatsapp-link {
  color: #25D366 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.footer-whatsapp-link:hover {
  color: #20BA5A !important;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
}

.back-to-top:hover {
  color: var(--clr-primary);
}

/* --- QUICK VIEW MODAL --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 25, 38, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-card {
  background-color: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--clr-bg);
  color: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--clr-primary);
  color: #ffffff;
}

.modal-img-container {
  background-color: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-img-container img {
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.modal-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 1.25rem;
}

.modal-desc {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--clr-dark);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-fast);
  border-left: 4px solid var(--clr-primary);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .modal-card {
    grid-template-columns: 1fr;
  }
  .modal-img-container {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.5rem;
  }
  .modal-body {
    padding: 1.5rem;
  }
}

/* --- ANIMATIONS & REVEALS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE MEDIA QUERIES FOR NAVBAR & LAYOUT --- */
@media (max-width: 1024px) {
  :root {
    --container-gutter: 1.25rem;
  }

  .navbar-container {
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
  }
  
  .brand-logo {
    font-size: 1.3rem;
  }

  .logo-icon-img {
    height: 1.2em;
  }

  .nav-actions {
    gap: 0.55rem;
  }

  .shop-dropdown-btn {
    padding: 0.4rem 0.95rem;
    font-size: 0.825rem;
    height: 38px;
    min-height: 38px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--clr-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.15rem;
    padding: 4.25rem 1.5rem 2rem 1.5rem;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    z-index: 1050;
  }
  
  .nav-menu .nav-link {
    margin-right: 0 !important;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  .mobile-toggle {
    display: flex;
  }
}

/* iPad Landscape & Large Tablets (993px - 1024px) Books Section Layout */
@media (min-width: 993px) and (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .book-card-3d {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .book-cover-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .book-cover-3d {
    width: 100%;
    max-width: 230px;
    height: auto;
    margin: 0 auto;
  }

  .book-info {
    text-align: center;
    align-items: center;
  }

  .book-age-badge {
    margin: 0 auto 0.85rem auto;
  }

  .book-title {
    font-size: 1.45rem;
    text-align: center;
  }

  .book-subtitle {
    text-align: center;
  }

  .book-description {
    text-align: center;
  }

  .book-highlights {
    display: inline-block;
    text-align: left;
    margin: 0 auto 1.25rem auto;
  }

  .book-highlights li {
    justify-content: flex-start;
  }

  .btn-amazon {
    margin: 0 auto;
  }
}

/* Intermediate Tablet / Medium Window Responsiveness */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-column {
    max-width: 520px;
    margin: 0 auto;
  }

  .about-badge-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -1.75rem auto 1.5rem auto;
    max-width: 88%;
    padding: 1rem 1.25rem;
    text-align: center;
    z-index: 5;
  }

  .about-badge-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
}

/* iPad Portrait & Medium Tablets (769px - 992px) Books Section Layout */
@media (min-width: 769px) and (max-width: 992px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .book-card-3d {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.25rem;
    align-items: center;
    padding: 2.25rem 2rem;
    text-align: left;
  }

  .book-cover-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
  }

  .book-cover-3d {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0;
  }

  .book-info {
    text-align: left;
    align-items: flex-start;
  }

  .book-age-badge {
    margin: 0 0 0.75rem 0;
  }

  .book-title {
    font-size: 1.55rem;
    text-align: left;
  }

  .book-subtitle {
    text-align: left;
  }

  .book-description {
    text-align: left;
  }

  .book-highlights {
    text-align: left;
    display: block;
    margin: 0 0 1.25rem 0;
  }

  .book-highlights li {
    justify-content: flex-start;
  }

  .btn-amazon {
    margin-left: 0;
  }
}

/* --- TV & EXTRA LARGE DISPLAY OPTIMIZATIONS (1440px - 4K TV) --- */
@media (min-width: 1440px) {
  .navbar {
    height: 84px;
  }

  .navbar-container {
    max-width: 1400px;
  }

  .brand-logo {
    font-size: 1.65rem;
  }

  .logo-bubble-wrapper {
    width: 48px;
    height: 48px;
  }

  .logo-icon-img {
    width: 36px;
    height: 36px;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    margin-right: 2.75rem;
    white-space: nowrap;
  }

  .nav-menu .nav-link:last-child {
    margin-right: 0;
  }

  .nav-actions .btn-etsy {
    height: 44px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }

  .theme-toggle-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (min-width: 2200px) { /* 2K / 4K Ultra HD TV screens */
  .navbar {
    height: 96px;
  }

  .navbar-container {
    max-width: 1800px;
  }

  .brand-logo {
    font-size: 2rem;
  }

  .logo-bubble-wrapper {
    width: 56px;
    height: 56px;
  }

  .logo-icon-img {
    width: 42px;
    height: 42px;
  }

  .nav-menu {
    gap: 3.5rem;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .nav-actions {
    gap: 1.5rem;
  }

  .nav-actions .btn-etsy {
    height: 50px;
    padding: 0.6rem 1.6rem;
    font-size: 1.1rem;
  }

  .theme-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }
}

/* MOBILE PORTRAIT BREAKPOINT (<= 768px) */
@media (max-width: 768px) {
  :root {
    --container-gutter: 1.15rem;
  }

  .navbar-container {
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
  }
  
  .brand-logo {
    font-size: 1.2rem;
  }

  .logo-icon-img {
    height: 1.2em;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-actions .btn-etsy {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .nav-actions .btn-icon {
    width: 16px;
    height: 16px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--clr-card-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.15rem;
    padding: 4.25rem 1.5rem 2rem 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-normal), visibility var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.25rem;
    min-height: auto;
  }
  
  .hero-content {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 1.25rem auto;
  }

  .hero-title {
    text-align: center;
  }

  .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
    margin: 0 auto;
  }

  .hero-3d {
    min-height: 400px;
    height: 400px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-badge-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -1.75rem auto 1.5rem auto;
    max-width: 88%;
    padding: 1rem 1.25rem;
    text-align: center;
    z-index: 2;
  }

  .books-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem;
  }

  .book-card-3d {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }
  
  .book-cover-container {
    margin-bottom: 0.5rem;
  }

  .book-cover-3d {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }

  .book-info {
    align-items: center;
    text-align: center;
  }

  .book-age-badge {
    margin: 0 auto 0.85rem auto;
  }

  .book-title {
    font-size: 1.55rem;
    text-align: center;
  }

  .book-subtitle {
    text-align: center;
  }

  .book-description {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .book-highlights {
    display: inline-block;
    text-align: left;
    margin: 0 auto 1.5rem auto;
  }

  .book-highlights li {
    justify-content: flex-start;
  }

  .btn-amazon {
    margin: 0 auto;
  }

  .newsletter-form {
    flex-direction: column;
  }

  /* Mobile Category Grid & Image Framing */
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .category-img-wrapper {
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: var(--clr-bg-alt);
  }

  .category-img-wrapper img {
    object-position: center center !important;
  }

  /* Centered 2-Column Mobile Footer Layout */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    gap: 2.25rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .brand-logo {
    justify-content: center;
  }

  .footer-desc {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 0.5rem;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    padding-left: 0;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
  }

  .footer-col:last-child .footer-links {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.25rem;
  }

  .footer-col:last-child .footer-links li {
    margin-bottom: 0;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links li {
    display: flex;
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.75rem;
  }
}



@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-img-wrapper {
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: var(--clr-bg-alt);
  }

  .category-body {
    padding: 1.25rem;
  }

  .category-title {
    font-size: 1.15rem;
  }

  .category-img-wrapper img {
    object-position: center center !important;
  }
  .brand-logo {
    font-size: 1rem;
  }

  .shop-dropdown-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    height: 36px;
    min-height: 36px;
  }

  .trust-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 1.75rem 0.75rem;
  }

  .footer-col {
    padding-left: 0.25rem;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .footer-col:last-child .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  
  .floating-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  
  .badge-top-left {
    top: 0.6rem;
    left: 0.6rem;
  }

  .badge-bottom-right {
    bottom: 0.6rem;
    right: 0.6rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* DEDICATED MOBILE LANDSCAPE OPTIMIZATION (Width <= 992px in Landscape or height <= 500px) */
@media (max-width: 992px) and (orientation: landscape), (max-width: 992px) and (max-height: 500px) {
  :root {
    --container-gutter: 1.25rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 0.75rem);
    padding-bottom: 2rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr !important;
    align-items: center;
    gap: 1.75rem;
    min-height: auto;
    text-align: left !important;
  }

  .hero-content {
    margin: 0 !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    max-width: 100%;
  }

  .hero-badge {
    margin: 0 0 0.85rem 0 !important;
  }

  .hero-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
    text-align: left !important;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.925rem !important;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-align: left !important;
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: flex-start !important;
    margin: 0 !important;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    padding: 0.6rem 1.15rem;
    font-size: 0.85rem;
  }

  .hero-3d {
    min-height: 350px !important;
    height: 350px !important;
  }

  /* Mobile Landscape Nav Menu Drawer Spacing & Accessibility */
  .nav-menu {
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    padding: 3.5rem 1.25rem 1.5rem 1.25rem !important;
    overflow-y: auto !important;
    max-height: 100vh !important;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem !important;
    padding: 0.2rem 0 !important;
  }

  /* Mobile Landscape Books Section Side-by-Side Layout */
  .books-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .book-card-3d {
    grid-template-columns: 180px 1fr !important;
    gap: 1.75rem !important;
    padding: 1.75rem 1.5rem !important;
    align-items: center !important;
    text-align: left !important;
  }

  .book-cover-container {
    margin-bottom: 0 !important;
  }

  .book-cover-3d {
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    margin: 0 !important;
  }

  .book-info {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .book-age-badge {
    margin: 0 0 0.5rem 0 !important;
  }

  .book-title {
    font-size: 1.35rem !important;
    text-align: left !important;
    margin-bottom: 0.25rem !important;
  }

  .book-subtitle {
    font-size: 0.85rem !important;
    text-align: left !important;
    margin-bottom: 0.65rem !important;
  }

  .book-description {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
    margin-bottom: 0.85rem !important;
  }

  .book-highlights {
    text-align: left !important;
    margin: 0 0 1rem 0 !important;
  }

  .book-highlights li {
    font-size: 0.8rem !important;
    justify-content: flex-start !important;
  }

  .btn-amazon {
    margin-left: 0 !important;
    font-size: 0.825rem !important;
    padding: 0.55rem 1.15rem !important;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   QUICK VIEW PRODUCT MODAL (POPUP CARD)
   ========================================================================== */
.quickview-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 16, 25, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.quickview-modal-backdrop:not(.active) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.quickview-modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.quickview-modal-card {
  background-color: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30, 25, 38, 0.08);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
  padding: 2.25rem;
}

.quickview-modal-backdrop.active .quickview-modal-card {
  transform: translateY(0) scale(1);
}

.quickview-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--clr-bg-alt);
  border: 1px solid rgba(30, 25, 38, 0.1);
  color: var(--clr-dark);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.quickview-close-btn:hover {
  background-color: var(--clr-primary);
  color: #ffffff;
  transform: rotate(90deg);
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.25rem;
  align-items: center;
}

.quickview-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--clr-bg-alt);
  aspect-ratio: 1 / 1;
}

.quickview-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quickview-details-column {
  display: flex;
  flex-direction: column;
}

.quickview-header-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quickview-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.quickview-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.quickview-price-box .product-price {
  font-size: 1.65rem;
}

.quickview-description {
  font-size: 0.925rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.quickview-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quickview-buy-btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  flex-grow: 1;
  text-align: center;
  justify-content: center;
}

.quickview-continue-btn {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
}

/* Image overlay hint on product cards */
.product-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 25, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}

.product-img-wrapper {
  cursor: pointer;
}

.product-img-wrapper:hover .product-img-overlay {
  opacity: 1;
}

.quick-view-hint {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--clr-dark);
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transform: translateY(6px);
  transition: transform var(--transition-fast);
}

.product-img-wrapper:hover .quick-view-hint {
  transform: translateY(0);
}

/* --- DARK MODE QUICK VIEW OVERRIDES --- */
[data-theme="dark"] .quickview-modal-backdrop {
  background-color: rgba(10, 8, 18, 0.85);
}

[data-theme="dark"] .quickview-modal-card {
  background-color: #221E2E;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .quickview-title {
  color: #F5EEF8;
}

[data-theme="dark"] .quickview-description {
  color: #A8A0B5;
}

[data-theme="dark"] .quickview-close-btn {
  background-color: #1A1724;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F5EEF8;
}

[data-theme="dark"] .quick-view-hint {
  background-color: rgba(34, 30, 46, 0.95);
  color: #F5EEF8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- RESPONSIVE MOBILE QUICK VIEW MODAL --- */
@media (max-width: 640px) {
  .quickview-modal-card {
    padding: 1.5rem;
    max-height: 85vh;
  }

  .quickview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .quickview-title {
    font-size: 1.2rem;
  }

  .quickview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quickview-buy-btn,
  .quickview-continue-btn {
    width: 100%;
  }
}

/* ==========================================================================
   INTERACTIVE 3D MODEL VIEWER & ANIMATED SWITCHER BUTTONS
   ========================================================================== */

.viewer-3d-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--clr-card-bg);
  border: 2.5px solid rgba(217, 119, 87, 0.25);
  box-shadow: 0 16px 40px rgba(30, 25, 38, 0.1), 0 0 30px rgba(217, 119, 87, 0.08);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.viewer-3d-card:hover {
  border-color: rgba(217, 119, 87, 0.45);
  box-shadow: 0 20px 48px rgba(30, 25, 38, 0.15), 0 0 40px rgba(217, 119, 87, 0.12);
}

/* Canvas Viewport */
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 480px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(245, 238, 248, 0.6) 100%);
  overflow: hidden;
  border: 1px solid rgba(30, 25, 38, 0.06);
  cursor: grab;
}

.canvas-wrapper:active {
  cursor: grabbing;
}

#threeCanvas,
model-viewer {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  background-color: transparent;
  --poster-color: transparent;
}

#ar-button {
  display: none !important;
}

/* Loader Overlay */
.viewer-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  color: var(--clr-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.viewer-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(217, 119, 87, 0.2);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 3D Control Toolbar Buttons */
.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background-color: var(--clr-bg-alt);
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-glass-border);
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: var(--clr-card-bg);
  border: 1px solid rgba(30, 25, 38, 0.1);
  color: var(--clr-dark);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.ctrl-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ctrl-btn.active {
  background-color: var(--clr-primary-light);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.ctrl-icon {
  flex-shrink: 0;
}

/* Organic Morphing Logo-Style Bubble Selector Buttons */
.model-selector-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.5rem auto 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.model-bubbles-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.25rem; /* ~3cm spacing between the two bubbles */
  margin: 0 auto;
  transform: translateX(-1.25rem); /* Shifted slightly leftward under center of model */
}

/* Organic Morphing Bubble Button (Matches Logo Bubble) */
.model-bubble-btn {
  position: relative;
  width: 58px;
  height: 58px;
  min-width: 58px;
  padding: 0;
  border-radius: 48% 52% 56% 44% / 52% 46% 54% 48%;
  background: linear-gradient(135deg, #FCEAE0 0%, #F8D9C8 100%);
  border: 2px solid rgba(217, 119, 87, 0.4);
  color: #1E1926;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.22);
  outline: none;
  user-select: none;
  animation: logoBubbleFloat 4s ease-in-out infinite alternate;
}

#modelBtnTshirt.model-bubble-btn {
  animation-delay: -2.5s; /* Offset float timing for natural organic vibe */
}

.bubble-text {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  z-index: 2;
  transition: transform 0.35s ease;
}

.mini-bubble {
  width: 34px !important;
  height: 34px !important;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.18);
  border: 1.5px solid rgba(217, 119, 87, 0.25);
  animation: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.model-bubble-btn.active .mini-bubble {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.model-bubble-btn:hover {
  transform: scale(1.12) rotate(4deg);
  border-color: var(--clr-primary);
  box-shadow: 0 10px 28px rgba(217, 119, 87, 0.35);
}

.model-bubble-btn:hover .bubble-text {
  transform: scale(1.08);
}

/* Active State for Organic Morphing Bubble Buttons */
.model-bubble-btn.active {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #D97757 50%, #B84F2E 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(217, 119, 87, 0.55);
}

.bubble-pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 48% 52% 56% 44% / 52% 46% 54% 48%;
  border: 2.5px solid var(--clr-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.model-bubble-btn.active .bubble-pulse-ring {
  opacity: 1;
  animation: bubbleGlowPulse 2.4s infinite;
}

@keyframes bubbleGlowPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
}

/* Dark Mode Adaptation for 3D Viewer & Search Inputs */
[data-theme="dark"] .search-input {
  background-color: #262030;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .search-input::placeholder {
  color: #A39BAE;
}

[data-theme="dark"] .books-search-bar .search-input {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border-color: rgba(255, 153, 0, 0.5);
}

[data-theme="dark"] .books-search-bar .search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .viewer-3d-card {
  background-color: #1E1926;
  border-color: rgba(217, 119, 87, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .canvas-wrapper {
  background: radial-gradient(circle at 50% 50%, #2A2435 0%, #15111C 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ctrl-btn {
  background-color: #262030;
  border-color: rgba(255, 255, 255, 0.12);
  color: #E5DEF0;
}

[data-theme="dark"] .ctrl-btn:hover {
  background-color: rgba(217, 119, 87, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .model-bubble-btn {
  background: linear-gradient(135deg, #EBE1F8 0%, #F5E8DE 100%);
  border-color: rgba(232, 172, 132, 0.45);
  color: #1E1926;
  box-shadow: 0 6px 18px rgba(232, 172, 132, 0.35);
}

[data-theme="dark"] .model-bubble-btn.active {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #D97757 50%, #B84F2E 100%);
  color: #ffffff;
  border-color: transparent;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .canvas-wrapper {
    height: 400px;
    min-height: 400px;
  }

  .viewer-controls {
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .ctrl-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.775rem;
  }

  .model-bubbles-group {
    gap: 2rem;
  }

  .model-bubble-btn {
    min-width: 84px;
    height: 56px;
    padding: 0 1.2rem;
  }

  .bubble-text {
    font-size: 0.925rem;
  }
}

/* ==========================================================================
   ISOLATED SMART TV DEDICATED BUTTON SPACING (Applied ONLY on TV Devices)
   ========================================================================== */
.is-tv-device .hero-cta-group,
.is-tv-device .cta-actions {
  gap: 1.5rem !important;
}

/* Fallback for older Smart TV browsers that do not render flex gap */
.is-tv-device .hero-cta-group > * + *,
.is-tv-device .cta-actions > * + * {
  margin-left: 1rem !important;
}

.is-tv-device .nav-actions > * + * {
  margin-left: 0.85rem !important;
}

.is-tv-device .filter-tabs > * + * {
  margin-left: 0.6rem !important;
}

.is-tv-device .social-links > * + * {
  margin-left: 0.85rem !important;
}

/* Newsletter / Stay Connected section button spacing for Smart TV */
.is-tv-device .newsletter-form {
  gap: 1.25rem !important;
}

.is-tv-device .newsletter-form > * + * {
  margin-left: 0.85rem !important;
}

/* Product Details Pop-Up (Modal) button spacing for Smart TV */
.is-tv-device .modal-actions-group {
  gap: 1.5rem !important;
}

.is-tv-device .modal-actions-group > * + * {
  margin-left: 1rem !important;
}

/* Shop Section Search Bar & Category Filter Buttons Spacing on Smart TV */
.is-tv-device .filter-search-bar {
  gap: 2rem !important;
  margin-bottom: 3.5rem !important;
}

.is-tv-device .filter-search-bar .search-input-wrapper {
  margin-bottom: 0.75rem !important; /* Fallback for older TV browsers without flex gap */
}




