/* Catalog and single-product views retain WooCommerce markup and behavior. */
.ak-commerce {
    --ak-shop-width: min(1340px, calc(100% - clamp(36px, 9vw, 128px)));
    --ak-shop-rule: rgba(23, 25, 22, .2);
    color: var(--ink, #171916);
    background: var(--paper, #f6f1e6);
    padding-bottom: clamp(64px, 9vw, 136px);
}

.ak-catalog-hero {
    block-size: clamp(300px, 26vw, 395px);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    color: var(--paper);
    background: linear-gradient(110deg, #081e35 7%, #0b2957 54%, #153aba);
    border-bottom: 4px solid var(--blue);
}

.ak-catalog-hero__art {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 44%;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
    background: var(--navy);
}

.ak-catalog-hero__art img,
.ak-catalog-hero__art::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ak-catalog-hero__art img {
    object-fit: cover;
    object-position: center 53%;
}

.ak-catalog-hero__art::after {
    content: "";
    background: linear-gradient(90deg, rgb(8 30 53 / .86), rgb(8 30 53 / .2) 42%, transparent 78%);
}

.ak-catalog-hero--kentucky-pride .ak-catalog-hero__art img { object-position: center 13%; }
.ak-catalog-hero--uk-gameday .ak-catalog-hero__art img { object-position: center 13%; }
.ak-catalog-hero--ksr-gear .ak-catalog-hero__art img { object-position: center 20%; }

.ak-catalog-hero__brand {
    position: absolute;
    right: max(18px, calc((100% - var(--ak-shop-width)) / 2));
    bottom: clamp(20px, 3vw, 40px);
    width: clamp(100px, 11vw, 162px);
    padding: clamp(8px, 1vw, 13px);
}

.ak-catalog-hero__inner,
.ak-commerce--catalog > :not(.ak-catalog-hero),
.ak-commerce--product {
    width: var(--ak-shop-width);
    margin-inline: auto;
}

.ak-catalog-hero__inner {
    display: grid;
    grid-template-rows: min-content minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    padding-block: clamp(18px, 2.6vw, 39px);
}

.ak-commerce .woocommerce-breadcrumb {
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .06em;
    line-height: 1.5;
}

.ak-commerce .woocommerce-breadcrumb a {
    color: inherit;
    text-underline-offset: .2em;
}

.ak-catalog-hero .woocommerce-breadcrumb {
    width: min(100%, 60ch);
    margin: 0;
    overflow: hidden;
    color: var(--paper);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ak-catalog-hero__copy {
    width: min(57%, 720px);
    align-self: center;
}

.ak-catalog-hero__kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ak-catalog-hero__kicker span {
    display: inline-grid;
    min-width: 30px;
    min-height: 25px;
    padding: 2px 4px;
    place-items: center;
    border: 1px solid currentColor;
    font-size: .65rem;
}

.ak-catalog-hero .woocommerce-products-header__title {
    margin: 0;
    color: inherit;
    font: 900 clamp(3.3rem, 6.6vw, 7.1rem)/.9 var(--display);
    letter-spacing: -.018em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.ak-catalog-hero__line,
.ak-catalog-hero .term-description,
.ak-catalog-hero .page-description {
    display: -webkit-box;
    max-width: 43ch;
    margin: 15px 0 0;
    overflow: hidden;
    font-size: clamp(.9rem, 1.35vw, 1.1rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ak-catalog-hero :is(.term-description, .page-description) p {
    margin: 0;
}

@media (max-width: 760px) {
    .ak-catalog-hero { block-size: 290px; }
    .ak-catalog-hero__art { inset-inline-start: 26%; clip-path: none; }
    .ak-catalog-hero__art::after {
        background: linear-gradient(90deg, #081e35, rgb(8 30 53 / .9) 28%, rgb(8 30 53 / .35) 100%);
    }
    .ak-catalog-hero__copy { width: min(88%, 430px); }
    .ak-catalog-hero--ksr-gear .woocommerce-breadcrumb { width: calc(100% - 83px); }
    .ak-catalog-hero__brand { top: 18px; bottom: auto; width: 72px; padding: 6px; }
    .ak-catalog-hero .woocommerce-products-header__title { font-size: clamp(3rem, 8.5vw, 4rem); }
    .ak-catalog-hero :is(.ak-catalog-hero__line, .term-description, .page-description) { -webkit-line-clamp: 4; }
}

.ak-catalog-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-block: clamp(20px, 3vw, 34px);
    border-bottom: 1px solid var(--ak-shop-rule);
}

.ak-catalog-nav a {
    padding: .68rem .98rem;
    border: 1px solid var(--ak-shop-rule);
    color: var(--ink, #171916);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s, color .2s, border-color .2s;
}

.ak-catalog-nav a:is(:hover, :focus-visible, [aria-current="page"]) {
    border-color: var(--blue, #153aba);
    color: #fff;
    background: var(--blue, #153aba);
}

.ak-shop-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    padding-block: 20px;
}

.ak-commerce .ak-shop-controls :is(.woocommerce-result-count, .woocommerce-ordering) {
    float: none;
    margin: 0;
}

.ak-shop-controls .woocommerce-result-count {
    font-size: .85rem;
    color: #4c5048;
}

.ak-commerce select,
.ak-commerce input.qty {
    min-height: 44px;
    border: 1px solid var(--ak-shop-rule);
    border-radius: 0;
    padding: .65rem .7rem;
    color: var(--ink, #171916);
    background: #fbf8f0;
    font: inherit;
}

.ak-shop-controls select {
    max-width: 100%;
    font-size: .83rem;
    font-weight: 650;
}

.woocommerce .ak-commerce ul.products[class] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3.5vw, 48px) clamp(12px, 2.1vw, 28px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.woocommerce .ak-commerce ul.products[class]::before,
.woocommerce .ak-commerce ul.products[class]::after {
    content: none;
}

.woocommerce .ak-commerce ul.products[class] li.product:nth-child(n) {
    display: flex;
    flex-direction: column;
    float: none;
    clear: none;
    width: auto;
    margin: 0;
}

.woocommerce .ak-commerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    display: block;
    flex: 1;
    color: var(--ink, #171916);
}

.woocommerce .ak-commerce ul.products li.product .woocommerce-loop-product__link img {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #e9e3d7;
    transition: filter .2s;
}

.woocommerce .ak-commerce ul.products li.product .woocommerce-loop-product__link:hover img {
    filter: brightness(.92);
}

.woocommerce .ak-commerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0;
    padding: 0;
    font: 750 clamp(1.38rem, 2.55vw, 2rem)/1 var(--display, "Barlow Condensed", sans-serif);
    letter-spacing: .01em;
    text-transform: uppercase;
}

.woocommerce .ak-commerce ul.products li.product .price {
    margin: 7px 0 0;
    color: var(--blue, #153aba);
    font-size: .92rem;
    font-weight: 750;
}

.woocommerce .ak-commerce ul.products li.product .button {
    align-self: flex-start;
    margin: 12px 0 0;
    border: 1px solid var(--ak-shop-rule);
    padding: .62rem .72rem;
    color: var(--ink, #171916);
    background: transparent;
    font-size: .66rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.woocommerce .ak-commerce ul.products li.product .button:hover {
    border-color: var(--blue, #153aba);
    color: #fff;
    background: var(--blue, #153aba);
}

.woocommerce .ak-commerce ul.products li.product .added_to_cart {
    padding: .5rem 0 0;
    color: var(--blue, #153aba);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: underline;
}

.woocommerce .ak-commerce ul.products li.product .onsale,
.woocommerce .ak-commerce span.onsale {
    inset: 12px auto auto 12px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: .42rem .58rem;
    border-radius: 0;
    background: var(--blue, #153aba);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.ak-commerce .woocommerce-pagination {
    margin-top: 44px;
}

.woocommerce .ak-commerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    border: 0;
}

.woocommerce .ak-commerce nav.woocommerce-pagination ul li {
    border: 1px solid var(--ak-shop-rule);
}

.woocommerce .ak-commerce nav.woocommerce-pagination ul li :is(a, span) {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    color: var(--ink, #171916);
}

.woocommerce .ak-commerce nav.woocommerce-pagination ul li :is(a:hover, span.current) {
    color: #fff;
    background: var(--blue, #153aba);
}

.ak-commerce--product {
    padding-top: clamp(20px, 4vw, 50px);
}

.ak-commerce--product .woocommerce-breadcrumb {
    margin: 0 0 clamp(20px, 4vw, 46px);
    color: #4c5048;
}

.woocommerce .ak-commerce--product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 80px) clamp(24px, 6vw, 98px);
}

.woocommerce .ak-commerce--product div.product > :is(.woocommerce-product-gallery, .summary) {
    float: none;
    width: 100%;
    margin: 0;
}

.woocommerce .ak-commerce--product div.product > .summary {
    align-self: start;
    padding-top: clamp(0px, 3vw, 52px);
}

.woocommerce .ak-commerce--product div.product > :is(.woocommerce-tabs, .related, .upsells) {
    grid-column: 1 / -1;
    min-width: 0;
}

.ak-commerce--product .woocommerce-product-gallery__wrapper {
    margin: 0;
    background: #e9e3d7;
}

.woocommerce .ak-commerce--product div.product .product_title {
    margin-bottom: 14px;
    color: var(--ink, #171916);
    font: 800 clamp(3.1rem, 6.2vw, 7rem)/.88 var(--display, "Barlow Condensed", sans-serif);
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.woocommerce .ak-commerce--product div.product :is(p.price, span.price) {
    margin: 0 0 16px;
    color: var(--blue, #153aba);
    font-size: 1.28rem;
    font-weight: 750;
}

.ak-commerce--product .woocommerce-product-details__short-description {
    max-width: 46ch;
    margin: 20px 0 28px;
    font-size: 1rem;
    line-height: 1.65;
}

.woocommerce .ak-commerce--product div.product form.cart {
    margin: 0 0 22px;
}

.woocommerce .ak-commerce--product div.product form.cart :is(.variations, .woocommerce-variation) {
    margin-bottom: 16px;
}

.woocommerce .ak-commerce--product div.product form.cart .variations tr {
    display: grid;
    gap: 6px;
}

.woocommerce .ak-commerce--product div.product form.cart .variations th {
    text-align: left;
}

.woocommerce .ak-commerce--product div.product form.cart .variations label {
    color: var(--ink, #171916);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.woocommerce .ak-commerce--product div.product form.cart .variations select {
    width: min(100%, 210px);
    min-width: 0;
    margin-right: 8px;
}

.woocommerce .ak-commerce--product div.product form.cart .reset_variations {
    color: var(--blue, #153aba);
    font-size: .8rem;
    text-decoration: underline;
}

.woocommerce .ak-commerce--product div.product form.cart :is(.quantity, button.single_add_to_cart_button) {
    float: none;
    vertical-align: top;
}

.woocommerce .ak-commerce--product div.product form.cart .quantity {
    display: inline-block;
    margin-right: .45rem;
}

.ak-commerce--product div.product form.cart .quantity .qty {
    width: 4.1rem;
    min-height: 50px;
}

.ak-commerce--product .product_meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45em 1.3em;
    border-top: 1px solid var(--ak-shop-rule);
    padding-top: 16px;
    color: #4c5048;
    font-size: .8rem;
    line-height: 1.6;
}

.ak-commerce--product .product_meta a {
    color: var(--blue, #153aba);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.woocommerce .ak-commerce--product div.product .woocommerce-tabs ul.tabs {
    padding: 0;
}

.woocommerce .ak-commerce--product div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    border-color: var(--ak-shop-rule);
    border-radius: 0;
    background: transparent;
}

.woocommerce .ak-commerce--product div.product .woocommerce-tabs ul.tabs li.active {
    color: #fff;
    background: var(--blue, #153aba);
}

.woocommerce .ak-commerce--product div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .ak-commerce--product div.product .woocommerce-tabs ul.tabs li::after {
    content: none;
}

.woocommerce .ak-commerce--product div.product .woocommerce-tabs .panel {
    margin: 20px 0 0;
    font-size: 1rem;
    line-height: 1.7;
}

.ak-commerce--product :is(.woocommerce-tabs .panel, .related, .upsells) > h2 {
    margin: 0 0 14px;
    font: 800 clamp(1.85rem, 4.4vw, 4.5rem)/.95 var(--display, "Barlow Condensed", sans-serif);
    text-transform: uppercase;
}

.ak-commerce--product :is(.related, .upsells) > h2 {
    margin-bottom: clamp(20px, 3vw, 36px);
}

.ak-commerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error),
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
    border-top-color: var(--blue, #153aba);
    color: var(--ink, #171916);
    background: #eae4d7;
}

.ak-commerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before,
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before {
    color: var(--blue, #153aba);
}

.ak-commerce--catalog > .woocommerce-info,
.ak-commerce--catalog > .woocommerce-notices-wrapper:not(:empty) {
    margin-top: 20px;
}

/* Store utility pages support both blocks and classic WooCommerce shortcodes. */
.woocommerce .ak-commerce :is(a.button, button.button, input.button),
.woocommerce .ak-commerce #respond input#submit,
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce :is(a.button, button.button, input.button),
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button.wp-element-button {
    min-height: 44px;
    border-radius: 0;
    padding: .9rem 1.2rem;
    color: #fff;
    background: var(--blue, #153aba);
    font: 800 .78rem/1.2 var(--body, Inter, sans-serif);
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}

.woocommerce .ak-commerce :is(a.button, button.button, input.button):hover,
.woocommerce .ak-commerce #respond input#submit:hover,
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce :is(a.button, button.button, input.button):hover,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button.wp-element-button:hover {
    color: #fff;
    background: var(--ink, #171916);
}

.woocommerce .ak-commerce--product div.product form.cart .single_add_to_cart_button {
    min-height: 50px;
    padding-inline: clamp(16px, 4vw, 44px);
}

.woocommerce .ak-commerce--product div.product form.cart .single_add_to_cart_button.disabled {
    color: #fff;
    background: #5a6176;
}

:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) :is(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
    color: var(--ink, #171916);
}

:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce :is(table.shop_table, form.login, form.register),
.woocommerce-checkout #payment {
    border-radius: 0;
}

.woocommerce-checkout #payment,
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #eae4d7;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    border-bottom: 1px solid rgba(23, 25, 22, .16);
    padding: .85em 1.2em;
    color: var(--ink, #171916);
    font-size: .87rem;
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-navigation :is(.is-active a, a:hover) {
    color: #fff;
    background: var(--blue, #153aba);
}

:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce :is(input.input-text, textarea, select) {
    min-height: 42px;
    border: 1px solid #8a8b82;
    border-radius: 0;
    padding: .6rem .7rem;
    background: #fbf8f0;
    font: inherit;
}

.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
    width: min(100%, 9rem);
}

:is(.woocommerce-cart, .woocommerce-checkout) :is(.wc-block-components-title, .wc-block-components-checkout-step__title, .wp-block-heading),
:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce :is(h2, h3) {
    font-family: var(--display, "Barlow Condensed", sans-serif);
    font-weight: 800;
    text-transform: uppercase;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input input,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-combobox .wc-block-components-combobox-control input,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-quantity-selector {
    border-radius: 0;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-order-summary {
    background: #efeadf;
}

@media (max-width: 940px) {
    .woocommerce .ak-commerce ul.products[class] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ak-catalog-nav {
        gap: 5px;
    }

    .ak-catalog-nav a {
        padding: .62rem .72rem;
        font-size: .66rem;
    }

    .woocommerce .ak-commerce ul.products[class] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce .ak-commerce--product div.product {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ak-commerce *,
    :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button {
        transition: none !important;
    }
}
