.icon-cart {
    position: relative;
}

.icon-cart span {
    position: absolute;
    background-color: red;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    top: 50%;
    right: -20px;
}

svg {
    width: 20px;
}

.container2 {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto
}

@media (min-width:768px) {
    .container2 {
        width: 750px
    }
}

@media (min-width:992px) {
    .container2 {
        width: 970px
    }
}

@media (min-width:1200px) {
    .container2 {
        width: 1170px
    }
}

.container2-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto
}

body {
    font-size: 12px;
    font-family: 'Tajawal', 'Public Sans', sans-serif;
}

.gradient-violat {
    background-image: -moz-linear-gradient( 135deg, rgb(244, 202, 216) 0%, rgb(129, 112, 137) 35%, rgb(14, 21, 58) 100%);
    background-image: -webkit-linear-gradient( 135deg, rgb(244, 202, 216) 0%, rgb(129, 112, 137) 35%, rgb(14, 21, 58) 100%);
    background-image: -ms-linear-gradient( 135deg, rgb(244, 202, 216) 0%, rgb(129, 112, 137) 35%, rgb(14, 21, 58) 100%);
}

.btn-orange,
.gradient-orange {
    background-image: -webkit-linear-gradient(35deg, rgb(232, 88, 137) 0%, rgb(232, 98, 123) 32%, rgb(232, 108, 108) 100%);
    background-image: -o-linear-gradient(35deg, rgb(232, 88, 137) 0%, rgb(232, 98, 123) 32%, rgb(232, 108, 108) 100%);
    background-image: linear-gradient(125deg, rgb(232, 88, 137) 0%, rgb(232, 98, 123) 32%, rgb(232, 108, 108) 100%);
    box-shadow: 0px 8px 27px 0px rgba(116, 44, 69, 0.21);
}

.border-bottom {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    border: 0px;
}

.btn-orange.active,
.btn-orange:active {
    color: #fff;
    background-image: -webkit-linear-gradient(35deg, rgb(232, 88, 137) 0%, rgb(232, 98, 123) 32%, rgb(232, 108, 108) 100%);
    background-image: -o-linear-gradient(35deg, rgb(232, 88, 137) 0%, rgb(232, 98, 123) 32%, rgb(232, 108, 108) 100%);
    background-image: linear-gradient(125deg, rgb(232, 88, 137) 0%, rgb(232, 98, 123) 32%, rgb(232, 108, 108) 100%);
    border: 0px;
    border-color: transparent;
}

a {
    color: red;
}

.search {
    width: 900px;
    height: 40px;
    margin: 20px auto;
    background: #444;
    background: rgba(0, 0, 0, .2);
    border-radius: 3px;
    border: 1px solid #fff;
    input {
        width: 86%;
        padding: 10px 5px;
        float: left;
        color: #ccc;
        border: 0;
        background: transparent;
        border-radius: 3px 0 0 3px;
        &:focus {
            outline: 0;
            background: transparent;
        }
    }
    button {
        position: relative;
        float: right;
        border: 0;
        padding: 0;
        cursor: pointer;
        height: 40px;
        width: 14%;
        color: #fff;
        border-left: 1px solid #fff;
        border-radius: 0 3px 3px 0;
        &:hover {
            background: #fff;
            color: #444;
        }
        &:active {
            box-shadow: 0px 0px 12px 0px rgba(225, 225, 225, 1);
        }
        &:focus {
            outline: 0;
        }
    }
}

#cta {
    padding-top: 100px;
}

.dropdown-menu {
    min-width: 100%;
    /* Set the width to 100% of the parent element */
}

.home-slider2 .owl-controls {
    position: absolute;
    width: 100%;
    top: calc(50% - 35px);
}

.home-slider2 .owl-buttons {
    position: relative;
}

.home-slider2 .owl-prev {
    position: absolute;
    left: 0;
}

.home-slider2 .owl-next {
    position: absolute;
    right: 0;
}


/* Custom CSS */

.square-card {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Creates a square aspect ratio based on width */
    overflow: hidden;
    background-color: #fff;
    /* Optionally set a background color */
}

.square-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.square-card-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    /* Ensures the image covers the entire square area */
}

.product-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    /* Optional: Semi-transparent background for product name */
    padding: 8px;
}


/* Flexbox styling for the row */

.zp-array .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}


/* Styling for each brand block */

.autocat-array-block {
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
    width: 150px;
    /* Adjust width as needed */
    height: 150px;
    /* Adjust height as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.autocat-array-block:hover {
    background-color: var(--light) !important;
}


/* Styling for the brand title */

.zp-element-title {
    font-size: 14px;
    margin-top: 8px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .autocat-array-block {
        width: 120px;
        /* Adjust width for smaller screens */
        height: 120px;
        /* Adjust height for smaller screens */
    }
}

.sectionn {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container22 {
    border-radius: 12px;
    background-color: rgb(129, 112, 137);
    width: 90%;
    max-width: 500px;
    padding: 50px 20px;
    text-align: center;
}

.title {
    font-size: 25px;
    margin-bottom: 30px;
    color: white;
}

#otp-form {}

#otp-form input {
    max-width: 100%;
    height: 90px;
    border: 1px solid #198754;
    border-radius: 10px;
    font-size: 60px;
    text-align: center;
    font-weight: bold;
}

#otp-form input:focus-visible {
    outline: 2px solid royalblue;
}

#otp-form input.filled {
    outline: 2px solid rgb(7, 192, 99);
}

#verify-btn {
    cursor: pointer;
    display: inline-block;
    margin-top: 30px;
    background: royalblue;
    color: white;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 16px;
    border: none;
}


/* Additional CSS rules here */

:root {
    --sps-surface: #ffffff;
    --sps-page: #f7f8fa;
    --sps-border: #e7e9ee;
    --sps-ink: #1f2937;
}

body {
    background: var(--sps-page);
    color: var(--sps-ink);
}

.aiz-main-wrapper {
    background: var(--sps-page) !important;
}

.aiz-card-box,
.border.bg-white,
.modal-content {
    border-color: var(--sps-border) !important;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.06);
}

.btn {
    border-radius: 5px;
    font-weight: 600;
}

.form-control {
    border-color: #d9dee7;
    border-radius: 5px;
    min-height: 40px;
}

.form-control:focus {
    border-color: #f77b0b;
    box-shadow: 0 0 0 0.15rem rgba(247, 123, 11, 0.12);
}

.aiz-mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: var(--sps-border) !important;
    box-shadow: 0 -4px 18px rgba(31, 41, 55, 0.08);
}

@media (max-width: 767px) {
    .aiz-main-wrapper {
        padding-bottom: 76px;
    }

    footer {
        padding-bottom: 84px !important;
    }
}

/* Home */
.home-hero {
    /* Brand navy, so the orange search button is the one thing that pops. */
    background: #14213d;
    background-image:
        radial-gradient(circle at 78% 18%, rgba(247, 123, 11, 0.20), transparent 46%),
        radial-gradient(circle at 12% 88%, rgba(80, 122, 214, 0.18), transparent 52%),
        linear-gradient(160deg, #1b2b4f 0%, #14213d 48%, #101b33 100%);
    color: #fff;
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    display: none;
}

.home-hero-layout {
    min-height: 0;
    display: block;
    position: relative;
    z-index: 1;
}

.home-hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }

.section-kicker {
    display: inline-block;
    color: #f77b0b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-kicker {
    display: inline-block;
    background: rgba(247, 123, 11, 0.16);
    color: #ffb166;
    border: 1px solid rgba(247, 123, 11, 0.35);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}

.home-hero h1 {
    color: #fff;
    font-size: 40px;
    line-height: 1.22;
    margin: 18px 0 10px;
    font-weight: 800;
}

.home-hero p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.72);
}

.home-search-form {
    max-width: 680px;
    margin: 0 auto;
}

.home-search-form .input-group {
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    border: 0;
    box-shadow: 0 16px 38px rgba(4, 10, 26, 0.34);
}

/* Popular-search chips */
.home-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.home-suggestions-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.52);
    margin-inline-end: 2px;
}

.home-suggestion {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.home-suggestion:hover {
    background: rgba(247, 123, 11, 0.9);
    border-color: transparent;
    color: #fff;
}

/* Trust strip */
.home-trust {
    background: #fff;
    border-bottom: 1px solid var(--sps-border);
    padding: 26px 0;
}

.home-trust-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-trust-grid li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.home-trust-grid i {
    font-size: 23px;
    color: #f77b0b;
    line-height: 1.35;
    flex: 0 0 auto;
}

.home-trust-grid strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.home-trust-grid span {
    display: block;
    font-size: 12.5px;
    line-height: 1.6;
    color: #7b8494;
}

.home-search-form .form-control {
    border: 0;
    min-height: 50px;
    font-size: 14px;
    box-shadow: none;
}

.home-search-form .btn {
    min-width: 126px;
    background: #f77b0b;
    border-color: #f77b0b;
    color: #fff;
}

.home-search-form .btn i {
    margin-left: 6px;
}

.catalog-section,
.reviews-section {
    padding-top: 44px;
    padding-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2 {
    color: #17213d;
    font-size: 25px;
    font-weight: 800;
    margin: 5px 0 0;
}

.catalog-count {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    background: #fff;
    border: 1px solid var(--sps-border);
    padding: 7px 10px;
    border-radius: 4px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 12px;
}

.catalog-brand-card {
    min-height: 138px;
    padding: 18px 14px 14px;
    background: #fff;
    border: 1px solid var(--sps-border);
    border-radius: 9px;
    color: #27324a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.catalog-brand-card:hover {
    color: #14213d;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: #f6b779;
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.09);
}

.catalog-brand-image {
    height: 62px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-brand-image img {
    max-height: 56px;
    max-width: 78px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Brand marks are a wall of competing colour; let the hovered one lead. */
    filter: grayscale(0.25);
    transition: filter 160ms ease;
}

.catalog-brand-card:hover .catalog-brand-image img {
    filter: grayscale(0);
}

.catalog-brand-name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.reviews-section { padding-bottom: 64px; }

.review-card {
    border: 1px solid var(--sps-border);
    border-radius: 7px;
    box-shadow: none;
}

.review-card .card-body { padding: 24px; }
.review-card .card-title { color: #202b45; }
.review-card .card-text { color: #667085; font-size: 13px; line-height: 1.8; }

/* Shared navigation and footer */
header.gradient-violat {
    background: #fff;
    background-image: none;
    box-shadow: 0 1px 0 #e7eaf0;
}

header .logo-wraper img {
    height: 42px !important;
    width: auto;
}

header .header_menu_links {
    font-size: 14px !important;
    letter-spacing: 0;
}

header .btn-topbar {
    border: 1px solid #dce1e9;
    background: transparent !important;
}

header .nav-user-info a,
header .aiz-topbar-item a {
    color: #14213d !important;
    opacity: 0.9 !important;
}

header .nav-user-info a:hover,
header .aiz-topbar-item a:hover { opacity: 1 !important; }

footer.bg-black {
    background: #0b1328 !important;
}

footer .fs-14 { color: rgba(255, 255, 255, 0.62); }

@media (max-width: 767px) {
    header .logo-wraper img { height: 34px !important; }
    header .logo-bar-area { min-height: 54px; }
}

/* Checkout — card payment */
.payment-card-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 14px;
    border: 1px solid var(--sps-border);
    border-radius: 7px;
    background: #fbfcfd;
    font-size: 13px;
    line-height: 1.7;
    color: #687386;
}

.payment-card-note i {
    color: #12925a;
    font-size: 17px;
    line-height: 1.5;
}

.payment-error {
    color: #b42318;
    font-size: 13px;
    margin-top: 10px;
}

.btn-pay-card {
    background: #f77b0b;
    border-color: #f77b0b;
    color: #fff;
}

.btn-pay-card:disabled { opacity: 0.6; }

/* Payment return page */
.payment-return {
    padding: 64px 0 96px;
    display: flex;
    justify-content: center;
}

.payment-return-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--sps-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
    padding: 44px 32px;
    text-align: center;
}

.payment-return-card h1 {
    font-size: 23px;
    font-weight: 800;
    color: #14213d;
    margin: 20px 0 10px;
}

.payment-return-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #687386;
    margin: 0;
}

.payment-return-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-size: 52px;
    line-height: 1;
}

.payment-return-icon.is-success { color: #12925a; }
.payment-return-icon.is-error { color: #b42318; }
.payment-return-icon.is-waiting { color: #f77b0b; }

.payment-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e7e9ee;
    border-top-color: #f77b0b;
    border-radius: 50%;
    animation: payment-spin 900ms linear infinite;
}

@keyframes payment-spin {
    to { transform: rotate(360deg); }
}

.payment-return-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.payment-return-note {
    margin-top: 18px !important;
    font-size: 13px !important;
}

.payment-return-ref {
    margin-top: 14px !important;
    font-size: 12px !important;
    color: #9aa1ae !important;
}

@media (prefers-reduced-motion: reduce) {
    .payment-spinner { animation-duration: 3s; }
}

@media (max-width: 991px) {
    .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 767px) {
    .home-hero { padding: 42px 0 38px; }
    .home-hero-layout { min-height: 0; display: block; }
    .home-hero h1 { font-size: 27px; }
    .home-hero p { font-size: 14px; margin-bottom: 20px; }
    .home-kicker { font-size: 11px; padding: 5px 12px; }
    .home-search-form .input-group { display: flex; flex-wrap: nowrap; }
    .home-search-form .btn { min-width: 50px; padding: 0 14px; }
    .home-search-form .btn span { display: none; }
    .home-search-form .btn i { margin: 0; font-size: 19px; }
    .home-suggestions { gap: 6px; margin-top: 16px; }
    .home-suggestions-label { width: 100%; text-align: center; margin-bottom: 2px; }
    .home-suggestion { font-size: 12px; padding: 5px 11px; }
    .home-trust { padding: 18px 0; }
    .home-trust-grid { grid-template-columns: 1fr; gap: 14px; }
    .home-trust-grid i { font-size: 20px; }
    .catalog-section, .reviews-section { padding-top: 32px; }
    .section-heading h2 { font-size: 20px; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .catalog-brand-card { min-height: 118px; padding: 14px 10px; gap: 9px; }
    .catalog-brand-image { height: 50px; }
    .catalog-brand-image img { max-height: 46px; }
    .catalog-brand-name { font-size: 12.5px; }
}

/* ==================================================================
   Site-wide design system
   ------------------------------------------------------------------
   Brings the older AIZ-theme pages onto the same navy (#14213d) +
   orange (#f77b0b) system the home page uses. This is the last
   stylesheet loaded, so these rules win without touching vendor CSS.
   ================================================================== */

:root {
    --sps-navy: #14213d;
    --sps-navy-soft: #27324a;
    --sps-accent: #f77b0b;
    --sps-accent-dark: #d96806;
    --sps-muted: #6b7484;
    --sps-radius: 8px;
}

/* Links were globally red, fighting the accent colour on every page. */
a {
    color: var(--sps-accent-dark);
}

a:hover {
    color: var(--sps-accent);
}

a.text-reset,
a.text-reset:hover,
.breadcrumb a,
footer a,
header a {
    color: inherit;
}

/* ---------- Page heroes --------------------------------------------
   Content pages used a pink/violet gradient left over from the old
   theme. Same navy treatment as the home hero instead.             */

section.gradient-violat {
    background: var(--sps-navy);
    background-image:
        radial-gradient(circle at 78% 18%, rgba(247, 123, 11, 0.18), transparent 46%),
        linear-gradient(160deg, #1b2b4f 0%, #14213d 48%, #101b33 100%) !important;
    color: #fff;
    padding: 52px 0 46px !important;
}

section.gradient-violat h1,
section.gradient-violat .cta-heading {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

section.gradient-violat p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.8;
    max-width: 640px;
    margin-inline: auto;
}

.display-4 {
    font-size: 34px;
}

/* ---------- Buttons ------------------------------------------------ */

.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn-primary,
.btn-danger,
.buy-now {
    background-color: var(--sps-accent) !important;
    border-color: var(--sps-accent) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-danger:hover,
.buy-now:hover {
    background-color: var(--sps-accent-dark) !important;
    border-color: var(--sps-accent-dark) !important;
}

.btn-primary:focus,
.btn-danger:focus {
    box-shadow: 0 0 0 0.18rem rgba(247, 123, 11, 0.28) !important;
}

.btn-secondary {
    background-color: #fff !important;
    border-color: #d7dde7 !important;
    color: var(--sps-navy) !important;
}

.btn-secondary:hover {
    background-color: #f4f6f9 !important;
    border-color: #c3ccda !important;
}

.btn-link {
    color: var(--sps-accent-dark) !important;
}

/* ---------- Headings and dividers ---------------------------------- */

.heading-wrapper h1,
.heading-wrapper h2,
.heading-wrapper h4 {
    color: var(--sps-navy);
    font-weight: 800;
}

/* The gradient rule under headings rendered as a stray grey smear. */
hr.heading-divider {
    width: 54px;
    height: 3px;
    border: 0;
    border-radius: 3px;
    background: var(--sps-accent) !important;
    background-image: none !important;
    margin: 12px auto 0;
    opacity: 1;
}

.margin-bottom-80 {
    margin-bottom: 34px !important;
}

/* ---------- Cards, panels, forms ----------------------------------- */

.card,
.aiz-card-box,
.border.bg-white {
    border: 1px solid var(--sps-border) !important;
    border-radius: var(--sps-radius) !important;
    box-shadow: 0 2px 10px rgba(20, 33, 61, 0.05);
}

.card.rounded-0 {
    border-radius: var(--sps-radius) !important;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--sps-border);
}

label,
.form-group label {
    color: #364152;
    font-weight: 600;
    font-size: 13px;
}

.form-control {
    border-radius: 6px;
}

/* ---------- Breadcrumb --------------------------------------------- */

.breadcrumb {
    font-size: 12.5px;
    padding: 0;
    margin-bottom: 18px;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #b8bfcc;
}

.breadcrumb .text-dark {
    color: var(--sps-navy) !important;
}

/* ---------- Catalog brand tiles -------------------------------------
   Catalog pages render tiles from scraped markup with their own
   classes, so the home page card rules do not reach them.          */

.autocat-array-block {
    border: 1px solid var(--sps-border) !important;
    border-radius: 9px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 132px;
    padding: 18px 12px !important;
    gap: 10px;
    color: var(--sps-navy-soft) !important;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.autocat-array-block:hover {
    transform: translateY(-3px);
    border-color: #f6b779 !important;
    background-color: #fff !important;
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.09);
}

.autocat-array-block img {
    max-height: 56px;
    max-width: 82px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.25);
    transition: filter 160ms ease;
}

.autocat-array-block:hover img {
    filter: grayscale(0);
}

.zp-element-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Search results ----------------------------------------- */

.results-searchbar {
    background: #fff !important;
    border-bottom: 1px solid var(--sps-border);
    padding: 16px 0 !important;
}

.results-searchbar .input-group {
    max-width: 780px;
    margin-inline: auto;
    border: 1px solid #d7dde7;
    border-radius: 7px;
    padding: 4px;
    background: #fff;
}

.results-searchbar .form-control {
    border: 0 !important;
    box-shadow: none !important;
    min-height: 42px;
    border-radius: 6px !important;
}

.results-searchbar .btn {
    min-width: 108px;
    border-radius: 6px !important;
}

/* The product card had a hard 460px floor, leaving a large empty gap
   between the title and the price on every single result. */
.aiz-card-box.h-auto {
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-media {
    position: relative;
    height: 168px;
    min-height: 168px;
    max-height: 168px;
    background: #fbfcfd;
    border-bottom: 1px solid var(--sps-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-media > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.product-media img {
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 !important;
}

.product-badges {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 2;
}

.product-badge {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.6;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-badge-num {
    background: var(--sps-accent);
}

.product-badge-brand {
    background: #46586f;
}

.product-body {
    padding: 12px 13px 0;
    flex-grow: 1;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--sps-navy-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--sps-accent-dark);
    text-decoration: none;
}

.product-foot {
    padding: 10px 13px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--sps-navy);
    white-space: nowrap;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-to-cart-btn {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

.share-btn {
    height: 34px !important;
    width: 34px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde7;
    background: #fff;
    color: var(--sps-muted);
}

.share-btn:hover {
    border-color: #c3ccda;
    color: var(--sps-navy);
}

/* ---------- Empty and helper states -------------------------------- */

.empty-state {
    max-width: 640px;
    margin: 40px auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 36px 28px;
}

.empty-state i {
    font-size: 40px;
    color: #c7cedb;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--sps-navy);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--sps-muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.empty-state .contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 7px;
    font-size: 13.5px;
    color: #566072;
}

/* ---------- Content pages (terms, privacy, returns, support) -------- */

.policy-body {
    background: #fff;
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 34px 32px;
    margin: 34px auto 56px;
    max-width: 880px;
}

.policy-body h2,
.policy-body h3,
.policy-body h4 {
    color: var(--sps-navy);
    font-weight: 800;
    margin-top: 26px;
    margin-bottom: 10px;
}

.policy-body h2:first-child,
.policy-body h3:first-child,
.policy-body h4:first-child {
    margin-top: 0;
}

.policy-body p,
.policy-body li {
    color: #566072;
    font-size: 14px;
    line-height: 1.95;
}

.policy-body ul {
    padding-inline-start: 18px;
}

.policy-body li {
    margin-bottom: 7px;
}

/* Bullets were emoji ticks, which render in the font's own colour and
   cannot be themed. They are real icons now. */
.policy-body .la-check {
    color: #12925a !important;
    font-size: 15px;
    margin-inline-end: 4px;
}

.policy-body .la-angle-left {
    color: var(--sps-accent) !important;
    font-size: 12px;
    margin-inline-end: 5px;
}

.policy-list {
    list-style: none;
    padding-inline-start: 0;
}

.policy-list li {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

/* ---------- Footer -------------------------------------------------- */

.policy-file a {
    transition: background-color 140ms ease;
}

.policy-file a:hover {
    background: #f4f6f9;
}

.policy-file svg path {
    fill: var(--sps-muted);
}

.policy-file a:hover svg path {
    fill: var(--sps-accent);
}

.policy-file h4 {
    color: var(--sps-navy) !important;
}

/* ---------- No sideways scrolling ------------------------------------
   Every page scrolled 12px horizontally on a phone, which is what makes
   a site feel broken: you swipe to scroll and the whole page slides.
   The source was the header's nested Bootstrap .container, fixed just
   below — this is the backstop so no future page can reintroduce it.
   `clip` rather than `hidden`: hidden would make the body a scroll
   container and break the sticky header.                            */

html,
body {
    overflow-x: clip;
    max-width: 100%;
}

/* ---------- Header --------------------------------------------------
   The nav links sat in a nested .container inside a flex-grow wrapper,
   which pushed them into the middle and left a wide empty gap beside
   the logo. Let the row lay itself out instead.                     */

header .logo-bar-area .container {
    max-width: 100%;
    width: 100%;
}

header .front-header-search {
    flex-grow: 1;
    margin-inline: 12px !important;
    /* A flex item defaults to min-width:auto and refuses to shrink below
       its content — this is what pushed the row past the viewport. */
    min-width: 0;
}

header .front-header-search .container,
header .front-header-search .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
}

header .front-header-search .overflow-hidden {
    min-width: 0;
}

header .front-header-search .ml-xl-4 {
    margin-inline-start: 0 !important;
}

header .front-header-search .justify-content-center {
    justify-content: flex-start !important;
}

header .header_menu_links {
    padding-inline: 12px !important;
    color: var(--sps-navy) !important;
    font-weight: 700;
    border-radius: 6px;
}

header .header_menu_links:hover {
    background: #f4f6f9;
    color: var(--sps-accent-dark) !important;
    text-decoration: none;
}

header .logo-bar-area > .container > .d-flex {
    min-height: 62px;
    gap: 4px;
}

/* The cart sat as a bare <li> in a flex row, so it never aligned. */
header li.list-inline-item > a {
    display: inline-flex !important;
    align-items: center;
    padding: 8px 10px !important;
}

header .nav-user-info a {
    font-size: 14px !important;
    white-space: nowrap;
}

/* ---------- Mobile bottom nav --------------------------------------- */

.aiz-mobile-bottom-nav {
    border-radius: 0 !important;
}

.aiz-mobile-bottom-nav a:hover {
    color: var(--sps-accent) !important;
}

/* ---------- Responsive ---------------------------------------------- */

@media (max-width: 767px) {
    section.gradient-violat {
        padding: 34px 0 30px !important;
    }

    section.gradient-violat h1,
    section.gradient-violat .cta-heading,
    .display-4 {
        font-size: 24px;
    }

    section.gradient-violat p {
        font-size: 13.5px;
    }

    .policy-body {
        padding: 22px 18px;
        margin: 22px auto 40px;
        border-radius: 7px;
    }

    .policy-body p,
    .policy-body li {
        font-size: 13.5px;
    }

    .results-searchbar {
        padding: 12px 0 !important;
    }

    .results-searchbar .btn {
        min-width: 52px;
    }

    .product-media {
        height: 128px;
    }

    .product-media img {
        max-height: 112px;
    }

    .product-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .product-actions {
        justify-content: space-between;
    }

    .add-to-cart-btn {
        flex: 1;
    }

    .autocat-array-block {
        min-height: 112px;
        padding: 13px 9px !important;
    }

    .autocat-array-block img {
        max-height: 46px;
    }

    .empty-state {
        padding: 26px 18px;
        margin: 26px auto;
    }
}


/* ==================================================================
   Mobile
   ------------------------------------------------------------------
   Phones are most of this site's traffic. Everything here is about
   thumbs: nothing smaller than 40px to tap, no sideways scroll, and
   the header reduced to the three things that matter on a phone.
   ================================================================== */

@media (max-width: 767px) {

    /* --- Header ---------------------------------------------------- */

    header .logo-bar-area > .container > .d-flex {
        min-height: 56px;
        gap: 2px;
        flex-wrap: nowrap;
    }

    header .front-header-search {
        margin-inline: 4px !important;
    }

    /* The single "Home" link duplicates the bottom nav on a phone and
       only crowds the bar. */
    header .front-header-search .hor-swipe {
        display: none !important;
    }

    /* Login / Register are in the side menu on mobile. */
    header .nav-user-info {
        display: none !important;
    }

    header .logo-wraper img {
        height: 32px !important;
    }

    /* Thumb-sized targets for the icons that remain. */
    header li.list-inline-item > a,
    header .aiz-topbar-item > .dropdown > a,
    header button[data-toggle="class-toggle"] {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    header .btn-topbar {
        width: 34px;
        height: 34px;
    }

    /* --- Bottom nav ------------------------------------------------ */

    .aiz-mobile-bottom-nav a {
        min-height: 54px;
        padding-top: 8px !important;
        padding-bottom: 6px !important;
    }

    .aiz-mobile-bottom-nav svg {
        width: 19px;
        height: 19px;
    }

    .aiz-mobile-bottom-nav .fs-10 {
        font-size: 11px !important;
    }

    /* Keep the fixed bar clear of the iPhone home indicator. */
    .aiz-mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .aiz-main-wrapper {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* --- Universal tap-target floor -------------------------------- */

    .btn,
    .form-control,
    select.form-control {
        min-height: 44px;
    }

    .btn-sm,
    .btn-icon {
        min-height: 38px;
    }

    /* --- Typography ------------------------------------------------ */

    body {
        font-size: 14px;
    }

    /* Anything under 16px makes iOS zoom the page on focus. */
    input,
    select,
    textarea,
    .form-control {
        font-size: 16px !important;
    }

    /* --- Results --------------------------------------------------- */

    .results-searchbar .input-group {
        padding: 3px;
    }

    .product-foot {
        padding: 10px;
    }

    .product-body {
        padding: 10px 10px 0;
    }

    .product-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 12.5px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-badge {
        max-width: 108px;
        font-size: 10px;
    }

    /* --- Tables ----------------------------------------------------
       Wide tables must scroll inside their own box, never widen the
       page. */
    .table-responsive,
    .aiz-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        max-width: 100%;
    }

    /* --- Long strings ---------------------------------------------- */

    .policy-body,
    .product-title,
    .cart-product-name,
    .empty-state {
        overflow-wrap: anywhere;
    }
}

/* Show-more control on the results grid */
.results-more {
    display: flex;
    justify-content: center;
    margin: 6px 0 30px;
}

.results-more .btn {
    min-width: 220px;
}

.results-count {
    text-align: center;
    font-size: 13px;
    color: var(--sps-muted);
    margin-bottom: 18px;
}

.product-col.is-hidden {
    display: none;
}
