/* ==========================================================================
   GrabbyHost — Product Group / Product Listing
   Path: /services/templates/orderforms/standard_cart/css/products.css
   Colors and component recipes match the established order-forms palette
   used in cart-checkout.css / domain.css / configureproduct.css (NOT the
   separate client-area theme tokens in
   templates/grabby-modern/css/variables.css — two different template
   groups, two different palettes).

   Reference recipes taken directly from cart-checkout.css:
   - Primary CTA orange:  #ff7a1a / #ff741f, hover #e96a0c
   - Icon chip:           color #ff7a1a on background #fff1e8
   - Navy hero gradient:  linear-gradient(120deg,#10213a 0%,#162a47 60%,#273247 100%)
                          + radial-gradient(circle at 90% 10%, rgba(255,122,26,.22-.24), transparent 30%)
   - Card shell:          #fff bg, 1px solid #e2e8f0, radius 18-20px,
                          box-shadow 0 16px 42px rgba(23,38,59,.08)
   - Kicker/eyebrow:      color #ff741f, 11-13px, weight 900, letter-spacing .08-.12em, uppercase
   ========================================================================== */

.gh-products-page {
    --ghp-navy: #17263b;
    --ghp-navy-2: #223653;
    --ghp-orange: #ff7a1a;
    --ghp-orange-2: #ff741f;
    --ghp-orange-hover: #e96a0c;
    --ghp-orange-tint: #fff1e8;
    --ghp-green: #20ad73;
    --ghp-green-tint: #f2fbf7;
    --ghp-text: #17263b;
    --ghp-muted: #667085;
    --ghp-border: #e2e8f0;
    --ghp-border-strong: #cbd5e1;
    --ghp-surface: #ffffff;
    background: transparent;
    color: var(--ghp-text);
}

/* ---------- Hero ---------- */
.gh-products-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 56px;
    border-radius: 0px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 122, 26, 0.24), transparent 30%),
        linear-gradient(120deg, #10213a 0%, #162a47 60%, #273247 100%);
    color: #fff;
	min-height: 274px !important;
}

.gh-products-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -90px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.025), 0 0 0 76px rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.gh-products-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: center;
    gap: 42px;
}

.gh-products-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ff9a52;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gh-products-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.gh-products-hero__content > p {
    max-width: 690px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.7;
}

.gh-products-hero__card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
}

.gh-products-hero__card-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #ff8a36, #ff6900);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 12px 26px rgba(255, 106, 0, 0.3);
    transform: rotate(-5deg);
}

.gh-products-hero__card-icon i {
    transform: rotate(5deg);
}

.gh-products-hero__card strong,
.gh-products-hero__card span {
    display: block;
}

.gh-products-hero__card strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 14.5px;
}

.gh-products-hero__card div > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Layout ---------- */
.gh-products-layout {
    padding-top: 30px;
}

.gh-products-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    border-radius: 14px;
}

.gh-products-mobile-categories {
    display: none;
    margin-bottom: 22px;
}

/* ---------- Product grid — 3 per row ---------- */
.gh-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 4px;
}

.gh-product-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ghp-border);
    border-radius: 18px;
    background: var(--ghp-surface);
    box-shadow: 0 16px 42px rgba(23, 38, 59, 0.08);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.gh-product-card:hover {
    transform: translateY(-4px);
    border-color: #ffc79f;
    box-shadow: 0 22px 48px rgba(23, 38, 59, 0.12);
}

.gh-product-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 24px 4px;
    text-align: center;
}

.gh-product-card__label {
    display: block;
    color: var(--ghp-orange-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-product-card h3 {
    margin: 0;
    color: var(--ghp-text);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gh-product-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--ghp-green-tint);
    color: var(--ghp-green);
    font-size: 11px;
    font-weight: 800;
}

.gh-product-card__description {
    margin: 2px 0 0;
    color: var(--ghp-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* WHMCS runs the admin-entered description through nl2br(), so every
   newline in the raw HTML (including the ones the admin used just to
   indent/separate <li> tags for readability) becomes a literal <br>
   sibling of <li> inside the <ul>/<ol> — on top of each <li> already
   being a bordered block row below. That's what was inflating every
   card that used a list-style description. The browser keeps those
   stray <br> tags as direct children of the list (confirmed via
   inspecting the rendered markup), so they can be targeted and hidden
   here without touching real manual line breaks used outside a list. */
.gh-product-card__description ul > br,
.gh-product-card__description ol > br {
    display: none;
}

/* Renders whatever HTML an admin enters in WHMCS Admin > Products/Services
   > Edit Product > Description — paragraphs, ordered/unordered lists,
   strong/em text and manual line breaks all need real block-level layout
   here (this container is a <div> in products.tpl for exactly that
   reason: a <p> tag cannot legally contain a <ul>/<ol>/<p>, and a browser
   silently reflows that invalid nesting, which is what caused the
   description to collapse onto one line before). */
.gh-product-card__description p {
    margin: 0 0 10px;
}

.gh-product-card__description p:last-child {
    margin-bottom: 0;
}

.gh-product-card__description strong {
    color: var(--ghp-text);
    font-weight: 800;
}

.gh-product-card__description em {
    color: var(--ghp-text);
    font-style: italic;
}


.gh-product-card__description ul,
.gh-product-card__description ol {
    display: block;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.gh-product-card__description ol {
    counter-reset: gh-description-ol;
}

.gh-product-card__description ul > li,
.gh-product-card__description ol > li {
    position: relative;
    display: block;
    padding: 6px 0 6px 26px;
    border-bottom: 1px dashed #edf1f6;
    font-size: 13.5px;
    line-height: 1.5;
}

.gh-product-card__description ul > li:last-child,
.gh-product-card__description ol > li:last-child {
    border-bottom: 0;
}

.gh-product-card__description ul > li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 7px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: var(--ghp-green-tint);
    color: var(--ghp-green);
    font-family: "Font Awesome 6 Pro";
    font-size: 8px;
    font-weight: 900;
}

.gh-product-card__description ol > li {
    counter-increment: gh-description-ol;
}

.gh-product-card__description ol > li::before {
    content: counter(gh-description-ol) ".";
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    color: var(--ghp-green);
    font-size: 12px;
    font-weight: 800;
}

/* Comparison-chart price panel: a distinct light-gray boxed section,
   centered — matches the classic hosting pricing table look. */
.gh-product-card__price-block {
    margin: 18px 24px 0;
    padding: 18px 20px;
    text-align: center;
    background: #f6f8fb;
    border: 1px solid #eef1f6;
    border-radius: 14px;
}

.gh-product-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.gh-product-card__price {
    color: var(--ghp-text);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gh-product-card__pricing-label {
    display: block;
    color: var(--ghp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gh-product-card__cycle {
    color: var(--ghp-muted);
    font-size: 14px;
    font-weight: 700;
}

.gh-product-card__price-block small {
    display: block;
    margin-top: 8px;
    color: var(--ghp-muted);
    font-size: 11.5px;
}

.gh-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 24px;
}

.gh-product-card__included-label {
    margin: 0 0 12px;
    color: var(--ghp-text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-align: center;
}

.gh-product-card__features {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gh-product-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px dashed #edf1f6;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.gh-product-card__features li:last-child {
    border-bottom: 0;
}

.gh-product-card__feature-icon {
    display: grid;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--ghp-green-tint);
    color: var(--ghp-green);
    font-size: 9px;
}

.gh-product-card__features strong {
    color: var(--ghp-text);
    font-weight: 800;
}

.gh-product-card__footer {
    margin-top: auto;
    padding: 4px 22px 24px;
}

.gh-product-card__button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--ghp-orange);
    border-radius: 11px;
    background: var(--ghp-orange);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 900;
    text-decoration: none !important;
    transition: 0.2s ease;
}

.gh-product-card__button i {
    font-size: 12px;
}

.gh-product-card__button:hover {
    background: var(--ghp-orange-hover);
    border-color: var(--ghp-orange-hover);
    transform: translateX(1px);
}

/* ---------- Addon cards (addons.tpl) — reuses the product card shell ---------- */
.gh-product-card__footer.is-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.gh-product-card__addon-select {
    margin: 0 0 18px;
}

.gh-product-card__addon-price {
    margin: 0;
    color: var(--ghp-text);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.gh-product-card__addon-price strong {
    font-size: 21px;
    font-weight: 900;
}

.gh-product-card__button.is-inline {
    display: inline-flex;
    width: auto;
    margin-top: 14px;
}

/* ---------- Empty state ---------- */
.gh-products-empty {
    grid-column: 1 / -1;
    padding: 54px 24px;
    border: 1px dashed var(--ghp-border-strong);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.gh-products-empty__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 15px;
    background: var(--ghp-orange-tint);
    color: var(--ghp-orange);
    font-size: 22px;
}

.gh-products-empty h3 {
    margin: 0 0 8px;
    color: var(--ghp-text);
    font-size: 20px;
    font-weight: 900;
}

.gh-products-empty p {
    margin: 0;
    color: var(--ghp-muted);
}

/* ---------- Help banner ---------- */
.gh-products-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 23px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ghp-navy), var(--ghp-navy-2));
    color: #fff;
    box-shadow: 0 18px 42px rgba(23, 38, 59, 0.18);
}

.gh-products-help__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 20px;
}

.gh-products-help__content > span {
    display: block;
    margin-bottom: 4px;
    color: #ff9a52;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-products-help h3 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.gh-products-help p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.gh-products-help__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 11px;
    background: #fff;
    color: var(--ghp-navy) !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .gh-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .gh-products-hero {
        padding: 40px 34px;
    }

    .gh-products-hero__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .gh-products-hero__card {
        max-width: 520px;
    }
}

@media (max-width: 767.98px) {
    .gh-products-hero {
        padding: 32px 24px;
    }

    .gh-products-hero h1 {
        font-size: 2rem;
    }

    .gh-products-grid {
        grid-template-columns: 1fr;
    }

    .gh-products-help {
        grid-template-columns: auto 1fr;
    }

    .gh-products-help__button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gh-products-hero__card {
        align-items: flex-start;
    }

    .gh-product-card__header,
    .gh-product-card__price-block,
    .gh-product-card__body,
    .gh-product-card__footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}
