/* ==========================================================================
   YOP storefront design tokens (slice specs/slices/2026-11-20-design-tokens)

   The ONE place brand/UI colours, corner radii and shadows are defined.
   Views and partials use var(--yop-...) and never add their own hex values
   (#fff / #000, transparent and rgba() overlays on photos are fine).

   Loaded last in partials/header.php, so it sits after the theme (style.css)
   and Bootstrap.
   ========================================================================== */

:root {
    /* ---- Brand ---- */
    --yop-primary:        #010067;  /* buttons, links, selected states, header/footer */
    --yop-primary-hover:  #0d0b85;  /* hover/active of primary */
    --yop-primary-soft:   #f1f1fb;  /* selected/active backgrounds (tabs, chips, chosen rows) */
    --yop-on-primary:     #ffffff;  /* text and icons on navy */

    --yop-accent:         #d98e00;  /* gold: fills, borders, progress, focus rings. NOT small text (2.7:1) */
    --yop-accent-text:    #9a6200;  /* gold text on white (5.1:1) */
    --yop-accent-soft:    #fff4e0;  /* gold-tinted backgrounds: notices, highlights */

    --yop-love:           #ff0043;  /* ONLY hearts, Best/sale badges, alert/unread dots, recording mic */

    /* ---- Text ---- */
    --yop-text:           #212121;  /* body text and headings (16.1:1) */
    --yop-text-muted:     #6b6b6b;  /* secondary text (5.3:1) */
    --yop-text-subtle:    #878787;  /* non-essential only: struck-through MRP, placeholders */

    /* ---- Surfaces and lines ---- */
    --yop-bg:             #ffffff;
    --yop-bg-subtle:      #f5f6f8;  /* image wells, panels, footer */
    --yop-border:         #e6e8ef;  /* card and input borders, dividers */
    --yop-border-strong:  #c9cbe0;  /* hovered/emphasised borders */

    /* ---- Status ---- */
    --yop-success:        #2e7d32;  /* discount %, in stock, success (5.1:1) */
    --yop-success-soft:   #e8f5e9;
    --yop-danger:         #d32f2f;  /* errors, out of stock, cancel (5.0:1) */
    --yop-danger-soft:    #fdecef;

    /* Rating chips (Flipkart convention, white text on a filled chip) */
    --yop-rating-good:    #388e3c;
    --yop-rating-mid:     #ff9f00;
    --yop-rating-low:     #ff6161;

    /* ---- Shape ---- */
    --yop-radius-sm:      4px;      /* inputs, chips, small badges */
    --yop-radius:         8px;      /* cards, buttons */
    --yop-radius-lg:      12px;     /* panels, modals, drawers */
    --yop-radius-pill:    999px;    /* pills, size selectors, round buttons */

    /* ---- Elevation (navy-tinted, as the newer components already use) ---- */
    --yop-shadow-sm:      0 1px 4px rgba(1, 0, 103, .08);    /* resting cards */
    --yop-shadow:         0 4px 14px rgba(1, 0, 103, .08);   /* raised panels, hovered cards */
    --yop-shadow-lg:      0 12px 28px rgba(1, 0, 103, .14);  /* popovers, dropdowns, modals */

    /* ---- Print inks (Custom Design text colours; printed on the garment, not UI colours) ---- */
    --yop-ink-white:      #ffffff;
    --yop-ink-black:      #111111;
    --yop-ink-navy:       #010067;
    --yop-ink-gold:       #d98e00;
    --yop-ink-red:        #d32f2f;
    --yop-ink-pink:       #ff4f8b;
    --yop-ink-orange:     #f57c00;
    --yop-ink-yellow:     #fdd835;
    --yop-ink-green:      #2e7d32;
    --yop-ink-sky:        #29b6f6;
    --yop-ink-purple:     #7b1fa2;
    --yop-ink-grey:       #9e9e9e;

    /* ---- Type ----
       The site's text renders in the system font (owner decision 2026-11-20: keep it).
       Barlow/Teko stay where the theme sets them on specific elements. */
    --yop-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
                "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* ==========================================================================
   Base
   The template set links to grey, then white, then #1696e7, and Bootstrap made
   them #007bff; headings were #0b1c39. One set of base colours instead.
   Component and page rules with their own colours still win (higher specificity).
   ========================================================================== */
body { color: var(--yop-text); }
h1, h2, h3, h4, h5, h6 { color: var(--yop-text); }
a { color: var(--yop-primary); }
a:hover { color: var(--yop-primary-hover); }
:focus-visible { outline: 2px solid var(--yop-accent); outline-offset: 2px; }
::selection { background: var(--yop-primary); color: var(--yop-on-primary); }
/* The template colours every <b>/<u> navy; inside a button they must keep the button's text colour. */
.btn b, .btn strong, .btn u, .btn sup, .btn sub,
button b, button strong, button u { color: inherit; }

/* ==========================================================================
   Bootstrap colour classes -> tokens
   Views use Bootstrap's colour utilities; these make them brand colours.
   Main actions are .btn-primary (navy, white text); secondary actions are
   .btn-outline-primary. .btn-danger is only for destructive actions.
   ========================================================================== */
.btn-primary,
.btn-primary:disabled, .btn-primary.disabled {
    background-color: var(--yop-primary); border-color: var(--yop-primary); color: var(--yop-on-primary);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--yop-primary-hover); border-color: var(--yop-primary-hover); color: var(--yop-on-primary);
}
.btn-outline-primary,
.btn-outline-primary:disabled, .btn-outline-primary.disabled { color: var(--yop-primary); border-color: var(--yop-primary); background-color: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:not(:disabled):not(.disabled):active {
    background-color: var(--yop-primary); border-color: var(--yop-primary); color: var(--yop-on-primary);
}
.btn:focus,
.btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:focus, .btn-outline-primary:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 .2rem rgba(1, 0, 103, .2); }
.form-control:focus { border-color: var(--yop-primary); box-shadow: 0 0 0 .2rem rgba(1, 0, 103, .15); }
.btn-danger { background-color: var(--yop-danger); border-color: var(--yop-danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); color: #fff; }

.text-primary { color: var(--yop-primary) !important; }
.text-danger  { color: var(--yop-danger) !important; }
.text-success { color: var(--yop-success) !important; }

.badge-success { background-color: var(--yop-success); color: #fff; }
.badge-danger  { background-color: var(--yop-love); color: #fff; }   /* header wishlist count */

.alert-success { background-color: var(--yop-success-soft); border-color: var(--yop-success-soft); color: var(--yop-success); }
.alert-danger  { background-color: var(--yop-danger-soft);  border-color: var(--yop-danger-soft);  color: var(--yop-danger); }
.alert-warning { background-color: var(--yop-accent-soft);  border-color: var(--yop-accent-soft);  color: var(--yop-accent-text); }
.alert-info    { background-color: var(--yop-primary-soft); border-color: var(--yop-primary-soft); color: var(--yop-primary); }

/* ==========================================================================
   Layout compatibility
   Until 2026-11-20 a second Bootstrap (4.0.0, CDN) loaded after style.css and
   set these values. It was removed and the local Bootstrap 4.1.3 now loads in
   its place. The local copy is theme-modified (1200px container) and spaces
   breadcrumbs differently, so these two rules keep every page pixel-identical.
   ========================================================================== */
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}
.breadcrumb-item + .breadcrumb-item::before { padding-left: .5rem; }
