/* ========================================
   OUNIN - Premium Steam Ovens
   ======================================== */

/* CSS Variables */
:root {
  --color-primary: #8B7355;
  --color-primary-dark: #6B5A47;
  --color-secondary: #2C2C2C;
  --color-accent: #D4A574;
  --color-background: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #E8E4E0;
  --color-success: #4CAF50;
  --color-error: #E53935;
  --font-serif: 'Didot', 'Bodoni MT', 'Book Antiqua', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

/* ========================================
   PROMO BAR
   ======================================== */
.promo-bar {
  background-color: var(--color-secondary);
  color: white;
  padding: 10px 0;
  overflow: hidden;
}

.promo-track {
  display: flex;
  justify-content: center;
  gap: 24px;
  animation: promo-scroll 20s linear infinite;
}

.promo-item {
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@keyframes promo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-brand .logo-img {
  height: 40px;
  width: auto;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.nav-btn:hover {
  background-color: var(--color-background);
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text);
}

.cart-wrapper {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-surface);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-nav-link {
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ========================================
   SEARCH MODAL
   ======================================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.search-modal-content {
  width: 100%;
  max-width: 700px;
  padding: 0 24px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

.search-input-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
}

.search-close {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.search-close:hover {
  background: rgba(255,255,255,0.25);
}

.search-close svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.search-modal-close-wrapper {
  position: absolute;
  top: 24px;
  right: 24px;
}

.search-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.search-results {
  background-color: white;
  border-radius: var(--radius-md);
  margin-top: 16px;
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.search-hint {
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-size: 16px;
  padding: 40px 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

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

.search-result-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 4px 8px;
  background-color: var(--color-background);
  border-radius: var(--radius-sm);
}

.search-result-name {
  font-size: 15px;
  color: var(--color-secondary);
  font-weight: 500;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-video-bg video.video-ready,
.hero-video-bg video.video-playing {
  opacity: 1;
}

.hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-banner-poster.png');
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hero-video-desktop {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

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

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background-color: white;
  color: var(--color-text);
  border-color: white;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline-dark:hover {
  background-color: var(--color-text);
  color: white;
}



.btn-add-cart:hover {
  background-color: #1a1a1a;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 16px;
  color: var(--color-text-light);
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.carousel-btn:hover svg {
  stroke: white;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
}

/* ========================================
   PRODUCT CAROUSEL
   ======================================== */
.carousel {
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.carousel-track {
  display: flex;
  gap: 24px;
  align-items: stretch !important;
  transition: transform 0.5s ease;
  width: 100%;
  min-height: 100%;
}

.product-card {
  flex: 1;
  min-width: 0;
  min-height: 100%;
  align-self: stretch;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background-color: var(--color-secondary);
  color: white;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-normal);
}

.product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-img {
.product-card:hover .product-img {
  opacity: 0;
}

/* Prevent popup flash */
.reg-popup,#reg-popup{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.reg-popup.active{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
