/*
 * OMARA VoiceGuard – Elementor Widget Styles
 * Version: 1.0.0
 *
 * ALL class names use the "ovg-" prefix to avoid conflicts
 * with Elementor, WooCommerce, themes, or other plugins.
 *
 * Variables are also namespaced to --ovg-* so they don't
 * clash with theme CSS custom properties.
 *
 * Table of Contents
 * 1. Variables
 * 2. Hero Section         (.ovg-hero-*)
 * 3. Shared Buttons       (.ovg-hero-btn-*, .ovg-btn-cart)
 * 4. Shop / Carousel      (.ovg-shop-*, .ovg-carousel-*, .ovg-product-card)
 * 5. Features Section     (.ovg-feat-*)
 * 6. Trust Section        (.ovg-trust-*, .ovg-testimonial-*)
 * 7. Scroll Animations    ([data-ovg-animate])
 * 8. Responsive
 */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  --ovg-primary:      #0a2342;
  --ovg-accent:       #0e9fcb;
  --ovg-accent-light: #4dc8f0;
  --ovg-gray:         #6b7a8d;
  --ovg-border:       #dde6ef;
  --ovg-light-bg:     #f0f6fa;
  --ovg-star:         #f5a623;
  --ovg-radius:       6px;
  --ovg-shadow:       0 4px 18px rgba(10,35,66,0.12);
  --ovg-shadow-hover: 0 8px 32px rgba(10,35,66,0.18);
  --ovg-transition:   0.22s ease;
  --ovg-font-heading: inherit; /* inherits theme heading font */
  --ovg-font-body:    inherit;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.ovg-hero-wrap {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: var(--ovg-primary);
}

.ovg-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

.ovg-hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c9e4f0 0%, #8ec8e8 45%, #5aabcf 100%);
  z-index: 0;
}

.ovg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,35,66,0.80) 0%,
    rgba(10,35,66,0.58) 42%,
    rgba(10,35,66,0.14) 72%,
    rgba(10,35,66,0.00) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.ovg-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  min-height: 560px;
}

.ovg-hero-content {
  max-width: 680px;
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ovg-hero-heading {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ovg-hero-accent {
  color: var(--ovg-accent-light);
  display: block;
}

.ovg-hero-desc {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  margin: 0 0 32px;
  max-width: 440px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ── CTA Buttons ── */
.ovg-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.ovg-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ovg-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--ovg-radius);
  border: 2px solid var(--ovg-accent);
  cursor: pointer;
  transition: all var(--ovg-transition);
  text-decoration: none !important;
  line-height: 1;
}
.ovg-hero-btn-primary:hover {
  background: #007bab;
  border-color: #007bab;
  color: #fff !important;
  box-shadow: var(--ovg-shadow);
}

.ovg-hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--ovg-radius);
  border: 2px solid rgba(255,255,255,0.70);
  cursor: pointer;
  transition: all var(--ovg-transition);
  text-decoration: none !important;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.ovg-hero-btn-outline:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  color: #fff !important;
}

/* ── Hero Trust Badges ── */
.ovg-hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.ovg-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 150px;
}

.ovg-hero-badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ovg-accent-light);
  font-size: 18px;
  backdrop-filter: blur(4px);
}

.ovg-hero-badge-title {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  line-height: 1.3;
  display: block;
}

.ovg-hero-badge-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  display: block;
}

/* ============================================================
   3. SHARED BUTTONS
   ============================================================ */
.ovg-btn-cart {
  display: block;
  width: 100%;
  background: var(--ovg-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 14px;
  border-radius: var(--ovg-radius);
  border: none;
  cursor: pointer;
  transition: all var(--ovg-transition);
  text-decoration: none !important;
  text-align: center;
  line-height: 1.4;
}
.ovg-btn-cart:hover {
  background: var(--ovg-accent);
  color: #fff !important;
}

/* ============================================================
   4. SHOP / CAROUSEL SECTION
   ============================================================ */
.ovg-shop-section {
  padding: 70px 30px 60px;
  background: #fff;
}

/* Section header */
.ovg-shop-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.ovg-shop-section-heading {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--ovg-primary);
  margin: 0 0 10px;
  line-height: 1.2;
}
.ovg-shop-section-heading em {
  color: var(--ovg-accent);
  font-style: normal;
}
.ovg-shop-section-sub {
  font-size: 16px;
  color: var(--ovg-gray);
  margin: 0;
}

/* ── Model Filter Tabs (desktop) ── */
.ovg-shop-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.ovg-shop-filter-btn {
  font-weight: 600;
  font-size: 12px;
  padding: 9px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--ovg-border);
  background: #fff;
  color: var(--ovg-primary);
  cursor: pointer;
  transition: all var(--ovg-transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.ovg-shop-filter-btn:hover,
.ovg-shop-filter-btn.active {
  background: var(--ovg-primary);
  border-color: var(--ovg-primary);
  color: #fff;
  box-shadow: var(--ovg-shadow);
}

/* ── Model Filter Select (mobile) ── */
.ovg-shop-filter-mobile {
  display: none;
  justify-content: center;
  margin-bottom: 28px;
}
.ovg-shop-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2342' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1.5px solid var(--ovg-border);
  border-radius: 30px;
  padding: 10px 40px 10px 18px;
  font-size: 13px;
  color: var(--ovg-primary);
  font-weight: 600;
  cursor: pointer;
  min-width: 200px;
  outline: none;
}
.ovg-shop-filter-select:focus {
  border-color: var(--ovg-accent);
}

/* ── Carousel ── */
.ovg-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 54px;
}
.ovg-carousel-track-container {
  overflow: hidden;
}
.ovg-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* Carousel arrows */
.ovg-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ovg-primary);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ovg-transition);
  box-shadow: var(--ovg-shadow);
}
.ovg-carousel-arrow:hover { background: var(--ovg-accent); }
.ovg-carousel-prev { left: 0; }
.ovg-carousel-next { right: 0; }
.ovg-carousel-arrow:disabled { opacity: 0.4; cursor: default; }

/* ── Product Card ── */
.ovg-product-card {
  flex: 0 0 calc(25% - 18px);
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--ovg-border);
  padding: 22px 18px 20px;
  text-align: center;
  transition: all var(--ovg-transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ovg-product-card:hover {
  border-color: var(--ovg-accent);
  box-shadow: var(--ovg-shadow-hover);
}

.ovg-card-img-link { display: block; width: 100%; }
.ovg-product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ovg-light-bg);
  padding: 8px;
  display: block;
}
.ovg-card-img-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ovg-card-img-placeholder i {
  font-size: 56px;
  color: rgba(255,255,255,0.45);
}

.ovg-product-card-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--ovg-primary);
  margin-bottom: 4px;
  line-height: 1.4;
  width: 100%;
}
.ovg-card-sub {
  font-size: 12.5px;
  color: var(--ovg-gray);
  margin-bottom: 10px;
  width: 100%;
}
.ovg-product-card-price {
  font-weight: 800;
  font-size: 22px;
  color: var(--ovg-primary);
  margin-bottom: 14px;
  width: 100%;
}
.ovg-product-card-price del {
  color: #bbb;
  font-size: 14px;
  font-weight: 500;
}

/* Sale badge */
.ovg-card-sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.5;
  z-index: 2;
  display: inline-block;
  width: auto;
}

/* No products message */
.ovg-no-products {
  padding: 40px;
  text-align: center;
  color: var(--ovg-gray);
  font-size: 14px;
  width: 100%;
}

/* Loading spinner placeholder */
.ovg-loading-placeholder {
  padding: 60px;
  text-align: center;
  width: 100%;
}
.ovg-loading-placeholder i {
  font-size: 30px;
  color: var(--ovg-accent);
}

/* Shipping notice */
.ovg-shipping-notice {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: var(--ovg-gray);
}
.ovg-shipping-notice span {
  background: var(--ovg-light-bg);
  padding: 8px 22px;
  border-radius: 30px;
  display: inline-block;
}
.ovg-shipping-notice strong { color: var(--ovg-primary); }

/* ============================================================
   5. FEATURES SECTION
   ============================================================ */
.ovg-feat-section {
  padding: 70px 30px;
  background: var(--ovg-light-bg);
}

.ovg-feat-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 70px;
  align-items: center;
}

.ovg-feat-image-col img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--ovg-shadow-hover);
  display: block;
}

.ovg-feat-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #c9e4f0, #8ec8e8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ovg-feat-img-placeholder i {
  font-size: 72px;
  color: rgba(255,255,255,0.5);
}

.ovg-feat-heading {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--ovg-primary);
  margin: 0 0 14px;
  line-height: 1.15;
}
.ovg-feat-heading-accent {
  color: var(--ovg-accent);
  display: block;
}

.ovg-feat-desc {
  font-size: 15px;
  color: #555;
  margin: 0 0 32px;
  line-height: 1.7;
}

/* Feature grid: 2 columns */
.ovg-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.ovg-feat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ovg-feat-icon-wrap {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ovg-accent);
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 4px;
}

.ovg-feat-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ovg-primary);
  margin: 0;
}
.ovg-feat-item-desc {
  font-size: 13.5px;
  color: var(--ovg-gray);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   6. TRUST SECTION
   ============================================================ */
.ovg-trust-section {
  padding: 64px 30px;
  background: #fff;
}

.ovg-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ovg-trust-heading {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--ovg-primary);
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.3;
}
.ovg-trust-heading-accent { color: var(--ovg-accent); }

/* Badge row */
.ovg-trust-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.ovg-trust-badge {
  text-align: center;
  padding: 26px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--ovg-border);
  transition: all var(--ovg-transition);
}
.ovg-trust-badge:hover {
  border-color: var(--ovg-accent);
  box-shadow: var(--ovg-shadow);
  transform: translateY(-3px);
}

.ovg-trust-badge-icon {
  font-size: 32px;
  color: var(--ovg-accent);
  margin-bottom: 10px;
}

.ovg-trust-badge-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ovg-primary);
  margin: 0 0 4px;
}
.ovg-trust-badge-desc {
  font-size: 12px;
  color: var(--ovg-gray);
  margin: 0;
}

/* Testimonial box */
.ovg-testimonial-box {
  background: var(--ovg-light-bg);
  border-radius: 14px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.ovg-t-stars {
  color: var(--ovg-star);
  font-size: 20px;
  margin-bottom: 14px;
  letter-spacing: 2px;
  display: block;
}

.ovg-t-quote {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  margin: 0;
  padding: 0;
  border: none;
}

.ovg-t-right {
  text-align: right;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ovg-t-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--ovg-primary);
  display: block;
}
.ovg-t-role {
  font-size: 13px;
  color: var(--ovg-gray);
  display: block;
}

/* ============================================================
   7. SCROLL ANIMATIONS
   ============================================================ */
[data-ovg-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-ovg-animate="fade-in-left"]  { transform: translateX(-32px); }
[data-ovg-animate="fade-in-right"] { transform: translateX(32px); }
[data-ovg-animate="fade-in-up"]    { transform: translateY(24px); }
[data-ovg-animate].ovg-visible {
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* Stagger badges */
.ovg-trust-badge:nth-child(1) { transition-delay: 0s; }
.ovg-trust-badge:nth-child(2) { transition-delay: 0.07s; }
.ovg-trust-badge:nth-child(3) { transition-delay: 0.14s; }
.ovg-trust-badge:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================
   8. RESPONSIVE
   ============================================================ */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .ovg-hero-wrap   { min-height: 480px; }
  .ovg-hero-inner  { padding: 0 24px; min-height: 480px; }
  .ovg-hero-content { max-width: 500px; padding: 60px 0; }

  .ovg-feat-inner  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ovg-feat-image-col img { height: 340px; }

  .ovg-trust-badges-row { grid-template-columns: repeat(2, 1fr); }

  .ovg-product-card { flex: 0 0 calc(33.33% - 16px); }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
  /* Hero */
  .ovg-hero-wrap    { min-height: 420px; }
  .ovg-hero-inner   { padding: 0 20px; min-height: 420px; }
  .ovg-hero-content { padding: 44px 0; max-width: 100%; }
  .ovg-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,35,66,0.80) 0%,
      rgba(10,35,66,0.65) 70%,
      rgba(10,35,66,0.55) 100%
    );
  }
  .ovg-hero-badges  { gap: 18px; }
  .ovg-hero-badge   { max-width: 90px; }

  /* Shop */
  .ovg-shop-section { padding: 48px 20px 40px; }
  .ovg-shop-filter-tabs  { display: none; }
  .ovg-shop-filter-mobile { display: flex; }
  .ovg-carousel-wrapper { padding: 0 42px; }
  .ovg-product-card { flex: 0 0 calc(50% - 12px); }

  /* Features */
  .ovg-feat-section { padding: 48px 20px; }
  .ovg-feat-inner   { grid-template-columns: 1fr; gap: 30px; }
  .ovg-feat-image-col { order: 1; }
  .ovg-feat-content-col { order: 2; }
  .ovg-feat-image-col img { height: 260px; }
  .ovg-feat-grid    { grid-template-columns: 1fr 1fr; gap: 18px; }

  /* Trust */
  .ovg-trust-section { padding: 48px 20px; }
  .ovg-trust-badges-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ovg-testimonial-box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 22px;
  }
  .ovg-t-right { text-align: left; }
}

/* ── Small mobile ≤ 480px ── */
@media (max-width: 480px) {
  .ovg-hero-wrap    { min-height: 360px; }
  .ovg-hero-inner   { min-height: 360px; }
  .ovg-hero-heading { font-size: 26px; }
  .ovg-hero-badge-desc { display: none; }

  .ovg-feat-grid    { grid-template-columns: 1fr; }
  .ovg-product-card { flex: 0 0 100%; }
}

/* ── Elementor editor: ensure widget areas don't clip overflow ── */
.elementor-editor-active .ovg-hero-wrap { overflow: visible; }
.elementor-editor-active .ovg-carousel-track { transition: none; }
