/**
 * Global CSS
 * CSS Variables, global typography, and site-wide styles
 */

/* ============================================================
   BRAND TOKENS
   ============================================================ */

:root {
  /* Primary palette */
  --color-indigo:        #231559;
  --color-cyan:          #04B2D9;
  --color-lime:          #C5D932;
  --color-orange:        #F2811D;
  --color-red-orange:    #F2811D;

  /* Supporting */
  --color-bg-light-blue: #DDE5ED;
  --color-bg-grey:       #E1E1E1;
  --color-mustard:       #E6D72A;
  --color-body-text:     #666666;
  --color-white:         #FFFFFF;

  /* Practical helpers */
  --color-cyan-dark:     #0386A3;
  --color-text-muted:    #6b7280;
  --color-text-dark:     #4b5563;
  --color-border-light:  #e5e7eb;
  --color-bg-soft:       #f9f9f9;

  /* Typography */
  --font-heading: 'Quicksand', sans-serif;
  --font-body:    'Roboto', sans-serif;

  /* Shape */
  --radius-card:   12px;
  --radius-button: 50px;
}

/* ============================================================
   GLOBAL TYPOGRAPHY
   ============================================================ */

body {
    font-family: var(--font-body);
    color: var(--color-body-text);
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-summary h1,
.entry-summary h2,
.entry-summary h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-indigo);
}

/* ============================================================
   GLOBAL WOOCOMMERCE ELEMENTS
   ============================================================ */

/* Price */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-indigo);
}

/* Sale badge */
.woocommerce span.onsale {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: var(--radius-button);
    padding: 4px 14px;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: var(--radius-button);
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    transition: opacity 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    opacity: 0.88;
}

/* ============================================================
   HOMEPAGE SEARCH PANEL
   ============================================================ */

.kids-club-search-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 32px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.search-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.single-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-top: 10px;
}

.select-field {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kids-club-search-panel label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    color: #333;
}

.kids-club-search-panel input[type="text"] {
    padding: 12px 18px;
    border: none;
    border-radius: 50px;
    background-color: #f3f4f6;
    font-size: 15px;
    color: #333;
    outline: none;
}

.kids-club-search-panel input[type="text"]::placeholder {
    color: #aab0b8;
}

.kids-club-search-panel select {
    padding: 12px 40px 12px 18px;
    border: none;
    border-radius: 50px;
    background-color: #f3f4f6;
    font-size: 15px;
    color: #aab0b8;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aab0b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    outline: none;
}

.kids-club-search-panel select:focus,
.kids-club-search-panel input[type="text"]:focus {
    box-shadow: 0 0 0 2px rgba(242, 129, 29, 0.3);
}

.search-button {
    flex: 1 1 auto;
    padding: 12px 20px;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.search-button:hover {
    background-color: var(--color-orange);
    opacity: 0.88;
}

@media (max-width: 768px) {
    .kids-club-search-panel {
        padding: 20px;
    }
    .single-row {
        flex-direction: column;
    }
    .select-field,
    .search-button {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .single-row {
        flex-direction: row;
    }
    .select-field {
        flex: 1 1 0;
    }
    .search-button {
        flex: 1 1 0;
    }
}

/* ============================================================
   PROVIDER LINK
   ============================================================ */

.product-provider {
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 1rem;
}

.product-provider .provider-link {
    color: var(--color-cyan);
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.5em;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
}

.product-provider .provider-link:hover {
    color: var(--color-cyan-dark);
    text-decoration: underline;
}

/* Mobile centring for product title and provider */
@media (max-width: 767px) {
    .single-product .product_title.entry-title {
        text-align: center !important;
    }
    .single-product .product-provider {
        text-align: center !important;
    }
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

.disabled {
    text-decoration: line-through;
    cursor: default !important;
}

img.attachment-woocommerce_thumbnail {
    border-radius: 20px;
}

/* Hide reCAPTCHA badge */
.rc-anchor,
.grecaptcha-badge {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* hide Ukraine flag from leaflet */
.leaflet-attribution-flag {
    display: none !important;
}

/* ============================================================
   Homepage cards
   ============================================================ */

.ast-single-post .entry-content a.cardhover {
    text-decoration: none;
}