/*
Theme Name: EYN Wholesale Theme
Theme URI: https://everythinguneed.co.uk
Author: Everything You Need - EYN Wholesale
Author URI: https://everythinguneed.co.uk
Description: Modern Full Site Editing (FSE) Block Theme for Everything You Need & EYN Wholesale Ltd. Recreated with responsive block templates, blue & grey gradients, transparent high-res logo, SEO optimization, and dynamic design tokens.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eyn-wholesale
Tags: block-theme, full-site-editing, custom-colors, editor-style, responsive-layout, wide-blocks
*/

@import url('assets/css/main.css');

/* ==========================================================================
   CSS Custom Properties / Design Tokens
   Matching the EYN Wholesale Blue and Grey Gradient Theme
   ========================================================================== */
:root {
  /* Brand Palette */
  --wp--preset--color--primary: #0072ff;
  --wp--preset--color--primary-dark: #0052cc;
  --wp--preset--color--accent-cyan: #00d2ff;
  --wp--preset--color--secondary: #1e293b;
  --wp--preset--color--header-dark: #0b1120;
  --wp--preset--color--content-bg: #f1f5f9;
  --wp--preset--color--card-gray: #1e293b;
  --wp--preset--color--card-light: #ffffff;
  --wp--preset--color--text-main: #0f172a;
  --wp--preset--color--text-muted: #64748b;
  --wp--preset--color--white: #ffffff;
  --wp--preset--color--black: #050811;
  --wp--preset--color--border: #e2e8f0;
  --wp--preset--color--focus-ring: #00d2ff;

  /* Sophisticated Blue & Grey Gradients */
  --grad-primary: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  --grad-primary-hover: linear-gradient(135deg, #00e5ff 0%, #005ce6 100%);
  --grad-primary-dark: linear-gradient(135deg, #0052cc 0%, #002d7a 100%);
  --grad-header: linear-gradient(135deg, #090e1a 0%, #151f33 50%, #1e293b 100%);
  --grad-topbar: linear-gradient(90deg, #0284c7 0%, #0369a1 40%, #0052cc 100%);
  --grad-subnav: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --grad-footer: linear-gradient(180deg, #0b1120 0%, #04070e 100%);
  --grad-body: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  --grad-card-slate: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --grad-text-blue: linear-gradient(135deg, #0072ff 0%, #00d2ff 100%);

  /* Neon Cyan Glow & Shadows */
  --glow-cyan: 0 0 20px rgba(0, 210, 255, 0.4);
  --glow-blue: 0 0 20px rgba(0, 114, 255, 0.35);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(0, 114, 255, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(0, 114, 255, 0.08);

  /* Typography */
  --wp--preset--font-family--sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-family-body: var(--wp--preset--font-family--sans);
  
  /* Layout Sizing */
  --content-max-width: 1140px;
  --header-max-width: 1280px;
  
  /* Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-normal: 0.28s ease-in-out;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
}

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

/* Zero out WordPress Gutenberg layout-flow margin-block-start on headers */
:root body .site-header,
:root body .site-header > *,
:root body .top-bar,
:root body .main-header,
:root body .sub-nav-bar,
:root body .site-footer,
:root body .site-footer > *,
:root body .wp-block-template-part,
:root body .wp-block-template-part header,
:root body header.site-header > *,
:root :where(.is-layout-flow) > .site-header,
:root :where(.is-layout-flow) > .top-bar,
:root :where(.is-layout-flow) > .main-header,
:root :where(.is-layout-flow) > .sub-nav-bar,
:root :where(.site-header.is-layout-flow) > *,
:root :where(.site-header.is-layout-flow) > * + *,
:root :where(.wp-block-group.site-header) > *,
:root :where(.wp-block-group.site-header) > * + *,
:root .wp-site-blocks > header,
:root .wp-site-blocks > .site-header,
:root .wp-site-blocks > .wp-block-template-part:first-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.site-header {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.top-bar,
.main-header,
.sub-nav-bar {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-body);
  color: var(--wp--preset--color--text-main);
  background: var(--grad-body);
  background-color: var(--wp--preset--color--content-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--wp--preset--color--accent-cyan);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--wp--preset--color--focus-ring);
  outline-offset: 2px;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

/* ==========================================================================
   Critical Brands Slider Styles (Guaranteed fallback for WordPress FSE)
   ========================================================================== */
.brands-section {
  padding: 30px 0 20px 0;
  position: relative;
  width: 100%;
  clear: both;
}

.brands-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 10px auto 5px auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 6px 10px 6px;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
  border: 1px solid #edf2f7;
  overflow: hidden;
  box-sizing: border-box;
}

.brands-carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: 10px;
}

.brands-slides-track {
  display: flex !important;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.brands-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(3, auto) !important;
  gap: 18px 8px !important;
  padding: 4px 2px !important;
  align-items: center !important;
  justify-items: center !important;
}

.brands-slide[data-slide="5"] .brand-item:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.brand-item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 105px !important;
  height: 110px !important;
  box-sizing: border-box !important;
}

.brand-item img {
  max-height: 105px !important;
  max-width: 165px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transform: scale(1.22);
  display: block !important;
  margin: 0 auto;
  filter: contrast(1.06);
}

.brands-slider-btn {
  display: none !important;
}

@media (min-width: 769px) {
  .brands-slider-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .brands-slide {
    grid-template-columns: repeat(6, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 14px !important;
    padding: 8px 2px !important;
  }

  .brands-slide[data-slide="5"] .brand-item:last-child {
    grid-column: auto;
    justify-self: auto;
  }

  .brand-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    height: 120px;
    padding: 4px 8px;
    transition: transform 0.18s ease-in-out, box-shadow 0.18s ease-in-out, border-color 0.18s ease-in-out;
  }

  .brand-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #00d2ff;
    box-shadow: 0 10px 28px rgba(0, 114, 255, 0.22);
  }

  .brand-item img {
    max-height: 92px !important;
    max-width: 160px !important;
    transform: scale(1.15);
  }

  .brand-item:hover img {
    transform: scale(1.22);
  }

  .brands-slider-btn {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 17, 32, 0.88);
    border: 1.5px solid rgba(0, 210, 255, 0.6);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.18s ease-in-out;
    backdrop-filter: blur(6px);
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .brands-slider-btn.prev {
    left: -18px;
  }

  .brands-slider-btn.next {
    right: -18px;
  }
}

.brands-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 4px 0;
}

.brands-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.brands-dot.active {
  background: #334155;
  transform: scale(1.25);
}
