body {
    margin: 0;
    padding: 0;
    color: #000;
    font-family: sans-serif;
}

.logo {
    width: 180px;
    height: 84px;
    margin: 0;
    object-fit: contain;
}

.logo-link {
    display: flex;
    align-items: center;
    width: 180px;
    height: 88px;
}

.logo-link .logo {
    position: static;
    display: block;
}

.NavBar {
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
    height: 92px;
    padding: 0 5%;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 28px;
    background: #fff;
}

.NavBar a {
    color: #000;
    text-decoration: none;
}

.main-nav a {
    font-size: 13px;
    letter-spacing: 0.04em;
}

.home-link {
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    gap: clamp(16px, 3vw, 38px);
}

.main-nav a {
    white-space: nowrap;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
}

.search-box {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
}

.search-box input {
    width: 105px;
    padding: 7px 2px;
    border: 0;
    outline: 0;
    color: #000;
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.search-box input::placeholder {
    color: #000;
    opacity: 1;
}

.search-box button,
.nav-tools > a {
    width: 30px;
    height: 34px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #000;
    background: transparent;
    cursor: pointer;
}

.search-box svg,
.nav-tools > a svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-box button:hover,
.nav-tools > a:hover {
    opacity: 0.6;
}

.board {
    width: 100%;
    height: 400px;
    background-color: #d7d7d7;
    display: flex;
    overflow: hidden;
}

.board-text {
    height: 280px;
    width: 390px;
    position: absolute;
    margin-left: 50px;
    margin-top: 30px;
}

.board-text p {
    color: black;
    text-align: center;
    margin-top: 30px;
    font-family: inherit;
}

#line1 {
    font-size: 13px;
    letter-spacing: 2.5px;
}

#line2 {
    font-size: 100px;
    font-weight: 600;
    margin-top: -30px;
    margin-left: -15px;
    transform: scale(1.5, 0.75);
}

#line3 {
    font-size: 21px;
    margin-top: -120px;
    margin-left: -70px;
    transform: scale(1.5, 1.25);
}

#line4 {
    font-size: 21px;
    margin-top: -15px;
    margin-left: 45px;
    transform: scale(1.5, 1.25);
}

#line5 {
    font-size: 14px;
    margin-top: 0;
    margin-left: 50px;
    text-align: justify;
    line-height: 1.7;
}

#shopbtn {
    height: 40px;
    width: 200px;
    margin-top: 10px;
    margin-left: 50px;
    background-color: black;
    color: white;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    text-align: center;
}

.board img {
    width: 70%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin-left: 230px;
}

.shop-section {
    width: 100%;
    box-sizing: border-box;
    padding: 48px clamp(20px, 4vw, 56px) 30px;
    background: #f7f5f2;
}

.shop-header {
    margin-bottom: 28px;
}

.shop-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.28em;
    color: #6e6a66;
    text-transform: uppercase;
}

.shop-header h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.cart-feedback {
    min-height: 20px;
    margin: -14px 0 14px;
    color: #326546;
    font-size: 12px;
}

.shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.shop-sidebar {
    box-sizing: border-box;
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    align-self: flex-start;
    background: #fff;
    border: 1px solid #ece7e1;
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.filter-group {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0ece9;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2a2928;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-group input {
    accent-color: #000;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-options button {
    min-width: 36px;
    border: 1px solid #d9d5d1;
    background: #fff;
    border-radius: 999px;
    padding: 6px 8px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    color: #000;
}

.size-options button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.shop-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.empty-results {
    grid-column: 1 / -1;
    margin: 0;
    padding: 40px 20px;
    color: #6d6965;
    text-align: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efebe7;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.06);
}

.product-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.product-image-stage {
    position: relative;
    flex: 0 0 auto;
}

.product-image-gallery {
    position: relative;
    flex: 0 0 auto;
}

.sold-out-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 10px;
    background: rgb(32 33 31 / 88%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 7px 10px;
    background: #9d322a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.gallery-counter {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.68);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.variant-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-family: sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.product-image-gallery:hover .variant-arrow,
.product-image-gallery:focus-within .variant-arrow {
    opacity: 1;
    visibility: visible;
}

.variant-arrow:hover {
    background: #111;
    transform: translateY(-50%) scale(1.08);
}

.variant-arrow:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.variant-arrow.previous {
    left: 12px;
}

.variant-arrow.next {
    right: 12px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 11px 12px 13px;
}

.product-tag {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d6965;
}

.product-name {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.product-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.product-color-label {
    color: #6d6965;
    font-size: 10px;
}

.product-color-swatches {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.product-color-swatch {
    width: 15px;
    height: 15px;
    padding: 0;
    border: 1px solid rgb(32 33 31 / 25%);
    border-radius: 50%;
    background: var(--swatch-color);
    cursor: pointer;
}

.product-color-swatch[aria-pressed="true"] {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #20211f;
}

.product-color-swatch:focus-visible {
    outline: 2px solid #20211f;
    outline-offset: 4px;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.product-stock {
    margin: 9px 0 0;
    color: #526548;
    font-size: 11px;
    line-height: 1.3;
}

.product-stock.out-of-stock {
    color: #9d322a;
    font-weight: 600;
}

.size-chip {
    min-width: 25px;
    min-height: 23px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1px solid #ded9d3;
    border-radius: 999px;
    background: #fff;
    color: #373431;
    font-size: 10px;
    line-height: 1;
}

.size-chip.unavailable {
    border-style: dashed;
    color: #77716b;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 32px;
    margin-top: auto;
    padding-top: 16px;
}

.product-meta span {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.product-meta .product-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

.product-meta .product-price s {
    color: #77716b;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.product-meta .product-price strong {
    color: #9d322a;
    font-size: 16px;
    font-weight: 700;
}

.product-meta button {
    box-sizing: border-box;
    height: 30px;
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 7px 9px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.product-meta button:disabled,
.product-meta button.sold-out-button {
    background: #77716b;
    cursor: not-allowed;
}

.size-dialog {
    width: min(420px, calc(100% - 32px));
    padding: 0;
    border: 1px solid #e9e4de;
    border-radius: 16px;
    color: #20211f;
    box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

.size-dialog::backdrop {
    background: rgb(20 18 16 / 48%);
    backdrop-filter: blur(3px);
}

.size-dialog form {
    padding: 26px;
}

.size-dialog h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
}

.size-dialog-product {
    margin: 8px 0 22px;
    color: #6d6965;
    font-size: 13px;
}

.size-dialog-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.size-dialog-options legend {
    width: 100%;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
}

.size-dialog-empty {
    padding: 10px 0;
    color: #77716b;
    font-size: 12px;
}

.size-dialog-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #ded9d3;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

.size-dialog-option:has(input:checked) {
    border-color: #171615;
    background: #f2efeb;
}

.size-dialog-option input {
    accent-color: #171615;
}

.size-dialog-error {
    min-height: 16px;
    margin: 12px 0 0;
    color: #9d322a;
    font-size: 12px;
}

.size-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.size-dialog-actions button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #ded9d3;
    border-radius: 999px;
    background: #fff;
    color: #20211f;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.size-dialog-actions .size-dialog-submit {
    border-color: #171615;
    background: #171615;
    color: #fff;
}

.size-dialog-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .NavBar {
        display: flex;
        height: auto;
        min-height: 80px;
        padding: 8px 5% 12px;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-link {
        width: 140px;
        height: 68px;
    }

    .logo {
        width: 140px;
        height: 68px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .nav-tools {
        margin-left: auto;
        gap: 8px;
    }

    .search-box input {
        width: 75px;
    }

    .board {
        height: 320px;
    }

    .board img {
        width: 100%;
    }

    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        position: static;
    }

    .shop-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card img {
        height: 160px;
    }
}
