/*
** Hemel Shop redesign (2026), loaded after styles.css.
** Look shared with hemelshop.rs: warm grey page, Hemel red, a dark red category bar and footer,
** white rounded cards. Class names starting with "hs-" belong to the new markup; the rest of this
** file un-does the old fixed-width layout (980px page, floats, sidebar) so every page can stretch.
*/

:root {
    --hs-red: #c8102e;
    --hs-red-dark: #a00d26;
    --hs-deep: #960000;
    --hs-honey: #f2b134;
    --hs-ink: #231a1a;
    --hs-text: #3d3130;
    --hs-muted: #6b5f5d;
    --hs-line: #eadfdc;
    --hs-line-soft: #f1e9e7;
    --hs-soft: #fbf3f1;
    --hs-page: #f4f2f1;
    --hs-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- page basics ---------- */
/* warm grey page that turns soft Hemel pink towards the bottom (as on hemelshop.rs); on the root element
   so it fills the window, min-height keeps the pink at the bottom of the window on short pages */
html {
    min-height: 100%;
    background: var(--hs-page) linear-gradient(rgba(242, 121, 122, 0), rgba(242, 121, 122, .3)) no-repeat 50% 100% / 100% 520px;
}
body {
    background: transparent;
    color: var(--hs-ink);
    font-family: var(--hs-font);
    font-size: 15px;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6,
.page-title h1, .page-title h2 { font-family: var(--hs-font); }
a { color: var(--hs-ink); }
a:hover { color: var(--hs-red-dark); }
.hs-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* the old wrappers become a centred, fluid 1200px column */
.master-wrapper-page { width: auto; margin: 0; background: none; }
.master-wrapper-content {
    float: none;
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;
}
.master-wrapper-center-1, .master-wrapper-cph-1,
.master-wrapper-side-2, .master-wrapper-center-2, .master-wrapper-cph-2,
.master-wrapper-leftside-3, .master-wrapper-center-3, .master-wrapper-cph-3, .master-wrapper-rightside-3 {
    float: none;
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    color: inherit;
}
/* one-column pages (cart, checkout, ...) sit on a white panel */
.master-wrapper-center-1 {
    margin: 16px 0;
    padding: 24px 28px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}
.hs-main { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 0; }
.hs-content { flex: 999 1 560px; min-width: 0; }
.hs-side { flex: 1 1 220px; min-width: 0; }
/* content pages that are plain text or forms get a white panel too
   (category and product pages have their own layout) */
.hs-content .topicpage,
.hs-content .page,
.hs-content .login-page,
.hs-content .registration-page,
.hs-content .password-recovery-page,
.hs-content .account-activation-page,
.hs-content .account-page,
.hs-content .profile-page,
.hs-content .private-messages-page,
.hs-content .newsletter-page,
.hs-content .user-agreement-page,
.hs-content .emailafriend-page,
.hs-content .product-reviews-page,
.hs-content .producttag-page,
.hs-content .producttagall-page,
.hs-content .manufacturer-page,
.hs-content .manufacturerlist-page,
.hs-content .sitemap-page,
.hs-content .contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-sizing: border-box;
}
.login-page .wrapper .new-wrapper,
.login-page .wrapper .returning-wrapper { font-family: var(--hs-font); font-size: 14px; }

/* ---------- header ---------- */
.hs-header {
    height: auto;
    padding: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px; /* same 16px rhythm as the gaps below it (12px on phones) */
}
.hs-header svg, .hs-card svg, .hs-buy svg, .hs-qty svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hs-header-top { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.hs-logo {
    flex: none;
    display: block;
    width: 250px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--hs-deep);
}
.hs-logo img { display: block; width: auto; height: 52px; max-width: none; }
/* header photos (Header.cshtml): strips stacked over the logo, each fading in for 6s */
.hs-teaser { position: relative; }
.hs-teaser img[data-src] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hs-teaser img.is-active { opacity: 1; }

.hs-search.searchbox {
    flex: 1 1 320px;
    min-width: 0;
    float: none;
    display: block;
    margin: 0;
    padding: 0;
}
.hs-search form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 4px 4px 4px 20px;
    background: #fff;
    border: 1px solid var(--hs-line);
    border-radius: 999px;
}
.hs-search form:focus-within { border-color: var(--hs-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.hs-search .searchboxtext,
.hs-search #small-searchterms {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    color: var(--hs-ink);
    font: inherit;
    font-size: 16px;
    line-height: 44px;
    vertical-align: middle;
}
.hs-search .searchboxtext::placeholder { color: var(--hs-muted); opacity: 1; }
.hs-search .searchboxtext:focus { border: 0; box-shadow: none; }
.hs-search-btn {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hs-red);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.hs-search-btn:hover { background: var(--hs-red-dark); }
.hs-search-btn svg { stroke-width: 2.2; }

.hs-header-actions { display: flex; align-items: center; gap: 8px; }
.hs-header-selectors { display: contents; }
.hs-header-selectors select { width: auto; height: 44px; margin: 0; border: 1px solid var(--hs-line); border-radius: 999px; }

.hs-header-links.header-links { display: block; padding: 0; }
.hs-header-links ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hs-header-links ul li { display: block; padding: 0; }
.hs-header-links ul li a.hs-icon-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 4px 6px;
    border-radius: 8px;
    background: none;
    color: var(--hs-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
.hs-header-links ul li a.hs-icon-link:hover { background: rgba(35, 26, 26, .05); color: var(--hs-red-dark); }
/* line-height 1.5: overflow:hidden (for the ellipsis) would otherwise clip the tails of g, p and j */
.hs-icon-link > span:not(.hs-badge) { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; margin-top: -3px; }
.hs-badge {
    position: absolute;
    top: 0;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 9px;
    background: var(--hs-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.hs-badge[hidden] { display: none; }
.hs-impersonate { font-size: 12px; max-width: 220px; }

/* category bar */
.hs-catbar { background: var(--hs-deep); border-radius: 8px; padding: 6px; }
.hs-catbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hs-catbar li { display: block; flex: 1 1 auto; text-align: center; }
.hs-catbar a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.hs-catbar a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hs-catbar a.active, .hs-catbar a.active:hover { background: #fff; color: var(--hs-deep); font-weight: 700; }

/* ---------- footer ---------- */
.footer.hs-footer {
    clear: both;
    width: auto;
    max-width: 1200px;
    height: auto;
    margin: 0 auto; /* the 16px under the content (.hs-main) is the gap, as between the category bar and the content */
    padding: 0 16px 24px;
    box-sizing: border-box;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hs-footer-bar {
    background: var(--hs-deep);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}
.hs-footer-bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.hs-footer-bar a { color: #fff; font-size: 15px; padding: 6px 0; text-decoration: none; }
.hs-footer-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hs-footer-languages { gap: 4px 16px !important; }
.hs-footer-languages a { font-size: 14px; }
.hs-footer-languages a.active { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hs-footer .footer-storetheme { float: none; margin: 0; }

/* ---------- shared pieces ---------- */
.hs-intro { background: #fff; border-radius: 12px; padding: 28px 32px; margin: 0 0 16px; }
.hs-intro .htmlcontent { padding: 0; }
.hs-intro .htmlcontent-title { padding: 0; }
.hs-intro .htmlcontent-title + .clear { display: none; }
.hs-intro .htmlcontent-header {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    color: var(--hs-ink);
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-align: left;
}
.hs-intro .htmlcontent-body, .hs-intro .htmlcontent-body p {
    margin: 0;
    padding: 0;
    color: var(--hs-muted);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.hs-section-title { margin: 8px 0 16px; color: var(--hs-ink); font-size: 20px; font-weight: 700; line-height: 1.3; }
.hs-panel { background: #fff; border-radius: 12px; padding: 24px 28px; margin: 0 0 16px; box-sizing: border-box; }

.hs-breadcrumb.breadcrumbx {
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--hs-muted);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    text-transform: none;
}
.hs-breadcrumb a { color: var(--hs-muted); text-decoration: none; }
.hs-breadcrumb-home { display: inline-flex; align-items: center; }
.hs-breadcrumb-home svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-breadcrumb a:hover { color: var(--hs-red-dark); text-decoration: underline; }
.hs-breadcrumb-current { color: var(--hs-ink); font-weight: 600; }

.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: var(--hs-red);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.hs-btn:hover { background: var(--hs-red-dark); color: #fff; }
.hs-btn:focus-visible, .hs-qty-btn:focus-visible, .hs-search-btn:focus-visible {
    outline: 3px solid rgba(200, 16, 46, .4);
    outline-offset: 2px;
}
.hs-btn-sm { height: 44px; padding: 0 14px; gap: 8px; font-size: 14px; }
.hs-btn-secondary { background: #fff; color: var(--hs-ink); border: 1px solid var(--hs-line); }
.hs-btn-secondary:hover { background: var(--hs-soft); color: var(--hs-ink); }

/* buttons on the pages that still use the old markup (cart, checkout, account) */
.btn {
    background-image: none;
    text-shadow: none;
    box-shadow: none;
    border-radius: 8px;
    font-family: var(--hs-font);
    font-weight: 600;
}
.btn-danger, .btn-danger:hover, .btn-danger:focus {
    background-color: var(--hs-red);
    border-color: var(--hs-red);
    color: #fff;
}
.btn-danger:hover { background-color: var(--hs-red-dark); border-color: var(--hs-red-dark); }
.btn-warning, .btn-warning:focus {
    background-color: #fff;
    border: 1px solid var(--hs-line);
    color: var(--hs-ink);
}
.btn-warning:hover { background-color: var(--hs-soft); border-color: #d9c9c5; color: var(--hs-ink); }
/* "Log in" is the main action of the login page */
.login-page .loginbutton.btn-warning { background-color: var(--hs-red); border-color: var(--hs-red); color: #fff; }
.login-page .loginbutton.btn-warning:hover { background-color: var(--hs-red-dark); border-color: var(--hs-red-dark); }

/* ---------- product grid and cards ---------- */
.hs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin: 0 0 24px;
    text-align: center;
}
/* the last grid of a page adds no space above the footer: the 16px of .hs-main is the gap */
.hs-grid:last-child { margin-bottom: 0; }
.hs-content .pager { margin-bottom: 0; }
/* one page of results renders an empty pager after the grid: its negative margin cancels the grid's 24px
   (margins collapse through the empty block) */
.hs-grid + .pager:not(:has(*)) { height: 0; margin: -24px 0 0; padding: 0; border: 0; overflow: hidden; }
/* the home page shows 9 products (one per category, chosen in CatalogController.HomepageProducts): 3 x 3 */
/* styles.css gives this section padding-left: 7px, which pushed the cards off the line of the intro box */
.home-page-product-grid { padding: 0; }
.home-page-product-grid .hs-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.hs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 20px 16px 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--hs-ink);
    text-align: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.hs-card:hover { box-shadow: 0 8px 24px rgba(35, 26, 26, .10); transform: translateY(-2px); }
.hs-card-link { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; color: var(--hs-ink); text-decoration: none; }
.hs-card-link:hover { color: var(--hs-ink); }
.hs-card-link:hover .hs-card-name { color: var(--hs-red-dark); }
.hs-card-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 200px; margin-bottom: 10px; }
.hs-card-img img { width: auto; height: auto; max-width: 100%; max-height: 200px; object-fit: contain; border-radius: 0; }
.hs-card-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    color: var(--hs-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.hs-card-category {
    color: var(--hs-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.hs-card-category:hover { color: var(--hs-red-dark); }
.hs-card-size { color: var(--hs-muted); font-size: 13px; }
.hs-card-foot { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: auto; padding-top: 6px; }
.hs-card-foot-split { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--hs-line-soft); }
.hs-card-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 6px; }
.hs-card-price .productPrice { color: var(--hs-ink); font-size: 19px; font-weight: 700; }
.hs-card-oldprice { color: var(--hs-muted); font-size: 14px; }

/* ---------- category page ---------- */
.hs-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px; }
.hs-page-title { margin: 0; color: var(--hs-ink); font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.hs-sort { display: flex; align-items: center; gap: 10px; }
.hs-sort label { margin: 0; color: var(--hs-muted); font-size: 14px; }
.hs-sort select {
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--hs-line);
    border-radius: 8px;
    background: #fff;
    color: var(--hs-ink);
    font: inherit;
    font-size: 15px;
}
.category-page .pager { text-align: center; }

/* ---------- product page ---------- */
.hs-product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    padding: 32px;
    border-radius: 12px;
    background: #fff;
}
.hs-product-media { flex: 1 1 380px; min-width: 0; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.hs-product-media .picture { float: none; width: auto; min-height: 0; margin: 0; text-align: center; }
.hs-product-media img { display: block; max-width: 100%; height: auto; }
.hs-product-overview { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hs-product-overview h1.productname {
    margin: 0;
    color: var(--hs-ink);
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.hs-product-overview .shortdescription { color: var(--hs-muted); font-size: 16px; }
.hs-variants { display: flex; flex-direction: column; }
.hs-variant {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 16px 0;
    border-top: 1px solid var(--hs-line-soft);
}
.hs-variant:first-child { padding-top: 0; border-top: 0; }
.hs-variant-name { margin: 0 0 2px; color: var(--hs-muted); font-size: 15px; }
.hs-variant .price { float: none; width: auto; margin: 0; padding: 0; color: var(--hs-muted); font-size: 15px; }
.hs-variant .price .productPrice { color: var(--hs-ink); font-size: 30px; font-weight: 700; line-height: 1.2; }
.hs-buy, .hs-variant .hs-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; }
.hs-enter-price { flex-basis: 100%; }
.hs-qty {
    display: flex;
    align-items: center;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--hs-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.hs-qty-btn {
    width: 44px;
    height: 46px;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--hs-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.hs-qty-btn:hover { background: var(--hs-soft); }
.hs-qty .qty-input {
    width: 44px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: var(--hs-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}
.hs-qty .qty-dropdown { width: auto; height: 46px; margin: 0; border: 0; }

.hs-plants.plants {
    float: none;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--hs-line-soft);
    color: var(--hs-ink);
    font-family: inherit;
}
.hs-plants-title { margin: 0 0 10px; color: var(--hs-ink); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; }
.hs-plants ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hs-plants li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px 0 4px;
    border-radius: 999px;
    background: var(--hs-soft);
    font-size: 14px;
    font-weight: 600;
}
.hs-plants img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--hs-honey); }
.hs-plants li span { display: inline-block; }
.hs-plants li span::first-letter { text-transform: uppercase; }
.hs-description { color: var(--hs-text); font-size: 16px; line-height: 1.6; }
.hs-description p { margin: 0 0 8px; }

.hs-product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 16px;
    margin: 16px 0 0;
}
.hs-product-details .hs-panel { margin: 0; }
.hs-product-details h2 { margin: 0 0 10px; color: var(--hs-ink); font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hs-product-details p { margin: 0 0 8px; color: var(--hs-text); font-size: 16px; line-height: 1.6; }
/* related and also-bought products, appended after load by public.common.js in whichever order the two
   requests finish: a column with a fixed order, and no space while it is still empty */
.hs-product .product-collateral { display: flex; flex-direction: column; gap: 24px; margin: 24px 0 0; }
.hs-product .product-collateral:not(:has(*)) { display: none; }
.product-collateral .related-products-grid { order: 1; }
.product-collateral .also-purchased-products-grid { order: 2; }
.product-collateral .hs-section-title { margin-top: 0; }
.product-collateral .hs-grid { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .hs-card { transition: none; }
    .hs-card:hover { transform: none; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 760px) {
    .master-wrapper-content { padding: 0 12px; }
    .hs-header { padding-top: 12px; gap: 12px; }
    .hs-header-top { gap: 12px 8px; justify-content: space-between; }
    .hs-logo { width: 188px; height: 40px; border-radius: 8px; }
    .hs-logo img { height: 40px; }
    .hs-search.searchbox { order: 3; flex-basis: 100%; }
    .hs-search form { padding: 3px 3px 3px 16px; }
    .hs-header-actions { gap: 2px; }
    .hs-header-links ul li a.hs-icon-link { min-width: 44px; padding: 10px 6px; }
    .hs-icon-link > span:not(.hs-badge) {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .hs-badge { top: 4px; right: 0; }
    /* all categories visible: they wrap into rows (no sideways scrolling) */
    .hs-catbar { padding: 5px; }
    .hs-catbar a { padding: 10px; font-size: 15px; }

    .hs-main { padding: 12px 0; }
    .hs-intro { padding: 16px 18px; margin-bottom: 12px; }
    .hs-intro .htmlcontent-header { font-size: 20px; }
    .hs-intro .htmlcontent-body, .hs-intro .htmlcontent-body p { font-size: 14px; }
    .hs-page-title { font-size: 26px; }
    .hs-panel, .hs-content .topicpage, .hs-content .page, .hs-content .login-page, .hs-content .registration-page, .hs-content .account-page, .hs-content .contact-form, .master-wrapper-center-1 { padding: 18px; }

    .hs-grid, .home-page-product-grid .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hs-card { padding: 12px 10px 14px; gap: 4px; }
    .hs-card-img { height: 120px; margin-bottom: 6px; }
    .hs-card-img img { max-height: 120px; }
    .hs-card-name { font-size: 14px; }
    .hs-card-category { font-size: 11px; }
    .hs-card-price .productPrice { font-size: 17px; }
    .hs-card-foot-split { gap: 8px; }
    .hs-card .hs-btn-sm { width: 44px; padding: 0; }
    .hs-card .hs-btn-sm span { display: none; }

    .hs-product-main { padding: 20px; gap: 20px; }
    .hs-product-media { min-height: 0; }
    .hs-product-overview h1.productname { font-size: 26px; }
    .hs-variant .price .productPrice { font-size: 26px; }

    .hs-footer-bar { padding: 12px 16px; }
}

/* ---------- search page and AI search (Views/Catalog/Search.cshtml, _SearchAi.cshtml) ---------- */
.hs-search-page { display: flex; flex-direction: column; gap: 16px; }
.hs-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 20px 24px;
    border-radius: 12px;
    background: #fff;
}
.hs-search-row { display: flex; gap: 10px; }
.hs-search-row .searchtext,
.hs-search-row input[type="search"].searchtext {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--hs-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--hs-ink);
    font-family: var(--hs-font);
    font-size: 17px;
}
.hs-search-row .searchtext::placeholder { color: var(--hs-muted); opacity: 1; }
.hs-search-row .searchtext:focus { border-color: var(--hs-red); outline: 0; box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.hs-search-row .hs-btn { height: 52px; border-radius: 26px; padding: 0 24px; }
.hs-search-row .hs-btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hs-check { display: inline-flex; align-items: center; gap: 8px; color: var(--hs-muted); font-size: 14px; }
.hs-check label { display: inline; margin: 0; font-size: 14px; }
.hs-check input[type="checkbox"] { margin: 0; }
.hs-field { display: flex; flex-direction: column; gap: 6px; }
.hs-field > label { margin: 0; color: var(--hs-ink); font-size: 14px; font-weight: 600; }
.hs-search-warning { margin: 0; color: var(--hs-red-dark); font-size: 14px; text-decoration: none; }
.hs-search-none { margin: 0; padding: 20px 24px; border-radius: 12px; background: #fff; color: var(--hs-muted); font-weight: 600; }
.hs-search-results { display: flex; flex-direction: column; gap: 16px; }
.hs-search-results .pager:empty { display: none; }

.hs-ai {
    padding: 20px 24px 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hs-line);
}
.hs-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--hs-red); }
.hs-ai-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.hs-ai-title { margin: 0; color: var(--hs-ink); font-family: var(--hs-font); font-size: 20px; font-weight: 700; line-height: 1.3; }
.hs-ai-answer { max-width: 70ch; margin: 0 0 18px; color: var(--hs-text); font-size: 16px; line-height: 1.6; }
.hs-ai-products { margin-top: 4px; }
.hs-ai-products .hs-card { border: 1px solid var(--hs-line-soft); }
.hs-ai-loading { display: flex; align-items: center; gap: 12px; color: var(--hs-muted); font-size: 15px; }
.hs-ai-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--hs-line);
    border-top-color: var(--hs-red);
    border-radius: 50%;
    animation: hs-spin .8s linear infinite;
    flex: none;
}
.hs-ai-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin-top: 18px;
}
.hs-ai-skeleton span {
    height: 260px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--hs-line-soft) 25%, var(--hs-soft) 50%, var(--hs-line-soft) 75%);
    background-size: 200% 100%;
    animation: hs-shimmer 1.4s ease-in-out infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .hs-ai-spinner, .hs-ai-skeleton span { animation: none; }
}
@media (max-width: 760px) {
    .hs-search-form, .hs-ai { padding: 16px; }
    .hs-search-row .searchtext, .hs-search-row input[type="search"].searchtext { height: 46px; font-size: 16px; }
    .hs-search-row .hs-btn { height: 46px; width: 46px; padding: 0; }
    .hs-search-row .hs-btn span { display: none; }
    .hs-ai-answer { font-size: 15px; }
    .hs-ai-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hs-ai-skeleton span { height: 200px; }
    .hs-ai-skeleton span:nth-child(n+3) { display: none; }
}

/* ---------- login, cart, checkout, order and account pages ----------
   Login.cshtml has new markup (hs-login-*); the cart (OrderSummary.cshtml), the checkout steps
   (Views/Checkout), the order details and the account pages keep the nopCommerce markup and are
   restyled here. */

/* admin-only in-place translation box (_Root.cshtml): bottom-left corner instead of over the logo */
#locinput {
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    bottom: 12px;
    z-index: 1000;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 2px solid var(--hs-honey);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(35, 26, 26, .18);
    font: 14px var(--hs-font);
}

/* signed in, the header has two more links: keep them on the right and give the search its own row */
.hs-header-actions { margin-left: auto; }
@media (max-width: 1100px) {
    .hs-header-top:has(.ico-logout) .hs-search.searchbox { order: 3; flex-basis: 100%; }
}

/* page titles and form fields of the pages below */
:is(.login-page, .registration-page, .password-recovery-page, .account-page, .shoppingcart-page, .checkout-page, .order-details, .shipment-details) .page-title {
    float: none;
    width: auto;
    margin: 0 0 20px;
    border: 0;
    overflow: visible;
}
:is(.login-page, .registration-page, .password-recovery-page, .account-page, .shoppingcart-page, .checkout-page, .order-details, .shipment-details) .page-title h1 {
    margin: 0;
    padding: 0;
    color: var(--hs-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
:is(.login-page, .registration-page, .password-recovery-page, .account-page, .shoppingcart-page, .checkout-page, .contact-form) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea) {
    width: 100%;
    max-width: 380px;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--hs-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--hs-ink);
    font-family: var(--hs-font);
    font-size: 15px;
    line-height: normal;
}
:is(.login-page, .registration-page, .password-recovery-page, .account-page, .shoppingcart-page, .checkout-page, .contact-form) textarea { height: 120px; padding: 10px 12px; }
:is(.login-page, .registration-page, .password-recovery-page, .account-page, .shoppingcart-page, .checkout-page, .contact-form) :is(input, select, textarea):focus {
    border-color: var(--hs-red);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .15);
}
:is(.login-page, .registration-page, .account-page, .shoppingcart-page, .checkout-page) :is(input[type="radio"], input[type="checkbox"]) { width: 18px; height: 18px; margin: 0; accent-color: var(--hs-red); }
.hs-content .message-error, .master-wrapper-center-1 .message-error { color: var(--hs-red-dark); font-family: var(--hs-font); font-size: 14px; font-weight: 600; }
.hs-content .message-error:empty, .master-wrapper-center-1 .message-error:empty { display: none; }
.hs-content .validation-summary-errors ul, .master-wrapper-center-1 .validation-summary-errors ul { margin: 0 0 12px; padding: 0; list-style: none; }
.hs-content .field-validation-error, .master-wrapper-center-1 .field-validation-error { color: var(--hs-red-dark); font-family: var(--hs-font); font-size: 13px; }
.hs-content .required, .master-wrapper-center-1 .required { color: var(--hs-red); }

/* login (Views/Customer/Login.cshtml) */
.hs-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    align-items: start;
}
.hs-login-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    color: var(--hs-text);
    font-size: 15px;
}
.hs-login-card h2 { margin: 0; color: var(--hs-ink); font-family: var(--hs-font); font-size: 20px; font-weight: 700; line-height: 1.3; }
.hs-login-card p { margin: 0; line-height: 1.6; }
.hs-login-card .login-block form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.hs-login-card .hs-field input { max-width: none; }
.hs-login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.hs-login-row .hs-check label { color: var(--hs-text); }
.hs-login-row .forgot-password a { color: var(--hs-red-dark); font-size: 14px; font-weight: 600; }
.hs-login-card .buttons .hs-btn { width: 100%; }
.hs-login-new { background: var(--hs-soft); border-color: var(--hs-line-soft); }
.hs-login-new .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
/* the Google button (plugin ExternalAuth.Google) under the form, after an "or" line */
.hs-login .externalauthentication:not(:has(.oauth-login-google)) { display: none; }
.hs-login .oauth-login-google { margin: 0; padding: 0; border: 0; background: none; }
.hs-login .oauth-login-google legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: var(--hs-muted);
    font-size: 13px;
    line-height: 1.4;
}
.hs-login .oauth-login-google legend::before, .hs-login .oauth-login-google legend::after { content: ""; flex: 1; height: 1px; background: var(--hs-line); }
.hs-login .oauth-login-google .google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 8px;
    font-size: 15px;
}

/* contact (Views/Common/ContactUs.cshtml): the ContactUs topic is the title and intro */
.hs-contact .htmlcontent { padding: 0; }
.hs-contact .htmlcontent-title { padding: 0; }
.hs-contact .htmlcontent-header {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--hs-ink);
    font-family: var(--hs-font);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.hs-contact .htmlcontent-body, .hs-contact .htmlcontent-body p { max-width: 640px; margin: 8px 0 0; color: var(--hs-text); font-size: 15px; line-height: 1.6; }
.hs-contact-form { max-width: 640px; margin-top: 20px; }
.hs-contact-form .message-error { margin: 0 0 14px; }
.hs-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hs-contact-wide { grid-column: 1 / -1; }
/* beats the fixed widths of styles.css (.contact-form .send-email .fullname etc.) */
.hs-contact .hs-contact-grid :is(.fullname, .email, .enquiry) { width: 100%; max-width: none; }
.hs-contact .hs-contact-grid .enquiry { height: 170px; resize: vertical; line-height: 1.5; }
.hs-contact .captcha-box { margin: 18px 0 0; }
.hs-contact .buttons { margin: 18px 0 0; text-align: left; }
.hs-contact .buttons .hs-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-contact-sent {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 20px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--hs-line-soft);
    border-radius: 12px;
    background: var(--hs-soft);
    color: var(--hs-ink);
    font-size: 16px;
    font-weight: 600;
}
.hs-contact-sent p { margin: 0; line-height: 1.5; }
.hs-contact-sent svg { flex: 0 0 auto; fill: none; stroke: var(--hs-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .hs-contact .htmlcontent-header { font-size: 24px; }
    .hs-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hs-contact .buttons .hs-btn { width: 100%; }
}

/* cart and order summary (Views/ShoppingCart/OrderSummary.cshtml, OrderTotals.cshtml) */
.order-summary-content { margin: 0; padding: 0; color: var(--hs-text); font-size: 15px; }
.order-summary-content .cart { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.order-summary-content .cart .cart-header-row th {
    height: auto;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--hs-line);
    background: var(--hs-soft);
    color: var(--hs-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}
.order-summary-content .cart .cart-header-row th.picture { border-bottom: 1px solid var(--hs-line); }
.order-summary-content .cart .cart-header-row th:first-child { border-radius: 8px 0 0 8px; }
.order-summary-content .cart .cart-header-row th:last-child { border-radius: 0 8px 8px 0; text-align: right; }
.order-summary-content .cart .cart-item-row { font-size: 15px; }
.order-summary-content .cart .cart-item-row td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--hs-line-soft);
    border-radius: 0;
    line-height: 1.4;
    vertical-align: middle;
}
.order-summary-content .cart .cart-item-row td.end { text-align: right; padding-right: 12px; }
.order-summary-content .cart .productpicture img { display: block; width: 72px; height: 72px; object-fit: contain; }
.order-summary-content .cart td.product a { color: var(--hs-ink); font-weight: 600; text-decoration: none; }
.order-summary-content .cart td.product a:hover { color: var(--hs-red-dark); text-decoration: underline; }
.order-summary-content .cart .productPrice { color: var(--hs-text); font-weight: 600; }
.order-summary-content .cart td.end .productPrice { color: var(--hs-ink); font-size: 16px; font-weight: 700; }
/* quantity [ − 2 + ] and the Remove link under the product name; both post the change at once */
.order-summary-content .hs-qty {
    display: inline-flex;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--hs-line);
    border-radius: 20px;
    background: #fff;
    vertical-align: middle;
}
.order-summary-content .hs-qty-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 19px;
    background: none;
    box-shadow: none;
    color: var(--hs-ink);
    cursor: pointer;
}
.order-summary-content .hs-qty-btn:hover, .order-summary-content .hs-qty-btn:focus-visible { background: var(--hs-soft); color: var(--hs-red-dark); }
.order-summary-content .hs-qty-btn.hs-qty-remove { color: var(--hs-red); }
.order-summary-content .hs-qty-value { min-width: 28px; color: var(--hs-ink); font-size: 16px; font-weight: 700; text-align: center; }
.order-summary-content .hs-cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 0 -6px;
    padding: 2px 6px;
    border: 0;
    border-radius: 6px;
    background: none;
    box-shadow: none;
    color: var(--hs-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
}
.order-summary-content .hs-cart-remove svg { width: 13px; height: 13px; }
.order-summary-content .hs-cart-remove:hover, .order-summary-content .hs-cart-remove:focus-visible { background: var(--hs-soft); color: var(--hs-red-dark); }
.order-summary-content :is(.hs-qty-btn, .hs-cart-remove) svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.order-summary-content form.is-busy .cart { opacity: .6; pointer-events: none; transition: opacity .2s; }
.order-summary-content .cart .cart-item-row .qty-dropdown { width: auto; height: 40px; }
.order-summary-content .common-buttons { float: none; padding: 14px 0 0; }
.order-summary-content .btn-mini { height: 36px; padding: 0 14px; font-size: 14px; line-height: 34px; }
.order-summary-content .cart-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    background: none;
}
.order-summary-content .cart-footer > * { flex: 1 1 100%; order: 3; }
.order-summary-content .cart-footer > :first-child { order: 0; }
.order-summary-content .cart-footer > .clear, .order-summary-content .cart-collaterals .clear, .order-summary-content .totals .clear { display: none; }
.order-summary-content .cart-footer > .cart-collaterals { flex: 1 1 480px; order: 1; width: auto; padding: 0; }
.order-summary-content .cart-footer > .totals { flex: 0 1 380px; order: 2; float: none; width: auto; margin-left: auto; padding: 0; }
.order-summary-content .min-amount-warning { padding: 12px 16px; border-radius: 8px; background: var(--hs-soft); color: var(--hs-red-dark); font-weight: 600; }
.order-summary-content .total-info { margin: 0; padding: 16px 20px; border-radius: 12px; background: var(--hs-soft); font-size: 15px; }
.order-summary-content .cart-total { width: 100%; font-size: 15px; border-collapse: collapse; }
.order-summary-content .cart-total td { padding: 5px 0; color: var(--hs-text); vertical-align: top; }
.order-summary-content .cart-total .cart_total_left { font-weight: 400; text-align: left; }
.order-summary-content .cart-total .cart_total_right { font-weight: 600; text-align: right; }
.order-summary-content .cart-total .cart_total_right .nobr { white-space: normal; }
.order-summary-content .cart-total tr:last-child td { padding-top: 12px; border-top: 1px solid var(--hs-line); color: var(--hs-ink); font-size: 18px; font-weight: 700; }
.order-summary-content .cart-total .productPrice { color: inherit; font-weight: inherit; }
.order-summary-content .total-info .selected-shipping-method { color: var(--hs-muted); font-size: 13px; }
.order-summary-content .checkout-buttons { float: none; padding: 14px 0 0; }
.order-summary-content .checkout-buttons .hs-btn { width: 100%; }
.order-summary-content .checkout-buttons .hs-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-summary-content .addon-buttons:empty, .order-summary-content .addon-buttons:not(:has(*)) { display: none; }
.order-summary-content .terms-of-service { padding: 12px 0 0; }
.order-summary-content .cart-collaterals { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.order-summary-content .deals { display: flex; flex-direction: column; gap: 16px; float: none; width: auto; margin: 0; flex: 1 1 240px; }
.order-summary-content .shipping { display: block; float: none; width: auto; margin: 0; flex: 1 1 260px; }
.order-summary-content .coupon-box,
.order-summary-content .giftcard-box,
.order-summary-content .estimate-shipping {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    background: #fff;
    color: var(--hs-muted);
    font-size: 13px;
    line-height: 1.5;
}
.order-summary-content .coupon-box b, .order-summary-content .giftcard-box b, .order-summary-content .estimate-shipping b { color: var(--hs-ink); font-size: 15px; }
.order-summary-content .coupon-box form, .order-summary-content .giftcard-box form { margin: 0; }
.order-summary-content .coupon-box .discountcouponcode,
.order-summary-content .giftcard-box .giftcardcouponcode { width: 100%; max-width: none; height: 40px; margin: 10px 0 0; }
.order-summary-content .coupon-box .btn, .order-summary-content .giftcard-box .btn { margin-top: 8px; }
.order-summary-content .estimate-shipping .shipping-options { margin: 10px 0 0; border: 0; }
/* label | field rows as a grid, so the Estimate shipping button can start at the left edge under them */
.order-summary-content .estimate-shipping table { display: block; width: 100%; }
.order-summary-content .estimate-shipping tbody { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; }
.order-summary-content .estimate-shipping tr { display: contents; }
.order-summary-content .estimate-shipping table td { display: block; padding: 0; color: var(--hs-text); font-size: 13px; }
.order-summary-content .estimate-shipping tr:last-child td:first-child { display: none; }
.order-summary-content .estimate-shipping tr:last-child td:last-child { grid-column: 1 / -1; padding-top: 4px; }
/* estimate results (EstimateShipping.cshtml): one card per option, icon | name ... price, details below */
.order-summary-content .estimate-shipping .hs-estimate-results { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hs-line-soft); }
.order-summary-content .estimate-shipping .shipping-option-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--hs-soft);
    text-align: left;
}
.order-summary-content .estimate-shipping .hs-option-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--hs-red); }
.order-summary-content .estimate-shipping .hs-option-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-summary-content .estimate-shipping .shipping-option-item .option-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 36px; font-weight: 400; }
.order-summary-content .estimate-shipping .hs-option-title { color: var(--hs-ink); font-size: 15px; font-weight: 600; }
.order-summary-content .estimate-shipping .hs-option-price { color: var(--hs-ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
.order-summary-content .estimate-shipping .shipping-option-item .option-description { grid-column: 2; padding: 0; color: var(--hs-muted); font-size: 13px; line-height: 1.6; }
.order-summary-content .estimate-shipping .message-error { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--hs-soft); font-size: 13px; }
.order-summary-content .estimate-shipping select, .order-summary-content .estimate-shipping .zip-input { width: 100%; height: 38px; font-size: 14px; }
.order-summary-content .removegiftcardbutton, .order-summary-content .removediscountbutton { border-radius: 0; }

/* checkout steps (Views/Checkout/CheckoutProgress.cshtml) */
.order-progress { height: auto; margin: 0 0 24px; padding: 0 0 20px; border-bottom: 1px solid var(--hs-line-soft); text-align: center; }
.order-progress ul { display: flex; justify-content: center; margin: 0; padding: 0; counter-reset: hs-step; }
.order-progress ul li { position: relative; flex: 1 1 0; max-width: 140px; padding: 0; list-style: none; counter-increment: hs-step; }
.order-progress ul li::before {
    content: "";
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--hs-line);
}
.order-progress ul li:first-child::before { display: none; }
.order-progress ul li:has(.active-step)::before, .order-progress ul li:has(~ li .active-step)::before { background: var(--hs-red); }
.order-progress ul li a.active-step, .order-progress ul li a.inactive-step {
    position: relative;
    z-index: 1; /* the circles sit above the connector lines of the next steps */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    color: var(--hs-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.order-progress ul li a.active-step::before, .order-progress ul li a.inactive-step::before {
    content: counter(hs-step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 2px solid var(--hs-line);
    border-radius: 50%;
    background: #fff;
    color: var(--hs-muted);
    font-size: 14px;
    font-weight: 700;
}
.order-progress ul li a.active-step { color: var(--hs-ink); }
.order-progress ul li a.active-step::before { border-color: var(--hs-red); background: var(--hs-red); color: #fff; }
.order-progress ul li:has(~ li .active-step) a.inactive-step { color: var(--hs-text); }
.order-progress ul li:has(~ li .active-step) a.inactive-step::before { content: "\2713"; border-color: var(--hs-red); color: var(--hs-red); }
.order-progress ul li a[href]:hover { color: var(--hs-red-dark); }

/* checkout pages (Views/Checkout/*.cshtml) */
.checkout-page .checkout-data { margin: 0; padding: 0; color: var(--hs-text); font-size: 15px; }
.checkout-page .select-address-title,
.checkout-page .enter-address-title,
.checkout-page .order-summary-title {
    margin: 28px 0 12px;
    padding: 0;
    color: var(--hs-ink);
    font-size: 18px;
    font-weight: 700;
}
.checkout-page .checkout-data > :first-child .select-address-title, .checkout-page .checkout-data > .enter-address-title:first-child { margin-top: 0; }
.checkout-page .address-grid { margin: 0; padding: 0; }
.checkout-page .address-grid table, .checkout-page .address-grid tbody, .checkout-page .address-grid tr { display: contents; }
.checkout-page .address-grid:has(table) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.checkout-page .address-grid td { display: block; padding: 0; }
.checkout-page .address-grid td:not(:has(*)) { display: none; }
.checkout-page .address-grid .item-box { height: 100%; padding: 0; text-align: left; }
.checkout-page .address-grid .address-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: auto;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    text-align: left;
}
.checkout-page .address-grid .address-item:hover { border-color: #d9c9c5; }
.checkout-page .address-grid .address-item > .address-box { order: 1; flex: 1; color: var(--hs-text); font-size: 14px; line-height: 1.5; }
.checkout-page .address-grid .address-item > .select-button { order: 2; margin: 14px 0 0; text-align: left; }
.checkout-page .address-grid .address-item > .select-button .btn { width: 100%; }
.checkout-page .enter-address,
.checkout-page .shipping-options,
.checkout-page .payment-methods,
.checkout-page .payment-info,
.checkout-page .confirm-order,
.checkout-page .order-completed {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    text-align: left;
}
.checkout-page .enter-address .enter-address-body { margin: 0; }
.checkout-page .enter-address .buttons, .checkout-page .enter-address .the-same-address { margin: 16px 0 0; }
.checkout-page .enter-address table { border-collapse: collapse; }
.checkout-page .enter-address td { padding: 6px 16px 6px 0; vertical-align: middle; }
.checkout-page .enter-address td:first-child { color: var(--hs-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.checkout-page .enter-address td input, .checkout-page .enter-address td select { display: inline-block; width: 340px; max-width: calc(100% - 20px); vertical-align: middle; }
.checkout-page .enter-address td .required { margin-left: 4px; }
.checkout-page .enter-address td .field-validation-error { display: block; margin-top: 4px; }
.checkout-page .shipping-option-item,
.checkout-page .payment-method-item {
    margin: 0 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--hs-line);
    border-radius: 10px;
    text-align: left;
}
.checkout-page .shipping-option-item:has(input:checked), .checkout-page .payment-method-item:has(input:checked) { border-color: var(--hs-red); background: var(--hs-soft); }
.checkout-page .shipping-option-item .option-name, .checkout-page .payment-method-item .option-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checkout-page .shipping-option-item .option-name label, .checkout-page .payment-method-item .option-name label { flex: 1; margin: 0; color: var(--hs-ink); font-size: 15px; cursor: pointer; }
.checkout-page .shipping-option-item .option-description { padding: 6px 0 0 28px; color: var(--hs-muted); font-size: 14px; }
.checkout-page .select-button { margin: 16px 0 0; text-align: left; }
.checkout-page .userewardpoints { margin: 0 0 12px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--hs-soft); color: var(--hs-text); font-size: 14px; }
.checkout-page .payment-info .body { padding: 0; }
.checkout-page .order-completed .body { padding: 0; color: var(--hs-text); font-size: 16px; line-height: 1.6; }
.checkout-page .order-completed .body a { color: var(--hs-red-dark); font-weight: 600; }
.checkout-page .order-summary-body { margin: 0; border: 0; text-align: left; }
/* "Next" and "Confirm" are the main action of each step */
.checkout-page .checkout-data input[name="nextstep"].btn {
    height: 48px;
    padding: 0 28px;
    border-color: var(--hs-red);
    background-color: var(--hs-red);
    color: #fff;
    font-size: 16px;
}
.checkout-page .checkout-data input[name="nextstep"].btn:hover { border-color: var(--hs-red-dark); background-color: var(--hs-red-dark); }
.checkout-page .checkout-data input[name="nextstep"].btn[disabled] { opacity: .6; cursor: default; }
:is(.checkout-page, .account-page, .order-details, .shoppingcart-page) input.btn-warning:not(.btn-mini) { height: 40px; padding: 0 16px; font-size: 14px; }

/* tables in the account and order pages */
.data-table { width: 100%; border: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.data-table th {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--hs-line);
    background: var(--hs-soft);
    color: var(--hs-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.data-table td { padding: 12px; border: 0; border-bottom: 1px solid var(--hs-line-soft); color: var(--hs-text); vertical-align: middle; }
.data-table .even { background: none; }

/* order details (Views/Order/Details.cshtml) and shipment details */
.order-details, .shipment-details { color: var(--hs-text); font-size: 15px; }
.order-details .info { padding: 0; border: 0; }
.order-details .section-title, .shipment-details .section-title { margin: 24px 0 10px; padding: 0; color: var(--hs-ink); font-size: 18px; font-weight: 700; }
.order-details .order-overview { margin: 0 0 16px; padding: 16px 20px; border-radius: 12px; background: var(--hs-soft); }
.order-details .order-overview .order-overview-table td { padding: 3px 0; }
.order-details .order-overview .order-overview-table b { color: var(--hs-ink); font-size: 18px; }
.order-details .order-details-box,
.order-details .products-box,
.order-details .shipments-box,
.order-details .ordernotes-box { padding: 16px 20px; border: 1px solid var(--hs-line); border-radius: 12px; }
.order-details .products-box, .order-details .shipments-box, .order-details .ordernotes-box { padding: 0; border: 0; }
.order-details .order-details-table td { padding: 0 20px 0 0; line-height: 1.6; }
.order-details .order-details-table .title { margin-bottom: 4px; color: var(--hs-ink); font-weight: 700; }
.order-details .cart-total { width: auto; min-width: 300px; margin: 16px 0 0 auto; font-size: 15px; }
.order-details .cart-total td { padding: 4px 0 4px 24px; }
.order-details .cart_total_left { color: var(--hs-text); }
.order-details .cart-total tr:last-child td { padding-top: 10px; border-top: 1px solid var(--hs-line); color: var(--hs-ink); font-size: 18px; font-weight: 700; }

/* order history (Views/Customer/Orders.cshtml) */
.customer-orders .order-list { display: flex; flex-direction: column; gap: 12px; }
.customer-orders .order-list > .clear { display: none; }
.customer-orders .order-item { margin: 0; padding: 16px 20px; border: 1px solid var(--hs-line); border-radius: 12px; color: var(--hs-text); font-size: 14px; line-height: 1.6; }
.customer-orders .order-item b { color: var(--hs-ink); font-size: 16px; }
.customer-orders .order-item td { padding: 0; vertical-align: middle; }
.customer-orders .order-item .buttons { text-align: right; white-space: nowrap; }

@media (max-width: 760px) {
    :is(.login-page, .registration-page, .password-recovery-page, .account-page, .shoppingcart-page, .checkout-page, .order-details, .shipment-details) .page-title h1 { font-size: 24px; }
    .hs-login-card { padding: 18px; }

    /* cart rows become cards: picture on the left, the rest stacked */
    .order-summary-content .cart, .order-summary-content .cart tbody { display: block; }
    .order-summary-content .cart colgroup, .order-summary-content .cart col, .order-summary-content .cart thead { display: none; }
    .order-summary-content .cart .cart-item-row {
        position: relative;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 4px 12px;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid var(--hs-line-soft);
    }
    .order-summary-content .cart .cart-item-row td { display: block; padding: 0; border: 0; line-height: 1.4; }
    .order-summary-content .cart .cart-item-row td.productpicture { grid-column: 1; grid-row: 1 / span 3; }
    .order-summary-content .cart .cart-item-row td.product { grid-column: 2 / -1; grid-row: 1; }
    .order-summary-content .cart .cart-item-row td.nobr { grid-column: 2; }
    .order-summary-content .cart .cart-item-row td.hs-cart-price { grid-column: 2; grid-row: 2; }
    .order-summary-content .cart .cart-item-row td.hs-cart-points { grid-column: 3; grid-row: 2; text-align: right; }
    .order-summary-content .cart .cart-item-row td.hs-cart-qty { grid-column: 2; grid-row: 3; }
    .order-summary-content .cart .cart-item-row td.end { grid-column: 3; grid-row: 3; }
    .order-summary-content .cart .cart-item-row td[data-label]::before { content: attr(data-label) ": "; color: var(--hs-muted); font-size: 13px; }
    .order-summary-content .cart .cart-item-row td.hs-cart-qty:has(.hs-qty)::before { content: none; }
    .order-summary-content .cart .cart-item-row td.hs-cart-price .productPrice, .order-summary-content .cart .cart-item-row td.hs-cart-points .productPrice { color: var(--hs-text); font-size: 13px; font-weight: 600; }
    /* totals and the Checkout button come right after the products, the coupon boxes after them */
    .order-summary-content .cart-footer > .totals { flex-basis: 100%; order: 1; margin-left: 0; }
    .order-summary-content .cart-footer > .cart-collaterals { order: 2; }

    .order-progress ul li a.active-step, .order-progress ul li a.inactive-step { font-size: 11px; }
    .order-progress ul li a.active-step::before, .order-progress ul li a.inactive-step::before { width: 28px; height: 28px; font-size: 13px; }
    .order-progress ul li::before { top: 13px; }
    .checkout-page .enter-address, .checkout-page .shipping-options, .checkout-page .payment-methods, .checkout-page .payment-info, .checkout-page .confirm-order, .checkout-page .order-completed { padding: 16px; }
    .checkout-page .enter-address table, .checkout-page .enter-address tbody, .checkout-page .enter-address tr, .checkout-page .enter-address td { display: block; }
    .checkout-page .enter-address td { padding: 0; }
    .checkout-page .enter-address td:first-child { padding-top: 10px; }
    .checkout-page .enter-address td input, .checkout-page .enter-address td select { max-width: calc(100% - 16px); }
    .order-details .order-details-table td { display: block; padding: 0 0 12px; width: auto; }
    .order-details .cart-total { width: 100%; min-width: 0; }
    .customer-orders .order-item .buttons { text-align: left; padding-top: 8px; }
    .customer-orders .order-item tr { display: flex; flex-direction: column; }
}

/* sidebar blocks of the account pages (Views/Customer/MyAccountNavigation.cshtml) and other old nopCommerce blocks */
.hs-side .block { margin: 0 0 16px; padding: 14px; border-radius: 12px; background: #fff; color: var(--hs-text); opacity: 1; }
.hs-side .block:last-child { margin-bottom: 0; }
.hs-side .block .title { margin: 0 0 6px; padding: 0 10px; border-radius: 0; background: none; color: var(--hs-ink); font-size: 16px; font-weight: 700; }
.hs-side .block .clear { display: none; }
.hs-side .block .listbox { margin: 0; padding: 0; border-radius: 0; background: none; font-size: 15px; line-height: 1.4; }
.hs-side .block .listbox ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.hs-side .block a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--hs-ink); font-size: 15px; line-height: 1.4; white-space: normal; }
.hs-side .block a:hover { background: var(--hs-soft); color: var(--hs-red-dark); }
.hs-side .block-account-navigation a.active { background: var(--hs-soft); color: var(--hs-red-dark); font-weight: 700; }
.account-page .body { color: var(--hs-text); font-size: 15px; }

/* account pages: customer info, addresses, change password (Views/Customer) */
.account-page .customer-info-box, .account-page .customer-addresses, .account-page .customer-pass-recovery { margin: 0; padding: 0; color: var(--hs-text); font-size: 15px; }
.account-page .section-title { margin: 24px 0 10px; padding: 0; color: var(--hs-ink); font-size: 18px; font-weight: 700; }
.account-page .body > :first-child .section-title:first-child, .account-page .customer-info-box > .section-title:first-child { margin-top: 0; }
.account-page .section-body { padding: 16px 20px; border: 1px solid var(--hs-line); border-radius: 12px; }
.account-page .section-body td { padding: 6px 16px 6px 0; vertical-align: middle; }
.account-page .section-body .item-name { color: var(--hs-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.account-page .section-body td input:not([type="checkbox"]):not([type="radio"]), .account-page .section-body td select { display: inline-block; width: 340px; max-width: calc(100% - 20px); vertical-align: middle; }
.account-page .buttons { margin: 16px 0 0; text-align: left; }
.account-page .customer-info-box .buttons .btn, .account-page .customer-pass-recovery .buttons .btn { border-color: var(--hs-red); background-color: var(--hs-red); color: #fff; }
.account-page .customer-addresses .address-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.account-page .customer-addresses .address-list > .clear { display: none; }
.account-page .customer-addresses .address-list .address-item { margin: 0; padding: 16px; border: 1px solid var(--hs-line); border-radius: 12px; font-size: 14px; line-height: 1.5; }
.account-page .customer-addresses .address-list .address-item b { color: var(--hs-ink); font-size: 16px; }
.account-page .customer-addresses .address-list .address-item td { padding: 0 0 8px; vertical-align: top; }
.account-page .customer-addresses .address-list .address-item .buttons { margin: 0; text-align: right; white-space: nowrap; }
.account-page .customer-addresses .address-list .address-item label { display: inline; margin: 0; font-size: inherit; }
.account-page .customer-addresses .add-button { float: none; margin: 16px 0 0; text-align: left; }
@media (max-width: 760px) {
    .account-page .section-body { padding: 14px; }
    .account-page .section-body table, .account-page .section-body tbody, .account-page .section-body tr, .account-page .section-body td { display: block; }
    .account-page .section-body td { padding: 0; }
    .account-page .section-body .item-name { padding-top: 10px; }
}

/* registration (Views/Customer/Register.cshtml): same sections as the account pages */
.registration-page .body { margin: 0; padding: 0; color: var(--hs-text); font-size: 15px; }
.registration-page .section-title { margin: 24px 0 10px; padding: 0; color: var(--hs-ink); font-size: 18px; font-weight: 700; }
.registration-page .body > .section-title:first-child, .registration-page form > .section-title:first-of-type { margin-top: 0; }
.registration-page .section-body { padding: 16px 20px; border: 1px solid var(--hs-line); border-radius: 12px; }
.registration-page .section-body td { padding: 6px 16px 6px 0; vertical-align: middle; }
.registration-page .section-body .item-name { color: var(--hs-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.registration-page .section-body td input:not([type="checkbox"]):not([type="radio"]), .registration-page .section-body td select { display: inline-block; width: 340px; max-width: calc(100% - 20px); vertical-align: middle; }
.registration-page .section-body td .required { margin-left: 4px; }
.registration-page .buttons { float: none; margin: 16px 0 0; text-align: left; }
.registration-page .buttons .btn { height: 48px; padding: 0 28px; border-color: var(--hs-red); background-color: var(--hs-red); color: #fff; font-size: 16px; }
.registration-page .buttons .btn:hover { border-color: var(--hs-red-dark); background-color: var(--hs-red-dark); }
.account-page .section-body td .required { margin-left: 4px; }
@media (max-width: 760px) {
    .registration-page .section-body { padding: 14px; }
    .registration-page .section-body table, .registration-page .section-body tbody, .registration-page .section-body tr, .registration-page .section-body td { display: block; }
    .registration-page .section-body td { padding: 0; }
    .registration-page .section-body .item-name { padding-top: 10px; }
}
