/**
Theme Name: ShareTech
Author: Daniel Limón
Author URI: https://dlimon.net
Description: AstraWP Child Theme custom implementation for ShareTech/ShareVDI/Share Computers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sharetech
Template: astra
*/

a {
    text-decoration: none!important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li a {
    color: inherit!important;
}

/* Newsletter CTA (Forminator) */
.sharetech-newsletter-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}


.sharetech-newsletter-form .forminator-ui.forminator-custom-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.sharetech-newsletter-form .forminator-ui .forminator-response-message {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    border-radius: 10px;
}

.sharetech-newsletter-form .forminator-ui .forminator-row {
    margin: 0;
}

.sharetech-newsletter-form .forminator-ui .forminator-row:not(.forminator-row-last) {
    grid-column: 1;
}

.sharetech-newsletter-form .forminator-ui .forminator-row.forminator-row-last {
    grid-column: 2;
}

.sharetech-newsletter-form .forminator-ui .forminator-col,
.sharetech-newsletter-form .forminator-ui .forminator-field {
    margin: 0;
    padding: 0;
}

.sharetech-newsletter-form .forminator-ui .forminator-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sharetech-newsletter-form .forminator-ui .forminator-input.forminator-email--field {
    min-height: 60px;
    padding: 0 20px;
    border-radius: 12px!important;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #253f67;
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sharetech-newsletter-form .forminator-ui .forminator-input.forminator-email--field::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.sharetech-newsletter-form .forminator-ui .forminator-input.forminator-email--field:focus {
    border-color: #60a5fa;
    background: #2b4872;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
    outline: none;
}

.sharetech-newsletter-form .forminator-ui .forminator-button.forminator-button-submit {
    min-height: 60px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 12px!important;
    background: #2d7cf6;
    color: #ffffff;
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.sharetech-newsletter-form .forminator-ui .forminator-button.forminator-button-submit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.sharetech-newsletter-form .forminator-ui .forminator-button.forminator-button-submit:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .sharetech-newsletter-form .forminator-ui.forminator-custom-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sharetech-newsletter-form .forminator-ui .forminator-row:not(.forminator-row-last),
    .sharetech-newsletter-form .forminator-ui .forminator-row.forminator-row-last {
        grid-column: 1;
    }

    .sharetech-newsletter-form .forminator-ui .forminator-button.forminator-button-submit {
        width: 100%;
    }
}

/* Custom Astra footer override */
.sharetech-footer {
    background: #020f27;
    color: #94a3b8;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.sharetech-footer__inner {
    width: min(1400px, 92%);
    margin: 0 auto;
}

.sharetech-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(140px, 1fr)) minmax(180px, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.17);
}

.sharetech-footer__brand-title {
    margin: 0 0 1rem;
    font-size: clamp(1.2rem, 1.9vw, 1.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f8fafc;
}

.sharetech-footer__brand-text {
    margin: 0;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    max-width: 34ch;
    color: #64748b;
}

.sharetech-footer__title {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 1.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #e2e8f0;
}

.sharetech-footer__menu,
.sharetech-footer__contact-list,
.sharetech-footer__legal-menu,
.sharetech-footer__social {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sharetech-footer__menu li + li,
.sharetech-footer__contact-list li + li {
    margin-top: 0.8rem;
}

.sharetech-footer__menu a,
.sharetech-footer__contact-list a,
.sharetech-footer__legal-menu a {
    color: #64748b;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sharetech-footer__menu a:hover,
.sharetech-footer__contact-list a:hover,
.sharetech-footer__legal-menu a:hover {
    color: #cbd5e1;
}

.sharetech-footer__menu a:focus-visible,
.sharetech-footer__contact-list a:focus-visible,
.sharetech-footer__legal-menu a:focus-visible,
.sharetech-footer__social a:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 6px;
}

.sharetech-footer__contact-list li {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.45;
    color: #64748b;
    word-break: break-word;
}

.sharetech-footer__social {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.sharetech-footer__social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.3);
    color: #94a3b8;
    font-weight: 600;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.sharetech-footer__social a:hover {
    background: rgba(30, 64, 175, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
    color: #dbeafe;
}

.sharetech-footer__bottom {
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sharetech-footer__copyright {
    margin: 0;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.4;
    color: #64748b;
}

.sharetech-footer__legal-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .sharetech-footer__grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .sharetech-footer__brand {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .sharetech-footer {
        padding-top: 1.8rem;
    }

    .sharetech-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sharetech-footer__brand {
        grid-column: auto;
    }

    .sharetech-footer__social {
        margin-top: 1rem;
    }

    .sharetech-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Page template hero */
.sharetech-page-template {
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Neutralize Astra default top spacing above #primary only on internal default pages. */
body.page-template-default:not(.home) .site-content > .ast-container {
    padding-top: 0;
}

#primary.sharetech-page-template {
    margin-top: 0 !important;
}

.sharetech-page-hero {
    position: relative;
    min-height: clamp(300px, 42vw, 460px);
    display: grid;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    isolation: isolate;
}

.sharetech-page-hero__media,
.sharetech-page-hero__overlay {
    grid-area: 1 / 1;
}

.sharetech-page-hero__media {
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

.sharetech-page-hero__overlay {
    background:
        linear-gradient(105deg, rgba(2, 15, 39, 0.9) 0%, rgba(2, 15, 39, 0.74) 42%, rgba(2, 15, 39, 0.3) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.52));
    display: flex;
    align-items: center;
    z-index: 1;
}

.sharetech-page-hero__inner {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: clamp(1.4rem, 4.5vw, 3rem) 0;
}

.sharetech-page-hero__content {
    width: min(760px, 100%);
    padding: clamp(1rem, 2.8vw, 1.8rem) clamp(1rem, 2.6vw, 1.6rem);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(150deg, rgba(2, 15, 39, 0.78), rgba(30, 58, 138, 0.36));
    backdrop-filter: blur(2px);
}

.sharetech-page-hero__eyebrow {
    margin: 0 0 0.6rem;
    color: #93c5fd;
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.sharetech-page-hero__title {
    margin: 0;
    color: #f8fafc !important;
    line-height: 1.08;
    font-size: clamp(1.7rem, 4.2vw, 3.2rem);
    max-width: 22ch;
    letter-spacing: -0.01em;
    text-wrap: balance;
    text-shadow: 0 8px 30px rgba(2, 15, 39, 0.7);
}

.sharetech-page-hero__subtitle {
    margin: 1rem 0 0;
    max-width: 60ch;
    color: #cbd5e1;
    font-size: clamp(0.96rem, 1.2vw, 1.12rem);
    line-height: 1.5;
}

.sharetech-page-content {
    padding: clamp(1.8rem, 4.5vw, 3.2rem) 0;
}

.sharetech-page-content__inner {
    width: min(1400px, 92%);
    margin: 0 auto;
}

@media (max-width: 767px) {
    .sharetech-page-hero {
        min-height: 250px;
    }

    .sharetech-page-hero__eyebrow {
        letter-spacing: 0.14em;
    }

    .sharetech-page-hero__content {
        border-radius: 10px;
    }
}

/* WooCommerce custom shop archive */

.woocommerce-js .products ul, .woocommerce-js ul.products {
    padding: 0.75em!important;
}

.sharetech-shop-wrapper {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding-bottom: clamp(2rem, 5vw, 4rem);
    color: #dbe7ff;
}

.sharetech-shop-hero {
    margin: clamp(0.5rem, 2vw, 1.2rem) 0 clamp(1.2rem, 3vw, 2rem);
    border-radius: 18px;
    background:
        linear-gradient(130deg, #041736 0%, #0a2b5c 100%),
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.12), transparent 55%);
    border: 1px solid rgba(116, 153, 211, 0.24);
}

.sharetech-shop-hero__inner {
    padding: clamp(1.2rem, 3.2vw, 2.5rem);
}

.sharetech-shop-hero__title {
    margin: 0;
    color: #eff6ff;
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.sharetech-shop-category {
    margin-top: clamp(1.4rem, 3vw, 2.5rem);
    border-radius: 16px;
    border: 1px solid rgba(94, 131, 191, 0.38);
    background: #102748;
    box-shadow: 0 18px 40px rgba(1, 8, 24, 0.45);
    overflow: hidden;
}

.sharetech-shop-wrapper--main.is-anim-ready .sharetech-shop-category {
    opacity: 0;
    transform: translateY(14px);
}

.sharetech-shop-wrapper--main.is-anim-ready .sharetech-shop-category.is-in-view {
    animation: sharetech-shop-section-in 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.sharetech-shop-category__header {
    padding: clamp(1rem, 2.4vw, 1.8rem);
    background: linear-gradient(160deg, #153463 0%, #122e57 100%);
    border-bottom: 1px solid rgba(86, 122, 181, 0.35);
}

.sharetech-shop-category__title {
    margin: 0;
    color: #eaf2ff;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}

.sharetech-shop-category__description {
    margin: 0.8rem 0 0;
    color: #b7caea;
    max-width: 72ch;
    line-height: 1.6;
}

.sharetech-shop-subcategories {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.sharetech-shop-subcategory-card {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 62px;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(94, 131, 191, 0.42);
    background: #163864;
    color: #dce9ff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sharetech-shop-subcategory-card:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 160, 247, 0.7);
    box-shadow: 0 10px 22px rgba(5, 14, 33, 0.42);
}

.sharetech-shop-subcategory-card:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.sharetech-shop-subcategory-card.is-active {
    border-color: rgba(103, 160, 247, 0.9);
    background: #1d4c84;
    box-shadow: inset 0 0 0 1px rgba(138, 181, 245, 0.32);
    animation: sharetech-chip-pop 0.24s ease;
}

.sharetech-shop-subcategory-card__image {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.sharetech-shop-subcategory-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sharetech-shop-subcategory-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.sharetech-shop-products-grid {
    margin: 0;
    padding: clamp(1rem, 2.2vw, 1.8rem);
    row-gap: clamp(1rem, 2vw, 1.4rem);
}

.sharetech-shop-products-grid__empty {
    margin: 0;
    padding: 0 1rem 0.8rem;
    color: #c8daf8;
    font-size: 0.95rem;
}

.sharetech-shop-products-grid li.product {
    background: #0f2f59;
    border: 1px solid rgba(93, 128, 181, 0.36);
    border-radius: 12px;
    padding: 0.8rem;
    will-change: transform, opacity;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sharetech-shop-category.is-filtering .sharetech-shop-products-grid li.product {
    opacity: 0.72;
}

.sharetech-shop-products-grid li.product.is-filter-enter {
    animation: sharetech-product-filter-in 0.28s ease;
}

.sharetech-shop-products-grid li.product:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 160, 247, 0.68);
    box-shadow: 0 12px 26px rgba(4, 13, 30, 0.4);
}

.sharetech-shop-products-grid li.product .woocommerce-loop-product__title,
.sharetech-shop-products-grid li.product .ast-woo-product-title,
.sharetech-shop-products-grid li.product h2,
.sharetech-shop-products-grid li.product h3 {
    color: #edf4ff;
}

.sharetech-shop-products-grid li.product .price,
.sharetech-shop-products-grid li.product .price * {
    color: #c8daf8;
}

.sharetech-shop-products-grid li.product .button-wrap,
.sharetech-shop-products-grid li.product .ast-woo-product-cart,
.sharetech-shop-products-grid li.product .ast-loop-product__actions,
.sharetech-shop-products-grid li.product .astra-shop-summary-wrap {
    width: 100%;
    text-align: center !important;
}

.sharetech-shop-products-grid li.product .button-wrap,
.sharetech-shop-products-grid li.product .ast-woo-product-cart,
.sharetech-shop-products-grid li.product .ast-loop-product__actions {
    display: flex !important;
    justify-content: center !important;
}

.astra-shop-summary-wrap {
    padding: 0.5em;
}

.attachment-woocommerce_thumbnail,
.size-woocommerce_thumbnail {
    border-radius: 10px;
}

.sharetech-shop-products-grid li.product a.button,
.sharetech-shop-products-grid li.product a.add_to_cart_button,
.sharetech-shop-products-grid li.product .button {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto !important;
    background: #1d68db;
    color: #ffffff;
    border: 1px solid rgba(70, 136, 235, 0.3);
}

.sharetech-shop-products-grid li.product a.button:hover,
.sharetech-shop-products-grid li.product a.add_to_cart_button:hover,
.sharetech-shop-products-grid li.product .button:hover {
    background: #1657bd;
}

.sharetech-shop-category__footer {
    padding: 0 clamp(1rem, 2.2vw, 1.8rem) clamp(1rem, 2.2vw, 1.8rem);
}

.sharetech-shop-category__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(70, 136, 235, 0.25);
    background: #1d68db;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.sharetech-shop-category__cta:hover {
    background: #1657bd;
    transform: translateY(-1px);
}

.sharetech-shop-category__cta:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.sharetech-shop-category__empty,
.sharetech-shop-empty {
    margin: 0;
    padding: 1rem 1.2rem;
    color: #c8daf8;
}

.sharetech-shop-controls,
.sharetech-shop-footer {
    margin: 1rem 0;
}

@keyframes sharetech-shop-section-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sharetech-product-filter-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sharetech-chip-pop {
    0% {
        transform: scale(0.985);
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sharetech-shop-wrapper--main.is-anim-ready .sharetech-shop-category,
    .sharetech-shop-wrapper--main.is-anim-ready .sharetech-shop-category.is-in-view,
    .sharetech-shop-products-grid li.product.is-filter-enter,
    .sharetech-shop-subcategory-card.is-active {
        animation: none !important;
    }

    .sharetech-shop-subcategory-card,
    .sharetech-shop-products-grid li.product {
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .sharetech-shop-subcategories {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 767px) {
    .sharetech-shop-wrapper {
        width: min(1400px, 96.8%);
    }

    .sharetech-shop-hero {
        margin: 0.35rem 0 0.9rem;
        border-radius: 14px;
    }

    .sharetech-shop-hero__inner {
        padding: 0.95rem 0.9rem;
    }

    .sharetech-shop-hero__title {
        font-size: clamp(1.35rem, 6.2vw, 1.8rem);
    }

    .sharetech-shop-category {
        margin-top: 0.95rem;
        border-radius: 12px;
    }

    .sharetech-shop-category__header {
        padding: 0.75rem;
    }

    .sharetech-shop-category__description {
        margin-top: 0.55rem;
        line-height: 1.45;
    }

    .sharetech-shop-subcategories {
        margin-top: 0.8rem;
        gap: 0.45rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sharetech-shop-subcategory-card {
        min-height: 54px;
        padding: 0.5rem 0.55rem;
    }

    .sharetech-shop-subcategory-card__name {
        font-size: 0.9rem;
    }

    .sharetech-shop-products-grid {
        padding: 0.55rem;
        gap: 0.55rem;
    }

    .sharetech-shop-products-grid li.product {
        border-radius: 10px;
        padding: 0.55rem;
    }

    .sharetech-shop-products-grid li.product .astra-shop-summary-wrap {
        padding: 0.35rem;
    }

    .sharetech-shop-products-grid li.product a.button,
    .sharetech-shop-products-grid li.product a.add_to_cart_button,
    .sharetech-shop-products-grid li.product .button {
        padding: 0.5rem 0.95rem;
        min-height: 38px;
        font-size: 0.95rem;
    }

    .sharetech-shop-category__footer {
        padding: 0 0.65rem 0.75rem;
    }

    .sharetech-shop-category__cta {
        min-height: 42px;
        padding: 0.58rem 0.9rem;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .sharetech-shop-wrapper {
        width: min(1400px, 97.8%);
    }

    .sharetech-shop-products-grid {
        padding: 0.45rem;
        gap: 0.45rem;
    }

    .sharetech-shop-products-grid li.product {
        padding: 0.45rem;
    }
}