/* Shared tokens and shell/nav styles moved to assets/css/system/tokens.css and assets/css/system/shell.css */

.home-links {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-link-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(18, 36, 66, 0.1);
}

.home-link-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.home-link-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.shop-state-link {
    color: inherit;
    text-decoration: none;
}

.shop-state-link:visited,
.shop-state-link:hover,
.shop-state-link:focus-visible,
.shop-state-link:active {
    color: inherit;
    text-decoration: none;
}

.shop-state-separator {
    margin: 0 4px;
}

.shop-state-current {
    color: inherit;
}

.shop-state-note {
    margin-left: 8px;
}

.shop-grid {
    width: 80%;
    max-width: 860px;
    margin: auto;
    position: relative;
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 34px;
}

.shop-card {
    display: block;
    position: relative;
    width: min(100%, 395px);
    margin: 0 auto 50px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    transition: none;
}

.shop-card:hover {
    transform: none;
    box-shadow: none;
}

.shop-card-media {
    position: relative;
    margin: 0;
    width: 100%;
    min-height: 0;
    aspect-ratio: 395 / 529;
    background: #f2f3f5;
    overflow: hidden;
    border: 1px solid #f1f1f1;
}

.shop-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.22s ease;
}

.shop-card-media .secondary {
    opacity: 0;
}

.shop-card:hover .shop-card-media .secondary {
    opacity: 1;
}

.shop-card-info {
    padding: 0;
    padding-bottom: 1em;
    text-align: center;
}

.shop-card-info h2 {
    margin: 0;
    font-size: 20px !important;
    font-weight: 200 !important;
    line-height: 1.3;
    color: #000000 !important;
}

.shop-card > .price {
    margin-top: 8px;
    margin-bottom: 0;
    color: #000000;
    text-align: right;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
}

.shop-pagination {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #2ea3f2;
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.shop-page-link:hover {
    border-color: #2ea3f2;
    color: #2ea3f2;
}

.shop-page-link.is-active {
    background: #2ea3f2;
    border-color: #2ea3f2;
    color: #ffffff;
    pointer-events: none;
}

.shop-page-ellipsis {
    color: var(--muted);
    font-size: 0.92rem;
    padding: 0 4px;
}

.product-layout {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    gap: 60px;
    align-items: start;
}

.product-media {
    display: grid;
    gap: 14px;
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.product-gallery-stage {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: transparent;
    color: #000000;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 58px;
    min-height: 0;
    padding: 0;
    text-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-nav:hover {
    color: #000000;
}

.gallery-nav-prev {
    left: 10px;
}

.gallery-nav-next {
    right: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-nav-prev {
        transform: translateY(-50%) translateX(-8px);
        opacity: 0;
    }

    .gallery-nav-next {
        transform: translateY(-50%) translateX(8px);
        opacity: 0;
    }

    .product-gallery-stage:hover .gallery-nav,
    .product-gallery-stage:focus-within .gallery-nav {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

.product-gallery-frame {
    position: relative;
    border: 1px solid #f1f1f1;
    background: #f2f3f5;
    min-height: 540px;
    overflow: hidden;
}

.product-gallery-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

.media-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background: rgba(246, 249, 253, 0.88);
    color: #334056;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.media-loading.is-visible {
    opacity: 1;
}

.media-loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(22, 58, 101, 0.24);
    border-top-color: #163a65;
    animation: gallery-loading-spin 0.75s linear infinite;
}

.media-loading-label {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2f415e;
}

@keyframes gallery-loading-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-gallery-thumb {
    border: 1px solid #dfe5ef;
    background: #ffffff;
    padding: 0;
    width: 74px;
    height: 98px;
    overflow: hidden;
    cursor: pointer;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-thumb.is-active {
    border-color: #163a65;
}

.product-detail-images {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-image {
    width: 100%;
    border: 1px solid #f1f1f1;
    border-radius: 0;
    background: #f2f3f5;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.product-summary {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.product-description-block {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.product-description-row {
    display: grid;
    gap: 12px;
    align-items: stretch;
    margin-top: 4em;
}

.product-description-row-top {
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
}

.product-description-row-bottom {
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
}

.product-description-block .product-description {
    margin-top: 0;
}

.product-care-instructions {
    margin-top: 0;
}

#product-description {
    padding: 0 10% 14px 0;
}

#product-description > :first-child {
    margin-top: 0;
}

#product-care-instructions {
    padding: 0 0 14px 10%;
}

#product-care-instructions > :first-child {
    margin-top: 0;
}

.product-description-image-cell {
    min-width: 0;
}

.product-description-image-cell .product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.eyebrow {
    margin: 0;
    margin-bottom: -8px;
    color: #000;
    letter-spacing: 0.04em;
    font-size: 32px;
    font-weight: 700;
    line-height: 100%;
}

#product-name {
    margin: 2px 0 0;
    font-size: 2.2rem;
    line-height: 1.15;
}

.product-price {
    margin: 20px 0 20px 0px;
    font-size: 26px !important;
    font-weight: 700;
}

.promo-hint {
    margin: 10px 0 20px;
    color: #bababa !important;
    min-height: 1.2em;
    font-size: 20px;
    line-height: 1.4em;
    font-weight: 300;
}

.option-group {
    margin-top: 22px;
}

.option-group h2 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #68707f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.color-swatch-list {
    display: grid;
    gap: 7px;
}

.color-swatch-option {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    font: inherit;
}

.color-swatch-option > span:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail_col_swatch {
    display: inline-block;
    height: 40px;
    width: 90px;
    border: 1px solid #d7dbe3;
}

.selected-option-color .detail_col_swatch {
    border: 3px #fff solid;
    outline: thin solid #bbb;
}

.detail-page-color-label {
    font-size: 0.85em;
    line-height: 1.05;
    color: #bababa !important;
}

.detail-page-color-sku {
    display: block;
    margin: 0;
    font-size: 0.85em;
    line-height: 1.05;
    color: #bababa !important;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 1.1rem;
    font-weight: 400;
}

.size-option {
    cursor: pointer;
    color: #333;
    font-weight: 700;
}

.size-option::after {
    content: '/';
    color: #ddd;
    font-weight: 400;
    margin-left: 6px;
    margin-right: 6px;
}

.size-option:last-child::after {
    content: '';
    margin: 0;
}

.size-option.selected-option-size {
    color: #ee1111;
    text-decoration: none;
}

.size-option.size-option-static {
    cursor: default;
}

.size-options.is-single-size .size-option.selected-option-size {
    color: #333;
}

.size-options .size-option:only-child {
    cursor: default;
}

.size-options .size-option.selected-option-size:only-child {
    color: #333;
}

.option-group-sizes {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.option-group-sizes h2,
.option-group-sizes .option-group-label,
.option-group-colors .option-group-label {
    margin: 0;
    color: #bababa !important;
    font-size: 1.0em;
    font-weight: 300;
    line-height: 1.1em;
    letter-spacing: 0;
    text-transform: none;
}

.option-group-colors {
    display: block;
}

.option-group-colors .option-group-label {
    margin: 0 0 8px;
}

.model-color-hint {
    margin-top: 6px;
    margin-bottom: 6px;
    color: #bababa !important;
    font-size: 0.92em;
    line-height: 1.35;
    white-space: pre-line;
}

.size-guide-link-wrap {
    font-size: 0.8em;
    margin-top: 1px;
    line-height: 1.1em;
}

.size-guide-link-wrap .mi_btn_s {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 0;
    background: rgba(236, 232, 16, 0.5);
    color: #000000;
    font-weight: 300;
    font-size: 1.2em;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color 180ms ease;
}

.size-guide-link-wrap .mi_btn_s:hover,
.size-guide-link-wrap .mi_btn_s:focus-visible {
    background: rgba(236, 232, 16, 1);
    color: #000000;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

.size-guide-link-wrap .mi_btn_s:active {
    transform: none;
}

.qty-label {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 6px;
    font-weight: 600;
}

.qty-input {
    width: 92px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 1rem;
}

.product-summary #add-to-cart {
    display: inline-block;
    background-color: #ece810;
    opacity: 1.0;
    filter: alpha(opacity=100);
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2em;
    padding: 15px 25px 15px 25px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.product-summary #add-to-cart:hover {
    background-color: #ece810;
    color: #000000;
}

.product-summary #add-to-cart[disabled] {
    opacity: 0.55;
    filter: alpha(opacity=55);
}

.stock-note {
    margin-top: 12px;
    color: var(--muted);
    min-height: 1.2em;
    font-size: 0.8em;
    line-height: 1.1em;
}

.product-summary .stock-note.stock-note-backorder {
    color: #bababa !important;
    font-size: 1.0em;
    font-weight: 300;
}

.product-description {
    margin-top: 14px;
    font-family: 'Titillium Web', Helvetica, Arial, Lucida, sans-serif;
    font-size: 20px;
    line-height: 1.4em;
    color: #666;
}

.product-description p {
    font-weight: 300;
}

#product-care-instructions p {
    font-weight: 300;
}

.product-description strong,
.product-description b {
    font-weight: 700;
}

#product-care-instructions strong,
#product-care-instructions b {
    font-weight: 700;
}

.coupon-input {
    width: 180px;
}

.secondary-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    padding: 8px 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-mini {
    width: 74px;
}

.checkout-field-full {
    grid-column: 1 / -1;
}

.cart-layout,
.checkout-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 18px;
    align-items: start;
}

.cart-table-wrap,
.checkout-form-wrap,
.checkout-review,
.cart-summary,
.confirmation-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    padding: 16px;
}

.checkout-form-wrap {
    display: grid;
    gap: 16px;
}

.cart-summary h2,
.checkout-review h2 {
    margin: 0 0 8px;
}

.cart-summary dl,
.checkout-review dl {
    margin: 0;
}

.cart-summary dl > div,
.checkout-review dl > div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.cart-summary dd,
.checkout-review dd,
.cart-summary dt,
.checkout-review dt {
    margin: 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.cart-table th {
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 600;
}

.review-items {
    margin: 0 0 14px;
    padding-left: 18px;
    color: var(--muted);
}

.review-items li {
    margin-bottom: 5px;
}

.review-line-main {
    display: block;
    color: var(--ink);
}

.review-line-meta {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.cart-item-main {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.cart-item-main img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.cart-item-name {
    margin: 0;
    font-weight: 600;
}

.cart-item-meta {
    margin: 2px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.cart-item-backorder {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.remove-line {
    border: 1px solid var(--line);
    border-radius: 999px;
    width: 28px;
    height: 28px;
    line-height: 1;
    background: #ffffff;
    cursor: pointer;
}

.cart-actions {
    margin-top: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.coupon-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.coupon-entry label {
    font-size: 0.9rem;
    color: var(--muted);
}

.coupon-status {
    min-height: 1.2em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.rule-note {
    min-height: 1.2em;
    color: var(--warn);
    margin-top: 10px;
}

.shipping-note {
    min-height: 1.2em;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.withdrawal-notice {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.9rem;
}

.withdrawal-notice p {
    margin: 0 0 8px;
}

.withdrawal-notice p:last-child {
    margin-bottom: 0;
}

.cart-summary .cta-button {
    width: 100%;
    text-align: center;
}

.checkout-section {
    display: grid;
    gap: 10px;
}

.checkout-section h2 {
    margin: 0;
    font-size: 1.05rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.checkout-grid.is-disabled {
    opacity: 0.78;
}

.withdrawal-layout {
    max-width: 760px;
}

.withdrawal-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.form-textarea {
    width: 100%;
    resize: vertical;
}

.withdrawal-confirm-step {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    display: grid;
    gap: 10px;
}

.withdrawal-confirm-step.is-hidden {
    display: none;
}

.withdrawal-confirm-step h2 {
    margin: 0;
    font-size: 1.05rem;
}

.confirmation-box {
    margin-top: 16px;
}

.confirmation-box p {
    margin: 8px 0;
}

.editorial-size-guide {
    max-width: 980px;
}

.size-guide-group {
    margin-top: 24px;
}

.size-guide-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.size-guide-table-wrap {
    overflow-x: auto;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    background: #ffffff;
}

.size-guide-table th,
.size-guide-table td {
    border: 1px solid #d8ddeb;
    padding: 8px 10px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.size-guide-table thead th {
    background: #f7f9ff;
    text-align: center;
    font-weight: 700;
}

.size-guide-table thead th:first-child,
.size-guide-table tbody th {
    text-align: left;
}

.size-guide-table tbody th {
    background: #fbfcff;
    font-weight: 600;
    white-space: nowrap;
}

.size-guide-table tbody td {
    text-align: center;
}

.size-guide-empty {
    margin-top: 14px;
    color: var(--muted);
}

@media (max-width: 1050px) {
    .shop-grid {
        column-gap: 4%;
    }
}

@media (max-width: 900px) {
    .shop-grid {
        width: 95%;
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .cart-actions {
        align-items: stretch;
    }

    .coupon-entry {
        width: 100%;
    }

    .coupon-input {
        flex: 1;
        min-width: 150px;
    }

    .shop-pagination {
        margin-top: 18px;
        gap: 6px;
    }

    .shop-page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.88rem;
    }

    .product-layout,
    .cart-layout,
    .checkout-layout,
    .home-links {
        grid-template-columns: 1fr;
    }

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

    .product-gallery-frame,
    .product-gallery-image {
        min-height: 0;
        height: auto;
    }

    .product-gallery-stage {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    #product-name {
        font-size: 1.6rem;
    }

    .size-guide-table {
        min-width: 560px;
    }
}

@media (max-width: 560px) {
    .detail_col_swatch {
        width: 65px;
    }

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

    .shop-card-media {
        min-height: 0;
        height: auto;
        aspect-ratio: 395 / 529;
    }

    .product-description-row,
    .product-description-row-top,
    .product-description-row-bottom {
        grid-template-columns: 1fr;
    }

    #product-description,
    #product-care-instructions {
        padding: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
    }

    .cart-table td {
        border-bottom: 0;
        padding: 4px 0;
    }

}
