/*
Theme Name: ORA WooCommerce
Theme URI: https://example.com/
Author: ORA
Description: A WooCommerce storefront theme prepared for the ORA sunglasses migration. Faithfully mirrors the original Next.js storefront.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: ora-woocommerce
*/

:root {
  --color-page: #f8f1e4;
  --color-section: #fffaf0;
  --color-section-alt: #e9f1df;
  --color-card: #fffdf7;
  --color-card-soft: #eef5e7;
  --color-heading: #24352f;
  --color-body: #4f625c;
  --color-muted: #6f7d75;
  --color-border: #d8decb;
  --color-primary: #2f6f67;
  --color-primary-hover: #245a54;
  --color-primary-contrast: #fffdf7;
  --color-secondary: #6f96b6;
  --color-accent: #bfa873;
  --color-accent-soft: #efe4c8;
  --color-success: #3f8f6b;
  --color-danger: #b45342;
  --color-about-blue: #C4E7F7;
  --shadow-soft: 0 14px 35px rgba(47, 111, 103, 0.12);
  --shadow-card: 0 8px 24px rgba(36, 53, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-body);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.ora-no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.ora-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------- */
.ora-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-section) 94%, transparent);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.ora-header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ora-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ora-logo img {
  display: block;
  width: auto;
  height: 44px;
}

.ora-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--color-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.ora-menu,
.ora-mobile-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ora-main-nav a,
.ora-nav-link {
  color: var(--color-body);
  transition: color 180ms ease;
}

.ora-main-nav a:hover,
.ora-nav-link:hover,
.ora-main-nav .current-menu-item > a {
  color: var(--color-primary);
}

.ora-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ora-icon-button,
.ora-menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.ora-icon-button:hover {
  color: var(--color-primary-hover);
}

.ora-menu-toggle {
  display: none;
}

.ora-cart-link {
  position: relative;
}

.ora-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: 0.72rem;
  font-weight: 700;
}

.ora-cart-count.is-empty {
  display: none;
}

.ora-mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 10px 0 16px;
}

.ora-mobile-nav.is-open {
  display: block;
}

.ora-mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--color-body);
  font-weight: 500;
}

.ora-mobile-menu {
  display: block;
}

/* ---------------------------------------------------------------------
 * Hero slideshow
 * ------------------------------------------------------------------- */
.ora-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.ora-hero-slides {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.ora-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ora-hero-slide.is-active {
  opacity: 1;
}

.ora-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.6), rgba(31, 41, 55, 0.4), rgba(17, 24, 39, 0.6));
}

.ora-hero-particles span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  animation: ora-bounce 3s ease-in-out infinite;
}

.ora-hero-particles span:nth-child(1) { top: 80px; left: 40px; width: 8px; height: 8px; animation-duration: 3s; }
.ora-hero-particles span:nth-child(2) { top: 160px; right: 80px; width: 5px; height: 5px; animation-delay: 1s; animation-duration: 4s; }
.ora-hero-particles span:nth-child(3) { bottom: 128px; left: 25%; width: 6px; height: 6px; animation-delay: 2s; animation-duration: 5s; }
.ora-hero-particles span:nth-child(4) { top: 33%; right: 33%; width: 5px; height: 5px; animation-delay: 0.5s; animation-duration: 3.5s; }

@keyframes ora-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.ora-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ora-hero-title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.ora-hero-gradient {
  background: linear-gradient(90deg, #60a5fa, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ora-hero-glow {
  position: relative;
}

.ora-hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #facc15, #f97316);
  filter: blur(16px);
  opacity: 0.3;
  z-index: -1;
}

.ora-hero-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.ora-hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.ora-hero-button span {
  position: relative;
  z-index: 1;
  transition: color 300ms ease;
}

.ora-hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms ease;
}

.ora-hero-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.ora-hero-button:hover::before {
  transform: scaleX(1);
}

.ora-hero-button:hover span {
  color: #111827;
}

.ora-hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.ora-hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 300ms ease, transform 300ms ease;
}

.ora-hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.ora-hero-dot.is-active {
  background: #fff;
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .ora-hero-title {
    display: none;
  }
}

/* ---------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------- */
.ora-section {
  padding: clamp(56px, 8vw, 92px) 0;
}

.ora-section.light {
  background: var(--color-section);
}

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

/* Featured collection carousel */
.ora-featured {
  padding: 64px 0;
}

.ora-featured-head {
  text-align: center;
  margin-bottom: 48px;
}

.ora-featured-head h2 {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
}

.ora-featured-head p {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.ora-carousel {
  position: relative;
}

.ora-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ora-carousel-track::-webkit-scrollbar {
  display: none;
}

.ora-carousel-item {
  flex: 0 0 320px;
  width: 320px;
}

.ora-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-card) 92%, transparent);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, opacity 200ms ease;
}

.ora-carousel-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--color-section);
  color: var(--color-primary-hover);
}

.ora-carousel-prev {
  left: 0;
}

.ora-carousel-next {
  right: 0;
}

.ora-carousel-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
 * Product cards (shared: featured, shop loop)
 * ------------------------------------------------------------------- */
.ora-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 220ms ease;
  cursor: pointer;
}

.ora-product-card:hover {
  box-shadow: var(--shadow-soft);
}

.ora-product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-card-soft);
}

.ora-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.ora-product-card:hover .ora-product-card-image img {
  transform: scale(1.05);
}

.ora-product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ora-badge {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.ora-badge-green { background: var(--color-card-soft); color: var(--color-success); }
.ora-badge-blue { background: #e4f0f6; color: var(--color-secondary); }
.ora-badge-accent { background: var(--color-accent-soft); color: #7a612a; }
.ora-badge-neutral { background: var(--color-card-soft); color: var(--color-body); }

.ora-product-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 4px;
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ora-product-card-sub {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ora-product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ora-price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.ora-swatches {
  display: flex;
  gap: 4px;
}

.ora-swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

.ora-swatch-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card-soft);
  border-color: var(--color-border);
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
 * Promo slideshow banner
 * ------------------------------------------------------------------- */
.ora-banner {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}

.ora-banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.ora-banner-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.ora-banner-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ora-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.ora-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.ora-banner-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
}

.ora-banner-content p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.ora-banner-button {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-weight: 500;
  transition: background 300ms ease;
}

.ora-banner-button:hover {
  background: #f3f4f6;
}

.ora-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  cursor: pointer;
  transition: transform 300ms ease, background 300ms ease;
}

.ora-banner-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.ora-banner-prev { left: 20px; }
.ora-banner-next { right: 20px; }

.ora-banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.ora-banner-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 300ms ease, border-color 300ms ease;
}

.ora-banner-dot:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.7);
}

.ora-banner-dot.is-active {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 768px) {
  .ora-banner { min-height: 50vh; }
  .ora-banner-nav { display: none; }
  /* The source photos are wide landscape shots (whole group shown side-by-side).
     A tall mobile box + cover crops most of the group out — contain keeps the
     full photo visible, just letterboxed against a dark ground to match the
     overlay tone instead of cropping people out of frame. */
  .ora-banner-media {
    background-size: contain;
    background-color: var(--color-heading);
  }
}

@media (max-width: 480px) {
  .ora-banner { min-height: 42vh; }
}

/* ---------------------------------------------------------------------
 * About section (blue)
 * ------------------------------------------------------------------- */
.ora-about-section {
  background: var(--color-about-blue);
  padding: 80px 0;
}

.ora-about {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.ora-about h2 {
  margin: 0 0 32px;
  color: var(--color-heading);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
}

.ora-about p {
  margin: 0 0 24px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-body);
}

.ora-about-lead {
  color: var(--color-heading) !important;
  font-weight: 500;
  font-size: 1.25rem !important;
}

.ora-about-close {
  padding: 32px 0 0;
}

.ora-about-strong {
  color: var(--color-heading) !important;
  font-weight: 600;
  font-size: 1.25rem !important;
}

/* ---------------------------------------------------------------------
 * Buttons (shared with WooCommerce)
 * ------------------------------------------------------------------- */
.ora-button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wp-block-button__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ora-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wp-block-button__link:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-contrast);
}

.ora-button.secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.ora-button.secondary:hover {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.ora-button-block {
  width: 100%;
}

.ora-button-whatsapp {
  background: var(--color-success);
  border-color: var(--color-success);
}

.ora-button-whatsapp:hover {
  background: #34795a;
  border-color: #34795a;
}

/* ---------------------------------------------------------------------
 * Surfaces
 * ------------------------------------------------------------------- */
.ora-surface {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.ora-surface-soft {
  background: var(--color-card-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

/* ---------------------------------------------------------------------
 * Shop / archive
 * ------------------------------------------------------------------- */
.ora-page-title {
  padding: 58px 0 28px;
}

.ora-page-title h1 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
}

.ora-content {
  padding: 36px 0 72px;
}

.ora-shop-intro {
  text-align: center;
  margin-bottom: 32px;
}

.ora-shop-heading {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: clamp(2rem, 4vw, 2.25rem);
  font-weight: 700;
}

.ora-shop-subheading {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.ora-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 0 32px;
}

.ora-filter-tab {
  padding: 12px 24px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card-soft);
  color: var(--color-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}

.ora-filter-tab:hover {
  background: var(--color-accent-soft);
  color: var(--color-heading);
}

.ora-filter-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-contrast);
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  color: var(--color-muted);
}

.woocommerce .woocommerce-ordering select {
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

/* The li is a bare wrapper — the ORA card inside carries all visuals. */
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: left;
  display: flex;
}

.woocommerce ul.products li.product .ora-product-card {
  width: 100%;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce span.onsale {
  min-height: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-danger);
  color: var(--color-primary-contrast);
  line-height: 1;
}

/* Single product */
.woocommerce div.product {
  padding: 40px 0 72px;
}

/*
 * Theme declares add_theme_support('woocommerce'), which tells WooCommerce
 * to skip its own default gallery/summary layout CSS and rely on the theme
 * instead — so this two-column-desktop / stacked-mobile layout has to be
 * provided here, or the gallery image renders unconstrained (oversized) on
 * narrow screens.
 */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: 100%;
  float: none;
}

@media (min-width: 769px) {
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 46%;
    float: left;
  }

  .woocommerce div.product div.summary {
    float: right;
  }
}

.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  background: var(--color-card-soft);
}

.woocommerce-product-gallery__trigger {
  z-index: 2;
}

.woocommerce div.product .product_title {
  color: var(--color-heading);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
}

.woocommerce div.product form.cart {
  margin-top: 24px;
}

.ora-whatsapp-product {
  margin-top: 14px;
}

.ora-thankyou-whatsapp {
  max-width: 420px;
  margin: 24px 0;
}

.ora-thankyou-whatsapp .ora-form-note {
  margin: 10px 0 0;
}

/* Forms (contact + WooCommerce) */
.ora-form {
  display: grid;
  gap: 16px;
}

.ora-form label {
  display: grid;
  gap: 7px;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.875rem;
}

.ora-form input,
.ora-form textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce div.product form.cart .variations select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
  color: var(--color-heading);
  font: inherit;
}

.ora-form textarea {
  min-height: 140px;
  resize: vertical;
}

.ora-form input:focus,
.ora-form textarea:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce div.product form.cart .variations select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.ora-form-note {
  margin: 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.woocommerce-cart table.cart,
.woocommerce-checkout #payment,
.woocommerce table.shop_table {
  border-color: var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
}

/* ---------------------------------------------------------------------
 * Contact page
 * ------------------------------------------------------------------- */
.ora-contact-page {
  padding: 48px 0 64px;
}

.ora-contact-head {
  text-align: center;
  margin-bottom: 64px;
}

.ora-contact-head h1 {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
}

.ora-contact-head p {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 1.25rem;
}

.ora-contact-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

.ora-contact-info > h2,
.ora-contact-form-card h2 {
  margin: 0 0 24px;
  color: var(--color-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.ora-contact-whatsapp {
  margin-bottom: 24px;
}

.ora-contact-whatsapp-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ora-contact-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-success);
  color: #fff;
  flex: 0 0 auto;
}

.ora-contact-whatsapp-top h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.ora-contact-whatsapp-top p {
  margin: 2px 0 0;
  color: var(--color-body);
  font-weight: 500;
}

.ora-contact-whatsapp-desc {
  margin: 0 0 16px;
  color: var(--color-body);
}

.ora-contact-social {
  margin-bottom: 24px;
}

.ora-contact-social h3 {
  margin: 0 0 16px;
  text-align: center;
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.ora-contact-social-buttons {
  display: flex;
  gap: 16px;
}

.ora-contact-social-buttons .ora-button {
  flex: 1;
}

.ora-contact-social-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.ora-contact-facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.ora-contact-facts li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ora-contact-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-card-soft);
  color: var(--color-body);
  flex: 0 0 auto;
}

.ora-contact-facts h4 {
  margin: 0;
  color: var(--color-heading);
  font-weight: 600;
}

.ora-contact-facts p {
  margin: 2px 0 0;
  color: var(--color-muted);
}

.ora-contact-quick h3 {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.ora-contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ora-contact-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  transition: background 180ms ease;
}

.ora-contact-quick-item:hover {
  background: var(--color-accent-soft);
}

.ora-contact-quick-emoji {
  font-size: 1.5rem;
}

.ora-contact-quick-label {
  font-weight: 500;
  color: var(--color-heading);
}

.ora-contact-form-card h2 {
  margin-bottom: 24px;
}

/* Why choose */
.ora-why {
  margin-top: 64px;
  border-radius: 16px;
  padding: 32px;
}

.ora-why h2 {
  margin: 0 0 32px;
  text-align: center;
  color: var(--color-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.ora-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.ora-why-item {
  text-align: center;
}

.ora-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 999px;
}

.ora-why-item h3 {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.ora-why-item p {
  margin: 0;
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------
 * Cart drawer
 * ------------------------------------------------------------------- */
.ora-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 300ms ease;
}

.ora-cart-overlay.is-visible {
  opacity: 1;
}

.ora-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  height: 100%;
  width: 384px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transform: translateX(100%);
  transition: transform 300ms ease-in-out;
}

.ora-cart-drawer.is-open {
  transform: translateX(0);
}

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

.ora-cart-drawer-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-heading);
}

.ora-cart-drawer-close {
  border: none;
  background: none;
  color: var(--color-body);
  cursor: pointer;
  transition: color 200ms ease;
}

.ora-cart-drawer-close:hover {
  color: var(--color-primary);
}

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

/* Style the WooCommerce mini-cart inside the drawer */
.ora-cart-drawer-body ul.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ora-cart-drawer-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--color-card-soft);
  border: 1px solid var(--color-border);
  position: relative;
}

.ora-cart-drawer-body ul.woocommerce-mini-cart li img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  float: none;
  margin: 0;
}

.ora-cart-drawer-body ul.woocommerce-mini-cart li a:not(.remove) {
  color: var(--color-heading);
  font-weight: 500;
  font-size: 0.9rem;
}

.ora-cart-drawer-body .woocommerce-mini-cart__empty-message {
  text-align: center;
  color: var(--color-muted);
  padding: 32px 0;
}

.ora-cart-drawer-body a.remove {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--color-danger) !important;
}

.ora-cart-drawer-body .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
}

.ora-cart-drawer-body .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.ora-cart-drawer-body .woocommerce-mini-cart__buttons .button {
  width: 100%;
}

.ora-cart-drawer-body .woocommerce-mini-cart__buttons .button:not(.checkout) {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.ora-cart-drawer-body .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

@media (max-width: 480px) {
  .ora-cart-drawer {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.ora-site-footer {
  padding: 48px 0;
  background: var(--color-heading);
  color: var(--color-primary-contrast);
}

.ora-footer-copy {
  margin: 0;
  text-align: center;
  color: var(--color-accent-soft);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 980px) {
  .ora-main-nav {
    display: none;
  }

  .ora-menu-toggle {
    display: inline-flex;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ora-contact-columns {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .ora-container {
    width: min(100% - 24px, 1180px);
  }

  .ora-header-inner {
    min-height: 64px;
  }

  .ora-logo img {
    height: 38px;
  }

  .ora-hero {
    min-height: 560px;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .ora-contact-social-buttons {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------
 * Shop: search / color / sort panel (mirrors Next.js SearchAndFilter)
 * ------------------------------------------------------------------- */
.ora-search-panel {
  margin-bottom: 32px;
}

.ora-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ora-search-field label,
.ora-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.ora-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-card);
  color: var(--color-heading);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ora-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.ora-color-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ora-color-swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ora-color-swatch.is-active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.ora-search-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ora-filter-status {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.ora-link-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-body);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 180ms ease;
}

.ora-link-button:hover {
  color: var(--color-primary);
}

.ora-results-count {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.ora-no-results {
  padding: 64px 0;
  text-align: center;
  color: var(--color-muted);
}

.ora-no-results svg {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.ora-no-results h3 {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.ora-no-results p {
  margin: 0 0 16px;
}

@media (max-width: 980px) {
  .ora-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ora-search-grid {
    grid-template-columns: 1fr;
  }

  .ora-search-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------------
 * Spinner (Next.js loading ring)
 * ------------------------------------------------------------------- */
.ora-spinner {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border: 2px solid transparent;
  border-bottom-color: var(--color-primary);
  border-radius: 999px;
  animation: ora-spin 1s linear infinite;
}

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

/* ---------------------------------------------------------------------
 * Quick-view product modal (mirrors Next.js ProductModal)
 * ------------------------------------------------------------------- */
.ora-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

/* Same fix as the inner loading/error/content blocks: [hidden] must win over
   the unconditional display:flex, or the modal shows on every page load. */
.ora-modal-overlay:not([hidden]) {
  display: flex;
}

.ora-modal {
  width: 100%;
  max-width: 896px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.ora-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card);
}

.ora-modal-header h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.ora-modal-close {
  border: none;
  background: none;
  color: var(--color-body);
  cursor: pointer;
  transition: color 180ms ease;
}

.ora-modal-close:hover {
  color: var(--color-primary);
}

.ora-modal-loading,
.ora-modal-error {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 384px;
  padding: 24px;
  text-align: center;
  color: var(--color-muted);
}

/* Only show loading/error/content when JS removes their `hidden` attribute —
   using [hidden] here (instead of a bare display:flex above) keeps the native
   hidden behavior working instead of being overridden by the class rule. */
.ora-modal-loading:not([hidden]),
.ora-modal-error:not([hidden]) {
  display: flex;
}

.ora-modal-content:not([hidden]) {
  display: block;
}

.ora-modal-error h3 {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.ora-modal-error p {
  margin: 0 0 24px;
}

.ora-modal-content {
  padding: 24px;
}

.ora-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.ora-modal-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-card-soft);
}

.ora-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ora-modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.ora-modal-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-card-soft);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ora-modal-thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.ora-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ora-modal-gallery,
.ora-modal-info {
  /*
   * Grid items default to min-width: auto, so a track sized `1fr` cannot
   * shrink below its content's min-content width. The thumbnail strip is a
   * flex row of fixed 80px items, so a product with 14 images contributes
   * 14*80 + gaps = ~1224px — which blew the single mobile column (and the
   * main image with it) far past the modal's 343px. min-width: 0 lets the
   * track win, and .ora-modal-thumbs' own overflow-x handles the scrolling.
   */
  min-width: 0;
}

.ora-modal-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ora-modal-title {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
}

.ora-modal-sub {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.ora-modal-price {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.875rem;
  font-weight: 700;
}

.ora-modal-info h3 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.ora-modal-desc-wrap p {
  margin: 0;
  color: var(--color-body);
  line-height: 1.7;
}

.ora-modal-colors {
  display: flex;
  gap: 12px;
}

.ora-modal-swatch {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 4px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ora-modal-swatch.is-active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: scale(1.1);
}

.ora-modal-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ora-qty-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card-soft);
  color: var(--color-body);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.ora-qty-button:hover:not(:disabled) {
  background: var(--color-accent-soft);
  color: var(--color-heading);
}

.ora-qty-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.ora-qty-value {
  min-width: 32px;
  text-align: center;
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.ora-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ora-modal-actions .ora-button {
  padding: 16px 20px;
  font-size: 1.125rem;
}

.ora-modal-actions .ora-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.ora-modal-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.ora-modal-features span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ora-modal-features svg {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .ora-modal-grid {
    grid-template-columns: 1fr;
  }
}
