/*
  WhisperPower storefront polish layer
  Keeps nopCommerce 4.x markup/logic intact and overrides the legacy visual layer only.
  Official brand palette is derived from the supplied WhisperPower oval logo.
*/

:root {
    --wp-teal: #00766d;
    --wp-teal-dark: #004f4a;
    --wp-teal-deep: #033b38;
    --wp-teal-soft: #eaf5f3;
    --wp-silver: #d6dfdd;
    --wp-ink: #20302e;
    --wp-muted: #667572;
    --wp-line: #dfe8e6;
    --wp-paper: #ffffff;
    --wp-canvas: #f5f8f7;
    --wp-shadow: 0 18px 48px rgba(1, 53, 49, 0.10);
    --wp-shadow-soft: 0 8px 26px rgba(1, 53, 49, 0.08);
    --wp-radius: 16px;
    --wp-radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    background: var(--wp-canvas);
}

body {
    background: linear-gradient(180deg, #ffffff 0, var(--wp-canvas) 420px, var(--wp-canvas) 100%) !important;
    background-image: none !important;
    color: var(--wp-ink) !important;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--wp-teal-deep) !important;
    font-family: inherit;
    letter-spacing: -0.015em;
}

a {
    color: var(--wp-teal-dark);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a:hover { color: var(--wp-teal); }

::selection {
    background: #c9e8e3;
    color: #092e2b;
}

*:focus-visible {
    outline: 3px solid rgba(0, 118, 109, .30) !important;
    outline-offset: 3px;
}

/* --- Main frame --- */
.master-wrapper-page {
    min-height: 100vh;
}

.master-wrapper-content {
    width: min(1200px, calc(100% - 32px)) !important;
    margin: 28px auto 0 !important;
}

.master-column-wrapper {
    background: var(--wp-paper) !important;
    border: 1px solid rgba(0, 79, 74, .08);
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow-soft);
    overflow: hidden;
}

.center-1,
.center-2,
.side-2 {
    background: transparent !important;
    color: var(--wp-ink);
}

.page {
    padding: 42px 38px 48px;
    text-align: left;
}

.page-title {
    min-height: auto;
    margin: 0 0 30px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--wp-line);
}

.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 650;
}

.center-1 .page-title,
.center-1 .title {
    text-align: left;
}

.topic-block,
.topic-page,
.category-description,
.manufacturer-description,
.full-description,
.news-body,
.post-body {
    color: var(--wp-ink) !important;
}

.topic-block p,
.topic-page p,
.category-description p,
.manufacturer-description p,
.full-description p,
.news-body p,
.post-body p {
    margin: 0 0 16px !important;
    color: var(--wp-ink);
    line-height: 1.75;
}

.topic-block-body {
    line-height: 1.75;
}

/* --- Header / official branding --- */
.header {
    width: min(1200px, calc(100% - 32px)) !important;
    margin: 0 auto !important;
    overflow: visible !important;
    color: var(--wp-ink);
    text-align: left;
}

.header-upper {
    min-height: 0;
    color: var(--wp-muted);
}

.header-selectors-wrapper,
.header-links-wrapper {
    color: var(--wp-muted);
}

.header-links a,
.header-links span {
    color: var(--wp-muted);
}

.header-links a:hover { color: var(--wp-teal); }

#topcartlink {
    background: var(--wp-teal) !important;
    border-radius: 999px;
}

#topcartlink a { background-color: transparent !important; color: #fff; }

.header-lower {
    min-height: 132px;
    padding: 22px 26px 18px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: block !important;
    width: auto;
    text-align: left !important;
}

.header-logo a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: visible !important;
}

.header-logo a img {
    width: clamp(250px, 29vw, 360px);
    height: auto;
    max-width: 100%;
    display: block;
    opacity: 1 !important;
    filter: drop-shadow(0 8px 18px rgba(0, 70, 64, .08));
}

.search-box.store-search-box {
    display: none !important;
}

/* --- Navigation --- */
.header-menu {
    width: min(1200px, calc(100% - 32px)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--wp-teal-deep), var(--wp-teal-dark)) !important;
    box-shadow: 0 12px 26px rgba(0, 62, 57, .18);
    text-align: center;
    overflow: visible;
}

.header-menu > ul > li {
    border-left: 0 !important;
    padding: 0 3px !important;
}

.header-menu > ul > li > a,
.header-menu > ul > li > span {
    position: relative;
    padding: 18px 16px !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: .01em;
}

.header-menu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 11px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
    opacity: .9;
}

.header-menu > ul > li:hover > a,
.header-menu > ul > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.06);
}

.header-menu > ul > li > a:hover::after { transform: scaleX(1); }

.header-menu .sublist {
    border: 1px solid var(--wp-line);
    border-radius: 10px;
    box-shadow: var(--wp-shadow-soft);
    background: #fff !important;
    overflow: hidden;
}

.header-menu .sublist li a {
    color: var(--wp-ink) !important;
}

.header-menu .sublist li:hover > a {
    background: var(--wp-teal-soft) !important;
    color: var(--wp-teal-dark) !important;
}

.header-menu .sublist li a:before { background: var(--wp-teal) !important; }

/* --- Homepage hero/content --- */
.html-home-page .master-column-wrapper {
    border-radius: 18px;
}

.home-page {
    padding-top: 32px;
}

.home-page .topic-block {
    margin: 0 0 34px;
    text-align: left;
}

.home-page .topic-block-title h2,
.topic-block-title h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 650;
}

.imgpage,
.imgPg,
.imgPgSmall,
.home-page .topic-block img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 22px auto !important;
    border-radius: 14px;
    box-shadow: var(--wp-shadow-soft);
}

/* --- Grids and cards --- */
.product-grid,
.category-grid,
.manufacturer-grid,
.sub-category-grid,
.news-list-homepage {
    margin-top: 34px;
}

.product-grid > .title,
.category-grid > .title,
.manufacturer-grid > .title,
.news-list-homepage > .title {
    margin: 0 0 22px !important;
    border: 0 !important;
    text-align: left !important;
}

.product-grid > .title strong,
.category-grid > .title strong,
.manufacturer-grid > .title strong,
.news-list-homepage > .title strong {
    color: var(--wp-teal-deep) !important;
    font-size: clamp(23px, 2.6vw, 31px) !important;
    font-weight: 650 !important;
}

.product-grid .item-grid,
.category-grid .item-grid,
.manufacturer-grid .item-grid,
.sub-category-grid .item-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.product-grid .item-box,
.category-grid .item-box,
.manufacturer-grid .item-box,
.sub-category-grid .item-box,
.home-page .product-grid .item-box,
.product-details-page .product-grid .item-box,
.shopping-cart-page .product-grid .item-box {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    border: 1px solid var(--wp-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(4, 63, 59, .055);
    overflow: hidden;
    transition: transform .20s ease, box-shadow .20s ease, border-color .20s ease;
}

.product-grid .item-box:hover,
.category-grid .item-box:hover,
.manufacturer-grid .item-box:hover,
.sub-category-grid .item-box:hover {
    transform: translateY(-3px);
    border-color: #bfd5d1;
    box-shadow: 0 14px 34px rgba(4, 63, 59, .11);
}

.item-box .picture,
.category-grid .picture,
.manufacturer-grid .picture {
    margin: 0 !important;
    background: linear-gradient(180deg, #fbfdfd, #f3f7f6);
}

.item-box .picture a img,
.category-grid .picture img,
.manufacturer-grid .picture img {
    max-width: 92% !important;
    max-height: 92% !important;
    transition: transform .22s ease;
}

.item-box:hover .picture a img { transform: scale(1.025); }

.item-box .details {
    padding: 20px 20px 22px !important;
}

.item-box .product-title,
.category-grid .title,
.manufacturer-grid .title {
    min-height: 0 !important;
    margin: 0 0 10px !important;
    font-size: 18px !important;
    line-height: 1.35;
    font-weight: 650;
}

.item-box .product-title a,
.category-grid .title a,
.manufacturer-grid .title a {
    color: var(--wp-teal-deep) !important;
}

.item-box .product-title a:hover,
.category-grid .title a:hover,
.manufacturer-grid .title a:hover {
    color: var(--wp-teal) !important;
}

.item-box .description {
    color: var(--wp-muted) !important;
    line-height: 1.6;
}

.item-box .prices {
    color: var(--wp-teal-deep) !important;
    min-height: 0 !important;
}

.item-box .actual-price,
.product-price span {
    color: var(--wp-teal-dark) !important;
    font-weight: 700;
}

.item-box .buttons {
    text-align: left !important;
    margin-top: 16px;
}

/* --- Buttons and controls --- */
input[type="button"],
input[type="submit"],
input[type="reset"],
button,
.button-1,
.button-2 {
    border-radius: 9px !important;
    font-family: inherit !important;
    font-weight: 650;
    letter-spacing: .01em;
}

.button-1,
.item-box .product-box-add-to-cart-button,
.overview .add-to-cart-button,
.variant-overview .add-to-cart-button,
.search-box .search-box-button,
.newsletter-email .newsletter-subscribe-button,
input.button-1,
button.button-1 {
    border: 1px solid var(--wp-teal) !important;
    background: var(--wp-teal) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 118, 109, .16);
}

.button-1:hover,
.item-box .product-box-add-to-cart-button:hover,
.overview .add-to-cart-button:hover,
.variant-overview .add-to-cart-button:hover,
.newsletter-email .newsletter-subscribe-button:hover,
input.button-1:hover,
button.button-1:hover {
    border-color: var(--wp-teal-dark) !important;
    background: var(--wp-teal-dark) !important;
}

.button-2,
.item-box .add-to-compare-list-button,
.item-box .add-to-wishlist-button {
    border: 1px solid #c8d8d5 !important;
    background-color: #f7faf9 !important;
    color: var(--wp-teal-dark) !important;
}

.button-2:hover,
.item-box .add-to-compare-list-button:hover,
.item-box .add-to-wishlist-button:hover {
    border-color: #9fbdb8 !important;
    background-color: var(--wp-teal-soft) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    border: 1px solid #cfdcda !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--wp-ink) !important;
    font-family: inherit !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--wp-teal) !important;
    box-shadow: 0 0 0 3px rgba(0,118,109,.10);
}

/* --- Breadcrumbs --- */
.breadcrumb {
    margin: 0 0 18px;
    border: 0 !important;
    background: transparent !important;
}

.breadcrumb li,
.breadcrumb li * { color: var(--wp-muted) !important; }
.breadcrumb a:hover { color: var(--wp-teal) !important; }

/* --- Product detail pages --- */
.product-details-page {
    color: var(--wp-ink);
}

.gallery .picture {
    border: 1px solid var(--wp-line) !important;
    border-radius: 14px;
    background: #f9fbfa;
    overflow: hidden;
}

.gallery .picture-thumbs .thumb-item {
    border-radius: 8px;
    overflow: hidden;
}

.overview .product-name h1,
.variant-overview .variant-name {
    color: var(--wp-teal-deep) !important;
    font-weight: 650;
}

.overview .short-description,
.variant-overview .variant-description,
.overview .additional-details,
.variant-overview .additional-details {
    color: var(--wp-muted) !important;
}

.product-specs-box,
.product-variant-line,
.product-collateral {
    color: var(--wp-ink);
}

/* --- Tables / account / forms --- */
.data-table,
.cart,
.forum-table {
    color: var(--wp-ink);
    background: #fff;
}

.data-table th,
.cart th,
.forum-table th {
    background: var(--wp-teal-soft) !important;
    color: var(--wp-teal-deep) !important;
}

.fieldset,
.section {
    color: var(--wp-ink);
}

.fieldset .title strong,
.section .title strong {
    color: var(--wp-teal-deep) !important;
}

/* --- News --- */
.news-list-homepage .news-items,
.news-list-page .news-items {
    display: grid;
    gap: 18px;
}

.news-list-homepage .news-item,
.news-list-page .news-item {
    border: 1px solid var(--wp-line) !important;
    border-radius: 12px;
    background: #fff;
    padding: 22px !important;
    box-shadow: 0 6px 20px rgba(4,63,59,.05);
}

.news-title,
.news-title a {
    color: var(--wp-teal-deep) !important;
}

/* --- Footer --- */
.footer {
    width: 100% !important;
    max-width: none !important;
    margin: 56px 0 0 !important;
    background: linear-gradient(145deg, #043f3b, #022f2c) !important;
    color: rgba(255,255,255,.82) !important;
    text-align: left !important;
}

.footer::before {
    content: "";
    display: block;
    width: min(220px, calc(100% - 48px));
    height: 98px;
    margin: 0 auto;
    padding-top: 28px;
    background: url('../images/logo.png') center bottom / contain no-repeat;
}

.footer-upper {
    width: min(1200px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 34px 0 30px !important;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

.footer-block {
    color: rgba(255,255,255,.82) !important;
}

.footer-block .title {
    margin: 0 0 10px !important;
    background: transparent !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 650;
}

.footer-block .title strong {
    color: #fff !important;
    font-weight: 650 !important;
}

.footer-block .list {
    background: transparent !important;
    padding: 0 !important;
}

.footer-block .list a {
    padding: 5px 0 !important;
    color: rgba(255,255,255,.74) !important;
}

.footer-block .list a:hover { color: #fff !important; }

.follow-us,
.follow-us .social,
.newsletter {
    color: rgba(255,255,255,.82) !important;
}

.newsletter-email input[type="text"] {
    background: rgba(255,255,255,.98) !important;
}

.footer-lower {
    width: min(1200px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 22px 0 26px !important;
    color: rgba(255,255,255,.63) !important;
}

.footer-disclaimer,
.footer-info,
.footer-powered-by,
.footer-powered-by a,
.footer-tax-shipping,
.footer-tax-shipping a {
    color: rgba(255,255,255,.63) !important;
}

.footer-powered-by a:hover,
.footer-tax-shipping a:hover { color: #fff !important; }

/* --- Mobile --- */
@media (max-width: 1000px) {
    .header,
    .header-menu,
    .master-wrapper-content {
        width: min(94%, calc(100% - 24px)) !important;
    }

    .header-lower {
        min-height: 110px;
        padding: 18px 12px;
        justify-content: center;
    }

    .header-logo { text-align: center !important; }
    .header-logo a img { width: min(320px, 78vw); }

    .header-menu {
        padding: 8px !important;
        border-radius: 12px;
    }

    .menu-toggle {
        border-radius: 8px;
        background-color: rgba(255,255,255,.08) !important;
        color: #fff !important;
        padding: 14px 48px 14px 16px !important;
    }

    .top-menu > li {
        margin: 4px 0 !important;
        border-radius: 8px;
        background: rgba(255,255,255,.07) !important;
        overflow: hidden;
    }

    .top-menu > li > a {
        color: #fff !important;
        min-height: 48px !important;
        padding: 14px 16px !important;
    }

    .top-menu .sublist {
        border-radius: 8px;
        background: #fff !important;
    }

    .top-menu .sublist li a { color: var(--wp-ink) !important; }

    .page { padding: 32px 24px 38px; }

    .gallery,
    .overview {
        float: none !important;
        width: 100% !important;
    }

    .overview { margin-top: 28px; }

    .footer::before {
        width: 190px;
        height: 88px;
    }

    .footer-upper,
    .footer-lower {
        width: min(94%, calc(100% - 30px)) !important;
    }

    .footer-block {
        float: none !important;
        width: 100% !important;
        margin: 0 0 6px !important;
    }

    .footer-block .title {
        position: relative;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    .footer-block .list {
        margin: 0 0 14px !important;
    }
}

@media (max-width: 600px) {
    .master-wrapper-content { margin-top: 18px !important; }
    .master-column-wrapper { border-radius: 12px; }
    .page { padding: 26px 18px 32px; }
    .page-title h1 { font-size: 28px; }

    .product-grid .item-grid,
    .category-grid .item-grid,
    .manufacturer-grid .item-grid,
    .sub-category-grid .item-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .imgpage,
    .imgPg,
    .imgPgSmall,
    .home-page .topic-block img {
        border-radius: 10px;
        margin: 16px auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --- Homepage topic readability hotfix (2026-09-23) ---
   The legacy DefaultClean stylesheet forces .topic-block strong to white.
   CMS topic content may also carry old inline white text from the previous dark layout.
   Keep editorial body copy readable on the new white surface. */
.home-page .topic-block,
.home-page .topic-block-body {
    color: var(--wp-ink) !important;
}

.home-page .topic-block-body p,
.home-page .topic-block-body div,
.home-page .topic-block-body span,
.home-page .topic-block-body strong,
.home-page .topic-block-body b,
.home-page .topic-block-body em,
.home-page .topic-block-body i,
.home-page .topic-block-body li {
    color: var(--wp-ink) !important;
}

.home-page .topic-block-body a {
    color: var(--wp-teal-dark) !important;
}

.home-page .topic-block-body a:hover {
    color: var(--wp-teal) !important;
}

.home-page .topic-block-body h1,
.home-page .topic-block-body h2,
.home-page .topic-block-body h3,
.home-page .topic-block-body h4,
.home-page .topic-block-body h5,
.home-page .topic-block-body h6 {
    color: var(--wp-teal-deep) !important;
}

