* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: #111;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 300;
    color: #666;
}

.nav-links a {
    margin-left: 24px;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #000;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Archive & Filters */
.archive-header {
    margin-bottom: 30px;
    padding-top: 8px;
}

.archive-header h2 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.subtitle {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 18px;
}

.filter-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.size-filter-label {
    align-self: center;
    margin-left: auto;
    color: #555;
    font-size: 0.85rem;
}

.size-filter {
    min-height: 38px;
    padding: 6px 32px 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.product-card-image {
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.product-card-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 7px 14px;
    transform: translate(-50%, -50%);
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card-badge.sold-out {
    color: #c62828;
}

.product-card-badge.reserved {
    color: #8a5a00;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-price {
    font-size: 0.9rem;
    color: #555;
}

.product-variant-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.product-variant-swatches {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.product-variant-swatch {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.product-variant-sizes {
    min-width: 0;
    margin-left: auto;
    color: #666;
    font-size: 0.78rem;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    position: relative;
    padding: 30px;
    border-radius: 4px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: 280px;
}

.modal-main-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.modal-image-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.modal-image-arrow::before {
    width: 9px;
    height: 9px;
    border-top: 2px solid #e21b23;
    border-right: 2px solid #e21b23;
    content: "";
}

.modal-image-arrow:hover {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.modal-image-arrow:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.modal-image-arrow.previous {
    left: 8px;
}

.modal-image-arrow.previous::before {
    transform: translateX(2px) rotate(-135deg);
}

.modal-image-arrow.next {
    right: 8px;
}

.modal-image-arrow.next::before {
    transform: translateX(-2px) rotate(45deg);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(0, 0, 0, 0.9);
}

.image-lightbox img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-out;
}

.image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.image-lightbox-arrow[hidden] {
    display: none;
}

.image-lightbox-arrow::before {
    width: 9px;
    height: 9px;
    border-top: 2px solid #e21b23;
    border-right: 2px solid #e21b23;
    content: "";
}

.image-lightbox-arrow.previous {
    left: 20px;
}

.image-lightbox-arrow.previous::before {
    transform: translateX(2px) rotate(-135deg);
}

.image-lightbox-arrow.next {
    right: 20px;
}

.image-lightbox-arrow.next::before {
    transform: translateX(-2px) rotate(45deg);
}

.modal-details {
    flex: 1;
    min-width: 280px;
}

.modal-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
}

.modal-code {
    margin-top: 2px;
    color: #666;
    font-size: 0.85rem;
}

.modal-code[hidden] {
    display: none;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 10px 0;
}

.modal-color-picker {
    margin: 14px 0;
}

.modal-size-picker {
    margin: 14px 0;
}

.modal-size-picker[hidden],
.modal-size-quantity[hidden],
.size-guide-trigger[hidden] {
    display: none;
}

.modal-size-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modal-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-option {
    min-width: 42px;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, border-width 0.15s;
}

.size-option:hover:not(:disabled) {
    border-color: #111;
}

.size-option[aria-checked="true"] {
    border: 3px solid #111;
    padding: 4px 10px;
}

.size-option:disabled {
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
}

.modal-size-quantity {
    margin-top: 10px;
    font-size: 0.9rem;
}

.size-guide-trigger {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #444;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.size-guide-trigger:hover {
    color: #111;
}

.size-guide-modal[hidden] {
    display: none;
}

.size-guide-table-wrapper[hidden],
.size-guide-tip[hidden] {
    display: none;
}

.size-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
}

.size-guide-content {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 4px;
    background: #fff;
}

.size-guide-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.size-guide-eyebrow {
    margin-bottom: 4px;
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
}

.size-guide-content h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.size-guide-table-wrapper {
    overflow-x: auto;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.size-guide-table th,
.size-guide-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.size-guide-table thead th {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

.size-guide-table tbody th {
    font-weight: 600;
}

.size-guide-tip {
    margin-top: 22px;
    padding: 16px;
    background: #f7f7f7;
    color: #555;
    font-size: 0.85rem;
}

.size-guide-tip h3 {
    margin-bottom: 8px;
    color: #111;
    font-size: 0.95rem;
}

.size-guide-tip p + p {
    margin-top: 6px;
}

.modal-color-picker[hidden] {
    display: none;
}

.modal-color-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modal-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #aaa;
    cursor: pointer;
}

.color-swatch[aria-checked="true"] {
    box-shadow: 0 0 0 2px #111;
}

.color-swatch:focus-visible {
    outline: 2px solid #111;
    outline-offset: 4px;
}

.modal-description {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #444;
}

.btn-primary, .btn-paypal {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}

/* Info Pages */
.text-content {
    max-width: 700px;
}

.text-content h2 {
    margin-bottom: 20px;
}

.info-block {
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
    margin-top: 15px;
}

.contact-list li {
    margin-bottom: 10px;
}

.inquiry-product {
    width: min(1000px, calc(100vw - 40px));
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 100px;
}

.inquiry-product[hidden] {
    display: none;
}

.inquiry-product h3 {
    margin-bottom: 10px;
    text-align: left;
}

.inquiry-product-details {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.inquiry-product-image[hidden] {
    display: none;
}

.inquiry-product-image {
    width: 180px;
    height: auto;
    flex: 0 0 180px;
    object-fit: cover;
}

.inquiry-product-copy {
    min-width: 0;
}

.inquiry-product p + p {
    margin-top: 8px;
}

.inquiry-product-copy #inquiryProductCode,
.inquiry-product-copy #inquiryProductSize {
    color: #777;
    font-size: 0.85rem;
}

.inquiry-order-note {
    margin-top: 16px;
    padding: 10px 12px;
    border-left: 3px solid #111;
    background: #f3f3f3;
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .inquiry-product-image {
        width: 96px;
        flex-basis: 96px;
    }

    .size-guide-content {
        padding: 28px 20px 20px;
    }
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    margin-top: 60px;
}