/*! GamingWorld - WooCommerce gaming storefront */

.gw-commerce-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.gw-shop-hero {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    margin-bottom: 18px;
    border: 1px solid var(--color-hairline-dark);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.68) 48%, rgba(0,0,0,0.18) 100%),
        radial-gradient(circle at 78% 18%, rgba(213,59,0,0.32), transparent 28%),
        radial-gradient(circle at 72% 78%, rgba(0,112,209,0.45), transparent 34%),
        linear-gradient(135deg, #080a0f 0%, #12141c 45%, #24120d 100%);
}

.gw-shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 100%);
    pointer-events: none;
}

.gw-shop-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 42px;
}

.gw-shop-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0,112,209,0.18);
    color: #9fd2ff;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.woocommerce-products-header__title {
    margin: 0;
    color: #fff !important;
    font-size: clamp(3rem, 5vw, 5.8rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.gw-shop-hero__description,
.gw-shop-hero__description p {
    max-width: 620px;
    margin-top: 16px;
    color: rgba(255,255,255,0.76);
    font-size: 1.5rem;
}

.gw-category-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 2px 18px;
    scrollbar-width: thin;
}

.gw-category-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: #141820;
    color: rgba(255,255,255,0.78);
    font-size: 1.3rem;
    font-weight: 700;
}

.gw-category-pill:hover,
.gw-category-pill.is-active {
    border-color: rgba(83,177,255,0.55);
    background: #0b3f75;
    color: #fff;
}

.gw-shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.gw-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--color-hairline-dark);
    border-radius: 8px;
    background: #10131a;
}

.woocommerce-result-count {
    float: none !important;
    margin: 0 !important;
    color: rgba(255,255,255,0.66) !important;
    font-size: 1.3rem !important;
}

.woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

.woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 6px !important;
    background: #090b10 !important;
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 1.3rem;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)) !important;
    gap: 16px !important;
    clear: both;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product.gw-product-card {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gw-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: #11151d;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gw-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(83,177,255,0.38);
    box-shadow: 0 18px 36px rgba(0,0,0,0.34);
}

.gw-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #080a0f;
}

.gw-product-card__media img {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
    transition: transform 240ms ease, opacity 180ms ease;
}

.gw-product-card__media.is-missing-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 36%, rgba(83,177,255,0.24), transparent 18%),
        linear-gradient(135deg, #101729 0%, #071b19 100%);
}

.gw-product-card__media.is-missing-image::before {
    content: "▶";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(0,112,209,0.45);
    color: #fff;
    font-size: 2.4rem;
    line-height: 58px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.gw-product-card:hover .gw-product-card__media img {
    transform: scale(1.04);
    opacity: 0.92;
}

.gw-product-card__discount,
.woocommerce span.onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 2;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 5px 8px !important;
    border-radius: 5px !important;
    background: #25d366 !important;
    color: #03130a !important;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.gw-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
}

.gw-product-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 25px;
    margin-bottom: 8px;
}

.gw-product-card__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.woocommerce ul.products li.product .gw-product-card__title,
.gw-product-card__title {
    min-height: 42px;
    margin: 0 0 10px;
    padding: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.gw-product-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gw-product-card__title a:hover {
    color: #9fd2ff;
}

.gw-product-card__prices {
    margin-top: auto;
}

.woocommerce ul.products li.product .price,
.gw-product-card__prices .price {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
}

.woocommerce ul.products li.product .price del,
.gw-product-card__prices del {
    color: rgba(255,255,255,0.42) !important;
    font-size: 1.2rem !important;
    font-weight: 600;
    opacity: 1 !important;
}

.woocommerce ul.products li.product .price ins,
.gw-product-card__prices ins {
    color: #25d366;
    text-decoration: none;
}

.gw-product-card__benefit {
    margin-top: 6px;
    color: rgba(255,255,255,0.48);
    font-size: 1.15rem;
}

.gw-product-card__actions {
    margin-top: 12px;
}

.woocommerce ul.products li.product .button.gw-product-card__button,
.gw-product-card__button {
    width: 100%;
    min-height: 38px;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
}

.gw-product-card__button:hover {
    background: var(--color-commerce) !important;
}

.single-product div.product {
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    gap: 34px;
    padding: 24px;
    border: 1px solid var(--color-hairline-dark);
    border-radius: 8px;
    background: #10131a;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    float: none !important;
    width: 100% !important;
}

.single-product div.product .product_title {
    margin-bottom: 14px;
    color: #fff !important;
    font-size: clamp(3rem, 4vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
}

.single-product div.product .price {
    color: #25d366 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
}

.single-product div.product .cart {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.woocommerce .quantity .qty {
    min-height: 48px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    background: #090b10;
    color: #fff;
}

.single-product div.product .single_add_to_cart_button {
    min-height: 48px !important;
    border-radius: 6px !important;
    background: var(--color-commerce) !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.gw-product-reassurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.gw-product-reassurance span {
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: #090b10;
    color: rgba(255,255,255,0.76);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
}

.woocommerce-tabs {
    grid-column: 1 / -1;
}

.single-product .related.products,
.single-product .upsells.products {
    grid-column: 1 / -1;
}

.woocommerce-tabs ul.tabs {
    margin: 28px 0 18px !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.woocommerce-tabs ul.tabs li {
    border: 0 !important;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li a {
    color: rgba(255,255,255,0.56) !important;
    font-weight: 900 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
}

.woocommerce-tabs .panel,
.woocommerce-Tabs-panel,
.woocommerce-product-details__short-description {
    color: rgba(255,255,255,0.72);
}

.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account .woocommerce,
.cart_totals,
.woocommerce-order {
    color: rgba(255,255,255,0.74);
}

.woocommerce table.shop_table {
    overflow: hidden;
    border: 1px solid var(--color-hairline-dark) !important;
    border-radius: 8px !important;
    background: #10131a;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.76);
}

.woocommerce table.shop_table th {
    color: #fff;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 18px;
    border: 1px solid var(--color-hairline-dark);
    border-radius: 8px;
    background: #10131a;
}

.woocommerce-cart .checkout-button,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    border-radius: 6px !important;
    background: var(--color-commerce) !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-top: 3px solid var(--color-primary) !important;
    border-radius: 8px !important;
    background: #10131a !important;
    color: #fff !important;
}

.woocommerce-message {
    border-top-color: #25d366 !important;
}

.woocommerce-error {
    border-top-color: var(--color-warning) !important;
}

.widget {
    margin-bottom: 24px;
    color: rgba(255,255,255,0.7);
}

.widget-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget a {
    color: rgba(255,255,255,0.68);
}

.widget a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .single-product div.product {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .gw-commerce-shell {
        width: min(100% - 20px, 1440px);
        padding-top: 18px;
    }

    .gw-shop-hero__content {
        padding: 28px 20px;
    }

    .gw-shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .woocommerce-ordering select {
        width: 100%;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .gw-product-card__body {
        padding: 10px;
    }

    .gw-product-reassurance {
        grid-template-columns: 1fr;
    }
}

/* Light ecommerce redesign overrides */
.gw-commerce-shell {
    width: min(1420px, calc(100% - 32px));
    padding-top: 28px;
}

.gw-shop-hero {
    min-height: 300px;
    border: 0;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.86) 46%, rgba(255,255,255,0.2) 100%),
        url("../images/gw-hero-blue-green.png") right center / cover no-repeat;
    box-shadow: 0 24px 80px rgba(15,118,110,0.16);
}

.gw-shop-hero::before {
    display: none;
}

.gw-shop-hero__eyebrow,
.gw-category-pill.is-active,
.gw-category-pill:hover {
    background: linear-gradient(135deg, #0070d1, #00b894);
    color: #fff;
}

.woocommerce-products-header__title {
    color: #0f172a !important;
}

.gw-shop-hero__description,
.gw-shop-hero__description p {
    color: #667085;
}

.gw-category-pill {
    border-color: rgba(16,24,40,0.08);
    background: #fff;
    color: #344054;
    box-shadow: 0 12px 28px rgba(16,24,40,0.07);
}

.gw-shop-toolbar,
.gw-product-card,
.single-product div.product,
.woocommerce table.shop_table,
.woocommerce-cart .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation {
    border: 1px solid rgba(16,24,40,0.08);
    background: #fff;
    box-shadow: 0 16px 42px rgba(16,24,40,0.08);
}

.gw-shop-toolbar {
    border-radius: 18px;
}

.woocommerce-result-count {
    color: #667085 !important;
}

.woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    border-color: rgba(16,24,40,0.12) !important;
    background: #fff !important;
    color: #101828 !important;
}

.gw-product-card {
    border-radius: 18px;
    color: #101828;
}

.gw-product-card:hover {
    border-color: rgba(0,184,148,0.35);
    box-shadow: 0 22px 46px rgba(15,118,110,0.14);
}

.gw-product-card__media {
    background: #eef6fb;
}

.gw-product-card__media.is-missing-image::after {
    background:
        radial-gradient(circle at 50% 36%, rgba(0,184,148,0.18), transparent 18%),
        linear-gradient(135deg, #eef7ff 0%, #e9fff7 100%);
}

.gw-product-card__chips span {
    border-color: rgba(16,24,40,0.08);
    background: #f8fafc;
    color: #475467;
}

.gw-product-card__title a,
.single-product div.product .product_title {
    color: #101828 !important;
}

.gw-product-card__title a:hover {
    color: #008b7a;
}

.woocommerce ul.products li.product .price,
.gw-product-card__prices .price,
.single-product div.product .price {
    color: #008b7a !important;
}

.woocommerce ul.products li.product .price del,
.gw-product-card__prices del {
    color: #98a2b3 !important;
}

.gw-product-card__benefit,
.woocommerce-tabs .panel,
.woocommerce-Tabs-panel,
.woocommerce-product-details__short-description,
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account .woocommerce,
.cart_totals,
.woocommerce-order {
    color: #667085;
}

.woocommerce ul.products li.product .button.gw-product-card__button,
.gw-product-card__button,
.single-product div.product .single_add_to_cart_button,
.woocommerce-cart .checkout-button,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0070d1, #00b894) !important;
    box-shadow: 0 12px 26px rgba(0,112,209,0.18);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: rgba(16,24,40,0.08) !important;
    color: #667085;
}

.woocommerce table.shop_table th {
    color: #101828;
}

.gw-product-reassurance span {
    border-color: rgba(16,24,40,0.08);
    background: #f8fafc;
    color: #344054;
}

.woocommerce-tabs ul.tabs {
    border-bottom-color: rgba(16,24,40,0.08) !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #667085 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #007467 !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-color: rgba(16,24,40,0.08) !important;
    background: #fff !important;
    color: #101828 !important;
    box-shadow: 0 16px 42px rgba(16,24,40,0.08);
}

.woocommerce nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(16,24,40,0.08) !important;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16,24,40,0.08);
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0 !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 1px solid rgba(0,112,209,0.14);
    border-radius: 999px !important;
    background: #f7fbff !important;
    color: #344054 !important;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1 !important;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
    background: linear-gradient(135deg, rgba(0,112,209,0.12), rgba(0,184,148,0.14)) !important;
    color: #007467 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,112,209,0.14);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0070d1, #00b894) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(0,112,209,0.22);
}

.woocommerce nav.woocommerce-pagination ul li span.dots {
    border-color: transparent !important;
    background: transparent !important;
    color: #98a2b3 !important;
    box-shadow: none;
}
