/*
Theme Name: YouthPlug Wholesale
Theme URI: https://wholesale.youthplug.co.za
Author: YouthPlug
Author URI: https://youthplug.co.za
Description: A professional, modern, responsive WordPress and WooCommerce theme for YouthPlug Wholesale – a multi-department wholesale e-commerce platform based in South Africa. Built for resellers, small businesses, informal traders, entrepreneurs, retailers, and bulk buyers. Features minimum order quantity of 5 units, department-based product discovery, and full WooCommerce integration.
Version: 1.0.0
Requires at least: 6.0
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: youthplug-wholesale
Tags: e-commerce, woocommerce, wholesale, custom-menu, custom-logo, featured-images, flexible-header, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready, two-columns, left-sidebar, right-sidebar
*/

/* ==========================================================================
   CSS Custom Properties (Brand Identity)
   ========================================================================== */
:root {
  --yp-primary: #0a2540;       /* Deep navy blue */
  --yp-primary-dark: #061828;
  --yp-primary-light: #1a3a5c;
  --yp-secondary: #ffffff;
  --yp-accent: #ff6b35;        /* Vibrant orange */
  --yp-accent-hover: #e55a2b;
  --yp-accent-blue: #0077b6;   /* Vibrant blue alternative */
  --yp-bg: #f5f7fa;            /* Light grey */
  --yp-bg-white: #ffffff;
  --yp-text: #2d3436;          /* Dark charcoal */
  --yp-text-light: #636e72;
  --yp-text-muted: #b2bec3;
  --yp-border: #dfe6e9;
  --yp-success: #00b894;
  --yp-warning: #fdcb6e;
  --yp-error: #d63031;
  --yp-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
  --yp-shadow-hover: 0 4px 16px rgba(10, 37, 64, 0.12);
  --yp-radius: 8px;
  --yp-radius-sm: 4px;
  --yp-radius-lg: 12px;
  --yp-transition: all 0.25s ease;
  --yp-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --yp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --yp-container: 1280px;
  --yp-header-height: 80px;
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--yp-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--yp-text);
  background-color: var(--yp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover, a:focus {
  color: var(--yp-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--yp-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--yp-primary);
  margin: 0 0 0.75em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--yp-bg-white);
  border-radius: var(--yp-radius-sm);
  box-shadow: var(--yp-shadow);
  clip: auto !important;
  clip-path: none;
  color: var(--yp-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 0.75rem 1rem;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 2px solid var(--yp-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.yp-container {
  width: 100%;
  max-width: var(--yp-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.yp-section {
  padding: 3rem 0;
}

.yp-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.yp-section-title h2 {
  margin-bottom: 0.5rem;
}

.yp-section-title p {
  color: var(--yp-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.yp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--yp-radius);
  transition: var(--yp-transition);
  text-align: center;
  line-height: 1.4;
  border: 2px solid transparent;
}

.yp-btn-primary {
  background-color: var(--yp-accent);
  color: var(--yp-secondary);
  border-color: var(--yp-accent);
}

.yp-btn-primary:hover,
.yp-btn-primary:focus {
  background-color: var(--yp-accent-hover);
  border-color: var(--yp-accent-hover);
  color: var(--yp-secondary);
}

.yp-btn-secondary {
  background-color: transparent;
  color: var(--yp-primary);
  border-color: var(--yp-primary);
}

.yp-btn-secondary:hover,
.yp-btn-secondary:focus {
  background-color: var(--yp-primary);
  color: var(--yp-secondary);
}

.yp-btn-outline {
  background-color: transparent;
  color: var(--yp-accent);
  border-color: var(--yp-accent);
}

.yp-btn-outline:hover,
.yp-btn-outline:focus {
  background-color: var(--yp-accent);
  color: var(--yp-secondary);
}

.yp-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.yp-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.yp-btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.yp-top-bar {
  background-color: var(--yp-primary);
  color: var(--yp-secondary);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.yp-top-bar .yp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yp-top-bar-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.yp-top-bar-message strong {
  color: var(--yp-accent);
}

.yp-min-qty-notice {
  background-color: rgba(255, 107, 53, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--yp-radius-sm);
  font-weight: 500;
}

/* ==========================================================================
   Header
   ========================================================================== */
.yp-header {
  background-color: var(--yp-bg-white);
  box-shadow: var(--yp-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.yp-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  min-height: var(--yp-header-height);
}

.yp-logo {
  flex-shrink: 0;
}

.yp-logo img {
  max-height: 50px;
  width: auto;
}

.yp-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yp-primary);
  letter-spacing: -0.02em;
}

.yp-logo-text span {
  color: var(--yp-accent);
}

/* Search */
.yp-search-form {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.yp-search-form form {
  display: flex;
  width: 100%;
}

.yp-search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--yp-border);
  border-right: none;
  border-radius: var(--yp-radius) 0 0 var(--yp-radius);
  background: var(--yp-bg);
  color: var(--yp-text);
  outline: none;
  transition: var(--yp-transition);
}

.yp-search-form input[type="search"]:focus {
  border-color: var(--yp-primary);
  background: var(--yp-bg-white);
}

.yp-search-form button {
  padding: 0.75rem 1.25rem;
  background-color: var(--yp-primary);
  color: var(--yp-secondary);
  border-radius: 0 var(--yp-radius) var(--yp-radius) 0;
  font-weight: 600;
  transition: var(--yp-transition);
}

.yp-search-form button:hover {
  background-color: var(--yp-primary-dark);
}

/* Header Actions */
.yp-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.yp-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--yp-text);
  font-size: 0.75rem;
  font-weight: 500;
  position: relative;
}

.yp-header-action svg {
  width: 24px;
  height: 24px;
  stroke: var(--yp-primary);
  fill: none;
  stroke-width: 1.75;
}

.yp-header-action:hover {
  color: var(--yp-accent);
}

.yp-header-action:hover svg {
  stroke: var(--yp-accent);
}

.yp-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--yp-accent);
  color: var(--yp-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Navigation */
.yp-nav {
  background-color: var(--yp-primary);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.yp-nav-inner {
  display: flex;
  align-items: center;
}

.yp-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.yp-nav-menu > li {
  position: relative;
}

.yp-nav-menu > li > a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--yp-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.yp-nav-menu > li > a:hover,
.yp-nav-menu > li.current-menu-item > a,
.yp-nav-menu > li.current-menu-ancestor > a {
  background-color: rgba(255,255,255,0.1);
  color: var(--yp-accent);
}

/* Submenu */
.yp-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--yp-bg-white);
  box-shadow: var(--yp-shadow-hover);
  border-radius: 0 0 var(--yp-radius) var(--yp-radius);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 100;
}

.yp-nav-menu li:hover > .sub-menu {
  display: block;
}

.yp-nav-menu .sub-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--yp-text);
  font-size: 0.875rem;
}

.yp-nav-menu .sub-menu a:hover {
  background: var(--yp-bg);
  color: var(--yp-accent);
}

/* Mobile Menu Toggle */
.yp-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.yp-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yp-primary);
  transition: var(--yp-transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.yp-hero {
  position: relative;
  background: linear-gradient(135deg, var(--yp-primary) 0%, var(--yp-primary-light) 100%);
  color: var(--yp-secondary);
  padding: 4rem 0;
  overflow: hidden;
}

.yp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.yp-hero .yp-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.yp-hero-content h1 {
  color: var(--yp-secondary);
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.yp-hero-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 480px;
}

.yp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.yp-hero-buttons .yp-btn-primary {
  background-color: var(--yp-accent);
  border-color: var(--yp-accent);
}

.yp-hero-buttons .yp-btn-secondary {
  color: var(--yp-secondary);
  border-color: rgba(255,255,255,0.5);
}

.yp-hero-buttons .yp-btn-secondary:hover {
  background: var(--yp-secondary);
  color: var(--yp-primary);
  border-color: var(--yp-secondary);
}

.yp-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.yp-hero-image img {
  max-width: 100%;
  border-radius: var(--yp-radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.yp-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.yp-category-card {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  overflow: hidden;
  box-shadow: var(--yp-shadow);
  transition: var(--yp-transition);
  text-align: center;
}

.yp-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yp-shadow-hover);
}

.yp-category-card a {
  display: block;
  color: inherit;
}

.yp-category-card-image {
  aspect-ratio: 1;
  background: var(--yp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yp-category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--yp-transition);
}

.yp-category-card:hover .yp-category-card-image img {
  transform: scale(1.05);
}

.yp-category-card-placeholder {
  width: 64px;
  height: 64px;
  background: var(--yp-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yp-secondary);
  font-size: 1.5rem;
  font-weight: 700;
}

.yp-category-card-body {
  padding: 1rem;
}

.yp-category-card-body h3 {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--yp-text);
}

.yp-category-card-count {
  font-size: 0.75rem;
  color: var(--yp-text-light);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.yp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.yp-product-card {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  overflow: hidden;
  box-shadow: var(--yp-shadow);
  transition: var(--yp-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.yp-product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--yp-accent);
  color: var(--yp-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--yp-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.yp-product-card-badge.sale {
  background: var(--yp-error);
}

.yp-product-card-image {
  aspect-ratio: 1;
  background: var(--yp-bg);
  overflow: hidden;
  position: relative;
}

.yp-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--yp-transition);
}

.yp-product-card:hover .yp-product-card-image img {
  transform: scale(1.04);
}

.yp-product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yp-product-card-category {
  font-size: 0.75rem;
  color: var(--yp-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.yp-product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.yp-product-card-title a {
  color: var(--yp-text);
}

.yp-product-card-title a:hover {
  color: var(--yp-accent);
}

.yp-product-card-price {
  margin-bottom: 0.75rem;
}

.yp-price-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yp-primary);
}

.yp-price-unit del {
  font-size: 0.875rem;
  color: var(--yp-text-muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

.yp-price-label {
  font-size: 0.75rem;
  color: var(--yp-text-light);
  display: block;
}

.yp-product-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--yp-text-light);
}

.yp-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.yp-meta-item strong {
  color: var(--yp-text);
}

.yp-min-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(10, 37, 64, 0.06);
  color: var(--yp-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--yp-radius-sm);
}

.yp-product-card-actions {
  margin-top: auto;
}

.yp-product-card-actions .yp-btn {
  width: 100%;
}

.yp-stock-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.yp-stock-status.in-stock {
  color: var(--yp-success);
}

.yp-stock-status.out-of-stock {
  color: var(--yp-error);
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.yp-how-it-works {
  background: var(--yp-bg-white);
}

.yp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.yp-step {
  text-align: center;
  padding: 1.5rem;
}

.yp-step-number {
  width: 56px;
  height: 56px;
  background: var(--yp-primary);
  color: var(--yp-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.yp-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.yp-step p {
  color: var(--yp-text-light);
  margin: 0;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.yp-trust {
  background: var(--yp-primary);
  color: var(--yp-secondary);
}

.yp-trust .yp-section-title h2 {
  color: var(--yp-secondary);
}

.yp-trust .yp-section-title p {
  color: rgba(255,255,255,0.7);
}

.yp-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.yp-trust-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--yp-radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--yp-transition);
}

.yp-trust-card:hover {
  background: rgba(255,255,255,0.12);
}

.yp-trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--yp-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yp-trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--yp-secondary);
  fill: none;
  stroke-width: 2;
}

.yp-trust-card h3 {
  color: var(--yp-secondary);
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.yp-trust-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   Shop Page Layout
   ========================================================================== */
.yp-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.yp-shop-sidebar {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  padding: 1.5rem;
  box-shadow: var(--yp-shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--yp-header-height) + 20px);
}

.yp-shop-sidebar h3 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--yp-border);
}

.yp-filter-group {
  margin-bottom: 1.5rem;
}

.yp-filter-group:last-child {
  margin-bottom: 0;
}

.yp-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yp-filter-list li {
  margin-bottom: 0.35rem;
}

.yp-filter-list a,
.yp-filter-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--yp-text);
  padding: 0.25rem 0;
  cursor: pointer;
}

.yp-filter-list a:hover,
.yp-filter-list label:hover {
  color: var(--yp-accent);
}

.yp-filter-list .count {
  margin-left: auto;
  color: var(--yp-text-muted);
  font-size: 0.75rem;
}

.yp-price-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yp-price-filter input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius-sm);
}

.yp-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
}

.yp-product-count {
  font-size: 0.875rem;
  color: var(--yp-text-light);
}

.yp-sorting select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius-sm);
  background: var(--yp-bg-white);
  color: var(--yp-text);
  cursor: pointer;
}

/* Active filters */
.yp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.yp-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--yp-primary);
  color: var(--yp-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--yp-radius-sm);
}

.yp-active-filter a {
  color: var(--yp-secondary);
  opacity: 0.8;
}

.yp-active-filter a:hover {
  opacity: 1;
}

/* ==========================================================================
   Single Product
   ========================================================================== */
.yp-single-product {
  padding: 2rem 0;
}

.yp-product-gallery-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.yp-product-gallery {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  overflow: hidden;
  box-shadow: var(--yp-shadow);
}

.yp-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
}

.yp-product-summary {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  padding: 2rem;
  box-shadow: var(--yp-shadow);
}

.yp-product-summary .product_title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.yp-product-sku {
  font-size: 0.8125rem;
  color: var(--yp-text-light);
  margin-bottom: 1rem;
}

.yp-product-price-block {
  background: var(--yp-bg);
  border-radius: var(--yp-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.yp-product-price-block .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yp-primary);
  margin-bottom: 0.5rem;
}

.yp-product-price-block .price del {
  font-size: 1.125rem;
  color: var(--yp-text-muted);
  font-weight: 400;
}

.yp-min-order-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.yp-min-order-info .yp-info-item {
  background: var(--yp-bg-white);
  padding: 0.5rem 0.875rem;
  border-radius: var(--yp-radius-sm);
  font-size: 0.875rem;
}

.yp-min-order-info .yp-info-item strong {
  color: var(--yp-primary);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.yp-quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.yp-quantity-wrapper .quantity {
  display: flex;
  align-items: center;
  border: 2px solid var(--yp-border);
  border-radius: var(--yp-radius);
  overflow: hidden;
}

.yp-quantity-wrapper .quantity input {
  width: 60px;
  text-align: center;
  border: none;
  padding: 0.625rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.yp-quantity-wrapper .quantity input::-webkit-outer-spin-button,
.yp-quantity-wrapper .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.yp-qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yp-bg);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yp-primary);
  transition: var(--yp-transition);
}

.yp-qty-btn:hover {
  background: var(--yp-primary);
  color: var(--yp-secondary);
}

.yp-add-to-cart-btn {
  background: var(--yp-accent) !important;
  color: var(--yp-secondary) !important;
  border: none !important;
  padding: 0.875rem 2rem !important;
  font-weight: 700 !important;
  border-radius: var(--yp-radius) !important;
  font-size: 1rem !important;
  transition: var(--yp-transition) !important;
}

.yp-add-to-cart-btn:hover {
  background: var(--yp-accent-hover) !important;
}

.yp-product-meta-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--yp-border);
  padding-top: 1.25rem;
}

.yp-product-meta-list li {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--yp-text-light);
}

.yp-product-meta-list li strong {
  color: var(--yp-text);
  min-width: 100px;
  display: inline-block;
}

/* Product Tabs */
.yp-product-tabs {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  margin-bottom: 3rem;
  overflow: hidden;
}

.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  border-bottom: 2px solid var(--yp-border);
  background: var(--yp-bg);
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--yp-text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--yp-primary);
  border-bottom-color: var(--yp-accent);
}

.woocommerce-tabs .panel {
  padding: 2rem;
}

/* Related Products */
.yp-related-products {
  margin-top: 2rem;
}

/* ==========================================================================
   Cart & Checkout
   ========================================================================== */
.woocommerce-cart .yp-container,
.woocommerce-checkout .yp-container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.woocommerce table.shop_table {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  overflow: hidden;
  box-shadow: var(--yp-shadow);
  border: none;
}

.woocommerce table.shop_table th {
  background: var(--yp-primary);
  color: var(--yp-secondary);
  font-weight: 600;
  padding: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.woocommerce table.shop_table td {
  padding: 1rem;
  border-top: 1px solid var(--yp-border);
  vertical-align: middle;
}

.woocommerce-cart-form .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--yp-radius-sm);
}

.woocommerce .cart-collaterals .cart_totals {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  padding: 1.5rem;
  box-shadow: var(--yp-shadow);
}

.woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  padding: 1.5rem;
  box-shadow: var(--yp-shadow);
}

/* ==========================================================================
   My Account
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  padding: 1rem 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--yp-text);
  font-weight: 500;
  border-left: 3px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--yp-bg);
  color: var(--yp-accent);
  border-left-color: var(--yp-accent);
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  padding: 2rem;
  box-shadow: var(--yp-shadow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.yp-footer {
  background: var(--yp-primary-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 3.5rem;
}

.yp-footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.yp-footer-brand .yp-logo-text {
  color: var(--yp-secondary);
  margin-bottom: 1rem;
  display: block;
}

.yp-footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.yp-footer-social {
  display: flex;
  gap: 0.75rem;
}

.yp-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yp-secondary);
  transition: var(--yp-transition);
}

.yp-footer-social a:hover {
  background: var(--yp-accent);
  color: var(--yp-secondary);
}

.yp-footer-column h4 {
  color: var(--yp-secondary);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.yp-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yp-footer-column ul li {
  margin-bottom: 0.625rem;
}

.yp-footer-column ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.yp-footer-column ul a:hover {
  color: var(--yp-accent);
}

.yp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.yp-breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--yp-text-light);
}

.yp-breadcrumbs a {
  color: var(--yp-text-light);
}

.yp-breadcrumbs a:hover {
  color: var(--yp-accent);
}

.yp-breadcrumbs .separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  justify-content: center;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--yp-radius-sm);
  background: var(--yp-bg-white);
  color: var(--yp-text);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--yp-shadow);
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--yp-primary);
  color: var(--yp-secondary);
}

/* ==========================================================================
   Notices
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--yp-radius) !important;
  padding: 1rem 1.25rem !important;
  margin-bottom: 1.5rem !important;
  border-top: none !important;
  box-shadow: var(--yp-shadow);
}

.woocommerce-message {
  background: #e8f8f5 !important;
  color: var(--yp-success) !important;
  border-left: 4px solid var(--yp-success) !important;
}

.woocommerce-info {
  background: #e8f4fd !important;
  color: var(--yp-accent-blue) !important;
  border-left: 4px solid var(--yp-accent-blue) !important;
}

.woocommerce-error {
  background: #fdecea !important;
  color: var(--yp-error) !important;
  border-left: 4px solid var(--yp-error) !important;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.yp-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
}

.yp-empty-state h2 {
  margin-bottom: 0.75rem;
}

.yp-empty-state p {
  color: var(--yp-text-light);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .yp-shop-layout {
    grid-template-columns: 220px 1fr;
  }

  .yp-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .yp-hero .yp-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .yp-hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .yp-hero-buttons {
    justify-content: center;
  }

  .yp-hero-image {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --yp-header-height: auto;
  }

  .yp-header-main {
    flex-wrap: wrap;
  }

  .yp-search-form {
    order: 3;
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
  }

  .yp-menu-toggle {
    display: flex;
  }

  .yp-nav {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e8ecf0;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  }

  .yp-nav.is-open {
    display: block;
  }

  .yp-nav-menu {
    flex-direction: column;
  }

  .yp-nav-menu > li > a {
    color: #0a2540;
    border-bottom: 1px solid #f0f3f7;
    padding: 1rem 1.25rem;
  }

  .yp-nav-menu > li > a:hover,
  .yp-nav-menu > li.current-menu-item > a,
  .yp-nav-menu > li.current-menu-ancestor > a {
    background-color: #f5f7fa;
    color: #ff6b35;
  }

  .yp-nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    display: none;
    background: #f8fafc;
    border-radius: 0;
  }

  .yp-nav-menu .sub-menu a {
    color: #2d3436;
    padding-left: 1.75rem;
  }

  .yp-nav-menu .sub-menu a:hover {
    background: #eef2f6;
    color: #ff6b35;
  }

  .yp-nav-menu li.is-open > .sub-menu {
    display: block;
  }

  .yp-shop-layout {
    grid-template-columns: 1fr;
  }

  .yp-shop-sidebar {
    position: static;
    display: none;
  }

  .yp-shop-sidebar.is-open {
    display: block;
  }

  .yp-filter-toggle {
    display: flex !important;
  }

  .yp-product-gallery-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .yp-steps {
    grid-template-columns: 1fr;
  }

  .yp-footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .yp-hero-content h1 {
    font-size: 2rem;
  }

  .yp-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .yp-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .yp-header-actions {
    gap: 0.75rem;
  }

  .yp-header-action span {
    display: none;
  }
}

@media (max-width: 480px) {
  .yp-products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .yp-hero {
    padding: 2.5rem 0;
  }

  .yp-section {
    padding: 2rem 0;
  }
}

/* Filter toggle for mobile */
.yp-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--yp-primary);
  color: var(--yp-secondary);
  border-radius: var(--yp-radius);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.woocommerce .star-rating {
  color: var(--yp-accent);
}

.woocommerce span.onsale {
  background: var(--yp-error);
  color: var(--yp-secondary);
  min-width: auto;
  min-height: auto;
  padding: 0.25rem 0.5rem;
  line-height: 1.4;
  border-radius: var(--yp-radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Quantity notice */
.yp-qty-notice {
  font-size: 0.8125rem;
  color: var(--yp-text-light);
  margin-top: 0.5rem;
}

.yp-qty-notice strong {
  color: var(--yp-primary);
}

/* ==========================================================================
   Content Pages (About, Contact, Returns)
   ========================================================================== */
.yp-page-wrap {
  padding: 2.5rem 0 3.5rem;
}

.yp-page-header {
  margin-bottom: 1.5rem;
}

.yp-page-header .entry-title {
  font-size: 2rem;
  margin: 0;
}

.yp-page-content {
  background: var(--yp-bg-white);
  padding: 2rem 2.25rem;
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  max-width: 860px;
}

.yp-page-content h2 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.yp-page-content h2:first-child {
  margin-top: 0;
}

.yp-page-content h3 {
  font-size: 1.1rem;
  margin-top: 1.35rem;
}

.yp-page-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.yp-page-content li {
  margin-bottom: 0.4rem;
}

.yp-contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

.yp-contact-main .yp-page-content {
  max-width: none;
}

.yp-contact-card {
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--yp-header-height) + 16px);
}

.yp-contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--yp-primary);
}

.yp-contact-card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.yp-contact-card p:last-child {
  margin-bottom: 0;
}

.yp-contact-card a {
  color: var(--yp-primary);
}

.yp-contact-card a:hover {
  color: var(--yp-accent);
}

.yp-muted {
  color: var(--yp-text-light);
  font-size: 0.875rem !important;
}

@media (max-width: 768px) {
  .yp-contact-layout {
    grid-template-columns: 1fr;
  }
  .yp-contact-card {
    position: static;
  }
  .yp-page-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Shop Test Products page
   ========================================================================== */
.yp-test-shop-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.yp-test-badge {
  display: inline-block;
  background: var(--yp-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin: 0 0 0.75rem;
}

.yp-test-intro {
  color: var(--yp-text-light);
  font-size: 1.05rem;
  margin: 0.75rem 0 1.25rem;
}

.yp-test-actions {
  margin: 0;
}

.yp-test-shop-grid-wrap {
  margin-top: 1rem;
}

.yp-test-shop-grid-wrap ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yp-test-shop-grid-wrap ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Test shop grid – force multi-column card layout */
.yp-test-shop-page .yp-products-grid,
.yp-test-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

.yp-test-shop-page .yp-product-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.yp-test-shop-page .yp-product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.yp-test-shop-page .yp-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .yp-test-shop-page .yp-products-grid,
  .yp-test-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .yp-test-shop-page .yp-products-grid,
  .yp-test-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  .yp-test-shop-page .yp-products-grid,
  .yp-test-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Department filter on Shop Test Product */
.yp-test-dept-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--yp-bg-white);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
}

.yp-test-dept-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--yp-primary);
  white-space: nowrap;
}

.yp-test-dept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yp-dept-chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--yp-primary);
  background: #f0f3f7;
  border: 1px solid transparent;
  transition: var(--yp-transition);
}

.yp-dept-chip:hover {
  background: #e4eaf1;
  color: var(--yp-primary);
}

.yp-dept-chip.is-active {
  background: var(--yp-primary);
  color: #fff;
}

.yp-test-filter-result {
  font-size: 0.9rem;
  color: var(--yp-text-light);
  margin: 0 0 1.25rem;
}

.yp-test-filter-result a {
  color: var(--yp-accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .yp-test-dept-filter {
    flex-direction: column;
    align-items: flex-start;
  }
}
