/*
Theme Name: 3D Flag Shop
Theme URI: https://3dflagshop.com
Author: 3DFlag
Author URI: https://3dflagshop.com
Description: A professional WooCommerce theme for 3D animated flag digital downloads. Replicates the 3dflag-ecomfixr Shopify store design with Elementor support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: threedflags
Tags: e-commerce, woocommerce, elementor, custom-colors, custom-logo, full-width-template, rtl-language-support
*/

/* ========================================================
   CSS VARIABLES / DESIGN TOKENS
   ======================================================== */
:root {
  /* Brand Colors */
  --color-navy:        #000041;
  --color-navy-dark:   #00002e;
  --color-green:       #067d4f;
  --color-green-hover: #055c3a;
  --color-red:         #990000;
  --color-red-hover:   #7a0000;
  --color-white:       #ffffff;
  --color-black:       #000000;
  --color-light-gray:  #f5f5f5;
  --color-border:      #dfdfdf;
  --color-text:        rgba(0,0,0,0.81);
  --color-text-muted:  rgba(0,0,0,0.55);

  /* Typography */
  --font-primary:   'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(32px, 5vw, 80px);
  --container-width: 1400px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 48px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.16);
  --shadow-navy:   0 4px 12px rgba(0,0,65,0.3);

  /* Transitions */
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: var(--font-primary);
  font-size: 1rem;
  border: none;
  outline: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile nav open: the fixed overlay blocks scroll visually.
   We intentionally do NOT set body overflow:hidden here because
   that breaks position:sticky on #site-header in iOS Safari. */
body.nav-open .mobile-nav-overlay { pointer-events: all; }

/* ========================================================
   BREAKING NEWS BAR
   ======================================================== */
.tf-news-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  overflow: hidden;
  position: relative;
  z-index: 1001;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Colour variants */
.tf-news-bar--navy  { background: var(--color-navy);  color: var(--color-white); }
.tf-news-bar--red   { background: var(--color-red);   color: var(--color-white); }
.tf-news-bar--green { background: var(--color-green); color: var(--color-white); }
.tf-news-bar--gold  { background: #b8960c; color: #fff; }
.tf-news-bar--black { background: #111;    color: #fff; }

/* Track wrapper */
.tf-news-bar__track-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* --- Static (no animation): text centered --- */
.tf-news-bar__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

.tf-news-bar__text {
  padding: 0 24px;
  text-align: center;
  color: white;
}

.tf-news-bar__track {
  padding: 8px 20px;
}

/* --- Animated: scroll the single text across --- */
.tf-news-bar--animated .tf-news-bar__track {
  width: auto;
  justify-content: flex-start;
  animation: tf-news-scroll 18s linear infinite;
  will-change: transform;
}

.tf-news-bar--animated .tf-news-bar__track:hover {
  animation-play-state: paused;
}

/* Start offscreen right, scroll to offscreen left */
@keyframes tf-news-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 600px) {
  .tf-news-bar {
    font-size: 12px;
    height: 32px;
  }
  .tf-news-bar--animated .tf-news-bar__track {
    animation-duration: 14s;
  }
}

/* ========================================================
   SKIP LINK
   ======================================================== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #000041;
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

/* ========================================================
   HEADER  — two-row design
   ======================================================== */
#site-header {
  position: -webkit-sticky; /* iOS Safari */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000041;
  color: var(--color-white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  /* Prevent sticky from breaking due to stacking context issues on mobile */
  will-change: position;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
@media (min-width: 767px) {
    #site-header {
  min-height: 144px;
        
    }
    .header-mobile-name .header-logo-text{
        display: none;
    }
}

/* ── TOP ROW: flag images + golden site title ── */
.header-top {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 86px;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 0;
  overflow: hidden;
}

/* Flag images flanking the title */
.header-flag {
  flex-shrink: 0;
  line-height: 0;
  width: 150px;
}
.header-flag a {
  display: block;
  line-height: 0;
}
.header-flag img,
.header-flag video {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Golden title */
.header-title {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
}
.header-title-link {
  text-decoration: none;
  display: inline-block;
}
.header-site-name {
  font-family: var(--font-secondary, 'Cinzel', serif);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f5d060 0%, #c8930a 40%, #f5d060 70%, #9a6e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.15;
  text-shadow: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
/* Logo text */
.header-logo-text {
  display: inline-block;
  font-family: var(--font-secondary, 'Cinzel', serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5a71a;
  text-decoration: none;
  line-height: 1.15;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
/* When site has a custom logo image */
.header-title .custom-logo-link img {
  height: 64px;
  width: auto;
}

/* ── BOTTOM ROW: navigation + icons ── */
.header-bottom {
  background: #000041;
}
.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2px;
  gap: 8px;
  position: relative;
}

/* Mobile-only elements: hidden on desktop */
.hamburger-btn {
  display: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-mobile-name {
  display: none;
  flex: 1;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}
.header-mobile-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
/* Mobile logo text sizing */
.header-mobile-name .header-logo-text {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
}

/* Primary Nav */
.primary-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  flex: 1;
  padding-left: 2px;
}
.primary-nav li {
  list-style: none;
  display: inline-flex;
  margin: 0px 5px;
}
.primary-nav a {
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 5px;
    border-radius: 1px;
    transition: background var(--transition);
    white-space: nowrap;
    background: #067d4f;
    margin: 0px 4px;
    min-width: 90px;
    text-align: center;
}
.primary-nav a:hover{
  background: #990000;
  color: var(--color-white);
}

.menu-item{
    background: var(--color-green);
}

/* Active / current menu item — white bg, black text.
   Covers both:
   - The fallback nav (flat <a class="active"> tags from threedflags_primary_nav_fallback)
   - A real WP menu (<li class="current-menu-item"><a></a></li>) */
.primary-nav a.active,
.primary-nav a.current-menu-item,
.primary-nav a:active,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current_page_parent > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_ancestor > a,
.primary-nav a.active:hover,
.primary-nav a.current-menu-item:hover,
.primary-nav .current-menu-item > a:hover,
.primary-nav .current_page_item > a:hover {
  background: #ffffff !important;
  color: #000000 !important;
}
/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}
.header-icon-btn {
  background: #067d4f;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  position: relative;
  text-decoration: none;
}
.header-icon-btn:hover { background: #990000; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.header-icon-btn:active{
    color: #000!important;
    background: #ffffff!important;
}
/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 85%; max-width: 320px;
  height: 100vh;
  background: #000041;
  z-index: 9999;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-close {
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.mobile-nav-drawer .nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-drawer .nav-links a {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  display: block;
}
.mobile-nav-drawer .nav-links a:hover { background: rgba(255,255,255,0.12); }

/* ========================================================
   HERO / BANNER SECTION
   ======================================================== */
.hero-section {
  background: #000041;
  color: var(--color-white);
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(6,125,79,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-section h1 span { color: #4ade80; }
.hero-section p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn-primary:hover {
  background: var(--color-green-hover);
  border-color: var(--color-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-white);
  color: #000041;
}
.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
.btn-dark:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ========================================================
   CONTINENT / CATEGORY FILTER BAR
   ======================================================== */
/* .filter-section wrapper removed — continent-filter-row is now a direct
   child of #flag-collection so position:sticky works correctly */

.continent-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 5px 12px 5px;
  position: -webkit-sticky; /* iOS Safari */
  position: sticky;
  top: var(--header-height, 0px);
  z-index: 995;
  background: #000041;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.continent-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}
.continent-btn img {
  width: 22px; height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  
}
.continent-btn:hover {
  background: var(--color-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.continent-btn.active {
  background: var(--color-white);
  color: var(--color-black);
  border-color: #000041;
  box-shadow: var(--shadow-navy);
}
.continent-btn.active img { filter: brightness(0); }

/* Alpha + Search Row */
.alpha-search-row {
  background: #000041;
  padding: 7px 20px 12px;
  position: -webkit-sticky; /* iOS Safari */
  position: sticky;
  top: calc(var(--header-height, 0px) + var(--continent-row-height, 0px));
  z-index: 990;
  
  
}
.alpha-search-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.alpha-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.alpha-btn {
  min-width: 32px;
  padding: 6px 6px;
  border-radius: 2px;
  border: 1px solid var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.alpha-btn:hover { background: var(--color-red); border-color: var(--color-red); }
.alpha-btn.active { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }

.search-box {
  position: relative;
  flex-shrink: 0;
  width: 200px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  background: var(--color-white);
  color: var(--color-black);
}
.search-box input::placeholder { color: #9ca3af; }
.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 18px; height: 18px;
  pointer-events: none;
}

.result-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  min-width: 60px;
  text-align: center;
}

/* ── Flag count bar ─────────────────────────────────────────────────────────
   Yellow badge between the A–Z alphabet bar and the product grid.
   Updates dynamically: shows total when no filter is active, filtered
   count when a letter / continent / search filter is applied.
   ─────────────────────────────────────────────────────────────────────────── */
.flag-count-bar {
  display: flex;
  align-items: center;
  padding: 8px 4px;
  background: #000041;
}
.flag-count-badge {
  display: flex;
  justify-content: center;
  background: #FFD700;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 5px;
  border-radius: 2px;
  min-width: 80px;
  min-height: 33px;
  text-transform: capitalize;

}

.grid-toggle-btns {
  display: flex;
  gap: 6px;
}
.grid-btn {
  width: 34px; height: 34px;
  padding: 6px;
  border-radius: 2px;
  border: 1px solid var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.grid-btn:hover { background: var(--color-red); border-color: var(--color-red); }
.grid-btn.active { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }
.grid-btn svg { width: 100%; height: 100%; }

/* Loading state */
.loading-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 0;
  background: #000041;
}
.loading-bar.active { display: flex; }
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--color-white);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================================
   PRODUCTS GRID SECTION
   ======================================================== */
/* ========================================================
   ALPHABET SECTION HEADERS  (A, B, C … above each letter group)
   ======================================================== */
.alpha-section {
  max-width: var(--container-width);
  margin: 0 auto 4px;
  padding: 18px 0 6px;
}
.alpha-section__heading {
  font-size: 1.45rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid #FFD700;
  display: inline-block;
  min-width: 100%;
  text-align: left;
  font-family: var(--font-primary);
}

/* ========================================================
   PRODUCT SECTION  &  GRID
   ======================================================== */
.products-section {
  background: #000041;
  padding: 5px 20px 5px;
  min-height: 400px;
}
/* default = 5 columns */
.products-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.products-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid.grid-1 { grid-template-columns: repeat(1, 1fr); }

/* ========================================================
   GRID-3  — scale up card text, buttons & tags
   Cards are ~67% wider than in 5-col so bump all sizing
   ======================================================== */

/* Flag name */
.products-grid.grid-4 .flag-card__name {
  font-size: 1.22rem;
  margin: 3px 6px;
}

/* Badge */
.products-grid.grid-4 .flag-card__badge {
  font-size: 0.78rem;
  padding: 3px 9px;
}

/* Format tags (GIF / HD / 4K / Bundle) */
.products-grid.grid-4 .format-tag {
  padding: 2px 1px 2px;
}
.products-grid.grid-4 .format-tag .fmt-name {
  font-size: 1.20rem;
}
.products-grid.grid-4 .format-tag .fmt-res {
  font-size: 0.82rem;
  margin-top: 3px;
}
.products-grid.grid-4 .format-tag .fmt-sub {
  font-size: 0.70rem;
  padding: 1px 0px;
  margin: 3px 2px 0;
}

/* Price bar */
.products-grid.grid-4 .flag-card__price {
  padding: 2px 14px;
}
.products-grid.grid-4 .flag-card__price span {
  font-size: 1.12rem;
  padding: 0px 4px;
}

/* Action buttons */
.products-grid.grid-4 .flag-card__actions .btn {
  font-size: 0.85rem;
  padding: 3px 16px;
  gap: 7px;
}
.products-grid.grid-4 .flag-card__name a {
    color: inherit;
    text-decoration: none;
    font-size: 1.10rem;
}

/* Button icons — cart & eye */
.products-grid.grid-4 .flag-card__actions .add-to-cart-btn::before,
.products-grid.grid-4 .flag-card__actions .btn-secondary::before {
  width: 18px;
  height: 18px;
}

/* Card body padding */
.products-grid.grid-4 .flag-card__body {
  padding: 6px;
  gap: 3px;
}

/* Footer gap */
.products-grid.grid-4 .flag-card__footer {
  margin-top: 10px;
}

/* ========================================================
   FLAG PRODUCT CARD  — pixel-perfect match to screenshot
   ======================================================== */
.flag-card {
    background: #666666;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.40);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 5 / 5;
    justify-content: space-around;
}
.flag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}

/* — Image area — */
.flag-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2.1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Never shrink — always keep image ratio */
  width: 100%;
  background: #666666; /* Backdrop color shown around video / behind transparent areas */
}
.flag-card__media img,
.flag-card__media video.flag-card__video {
  width: auto;
  height: 98%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  background: #666666; /* Frame background while video is loading / between frames */
}
.flag-card:hover .flag-card__media img,
.flag-card:hover .flag-card__media video.flag-card__video { transform: scale(1.00); }

/* Hover-Wave: never animate scale for users who opted out of motion. */
@media (prefers-reduced-motion: reduce) {
  .flag-card__media img,
  .flag-card__media video.flag-card__video,
  .flag-card:hover .flag-card__media img,
  .flag-card:hover .flag-card__media video.flag-card__video {
    transform: none;
    transition: none;
  }
}
.flag-card__badge {
  position: absolute;
  top: 7px; left: 7px;
  background: var(--color-green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display:none;
}

/* — Body — */
.flag-card__body {
  padding: 1px 4px 4px;
  flex-shrink: 0; /* Never stretch — height is content-driven only */
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* — Name — */
.flag-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 19px;
  color: #ffffff;
  text-align: center;
  margin: 2px;
}
.flag-card__name a {
  color: inherit;
  text-decoration: none;
}
.flag-card__name a:hover { color: #a8c4e8; }

/* — Format tags  GIF / HD / 4K / Bundle — */
.flag-card__formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  overflow: hidden;
  flex-shrink: 0;        /* Never grow or shrink inside flex parent */
  align-items: stretch;
}
/* === Format tags — dark navy style matching reference image === */
.format-tag {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2px;
    padding: 5px 2px;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    background: #000041;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    aspect-ratio: 5 / 4;
    border-radius: 0px;
    border: 1px solid #888585;
}

/* All tags share the same dark-navy theme; BUNDLE accent stays orange via .fmt-sub override below. */
.flag-card__formats .format-tag:nth-child(1),
.flag-card__formats .format-tag:nth-child(2),
.flag-card__formats .format-tag:nth-child(3),
.flag-card__formats .format-tag:nth-child(4) {
    --tag-color: #ffffff;
    --tag-glow:  rgba(255, 255, 255, 0.20);
}

/* Header row: icon box + label */
.format-tag .fmt-head {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    flex: 1;
}
/* Icon box is hidden in this design — the label itself is the focal point */
.format-tag .fmt-icon {
    display: none !important;
}
.format-tag .fmt-icon svg {
    width: 12px;
    height: 12px;
}
.format-tag .fmt-icon .fmt-icon-text {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.format-tag .fmt-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
/* Resolution numbers hidden by default — only show for BUNDLE ("All Files") */
.format-tag .fmt-res {
    display: none;
    font-size: 0.62rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    flex-shrink: 0;
}
.format-tag[data-format="BUNDLE"] .fmt-res,
.format-tag[data-format="Bundle"] .fmt-res {
    display: block;
}
/* Sub-label pill at the bottom (LOOP / MP4 + WEBM / BEST VALUE) */
.format-tag .fmt-sub {
    display: inline-block;
    font-size: 0.53rem;
    font-weight: 700;
    color: #f4d03f;
    padding: 0px 0px;
    margin: 1px 1px 0;
    border-radius: 3px;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    align-self: stretch;

}
/* BUNDLE / BEST VALUE accent — orange */
.format-tag[data-format="BUNDLE"] .fmt-sub,
.format-tag[data-format="Bundle"] .fmt-sub {
    color: #f4d03f;
    border-color: #f4d03f;
}
/* BUNDLE label is smaller than other variations (WEBP / HD / 4K) so the
   "All Files" resolution + BEST VALUE pill fit comfortably below it. */
.format-tag[data-format="BUNDLE"] .fmt-name,
.format-tag[data-format="Bundle"] .fmt-name {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}
.products-grid.grid-4 .format-tag[data-format="BUNDLE"] .fmt-name,
.products-grid.grid-4 .format-tag[data-format="Bundle"] .fmt-name {
    font-size: 0.95rem;
}
.search-popup-products .format-tag[data-format="BUNDLE"] .fmt-name,
.search-popup-products .format-tag[data-format="Bundle"] .fmt-name {
    font-size: 0.75rem;
}
.format-tag:hover,
.format-tag.active {
    background: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.10), inset 0 0 8px rgba(0, 0, 0, 0.4);
    border: 1px solid #ffb50d;
}
.format-tag:last-child { border-right: none; }

/* — Footer: price + buttons — */
.flag-card__footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 7px;
}

/* Price bar — solid green */
.flag-card__price {
  background: #ffb50d;
  color: #000041;
  font-weight: 700;
  text-align: center;
  padding: 1px 10px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.flag-card__price span {
  font-size: 1.0rem;
  font-weight: 700;
  padding: 0px 4px;
}

/* Actions — stacked full-width buttons */
.flag-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flag-card__actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  border-radius: 0;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.13s;
  line-height: 1.2;
  font-family: var(--font-primary);
}
.flag-card__actions .btn:hover { filter: brightness(1.14); }

/* "Add to Cart" — dark navy */
.flag-card__actions .btn.btn-dark,
.flag-card__actions .add-to-cart-btn {
    background: #000041;
    color: #ffffff;
    margin:  2px 0px;
    text-transform: uppercase;
}
/* "Preview" — red */
.flag-card__actions .btn.btn-secondary {
  background: #990000;
  color: #ffffff!important;
  border: none !important;
}
/* Ensure <button> element used for Preview looks identical to <a> */
.flag-card__actions button.flag-preview-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: var(--font-primary, 'Poppins', sans-serif);
}
/* Cart icon */
.flag-card__actions .add-to-cart-btn::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
/* Eye icon */
.flag-card__actions .btn-secondary::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}


/* Empty state */
.empty-state {
  display: none;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 40px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}
.empty-state.active { display: block; }

/* ========================================================
   FEATURES / USP SECTION  — grey band, dashed-border cards
   ======================================================== */
.features-section {
  padding: 52px 20px;
  background: #787878;
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 28px 32px;
  border-radius: 12px;
  border: 1.5px dashed rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  transition: background 0.2s ease;
}
.feature-item:hover { background: rgba(255,255,255,0.11); }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-item h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.feature-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 767px) {
  .features-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ========================================================
   TESTIMONIALS — continuous auto-scroll, footer bg, 3-col desktop
   ======================================================== */
.testimonials-section {
  --t-gap: 28px;
  --t-card-w: calc((min(100vw, 1280px) - var(--t-gap) * 4) / 3);
  padding: 64px 0 56px;
  background: #000041;          /* matches footer exactly */
  overflow: hidden;
}
.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 44px;
  padding: 0 20px;
}
.testimonials-section .section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.testimonials-section .section-header p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}

/* ── Track viewport ── */
.testimonials-track-wrapper {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

/* ── Scrolling strip ── */
.testimonials-track {
  display: flex;
  gap: var(--t-gap);
  width: max-content;
  padding: 10px var(--t-gap) 14px;
  animation: t-scroll 38s linear infinite;
}
.testimonials-track.is-paused,
.testimonials-track:hover { animation-play-state: paused; }

@keyframes t-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (var(--t-card-w) + var(--t-gap)) * 6)); }
}

/* ── Card ── */
.testimonial-card {
  background: #0b2d42;
  border-radius: 14px;
  padding: 30px 28px 26px;
  width: var(--t-card-w);
  min-width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.4);
}
.testimonial-stars {
  display: flex;
  gap: 5px;
  color: #f5a623;
}
.testimonial-stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}
.testimonial-text {
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.7);
  flex: 1;
  margin: 0;
}

/* ── Author row ── */
.testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4a6a82;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.testimonial-author-role {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.testimonial-purchased {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 50px;
  white-space: nowrap;
}
.testimonial-purchased svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Navigation (dots + arrows) ── */
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.t-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.t-nav-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.t-nav-btn svg { width: 16px; height: 16px; }
.t-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.t-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* ── Mobile: 1 card wide ── */
@media (max-width: 767px) {
  .testimonials-section { --t-card-w: calc(100vw - 52px); }
  .testimonials-track   { animation-duration: 26s; }
}


/* ========================================================
   SEARCH POPUP
   ======================================================== */
.search-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.search-popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(720px, 96vw);
  max-height: 82vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  z-index: 9991;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.search-popup.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

/* Search input row */
.search-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
.search-popup-header svg.search-popup-icon {
  width: 20px; height: 20px;
  color: #666;
  flex-shrink: 0;
}
.search-popup-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: #111;
  background: transparent;
  font-family: inherit;
}
.search-popup-input::placeholder { color: #aaa; }
.search-popup-clear {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.search-popup-clear:hover { color: #333; background: #f0f0f0; }
.search-popup-clear.visible { display: flex; }
.search-popup-clear svg { width: 18px; height: 18px; }

/* Results body */
.search-popup-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px 22px;
}
.search-popup-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.search-popup-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
/* Flag cards inside the search popup — scale down text/buttons to fit */
.search-popup-products .flag-card {
  font-size: 0.78rem;
  aspect-ratio: unset;
}
.search-popup-products .flag-card__name { font-size: 0.78rem; margin: 2px; }
.search-popup-products .flag-card__formats { gap: 2px; }
.search-popup-products .format-tag { aspect-ratio: 5 / 4; }
.search-popup-products .fmt-name { font-size: 0.85rem; }
.search-popup-products .fmt-res  { font-size: 0.48rem; }
.search-popup-products .flag-card__actions .btn { font-size: 0.70rem; padding: 4px 8px; }
.search-popup-products .flag-card__price span { font-size: 0.82rem; }
@media (max-width: 700px) {
  .search-popup-products { grid-template-columns: repeat(2, 1fr); }
}
.search-popup-products .flag-card__name {
  font-size: 0.78rem;
}
.search-popup-products .flag-card__actions .btn {
  font-size: 0.70rem;
  padding: 4px 6px;
}
.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover .search-result-img { opacity: 0.88; }
.search-result-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f0f0;
  transition: opacity 0.15s;
  display: block;
}
.search-result-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.75rem;
}
.search-result-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #111;
  line-height: 1.3;
}
.search-result-price {
  font-size: 0.84rem;
  color: #444;
}

/* Collections */
.search-popup-collections { margin-bottom: 8px; }
.search-collection-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  min-width: 180px;
  transition: background 0.15s;
}
.search-collection-item:hover { background: #f7f7f7; }
.search-collection-name { font-size: 0.88rem; font-weight: 600; color: #111; }
.search-collection-count { font-size: 0.8rem; color: #777; }

/* Footer: view all */
.search-popup-footer {
  border-top: 1px solid #eee;
  padding: 16px 22px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.search-view-all {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s;
}
.search-view-all:hover { background: #333; color: #fff; }

/* No results */
.search-no-results {
  text-align: center;
  padding: 30px 20px;
  color: #888;
  font-size: 0.92rem;
}

/* Loading spinner */
.search-loading {
  display: none;
  text-align: center;
  padding: 24px;
  color: #888;
}
.search-loading.visible { display: block; }

@media (max-width: 600px) {
  .search-popup-products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .search-popup { width: 96vw; max-height: 90vh; }
  .alpha-search-row {
    background: #000041;
    padding: 10px 20px 12px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height, 0px) + var(--continent-row-height, 0px));
    z-index: 990;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
}

/* ========================================================
   FOOTER
   ======================================================== */
#site-footer {
  background: #000041;
  color: var(--color-white);
  border-top: 1px solid #ffb50d;
}
.footer-main {
    padding: var(--section-padding) 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    justify-content: space-between;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #F4D03F;

}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--color-white);
  font-size: 0.88rem;
  transition: opacity var(--transition);
  text-transform: uppercase;
}
.footer-col ul li a:hover { opacity: 1; }

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 2px;
  border: 1px solid #F4D03F;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.88rem;
}
.newsletter-form input[type="email"]::placeholder {
    color: white;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  border: none;
}
.newsletter-form button:hover { background: #990000; }

/* Domains row */
.footer-domains {
  border-top: 1px solid #F4D03F;
  padding: 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}
.footer-domains h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #FFD700;
}
.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.domain-list a {
  font-size: 0.8rem;
  color: var(--color-white);
  text-decoration: none;
}
.domain-list a:hover { 
    opacity: 1;
    color: #f4d03f;
    
}
.domain-list a::after { content: ' |'; }
.domain-list a:last-child::after { content: ''; }

/* Footer bottom bar */
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 16px 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: #FFD700;
}
.footer-bottom a { opacity: 0.8; text-decoration: underline; }

/* ========================================================
   WOOCOMMERCE OVERRIDES
   ======================================================== */
/* Shop page */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product {
  background: var(--color-white) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
}
.woocommerce ul.products li.product img { border-radius: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-primary) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 12px 14px 6px !important;
}
.woocommerce ul.products li.product .price {
  padding: 0 14px 12px !important;
  font-weight: 700 !important;
  color: var(--color-black) !important;
}
.woocommerce ul.products li.product .button {
  background: var(--color-black) !important;
  color: var(--color-white) !important;
  border-radius: 2px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  margin: 0 14px 14px !important;
  transition: background var(--transition) !important;
}
.woocommerce ul.products li.product .button:hover { background: #333 !important; }

/* Cart */
.woocommerce-cart .woocommerce {
  max-width: 1350px;
  margin: 40px auto;
  padding: 0 20px;
}
.woocommerce .cart_totals, .woocommerce .shop_table { border-radius: 2px; overflow: hidden; }

/* Checkout */
.woocommerce-checkout .woocommerce {
  max-width: 1350px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ========================================================
   ELEMENTOR COMPATIBILITY
   ======================================================== */
.elementor-section { max-width: 100%; }
.e-con-inner { max-width: var(--container-width); }

/* ========================================================
   UTILITIES
   ======================================================== */
.text-center { text-align: center; }
.text-navy { color: #000041; }
.text-green { color: var(--color-green); }
.text-white { color: var(--color-white); }
.bg-navy { background: #000041; }
.bg-white { background: var(--color-white); }
.bg-light { background: var(--color-light-gray); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1280px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .header-flag { width: 150px; }
  .header-flag img,
  .header-flag video { max-height: 102px; }
}
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .header-flag { width: 140px; }
  .header-flag img,
  .header-flag video { max-height: 79px; }
  .header-site-name { font-size: clamp(1.1rem, 2.8vw, 2rem); }
  .primary-nav a { padding: 10px 8px; font-size: 0.73rem; }
}
@media (max-width: 860px) {
  /* Hide top flag row on tablet/mobile */
  .header-top { display: none; }
  /* Show mobile bottom bar elements */
  .primary-nav { display: none; }
  .hamburger-btn { display: flex; }
  .header-mobile-name { display: flex; }
  .mobile-nav-drawer { display: block; }
  .header-bottom-inner { justify-content: space-between; padding: 4px 12px; }
  .header-icons { margin-left: 0; }
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; display: grid; padding: 10px; }
  .products-grid { grid-template-columns: repeat(1, 1fr); gap: 12px; }
  .alpha-search-inner { flex-wrap: wrap; }
  .alpha-filter-buttons { order: 2; flex: 0 0 100%; display: flex; justify-content: center; }
  .search-box { order: 1; width: 100%; flex-shrink: 1; }
  .grid-toggle-btns { order: 3; flex-shrink: 0; }
  
}
@media (max-width: 480px) {
  .continent-filter-row { gap: 8px; }
  .continent-btn { min-width: 80px; font-size: 0.55rem; padding: 1px 2px; }
  .products-grid { grid-template-columns: repeat(1, 1fr); gap: 10px; }
  .grid-toggle-btns { display: none; }
}

/* ========================================================
   WORLD MAP SECTION
   ======================================================== */
.world-map-section {
  background: #fff;
  padding: 20px 0 0;
}
.world-map-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.map-box {
  width: 100%;
  height: 360px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: grab;
}
.map-box:active { cursor: grabbing; }
#map-container {
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  transform-origin: center center;
}

/* ── Map tab-switch zoom animations ── */
@keyframes mapZoomOut {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.7);  opacity: 0; }
}
@keyframes mapZoomIn {
  0%   { transform: scale(0.7);  opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}
#map-container.map-zoom-out {
  animation: mapZoomOut 0.22s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
#map-container.map-zoom-in {
  animation: mapZoomIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* SVG country styles */
.world-map-section .blue-flag,
#map-container .blue-flag {
  fill: #026440;
  stroke: #ffffff;
  stroke-width: 0.45;
  stroke-miterlimit: 10;
  opacity: 1;
  transition: fill 0.15s ease;
}
.world-map-section .blue-flag:hover,
#map-container .blue-flag:hover { fill: #800000; }
.world-map-section .hover-area,
#map-container .hover-area {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.world-map-section .small-area,
#map-container .small-area {
  stroke: #000041;
  stroke-width: 0.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
}
.world-map-section .small-area:hover,
#map-container .small-area:hover { fill: #800000; }
/* Tippy tooltip */
.tippy-box[data-theme~='threedflags'] {
  background: #fff;
  color: #020e4d;
  border-radius: 6px;
  box-shadow: 1px 1px 8px rgba(0,0,0,0.25);
  transition-property: none;
}
.tippy-box[data-theme~='threedflags'] .tippy-arrow { color: #fff; }
.tippy-content { padding: 0 !important; }

/* Tooltip spring animations (matching old zoom effect) */
@keyframes tooltipSpringIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes tooltipSpringOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
.tippy-box[data-state="visible"] {
  animation: tooltipSpringIn 0.2s ease both;
}
.tippy-box[data-state="hidden"] {
  animation: tooltipSpringOut 0.15s ease both;
}
.tooltip-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  background:white;
}
.tooltip-header {
  padding: 6px 8px 4px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-primary);
  color: #020e4d;
  line-height: 1.2;
}
.tooltip-box img {
  width: 7em;
  border-radius: 0 0 4px 4px;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.15);
  border: 1px solid #ccc;
  display: block;
}
/* Map controls */
.map-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 4px;
  flex-wrap: wrap;
}
.map-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: #000041;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-primary);
}
.map-ctrl-btn:hover {
  background: #000041;
  color: var(--color-white);
  border-color: #000041;
}
.map-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
}
@media (max-width: 768px) {
  .map-box { width: 100%; height: 50vh; }
  .map-hint { display: none; }
  .tooltip-box img { width: 4.5em; }
  .tooltip-header { font-size: 10px; }
}

   FEDERAL STATES PAGE TEMPLATE
   ============================================================ */

/* Hero banner — matches homepage world-map-section style */
.states-hero-section {
    background: var(--color-white);
    color: var(--color-navy);
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.states-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}
.states-hero-title {
    font-family: var(--font-primary, 'Poppins', sans-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    color: var(--color-navy);
}
.states-hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.75;
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Country filter row — direct child of #states-collection so sticky works;
   inherits .continent-filter-row — sticky top is header height, then alpha row below */
.states-country-filter-row {
    top: var(--header-height, 0px);
    z-index: 995;
}
/* No icon in states country buttons — match homepage text-only style */
.states-country-filter-row .continent-btn {
    font-size: 0.82rem;
}
.states-country-filter-row .continent-btn span {
    font-size: 0.82rem;
}

/* Alpha-search row on states page — sticky below country filter row */
#states-collection .alpha-search-row {
    top: calc(var(--header-height, 0px) + var(--continent-row-height, 0px));
    z-index: 990;
}

/* State flag card — same as .flag-card, no extra overrides needed */
.state-flag-card {
    /* inherits all .flag-card styles */
}

/* Alpha-grouped grid on states page — mirrors homepage .alpha-grid */
.states-alpha-grid {
    /* inherits all .products-grid styles */
}

/* ============================================================
   FEDERAL STATES PAGE — INTERACTIVE MAP
   ============================================================ */

.states-map-section {
    background: white;
    padding: 0 0 25px;
}

.states-map-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#states-map-box {
    position: relative;
    width: 100%;
    height: 360px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
}
#states-map-box:active { cursor: grabbing; }

#states-map-container {
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

/* ── States map tab-switch zoom animations (reuse world-map keyframes) ── */
#states-map-container.map-zoom-out {
  animation: mapZoomOut 0.22s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
#states-map-container.map-zoom-in {
  animation: mapZoomIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Region hover styles injected via JS class — colours match world map */
.state-region {
    fill: #026440;
    stroke: #ffffff;
    stroke-width: 0.75;
    stroke-miterlimit: 10;
    transition: fill 0.15s ease;
}
.state-region--known {
    fill: #026440;
    cursor: default;
}
.state-region--known:hover {
    fill: #800000;
}
.state-region--known[style*="pointer"] {
    cursor: pointer;
}
.state-region--known[style*="pointer"]:hover {
    fill: #800000;
}

/* SVG background */
#statesSvgContainer {
    background: white;
}

/* Placeholder shown when no country is selected */
.states-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.45);
    font-family: var(--font-primary, 'Poppins', sans-serif);
    font-size: 0.95rem;
    text-align: center;
    padding: 32px;
    gap: 8px;
}
.states-map-placeholder p { margin: 0; }
.states-map-placeholder svg { color: #5c5a5a; }

/* Map controls row (reset btn + hint) */
.states-map-section .map-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 0 4px;
}
.states-map-section .map-hint {
    font-size: 0.78rem;
    color: #0000008c;
    font-family: var(--font-primary, 'Poppins', sans-serif);
}
.states-map-section .map-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    color: #000;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-family: var(--font-primary, 'Poppins', sans-serif);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.states-map-section .map-ctrl-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Tippy tooltip box — reuse existing .tooltip-box styles from style.css */

@media (max-width: 768px) {
    #states-map-box { height: 50vh; }
    .states-map-section .map-controls { flex-wrap: wrap; }
    .continent-btn img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        flex-shrink: 0;
    }
}

.states-map-placeholder p {
    color: #464545;
}
/* ========================================================
   BACK TO TOP — Quick Navigation Button
   ======================================================== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: solid 1px white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.18s ease;
  text-decoration: none;
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #222222;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  transform: translateY(-2px);
}
#back-to-top svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #ffffff;
}

@media (max-width: 600px) {
  #back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   FLAG PREVIEW POPUP
   ============================================================ */

/* Overlay / backdrop */
.flag-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 20, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.flag-preview-overlay.open {
  display: flex;
}

/* Modal box */
.flag-preview-modal {
  position: relative;
  background: #666666;
  border: 1px solid #243058;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.75);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  animation: fpModalIn 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: #334 #0d1120;
}
@keyframes fpModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Close button */
.flag-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccd;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
  padding: 0;
  flex-shrink: 0;
}
.flag-preview-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.flag-preview-close svg { width: 16px; height: 16px; }

/* Header */
.flag-preview-header {
  padding: 18px 50px 10px 20px;
}
.flag-preview-title {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

/* ---- Media area ---- */
.flag-preview-media {
  padding: 0 16px 10px;
}
.flag-preview-media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
/* Transparent protection overlay to block right-click / long-press save */
.flag-preview-protect-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* transparent but captures all pointer events */
  background: transparent;
}
.flag-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  pointer-events: none;  /* extra: the image itself cannot be dragged */
  -webkit-user-drag: none;
  user-drag: none;
}
/* Video preview — matches the image dimensions exactly so the modal doesn't
   reflow when switching between still and animated formats. The protect
   layer above still captures right-click/drag attempts on top of the video. */
.flag-preview-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: #666666;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}
.flag-preview-notice {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #7a8aaa;
  margin: 6px 0 0;
  font-style: italic;
}

/* ---- Variations ----
   The popup .fp-format-tag elements also carry the .format-tag class so they
   inherit the flag-card variation-box styling (dark navy bg, white name, hidden
   resolution except BUNDLE, golden sub-pill). The rules below override only the
   bits that differ for the larger popup context (no fixed aspect-ratio, larger
   typography, extra .fp-fmt-price line, etc.). */
.flag-preview-variations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 16px 12px;
}

/* Reset the flag-card's strict aspect-ratio inside the popup — boxes here
   are taller because they also show a price line below the sub-pill. */
.flag-preview-variations .fp-format-tag.format-tag {
  aspect-ratio: auto;
  padding: 8px 4px;
  gap: 3px;
  border-radius: 1px;
}

/* Slightly bigger label / resolution / sub-pill text since the popup is wider. */
.flag-preview-variations .fp-format-tag .fmt-name {
  font-size: 1.10rem;
}
.flag-preview-variations .fp-format-tag .fmt-res {
  font-size: 0.7rem;
}
.flag-preview-variations .fp-format-tag .fmt-sub {
  font-size: 0.82rem;
}

/* BUNDLE label in popup — keep it smaller than the others (mirrors the card). */
.flag-preview-variations .fp-format-tag[data-format="BUNDLE"] .fmt-name,
.flag-preview-variations .fp-format-tag[data-format="Bundle"] .fmt-name {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Per-variation price line — unique to the popup (the flag-card has a single
   shared price in its footer instead). */
.fp-format-tag .fp-fmt-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffb50d;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  display: none;
}
.fp-format-tag .fp-fmt-price .woocommerce-Price-amount,
.fp-format-tag .fp-fmt-price bdi {
  color: #ffb50d;
}
/* Strikethrough "regular" price in WooCommerce sale markup — keep it muted */
.fp-format-tag .fp-fmt-price del {
  color: #cfd6e4;
  opacity: 0.55;
  font-weight: 500;
  margin-right: 3px;
}
.fp-format-tag .fp-fmt-price ins {
  background: transparent;
  text-decoration: none;
}

/* Out-of-stock state */
.fp-format-tag.out-of-stock {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Footer ---- */
.flag-preview-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 18px;
  border-top: 1px solid #666666;
  background: #666666;
}
.flag-preview-price {
  flex: 1;
  font-size: 1.72rem;
  font-weight: 700;
  color: #000;
  width: 50%;
  background: #ffb50d;
  display: flex;
  align-content: center;
  justify-content: center;
  padding: 3px;
}
.flag-preview-price .woocommerce-Price-amount { color: #000; font-size: 1.42rem; }
.flag-preview-atc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000041;
  color: #fff;
  border: none;
  border-radius: 1px;
  font-size: 1.42rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  transition: filter 0.13s;
  white-space: nowrap;
  width: 50%;
  text-transform: uppercase;
}
.flag-preview-atc:hover { filter: brightness(1.25); }
.flag-preview-atc:disabled,
.flag-preview-atc.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .flag-preview-variations {
    grid-template-columns: repeat(2, 1fr);
  }
  .flag-preview-modal {
    max-height: 96vh;
    border-radius: 2px;
  }
  .flag-preview-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .flag-preview-atc {
    justify-content: center;
  }
}

/* Variation image swap transition */
.flag-preview-img {
  transition: opacity 0.18s ease;
}
.flag-preview-img.fp-img-loading {
  opacity: 0.35;
}
.payment-icons {
    display: flex;
    padding: 2px 0px;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
}
.footer-flag.footer-flag--left {
    padding: 5px 1px 2px 2px;
    margin: 3px 4px 2px 1px;
    background: white;
    border-radius: 2px;
    min-width: 45px;
}
.footer-flag.footer-flag--left img
 {
    height: 22px;
    width: auto;
}
/* ==========================================================================
   SLIDE-IN CART DRAWER
   ========================================================================== */

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 38px;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 80%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.18);
}
.cart-drawer.is-open {
    transform: translateX(0);
}

/* Header */
.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-navy, #000041);
    color: #fff;
    flex-shrink: 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}
.cart-drawer__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}
.cart-drawer__item-count {
    background: rgba(245, 208, 96, 0.2);
    color: #f5d060;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}
.cart-drawer__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 0;
    transition: color 0.15s, background 0.15s;
}
.cart-drawer__close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Body */
.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.cart-drawer__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--color-navy, #000041);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Empty state */
.cart-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: rgba(0,0,0,0.35);
}
.cart-drawer__empty p {
    margin: 12px 0 0;
    font-size: 0.95rem;
}

/* Cart items */
.cart-drawer__item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    align-items: flex-start;
}
.cart-drawer__item:last-child { border-bottom: none; }
.cart-drawer__item-img {
    width: 72px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f0f0f0;
}
.cart-drawer__item-info { flex: 1; min-width: 0; }
.cart-drawer__item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy, #000041);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-drawer__item-meta {
    font-size: 0.73rem;
    color: rgba(0,0,0,0.45);
    margin-bottom: 6px;
}
.cart-drawer__item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy, #000041);
}
.cart-drawer__item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0,0,0,0.3);
    padding: 4px;
    line-height: 0;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
    margin-top: 2px;
}
.cart-drawer__item-remove:hover { color: #e53e3e; }

/* Footer */
.cart-drawer__footer {
    padding: 16px 20px;
    border-top: 2px solid rgba(0,0,0,0.08);
    background: #fafafa;
    flex-shrink: 0;
}
.cart-drawer__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy, #000041);
    margin-bottom: 14px;
}
.cart-drawer__checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
}
.cart-drawer__view-cart {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(0,0,0,0.5);
    text-decoration: underline;
    transition: color 0.15s;
}
.cart-drawer__view-cart:hover { color: var(--color-navy, #000041); }

/* Cart count badge — hidden state */
.cart-count--hidden { display: none; }

/* Body lock when drawer open */
body.cart-drawer-open { overflow: hidden; }

/* Responsive */
@media (max-width: 480px) {
    .cart-drawer { width: 100vw; }
}

/* ==========================================================================
   SHOP PAGE TAB STYLES (shared between page-shop.php + archive-product.php)
   ========================================================================== */

.shop-type-tabs {
    background: #000041;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    gap: 0;
}
.shop-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    background: none;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
    transition: color 0.2s;
    font-family: var(--font-primary);
}
.shop-tab-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.shop-tab-btn:hover { color: rgba(255,255,255,0.88); }
.shop-tab-btn.active { color: #f5d060; border-bottom-color: #f5d060; }
.shop-tab-count {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}
.shop-tab-btn.active .shop-tab-count { background: rgba(245,208,96,0.18); color: #f5d060; }
.shop-tab-panel          { display: none; }
.shop-tab-panel.is-active { display: block; }

@media (max-width: 600px) {
    .shop-tab-btn { padding: 12px 14px; font-size: 0.75rem; }
}

/* Newsletter sign-up feedback messages */
.newsletter-msg {
    font-size: 0.82rem;
    margin: 6px 0 8px;
    padding: 6px 10px;
    border-radius: 4px;
}
.newsletter-msg--success { background: #d4edda; color: #155724; }
.newsletter-msg--info    { background: #d1ecf1; color: #0c5460; }
.newsletter-msg--error   { background: #f8d7da; color: #721c24; }

span.header-logo-text {
    color: #f4d03f;
    font-size: 37px;
}
span.header-logo-text-bottom {
    color: #fff;
    font-size: 16px;
    border: 2px solid #f4d03f;
    padding: 4px;
    font-weight: 600;
}
.flag-home-button-half{
    color: #f4d03f;
}
.payment-icons-lebel
 {
    margin-top: 20px;
}

/* =============================================================
   WEBP INFO TOOLTIP
   -------------------------------------------------------------
   Renders a small "i" button in the top-right corner of the
   WEBP format card. Click (or hover, desktop) reveals a dark
   tooltip pointing down to the card with an explanation of the
   WEBP format. Applied on:
     • Flag card (.flag-card__formats .format-tag.fmt-has-info)
     • State flag card (same)
     • Single product page (.sp-fmt-wrap.fmt-has-info)
   ============================================================= */

/* Make sure the parent can position the absolute tooltip & icon. */
.format-tag.fmt-has-info,
.sp-fmt-wrap.fmt-has-info {
    position: relative;
}

/* Override overflow:hidden on containers when they hold a WebP info tooltip,
   so the tooltip can extend above the card without being clipped. */
.format-tag.fmt-has-info { overflow: visible; }
.flag-card__formats:has(.fmt-has-info) { overflow: visible; }
.sp-format-tabs:has(.fmt-has-info) { overflow: visible; }

/* Wrap for the single-product format button + its info icon. */
.sp-fmt-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}
.sp-fmt-wrap .sp-fmt-btn { width: 100%; }

/* Info "i" button — small yellow circle in top-right corner. */
.fmt-info-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    padding: 0;
    margin: 0;
    border: 1px solid #ffb50d;
    border-radius: 50%;
    background: transparent;
    color: #ffb50d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 9px;
    font-weight: 500;
    font-style: italic;
    line-height: 10px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fmt-info-btn:hover,
.fmt-info-btn:focus-visible {
    background: #ffb84a;
    transform: scale(1.08);
    outline: none;
    box-shadow: 0 0 0 2px #ffb84a, 0 0 0 4px rgba(245,166,35,0.35);
}

/* Tooltip bubble — hidden by default. */
.fmt-info-tip {
    position: absolute;
    bottom: calc(100% + 10px);    /* sits above the card, pointing down to it */
    left: 0;
    transform: translateY(4px);
    width: 240px;
    max-width: 80vw;
    padding: 12px 30px 12px 32px;
    background: #1a1a1a;
    color: #fff;
    border: 1.5px solid #f5a623;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 999;
    box-sizing: border-box;
}
/* Open state — set by JS. */
.fmt-info-tip.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
/* Desktop fallback: also open on hover of the info button. */
@media (hover: hover) {
    .fmt-info-btn:hover + .fmt-info-tip,
    .fmt-info-btn:focus-visible + .fmt-info-tip {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
    }
}

/* Down-pointing arrow under the bubble, on the LEFT side (pointing at the WEBP card below). */
.fmt-info-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 22px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #1a1a1a;
}
/* Yellow underline for the arrow (matches the bubble border). */
.fmt-info-tip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #f5a623;
    margin-top: -1px;
}

/* Yellow "i" icon at the top-left of the tooltip body. */
.fmt-info-tip-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #f5a623;
    color: #f5a623;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    line-height: 13px;
    text-align: center;
    box-sizing: border-box;
}

/* × close button at the top-right of the tooltip. */
.fmt-info-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}
.fmt-info-close:hover,
.fmt-info-close:focus-visible {
    opacity: 1;
    outline: none;
}

/* Tooltip text. */
.fmt-info-tip-text {
    display: block;
    padding-left: 0;
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .fmt-info-tip,
    .fmt-info-tip.is-open,
    .fmt-info-btn {
        transition: none;
    }
}
