/* Academy shop: /templates/, product pages, cart and checkout (inc/shop.php). */

/* Header cart link */
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-cart:hover {
    color: #F5A623;
}

.nav-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #F5A623;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.nav-cart-count[hidden] {
    display: none;
}

.mobile-nav-cart {
    margin-right: 6px;
}

/* Shared */
.shop-eyebrow {
    display: inline-block;
    color: #F5A623;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* Hero */
.shop-hero {
    background: #000000;
    padding: 170px 60px 40px;
    text-align: center;
}

.shop-hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.shop-hero h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 22px;
}

.shop-hero p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Product list */
.shop-section {
    background: #000000;
    padding: 40px 60px 120px;
}

.shop-container {
    max-width: 1300px;
    margin: 0 auto;
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.shop-filters a {
    padding: 10px 22px;
    border: 1px solid #2a2a2a;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.shop-filters a:hover {
    border-color: #F5A623;
    color: #ffffff;
}

.shop-filters a.active {
    background: #F5A623;
    border-color: #F5A623;
    color: #000000;
    font-weight: 600;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #222;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.shop-card:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-4px);
}

.shop-card-link {
    display: block;
}

.shop-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 28px 28px;
}

.shop-card h2 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.shop-card:hover .shop-cover-title,
.shop-card h2 a:hover {
    color: #F5A623;
}

.shop-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.shop-price,
.product-price {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.shop-price del,
.product-price del {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    margin-right: 6px;
}

.shop-price ins,
.product-price ins {
    text-decoration: none;
}

.shop-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Cover drawn from the product's name when it has no image */
.shop-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 28px;
    background: #111111;
    border-bottom: 1px solid #222;
    overflow: hidden;
}

.shop-cover::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    width: 48px;
    height: 4px;
    background: #F5A623;
}

.shop-cover-brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.shop-cover-title {
    margin: 0;
    transition: color 0.3s ease;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
    max-width: 90%;
}

.shop-cover-meta {
    font-size: 13px;
    color: #F5A623;
}

.shop-cover.has-image {
    padding: 0;
}

.shop-cover.has-image::before {
    display: none;
}

.shop-cover.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons (add to cart, view cart) */
.shop-card .button,
.product-buy .button,
.product-buy button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: #F5A623;
    color: #000000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shop-card .button:hover,
.product-buy .button:hover,
.product-buy button:hover {
    background: #e09515;
}

.shop-card .button.loading {
    opacity: 0.6;
}

.shop-card .button.added {
    display: none;
}

.shop-card .added_to_cart,
.product-buy .added_to_cart {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border: 1px solid #F5A623;
    border-radius: 8px;
    color: #F5A623;
    font-size: 14px;
    font-weight: 600;
}

.shop-card .added_to_cart:hover {
    background: rgba(245, 166, 35, 0.1);
}

/* Product page */
.product-section {
    background: #000000;
    padding: 150px 60px 100px;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.product-back:hover {
    color: #F5A623;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-media .shop-cover {
    border-radius: 20px;
    border: 1px solid #222;
    padding: 40px;
}

.product-media .shop-cover::before {
    left: 40px;
}

.product-media .shop-cover-title {
    font-size: 40px;
}

.product-info h1 {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 18px;
}

.product-price {
    font-size: 28px;
    margin-bottom: 22px;
}

.product-lead {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.product-facts {
    list-style: none;
    margin-bottom: 30px;
}

.product-facts li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.product-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #F5A623;
    border-bottom: 2px solid #F5A623;
    transform: rotate(-45deg);
}

.product-buy form.cart {
    display: flex;
    gap: 12px;
}

.product-buy .quantity {
    display: none;
}

.product-buy .button,
.product-buy button {
    padding: 16px 40px;
    font-size: 15px;
}

.product-description {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.product-description p {
    margin-bottom: 16px;
}

/* Notices ("added to your cart") */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 30px;
    padding: 16px 20px;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #F5A623;
    border-radius: 8px;
    background: #111111;
    font-size: 15px;
}

.woocommerce-notices-wrapper .button {
    order: 2;
    color: #F5A623;
    font-weight: 600;
}

/* Cart, checkout and account pages (WooCommerce blocks on the dark background) */
.shop-page-section {
    background: #000000;
    padding: 150px 60px 100px;
    min-height: 70vh;
}

.shop-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.shop-page-container > h1 {
    font-size: 44px;
    font-weight: 400;
    margin-bottom: 40px;
}

.shop-page-container a {
    color: #F5A623;
}

.shop-page-container .wc-block-components-product-name {
    color: #ffffff;
    font-weight: 600;
}

.shop-page-container .wc-block-cart,
.shop-page-container .wc-block-checkout,
.shop-page-container .wc-block-components-totals-wrapper,
.shop-page-container .wc-block-components-product-metadata {
    color: #ffffff;
}

.shop-page-container .wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-panel,
.shop-page-container .wc-block-components-totals-wrapper,
.shop-page-container table.wc-block-cart-items,
.shop-page-container .wc-block-cart-items__row {
    border-color: #2a2a2a !important;
}

.shop-page-container .wc-block-components-button:not(.is-link),
.shop-page-container .wc-block-cart__submit-button {
    background: #F5A623 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: inherit;
    font-weight: 600;
}

.shop-page-container .wc-block-components-button:not(.is-link):hover {
    background: #e09515 !important;
}

.shop-page-container .wc-block-components-text-input input,
.shop-page-container .wc-block-components-text-input textarea,
.shop-page-container .wc-blocks-components-select .wc-blocks-components-select__select,
.shop-page-container .wc-block-components-combobox .wc-block-components-combobox-control input {
    background: #111111 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.shop-page-container .wc-block-components-text-input label,
.shop-page-container .wc-blocks-components-select__label,
.shop-page-container .wc-block-components-combobox label {
    color: rgba(255, 255, 255, 0.6) !important;
}

.shop-page-container .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
    background: #111111;
    border-color: #555555;
}

.shop-page-container .wc-block-components-radio-control__option,
.shop-page-container .wc-block-components-radio-control-accordion-option {
    color: #ffffff;
}

.shop-page-container .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
.shop-page-container .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.shop-page-container .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 1.5px #F5A623;
}

.shop-page-container .wc-block-components-quantity-selector {
    display: none;
}

.shop-page-container .wc-block-cart-item__remove-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 130px 20px 20px;
    }

    .shop-hero h1 {
        font-size: 38px;
    }

    .shop-hero p {
        font-size: 16px;
    }

    .shop-section,
    .product-section,
    .shop-page-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-section,
    .shop-page-section {
        padding-top: 120px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-cover-title {
        font-size: 26px;
    }

    .product-info h1,
    .shop-page-container > h1 {
        font-size: 34px;
    }

    .product-media .shop-cover {
        padding: 28px;
    }

    .product-media .shop-cover::before {
        left: 28px;
    }

    .product-media .shop-cover-title {
        font-size: 30px;
    }
}

.shop-page-container .wc-block-components-order-summary-item__quantity {
    background: #F5A623 !important;
    border: none !important;
    box-shadow: none !important;
    color: #000000 !important;
    font-weight: 700;
}

/* Order received ("thank you") page */
.woocommerce-order {
    max-width: 760px;
}

.woocommerce-order .woocommerce-thankyou-order-received,
.woocommerce-order .woocommerce-notice--success {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 30px;
}

.woocommerce-order ul.order_details {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-bottom: 50px;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
}

.woocommerce-order ul.order_details li {
    padding: 18px 20px;
    background: #0d0d0d;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.woocommerce-order ul.order_details li strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
}

.woocommerce-order h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 18px;
}

.woocommerce-order section {
    margin-bottom: 40px;
}

.woocommerce-order table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.woocommerce-order table th,
.woocommerce-order table td {
    padding: 14px 0;
    border-bottom: 1px solid #222;
    text-align: left;
    vertical-align: top;
}

.woocommerce-order table th:last-child,
.woocommerce-order table td:last-child {
    text-align: right;
}

.woocommerce-order table thead th,
.woocommerce-order table tfoot th {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.woocommerce-order table tfoot tr:last-child th,
.woocommerce-order table tfoot tr:last-child td {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.woocommerce-order address {
    font-style: normal;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.woocommerce-order .woocommerce-table--order-downloads td a,
.woocommerce-order .woocommerce-MyAccount-downloads-file {
    color: #F5A623;
    font-weight: 600;
}
