/* ==========================================================================
   KYD Products — 2026 design refresh (S2F Marketing design, Sept 2026)
   --------------------------------------------------------------------------
   Loaded AFTER the legacy theme (style.css / responsive.css) from
   resources/views/inc_front/style.blade.php.

   Rules:
   - Every new component uses a `k-` prefixed class (BEM style:
     .k-card, .k-card__title, .k-btn--blue). Legacy selectors are never
     reused for new markup, so the two stylesheets do not fight.
   - Raw colours, fonts and radii live ONLY in the :root tokens below.
   - No inline styles and no <style> blocks in Blade views.
   - Responsive rules sit beside the component they change, at the end.
   - "Legacy bridge" at the bottom holds the few overrides needed for
     pages whose bodies are not yet redesigned. It shrinks over time.
   ========================================================================== */

/* --- 0. Tokens ----------------------------------------------------------- */
:root {
    /* sampled from the PDF as rendered */
    --k-navy: #1a335a;        /* nav, top strip, footer bar, headings */
    --k-blue: #185985;        /* tile captions, USP titles, links */
    --k-royal: #2f5fac;       /* hero / QuickDome band gradient start */
    --k-royal-light: #3a86c8; /* hero gradient end */
    --k-sky: #73c5ea;         /* QuickDome band gradient end */
    --k-red: #eb2128;
    --k-red-light: #f0524a;   /* button gradient highlight */
    --k-red-dark: #d0161d;
    --k-peach: #efb27f;
    --k-cream: #fef7f4;       /* USP bar */
    --k-stone: #faf7f6;       /* footer */
    --k-sand: #e6e0db;        /* inputs */
    --k-line: #d9d4cf;
    --k-ink: #231f20;
    --k-grey: #808285;
    --k-slate: #3f567a;       /* dropdown border/text/chevron */
    --k-white: #ffffff;

    --k-font: 'Roboto-Regular', Arial, Helvetica, sans-serif;
    --k-font-bold: 'Roboto-Bold', Arial, Helvetica, sans-serif;
    --k-font-black: 'Roboto-Black', Arial, Helvetica, sans-serif;

    --k-radius: 10px;
    --k-container: 1170px;
    --k-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    --k-shadow-lg: 0 8px 24px rgba(0, 0, 0, .18);
}

/* --- 1. Base ------------------------------------------------------------- */
/* Global type knob: every font-size in this file is in rem, so this one value
   scales all the new components together (legacy CSS and Bootstrap 3 are in
   px and are not affected). 100% = 16px = the sizes measured from the PDF. */
html { font-size: 100%; }

body {
    font-family: var(--k-font);
    color: var(--k-ink);
    background: var(--k-white);
}

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

/* visually hidden but available to assistive tech and page scripts */
.k-vh {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- 2. Buttons ---------------------------------------------------------- */
/* From S2F's "KYD Button" pen: white outlined pill, red gradient layer sitting
   one slide-width to the left (leaving the white tail), sliding across on
   hover. Works on <a> and <button>; no inner span needed — the text slide is
   done by animating the padding, so the button never changes size. */
.k-btn {
    --k-btn-slide: 1rem;
    --k-btn-pad-x: 30px;
    --k-btn-pad-y: 13px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--k-btn-pad-y) calc(var(--k-btn-pad-x) + 2 * var(--k-btn-slide)) var(--k-btn-pad-y) var(--k-btn-pad-x);
    border: 2px solid var(--k-red);
    border-radius: 999px;
    background: var(--k-white);
    color: var(--k-white) !important;
    font-family: var(--k-font-bold);
    font-size: 1.0625rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .15);
    transition: box-shadow .3s ease, padding .4s cubic-bezier(.4, 0, .2, 1);
}
.k-btn::before {                        /* the red layer */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 999px;
    background:
        linear-gradient(to top, var(--k-red) 0%, #9e0f14 4%, var(--k-red) 14%, transparent 25%),
        linear-gradient(135deg, var(--k-red) 0%, var(--k-red) 55%, #ff4249 100%);
    transform: translateX(calc(-1 * var(--k-btn-slide)));
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.k-btn:hover,
.k-btn:focus {
    padding-left: calc(var(--k-btn-pad-x) + var(--k-btn-slide));
    padding-right: calc(var(--k-btn-pad-x) + var(--k-btn-slide));
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
    outline: none;
    color: var(--k-white) !important;   /* legacy a:hover is `#58afe2 !important` and outranks .k-btn alone */
}
.k-btn:hover::before,
.k-btn:focus::before { transform: translateX(0); }
.k-btn[disabled],
.k-btn--disabled { opacity: .5; cursor: default; pointer-events: none; }

.k-btn--blue { border-color: var(--k-blue); }
.k-btn--blue::before {
    background:
        linear-gradient(to top, var(--k-blue) 0%, #0d3a5c 4%, var(--k-blue) 14%, transparent 25%),
        linear-gradient(135deg, var(--k-navy) 0%, var(--k-blue) 55%, #2f8ac4 100%);
}
.k-btn--sm {
    --k-btn-slide: .75rem;
    --k-btn-pad-x: 22px;
    --k-btn-pad-y: 9px;
    font-size: .90625rem;
}

.k-link {
    color: var(--k-blue);
    font-family: var(--k-font-bold);
    font-size: 1.125rem;
    text-decoration: none;
}
.k-link:hover,
.k-link:focus {
    color: var(--k-red);
    text-decoration: none;
}

/* --- 3. Header ----------------------------------------------------------- */
.k-strip {
    background: var(--k-navy);
    color: var(--k-white);
    text-align: center;
    font-family: var(--k-font-bold);
    font-size: 1rem;
    line-height: 1.4;
    padding: 12px 15px;
}
.k-strip p { margin: 0; }
.k-strip a { color: var(--k-peach); }

.k-header { background: var(--k-white); }
.k-header__inner {
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 18px 15px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.k-header__logo { display: block; flex: 0 0 auto; }
.k-header__logo img {
    display: block;
    height: 112px;
    width: auto;
}
.k-header__search {
    flex: 1;
    display: flex;
    justify-content: center;
}
.k-search {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0;
}
.k-search input[type="text"] {
    width: 100%;
    height: 48px;
    margin: 0;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: var(--k-stone);
    padding: 0 52px 0 18px;
    font: 15px var(--k-font);
    color: var(--k-ink);
    box-shadow: none;
}
.k-search input[type="text"]:focus {
    border-color: var(--k-blue);
    background: var(--k-white);
}
.k-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--k-grey);
    cursor: pointer;
}
.k-search button svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto;
}
.k-search button:hover { color: var(--k-navy); }

.k-header__actions {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.k-header__actions li {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.k-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 0.9375rem;
    text-decoration: none;
}
.k-action:hover,
.k-action:focus {
    color: var(--k-red);
    text-decoration: none;
}
.k-action img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
}
.k-action label {
    display: block;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.k-action__badge {
    position: absolute;
    top: -8px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--k-red);
    color: var(--k-white);
    font-family: var(--k-font-bold);
    font-size: 0.75rem;
    line-height: 22px;
    text-align: center;
}
.k-action--logout {
    min-width: 0;
    font-family: var(--k-font);
    font-size: 0.75rem;
    color: var(--k-grey);
}

/* --- 4. Navigation ------------------------------------------------------- */
.k-nav { background: var(--k-navy); }
.k-nav__inner {
    position: relative;
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.k-nav__list {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}
.k-nav__list > li {
    position: relative;
    float: none;
    margin: 0;
    padding: 0;
}
.k-nav__list > li > a {
    display: block;
    padding: 15px 18px;
    color: var(--k-white);
    font-family: var(--k-font-bold);
    font-size: 1.125rem;
    line-height: 22px;
    text-decoration: none;
    background: transparent;
}
.k-nav__list > li > a:hover,
.k-nav__list > li > a:focus,
.k-nav__list > li.open > a {
    color: var(--k-peach) !important;   /* legacy a:hover colour is !important */
    background: transparent;
    text-decoration: none;
}
.k-nav__list .caret {
    margin-left: 4px;
    border-top-color: currentColor;
}

/* dropdowns (Bootstrap 3 .dropdown-menu shown on hover by the header script) */
.k-nav .dropdown-menu {
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0 0 var(--k-radius) var(--k-radius);
    box-shadow: var(--k-shadow-lg);
    font-family: var(--k-font);
}
.k-nav .dropdown-menu > li { padding: 0; }
.k-nav .dropdown-menu > li > a {
    padding: 8px 22px;
    color: var(--k-ink);
    font-size: 1rem;
    white-space: nowrap;
}
.k-nav .dropdown-menu > li > a:hover,
.k-nav .dropdown-menu > li > a:focus {
    background: var(--k-cream);
    color: var(--k-navy);
}

/* products mega menu */
.k-nav .mega-dropdown { position: static; }
.k-nav .mega-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    padding: 24px 20px;
    margin: 0;
}
.k-nav .mega-dropdown-menu > li {
    float: left;
    width: 33.333%;
    padding: 0 15px;
    list-style: none;
}
.k-nav .mega-sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}
.k-nav .mega-sub-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}
.k-nav .mega-sub-menu > li > a {
    display: block;
    padding: 8px 28px 8px 10px;
    color: var(--k-ink);
    font-family: var(--k-font-bold);
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
}
.k-nav .mega-sub-menu > li > a:hover,
.k-nav .mega-sub-menu > li > a:focus { color: var(--k-red); }
.k-nav .mega-sub-menu > li.dropdown > a::after {
    content: "\f2fb";
    font-family: 'Material-Design-Iconic-Font';
    margin-left: 8px;
    color: var(--k-grey);
    font-size: 1rem;
}
.k-nav .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 99;
    min-width: 250px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--k-navy);
    border-radius: 0 var(--k-radius) var(--k-radius) 0;
    box-shadow: var(--k-shadow-lg);
}
.k-nav .mega-sub-menu > li.dropdown:hover > .sub-menu { display: block; }
.k-nav .sub-menu > li { padding: 0; margin: 0; }
.k-nav .sub-menu > li > a {
    display: block;
    padding: 7px 18px;
    color: var(--k-white) !important;
    font-size: 0.875rem;
    text-decoration: none;
}
.k-nav .sub-menu > li > a:hover { color: var(--k-peach) !important; }

/* mobile menu trigger (Materialize side-nav, markup unchanged) */
.k-nav__toggle {
    display: none;
    padding: 12px 0;
    color: var(--k-white);
    font-family: var(--k-font-bold);
    font-size: 0.9375rem;
    text-decoration: none;
}
.k-nav__toggle i {
    font-size: 1.375rem;
    vertical-align: middle;
    margin-right: 6px;
}

/* --- 5. USP bar ---------------------------------------------------------- */
.k-usp { background: var(--k-cream); }
.k-usp__inner {
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 16px 15px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
.k-usp__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}
.k-usp__item img {
    width: 66px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}
.k-usp__title {
    display: block;
    color: var(--k-blue);
    font-family: var(--k-font-bold);
    font-size: 1.5rem;
    line-height: 1.1;
}
.k-usp__sub {
    display: block;
    color: var(--k-ink);
    font-size: 1rem;
    margin-top: 3px;
}

/* --- 6. Sections --------------------------------------------------------- */
.k-section { padding: 46px 0; }
.k-section__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 24px;
}
.k-section__title {
    margin: 0;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 2.25rem;
    line-height: 1.15;
    text-transform: none;
}
.k-section__strap {
    color: var(--k-red);
    font-family: var(--k-font-bold);
    font-size: 1.6875rem;
}
.k-section__more {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
.k-section--navy {
    background: linear-gradient(90deg, var(--k-navy) 0%, var(--k-navy) 30%, #1b4b93 100%);
    color: var(--k-white);
}
.k-section--navy .k-section__title { color: var(--k-white); }
.k-section--navy .k-link { color: var(--k-white); }
.k-section--navy .k-link:hover { color: var(--k-peach); }
.k-section--navy .k-card::before { background: var(--k-red); }

/* --- 7. Hero ------------------------------------------------------------- */
.k-hero {
    position: relative;
    background: linear-gradient(90deg, var(--k-royal) 0%, var(--k-royal) 35%, var(--k-royal-light) 100%);
    color: var(--k-white);
    overflow: hidden;
}
.k-hero__inner {
    position: relative;
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-height: 500px;
}
.k-hero__copy {
    position: relative;
    z-index: 1;
    flex: 0 0 56%;
    padding: 50px 0;
}
.k-hero__title {
    margin: 0 0 22px;
    color: var(--k-white);
    font-family: var(--k-font-bold);
    font-size: 3.4375rem;
    line-height: 1.08;
}
.k-hero__text {
    max-width: 600px;
    margin: 0 0 34px;
    font-size: 1.75rem;
    line-height: 1.3;
}
.k-hero__image {                        /* PDF: photo sits in the bottom-right corner, cut off by the screen edge */
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    max-width: 880px;
    line-height: 0;
    /* the PNG has transparent margins (13% right, 16% bottom); shift so the visible
       photo touches the screen edge and the band bottom */
    transform: translate(16.9%, 16.4%);
}
.k-hero__image img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

/* --- 8. Category tiles --------------------------------------------------- */
.k-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.k-tile {
    position: relative;
    display: block;
    background: var(--k-white);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--k-shadow);
}
.k-tile:hover,
.k-tile:focus { text-decoration: none; }
.k-tile__image {
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: var(--k-white);
}
.k-tile__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.k-tile__label {
    position: relative;
    display: block;
    padding: 14px 8px;
    background: var(--k-blue);
    color: var(--k-white);
    font-family: var(--k-font-bold);
    font-size: 1.125rem;
    text-align: center;
}
.k-tile__label::before {                /* concave shoulder rising on the right (PDF): a 78x46 box
                                           clipped to everything outside a quarter-ellipse centred
                                           on its top-left corner */
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 78px;
    height: 46px;
    background: var(--k-blue);
    clip-path: path('M78 0 V46 H0 A78 46 0 0 0 78 0 Z');
}
.k-tile:hover .k-tile__label,
.k-tile:hover .k-tile__label::before { background: var(--k-navy); }

/* --- 9. Product card ----------------------------------------------------- */
.k-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.k-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 16px 22px;
    background: var(--k-white);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    box-shadow: var(--k-shadow);
    color: var(--k-ink);
}
.k-card {
    overflow: hidden;
}
.k-card::before {                       /* corner tag: a 42px box clipped to the corner outside a circle
                                           centred on its bottom-right, giving the concave inner edge */
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--k-blue);
    clip-path: path('M0 0 H42 A42 42 0 0 0 0 42 Z');
}
.k-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin: 0 0 16px;
}
.k-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.k-card__title {
    display: block;
    min-height: 46px;
    margin: 0 0 8px;
    color: var(--k-ink);
    font-family: var(--k-font-bold);
    font-size: 1.0625rem;
    line-height: 1.3;
    text-decoration: none;
}
.k-card__title:hover,
.k-card__title:focus {
    color: var(--k-blue);
    text-decoration: none;
}
.k-card label.k-card__price {
    display: block;
    margin: 0 0 18px;
    font-family: var(--k-font-bold);
    font-size: 1.4375rem;
    line-height: 1.2;
    color: var(--k-navy);
}
.k-card__from {
    display: block;
    font-family: var(--k-font);
    font-size: 0.875rem;
    color: var(--k-grey);
    margin-bottom: 2px;
}
.k-card__cta {
    margin-top: auto;
    text-align: center;
}
.k-card .quick-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
}
.k-card .quick-logo img { width: 100%; height: auto; }

/* Owl carousel wrapper (Owl 2.0, initialised by the page script) */
.k-carousel .owl-controls {           /* legacy owl.theme positions .owl-controls absolutely at top:100px */
    position: static;
    width: auto;
    height: auto;
    top: auto;
    right: auto;
    margin: 0;
}
.k-carousel .owl-stage { display: flex; }
.k-carousel .item.k-card { min-height: 0; float: none; }   /* legacy .owl-carousel4 .item set min-height 485px */
.k-card .quick-logo img { position: static; width: 100% !important; } /* legacy .quick-logo img is absolutely positioned */
.k-carousel .owl-item { display: flex; float: none; }
.k-carousel .owl-item > .k-card { width: 100%; }
.k-carousel .owl-nav {
    position: absolute;
    top: calc(50% - 22px);
    left: -46px;
    right: -46px;
    margin: -22px 0 0;
    pointer-events: none;
}
.k-carousel .owl-nav .owl-prev,
.k-carousel .owl-nav .owl-next {
    pointer-events: auto;
    position: absolute;
    top: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--k-white) !important;   /* legacy owl.theme colours [class*=owl-] navy */
    font-size: 2.75rem;
    line-height: 44px;
    opacity: .9;
}
.k-carousel .owl-nav .owl-prev::before,
.k-carousel .owl-nav .owl-next::after { content: none; }   /* legacy owl.theme draws 150px chevrons */
.k-carousel .owl-nav .owl-prev i,
.k-carousel .owl-nav .owl-next i { font-size: 2.75rem; line-height: 44px; }
.k-carousel .owl-nav .owl-prev { left: 0; }
.k-carousel .owl-nav .owl-next { right: 0; }
.k-carousel .owl-nav .owl-prev:hover,
.k-carousel .owl-nav .owl-next:hover { color: var(--k-peach); background: transparent; }
.k-carousel .owl-dots {
    float: none;              /* legacy style.css floats .owl-dots right */
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 22px;
}
.k-carousel .owl-dots .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: var(--k-sand);
    opacity: .7;
}
.k-carousel .owl-dots .owl-dot span { display: none; }
.k-carousel .owl-dots .owl-dot.active { background: var(--k-peach); opacity: 1; }
.k-section--navy .k-carousel .owl-dots .owl-dot { background: var(--k-white); opacity: .4; }
.k-section--navy .k-carousel .owl-dots .owl-dot.active { background: var(--k-peach); opacity: 1; }

/* --- 10. Promo band (QuickDome) ----------------------------------------- */
.k-promo {
    position: relative;
    margin-top: 110px;                   /* space for the logo and photo that rise above the band */
    background: linear-gradient(90deg, var(--k-royal) 0%, var(--k-royal) 30%, #3b83c6 65%, var(--k-sky) 100%);
    color: var(--k-white);
    clip-path: inset(-120px 0 0 0);      /* let the logo/photo overflow the top edge only */
}
.k-promo__inner {
    position: relative;
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 0 15px;
    display: block;
    min-height: 340px;
}
.k-promo__copy {
    max-width: 56%;
    padding: 118px 0 40px;               /* title starts just under the logo (PDF: ~38px gap) */
}
.k-promo__logo {
    position: absolute;                  /* straddles the band's top edge: ~105px above, ~120px inside */
    left: 15px;
    top: -88px;                          /* PDF: roughly half the logo above the edge, half inside */
    width: 235px;
    height: auto;
    margin: 0;
}
.k-promo__title {
    margin: 0 0 26px;
    color: var(--k-white);
    font-family: var(--k-font-bold);
    font-size: 2.25rem;
    line-height: 1.15;
}
.k-promo__image {                       /* PDF: photo sits bottom-right, rises above the band, cut off by the screen edge */
    position: absolute;
    right: 0;
    bottom: -90px;                       /* PDF: photo rises ~60px above the band and is cut off by its bottom edge */
    width: 45%;
    max-width: 640px;
    line-height: 0;
    overflow: hidden;                    /* the wrapper stays inside the viewport (no horizontal scroll) */
}
.k-promo__image img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateX(4%);           /* the photo itself is cut off by the wrapper's right edge */
}

/* --- 11. Footer ---------------------------------------------------------- */
.k-footer {
    background: var(--k-stone);
    border-top: 8px solid var(--k-peach);
}
.k-footer__inner {
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 46px 15px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}
.k-footer__logo { display: block; }
.k-footer__logo img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 0 22px;
}
.k-footer__phone {
    display: block;
    margin: 0 0 6px;
    color: var(--k-blue);
    font-family: var(--k-font-bold);
    font-size: 1.75rem;
    text-decoration: none;
}
.k-footer__phone:hover { color: var(--k-red); }
.k-footer__email {
    color: var(--k-ink);
    font-size: 1.125rem;
    text-decoration: none;
}
.k-footer__email:hover { color: var(--k-red); }
.k-footer__heading {
    margin: 0 0 16px;
    color: var(--k-grey);
    font-family: var(--k-font-bold);
    font-size: 1.5rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.k-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.k-footer__links li {
    margin: 0 0 14px;
    padding: 0;
}
.k-footer__links a {
    color: var(--k-ink);
    font-size: 1.125rem;
    text-decoration: none;
}
.k-footer__links a:hover { color: var(--k-red); }
.k-footer__bar {
    background: var(--k-navy);
    color: var(--k-white);
    font-size: 1rem;
}
.k-footer__bar-inner {
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.k-footer__bar p { margin: 0; }
.k-footer__bar a {
    color: var(--k-white);
    text-decoration: none;
}
.k-footer__bar a:hover { color: var(--k-peach); }

/* --- 11b. Page shell, breadcrumb, labelled select, pager ---------------- */
/* Used by the listing pages first; product, search, new-products, news and
   My Account reuse the same three components. */
.k-page { padding: 0 0 56px; }
.k-page-title {
    margin: 0 0 26px;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 2.25rem;
    line-height: 1.15;
    text-transform: none;
}
.k-page-intro { margin: -10px 0 26px; font-size: 1.0625rem; }
.k-page-intro p { margin: 0 0 10px; }

.k-breadcrumb {
    margin: 26px 0 24px;
    color: var(--k-navy);
    font-size: 1rem;
    line-height: 1.4;
}
.k-breadcrumb a {
    color: var(--k-navy);
    text-decoration: none;
}
.k-breadcrumb a:hover { color: var(--k-red) !important; }
.k-breadcrumb strong { font-family: var(--k-font-bold); font-weight: normal; }

.k-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 30px;
}
.k-select {                             /* a labelled dropdown; also the wrapper for the sort form */
    display: block;
    margin: 0;
    font-weight: normal;
}
.k-select__label {
    display: block;
    margin: 0 0 8px;
    color: var(--k-navy);
    font-family: var(--k-font);
    font-size: 1.0625rem;
}
.k-select__input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 56px 0 18px;
    border: 1px solid var(--k-slate);
    border-radius: 8px;
    background: var(--k-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath fill='%233f567a' d='M0 0h22L11 14z'/%3E%3C/svg%3E") no-repeat right 18px center / 22px 14px;
    color: var(--k-slate);
    font: 1.125rem var(--k-font);
    line-height: 50px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
}
.k-select__input:focus {
    outline: none;
    border-color: var(--k-blue);
}
.k-select__input::-ms-expand { display: none; }

.k-empty {
    padding: 40px 20px;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    text-align: center;
    font-size: 1.125rem;
    color: var(--k-ink);
}

.k-pager {
    display: flex;
    justify-content: center;
    margin: 40px 0 0;
}
.k-pager .pagination { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.k-pager .pagination > li { float: none; margin: 0; padding: 0; }
.k-pager .pagination > li > a,
.k-pager .pagination > li > span,
.k-pager .page-link {
    display: block;
    float: none;
    min-width: 42px;
    padding: 9px 12px;
    margin: 0;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: var(--k-white);
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.k-pager .pagination > li > a:hover,
.k-pager .page-link:hover { color: var(--k-red) !important; border-color: var(--k-navy); background: var(--k-white); }
.k-pager .pagination > .active > a,
.k-pager .pagination > .active > span,
.k-pager .active .page-link {
    background: var(--k-navy);
    border-color: var(--k-navy);
    color: var(--k-white) !important;
}
.k-pager .pagination > .disabled > a,
.k-pager .pagination > .disabled > span,
.k-pager .disabled .page-link { opacity: .45; }

/* --- 11c. Product page ------------------------------------------------- */
.k-product {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
    margin: 0 0 44px;
}
.k-gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 24px;
    border: 1px solid var(--k-slate);
    border-radius: var(--k-radius);
    background: var(--k-white);
    overflow: hidden;
}
.k-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}
.k-gallery__main .search-icon {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 1.75rem;
    color: var(--k-slate);
    cursor: pointer;
}
.k-gallery__main .quick-logo { position: absolute; top: 10px; right: 10px; width: 60px; }
.k-gallery__main .quick-logo img { position: static; width: 100% !important; padding: 0 !important; cursor: pointer; }
.k-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 16px 0 0;
}
.k-gallery__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 8px;
    border: 1px solid var(--k-slate);
    border-radius: var(--k-radius);
    background: var(--k-white);
    cursor: pointer;
}
.k-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.k-product__title {
    margin: 0 0 14px;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 2.25rem;
    line-height: 1.15;
}
.k-product__code {
    display: block;
    margin: 0 0 22px;
    color: var(--k-blue);
    font-size: 1rem;
}
.k-product__meta { margin: -12px 0 20px; color: var(--k-grey); font-size: .9375rem; }
.k-product__meta span { display: block; }

.k-price-table {
    border-collapse: collapse;
    margin: 0 0 24px;
}
.k-price-table th,
.k-price-table td {
    padding: 10px 26px;
    border: 1px solid var(--k-slate);
    color: var(--k-navy);
    font-size: 1.25rem;
    text-align: center;
    white-space: nowrap;
}
.k-price-table th {
    background: #e7ebef;
    font-family: var(--k-font-bold);
    font-weight: normal;
}
.k-price-table td,
.k-product .k-price-table td:last-child {   /* legacy .product-detail table td:last-child is bold/large */
    background: var(--k-white);
    font-family: var(--k-font) !important;
    font-weight: normal !important;
    font-size: 1.25rem !important;
    text-align: center !important;
}
.k-price-table--single td { padding-left: 32px; padding-right: 32px; }

.k-product__min {
    margin: 0 0 36px;
    color: var(--k-navy);
    font-size: 1.4375rem;
}
.k-product__min strong { font-family: var(--k-font-bold); font-weight: normal; margin-left: 24px; }

.k-buy {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px 44px;
    margin: 0 0 10px;
}
.k-qty { display: block; margin: 0; font-weight: normal; }
.k-qty__label {
    display: block;
    margin: 0 0 8px;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 1.4375rem;
}
.k-qty__input {
    display: block;
    width: 250px;
    max-width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--k-line);
    border-radius: 8px;
    background: var(--k-sand);
    color: var(--k-ink);
    font: 1.125rem var(--k-font);
    box-shadow: none;
}
.k-qty__input:focus { outline: none; border-color: var(--k-blue); background: var(--k-white); }
.k-buy__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.k-buy__save {
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-navy) !important;
    font-family: var(--k-font-bold);
    font-size: 1.4375rem;
    cursor: pointer;
    text-decoration: none;
}
.k-buy__save:hover { color: var(--k-red) !important; }
.k-buy__note { color: var(--k-grey); font-size: .9375rem; }

.k-tabs { margin: 44px 0 0; }
.k-tabs__list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.k-tabs__tab {
    position: relative;
    flex: 0 1 calc(33.333% - 4px);       /* PDF: three equal tabs; fewer tabs keep the same width */
    margin: 0;
    padding: 16px 20px 16px 58px;
    border: 1px solid var(--k-slate);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #f4f6f8;
    color: var(--k-navy);
    font-family: var(--k-font);
    font-size: 1.25rem;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}
.k-tabs__tab::before {                  /* same corner tag as the product card */
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--k-blue);
    clip-path: path('M0 0 H42 A42 42 0 0 0 0 42 Z');
}
.k-tabs__tab.is-active {
    z-index: 1;
    margin-bottom: -1px;
    padding-bottom: 17px;
    background: var(--k-white);
}
.k-tabs__panel {
    display: none;
    min-height: 220px;
    padding: 30px 32px;
    border: 1px solid var(--k-slate);
    border-radius: 0 12px 12px 12px;
    background: var(--k-white);
    font-size: 1rem;
    line-height: 1.5;
}
.k-tabs__panel.is-active { display: block; }
.k-tabs__panel p { margin: 0 0 10px; }

.k-bundle {
    margin: 44px 0 0;
    padding: 28px 32px;
    border: 1px solid var(--k-slate);
    border-radius: var(--k-radius);
    background: var(--k-stone);
}
.k-bundle h2 {
    margin: 0 0 20px;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 1.5rem;
    text-transform: uppercase;
}
.k-bundle__items { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }
.k-bundle__items a { display: block; width: 120px; padding: 8px; border: 1px solid var(--k-line); border-radius: var(--k-radius); background: var(--k-white); }
.k-bundle__items img { width: 100%; height: auto; }
.k-bundle__total { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; font-size: 1.125rem; color: var(--k-navy); }
.k-bundle__total label { margin: 0; font-family: var(--k-font-bold); font-weight: normal; }
.k-bundle__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.k-bundle__row h4 { margin: 0 0 8px; color: var(--k-navy); font-family: var(--k-font-bold); font-size: 1.125rem; }
.k-bundle__row ul { margin: 0; padding: 0; list-style: none; }
.k-bundle__row li { margin: 0 0 4px; }

/* --- 11d. Checkout steps, basket ---------------------------------------- */
.k-steps {
    position: relative;
    display: flex;
    max-width: 820px;
    margin: 34px auto 46px;
    padding: 0;
    list-style: none;
}
.k-steps li {
    position: relative;
    flex: 1;
    margin: 0;
    padding: 0 0 36px;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-size: 1.4375rem;
    text-align: center;
}
.k-steps li a { color: var(--k-navy); text-decoration: none; }
.k-steps li::before {                   /* the connecting line */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 11px;
    height: 4px;
    background: var(--k-blue);
}
.k-steps li:first-child::before { left: 50%; }
.k-steps li:last-child::before { right: 50%; }
.k-steps li::after {                    /* the dot */
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    border-radius: 50%;
    background: var(--k-blue);
}
.k-steps li.is-active::after { background: var(--k-red); }

.k-basket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 44px;
    align-items: start;
    margin: 0 0 20px;
}
.k-cart-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid var(--k-slate);
}
.k-cart-table th {
    padding: 14px 16px;
    border: 1px solid var(--k-slate);
    background: #e7ebef;
    color: var(--k-navy);
    font-family: var(--k-font-bold);
    font-weight: normal;
    font-size: 1.25rem;
    text-align: center;
}
.k-cart-table th:first-child { text-align: left; }
.k-cart-table td {
    padding: 20px 16px;
    border: 1px solid var(--k-slate);
    background: var(--k-white);
    color: var(--k-navy);
    font-size: 1.125rem;
    text-align: center;
    vertical-align: middle;
}
.k-cart-table td:first-child { text-align: left; }
.k-cart-product { display: flex; align-items: center; gap: 22px; }
.k-cart-product img { flex: 0 0 auto; width: 110px; height: auto; }
.k-cart-product p { margin: 0; line-height: 1.35; }
.k-cart-product small { display: block; margin-top: 4px; color: var(--k-grey); font-size: .875rem; }
.k-cart-table .k-qty__input {
    width: 96px;
    height: 56px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
.k-cart-remove {
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-red) !important;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.k-cart-remove:hover { color: var(--k-red-dark) !important; }
.k-cart-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 44px; margin: 36px 0 0; }

.k-coupon h3 { margin: 0 0 6px; color: var(--k-navy); font-family: var(--k-font-bold); font-size: 1.25rem; }
.k-coupon p { margin: 0 0 16px; color: var(--k-ink); font-size: 1rem; }
.k-coupon__row { display: flex; align-items: stretch; }
.k-coupon__row input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--k-line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: var(--k-sand);
    color: var(--k-ink);
    font: 1.0625rem var(--k-font);
    box-shadow: none;
}
.k-coupon__row input[type="text"].error { border-color: var(--k-red); }
.k-coupon__row .k-btn { border-radius: 0 999px 999px 0; height: 56px; }
.k-coupon__row .k-btn::before { border-radius: 0 999px 999px 0; }

.k-summary {
    margin: 28px 0 0;
    padding: 26px 28px 24px;
    border: 1px solid var(--k-slate);
    border-radius: var(--k-radius);
    background: var(--k-white);
}
.k-summary h3 { margin: 0 0 18px; color: var(--k-navy); font-family: var(--k-font-bold); font-size: 1.5rem; }
.k-summary table { width: 100%; margin: 0 0 12px; border-collapse: collapse; }
.k-summary tr, .k-summary tfoot tr { background: transparent; }
.k-summary td {
    padding: 5px 0 !important;
    border: 0;
    background: none;
    color: var(--k-navy);
    font-size: 1.25rem;
    text-align: left;
}
.k-summary td + td { text-align: right; }
.k-summary tfoot td { padding-top: 14px !important; background: transparent !important; color: var(--k-navy) !important; font-family: var(--k-font-bold); font-size: 1.5rem; }
.k-summary tfoot td b { font-weight: normal; }
.k-summary__min { margin: 0 0 12px; color: var(--k-red); font-size: 1rem; }
.k-summary .k-btn { display: flex; width: 100%; margin: 8px 0 18px; }
.k-summary__note { margin: 0; color: var(--k-ink); font-size: 1rem; line-height: 1.4; }

/* --- 12. Responsive ------------------------------------------------------ */
@media (max-width: 1260px) {
    .k-carousel .owl-nav { left: -18px; right: -18px; }
}
@media (max-width: 991px) {
    .k-header__inner { flex-wrap: wrap; gap: 16px; padding: 14px 15px; }
    .k-header__logo { order: 1; }
    .k-header__logo img { height: 78px; }
    .k-header__actions { order: 2; margin-left: auto; }
    .k-header__search { order: 3; flex-basis: 100%; }
    .k-search { max-width: none; }
    .k-nav__list { display: none; }
    .k-nav__toggle { display: inline-block; }
    .k-usp__inner { flex-direction: column; gap: 10px; padding: 12px 15px; }
    .k-usp__item img { width: 46px; height: 38px; }
    .k-usp__title { font-size: 1.125rem; }
    .k-hero__inner { flex-direction: column; min-height: 0; text-align: center; }
    .k-hero__copy { flex-basis: auto; padding: 40px 0 16px; }
    .k-hero__title { font-size: 2.25rem; }
    .k-hero__text { font-size: 1.125rem; margin-left: auto; margin-right: auto; }
    .k-hero__image { position: static; width: 100%; max-width: none; transform: none; }
    .k-hero__text { font-size: 1.25rem; }
    .k-section { padding: 34px 0; }
    .k-section__title { font-size: 1.75rem; }
    .k-section__strap { font-size: 1.125rem; }
    .k-tiles, .k-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .k-tile__image { height: 160px; }
    .k-carousel .owl-nav { left: -8px; right: -8px; }
    .k-promo { margin-top: 70px; clip-path: inset(-80px 0 0 0); }
    .k-promo__inner { min-height: 0; text-align: center; }
    .k-promo__copy { max-width: none; padding: 110px 0 10px; }
    .k-promo__logo { width: 170px; left: 50%; top: -70px; transform: translateX(-50%); }
    .k-promo__image { position: static; width: 100%; max-width: none; }
    .k-promo__image img { transform: none; }
    .k-nav__list > li > a { font-size: 1rem; }
    .k-promo__title { font-size: 1.625rem; }
    .k-promo__image { width: 100%; align-self: auto; }
    .k-promo__image img { width: 100%; margin: 0; }
    .k-controls { grid-template-columns: 1fr; gap: 14px; }
    .k-product { grid-template-columns: 1fr; gap: 28px; }
    .k-basket { grid-template-columns: 1fr; gap: 30px; }
    .k-steps { margin: 20px auto 30px; }
    .k-steps li { font-size: 1rem; padding-bottom: 30px; }
    .k-cart-table thead { display: none; }
    .k-cart-table tr { display: block; border-bottom: 1px solid var(--k-slate); }
    .k-cart-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 0; text-align: right; }
    .k-cart-table td:first-child { display: block; text-align: left; }
    .k-cart-table td:not(:first-child)::before { content: attr(data-label); font-family: var(--k-font-bold); color: var(--k-navy); }
    .k-cart-table .k-qty__input { margin: 0; }
    .k-product__title { font-size: 1.75rem; }
    .k-price-table th, .k-price-table td { padding: 8px 14px; font-size: 1.0625rem; }
    .k-tabs__list { flex-direction: column; gap: 4px; }
    .k-tabs__tab { border-bottom: 1px solid var(--k-slate); border-radius: 10px; }
    .k-tabs__tab.is-active { margin-bottom: 0; border-radius: 10px 10px 0 0; }
    .k-tabs__panel { border-radius: 0 0 12px 12px; padding: 20px; }
    .k-page-title { font-size: 1.75rem; }
    .k-footer__inner { grid-template-columns: 1fr 1fr; gap: 26px; padding: 36px 15px 30px; }
    .k-footer__bar-inner { flex-direction: column; text-align: center; gap: 6px; }
}
@media (max-width: 480px) {
    .k-header__actions { gap: 16px; }
    .k-action { min-width: 48px; font-size: 0.75rem; }
    .k-action img { width: 32px; height: 32px; }
    .k-hero__title { font-size: 1.875rem; }
    .k-tiles { gap: 12px; }
    .k-tile__image { height: 130px; padding: 10px; }
    .k-footer__inner { grid-template-columns: 1fr; }
}

/* --- 13. Legacy bridge --------------------------------------------------- */
/* Pages whose bodies are not yet redesigned still include the old mobile
   search block; the new header carries the search box at every width. */
.input-top.mobile { display: none !important; }

/* Legacy style.css declares `a:hover { color: #58afe2 !important }`, so every
   new link hover colour has to be restated with !important here. */
.k-link:hover, .k-link:focus { color: var(--k-red) !important; }
.k-section--navy .k-link:hover, .k-section--navy .k-link:focus { color: var(--k-peach) !important; }
.k-action:hover, .k-action:focus { color: var(--k-red) !important; }
.k-card__title:hover, .k-card__title:focus { color: var(--k-blue) !important; }
.k-footer__links a:hover, .k-footer__phone:hover, .k-footer__email:hover { color: var(--k-red) !important; }
.k-footer__bar a:hover { color: var(--k-peach) !important; }
.k-nav .dropdown-menu > li > a:hover, .k-nav .dropdown-menu > li > a:focus { color: var(--k-navy) !important; }
.k-nav .mega-sub-menu > li > a:hover, .k-nav .mega-sub-menu > li > a:focus { color: var(--k-red) !important; }
.k-strip a:hover { color: var(--k-white) !important; }

/* Legacy page bodies float their sections (section/.best-sellers float:left),
   which let the footer's background rise up behind them. New chrome always
   clears. */
.k-header, .k-nav, .k-usp, .k-hero, .k-section, .k-promo, .k-footer, .k-strip { clear: both; }

/* Legacy category/search/new-products grids wrap the card in `.keyrings .item`
   and style its <img> directly; keep the new card intact there. */
.keyrings .item.k-card, .owl-carousel4 .item.k-card { min-height: 0 !important; height: auto !important; border-color: var(--k-line); background: var(--k-white); margin-bottom: 26px; }
.keyrings .item.k-card img, .k-card .k-card__image img { padding: 0 !important; width: auto !important; max-width: 100% !important; max-height: 100% !important; margin: 0; float: none; display: block; }
