.customer-categories-page {
    min-height: 70vh;
    background: #ffffff;
}

.categories-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.categories-hero {
    padding: 26px 0 28px;
    background: #f7f5f1;
    border-bottom: 1px solid #e5e1da;
}

.categories-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #b69a68;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.categories-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.categories-hero p {
    margin: 16px 0 0;
    color: #77736d;
    font-size: 16px;
    line-height: 1.7;
}

.categories-content {
    padding: 50px 0 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    border: 1px solid #e5e1da;
    background: #ffffff;
}

.category-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f7f5f1;
}

.category-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.category-image:hover img {
    transform: scale(1.03);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #77736d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.category-card-body {
    padding: 22px;
}

.category-card-body h2 {
    margin: 0;
    font-size: 21px;
}

.category-card-body h2 a:hover {
    color: #b69a68;
}

.category-card-body p {
    margin: 10px 0 18px;
    color: #77736d;
    font-size: 13px;
    line-height: 1.7;
}

.category-view-link {
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-view-link:hover {
    color: #b69a68;
}

.category-search-form {
    width: 100%;
    max-width: 760px;
    margin: 18px 0 0;
}

.category-search-label {
    display: block;
    margin: 0 0 10px;
    color: #6f6a63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.category-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.category-search-row input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #d9d4cc;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-search-row input::placeholder {
    color: #aaa49c;
}

.category-search-row input:hover {
    border-color: #c8c0b5;
}

.category-search-row input:focus {
    border-color: #b69a68;
    box-shadow: 0 0 0 4px rgba(182, 154, 104, 0.12);
}

.category-search-row button,
.category-search-clear {
    flex: 0 0 auto;
    min-width: 100px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #111111;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.category-search-row button:hover {
    background: #b69a68;
    border-color: #b69a68;
}

.category-search-clear {
    background: #ffffff;
    color: #5f5a54;
    border-color: #d9d4cc;
}

.category-search-clear:hover {
    background: #f7f5f1;
    color: #111111;
    border-color: #b69a68;
}

.category-product-search-form {
    width: 100%;
    max-width: 680px;
    margin-top: 10px;
}

.category-product-search-form .category-search-label {
    margin-bottom: 8px;
}

.category-detail-hero .category-search-label {
    color: #77736d;
}

.category-search-form + .categories-empty,
.category-search-form + .category-live-search-empty {
    margin-top: 28px;
}

.categories-empty {
    max-width: 650px;
    margin: 20px auto;
    padding: 70px 30px;
    text-align: center;
    border: 1px solid #e5e1da;
}

.categories-empty h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.categories-empty p {
    margin: 0 auto 28px;
    color: #77736d;
    line-height: 1.7;
}

.categories-button {
    display: inline-flex;
    padding: 13px 24px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.categories-button:hover {
    background: #b69a68;
}

@media (max-width: 1000px) {
    .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .category-search-form {
        margin-top: 6px;
    }

    .category-search-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .category-search-row input {
        grid-column: 1 / -1;
        height: 44px;
    }

    .category-search-row button,
    .category-search-clear {
        width: 100%;
        min-width: 0;
        height: 46px;
    }

    .category-product-search-form {
        margin-top: 16px;
    }


    .categories-container {
        width: min(100% - 24px, 1180px);
    }

    .categories-hero {
        padding: 14px 0 14px;
    }

    .categories-content {
        padding: 8px 0 35px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.customer-category-detail-page {
    min-height: 70vh;
    background: #ffffff;
}

.category-detail-hero {
    padding: 16px 0 16px;
    background: #f7f5f1;
    border-bottom: 1px solid #e5e1da;
}

.category-detail-hero h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
}

.category-detail-hero p {
    max-width: 700px;
    margin: 8px 0 0;
    color: #77736d;
    font-size: 13px;
    line-height: 1.55;
}

.category-detail-content {
    padding: 8px 0 35px;
}

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

.category-products-grid .product-card {
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
}

.category-products-grid .product-image {
    aspect-ratio: 1 / 1;
}

.category-products-grid .product-image img {
    padding: 8px;
    object-fit: contain;
}

.category-products-grid .product-card-body {
    padding: 9px 10px 10px;
}

.category-products-grid .product-card-body h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.category-products-grid .product-card-body h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-products-grid .product-description {
    display: none;
}

.category-products-grid .product-card-bottom {
    margin-top: 7px;
    gap: 7px;
}

.category-products-grid .product-price {
    gap: 5px;
}

.category-products-grid .product-price strong {
    font-size: 14px;
    line-height: 1.2;
}

.category-products-grid .product-price del {
    font-size: 10px;
}

.category-products-grid .product-view-link {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e1da;
    border-radius: 50%;
    font-size: 0;
}

.category-products-grid .product-view-link::after {
    content: '→';
    font-size: 15px;
    line-height: 1;
}

.category-products-grid .product-badge {
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    font-size: 9px;
}

@media (min-width: 600px) {
    .category-detail-hero {
        padding: 28px 0 20px;
    }

    .category-detail-hero h1 {
        font-size: 36px;
    }

    .category-detail-content {
        padding: 26px 0 55px;
    }

    .category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .category-products-grid .product-card-body {
        padding: 11px 12px 12px;
    }

    .category-products-grid .product-card-body h2 {
        font-size: 14px;
    }
}

@media (min-width: 1000px) {
    .category-detail-hero {
        padding: 34px 0 24px;
    }

    .category-detail-hero h1 {
        font-size: 44px;
    }

    .category-detail-content {
        padding: 32px 0 65px;
    }

    .category-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .category-products-grid .product-card-body {
        padding: 12px 13px 13px;
    }

    .category-products-grid .product-card-body h2 {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .category-detail-hero {
        padding: 12px 0 12px;
    }

    .category-detail-hero h1 {
        font-size: 30px;
    }

    .category-detail-hero .category-product-search-form {
        margin-top: 8px;
    }

    .category-detail-content {
        padding: 6px 0 30px;
    }
}

@media (max-width: 380px) {
    .category-products-grid {
        gap: 9px;
    }

    .category-products-grid .product-card-body {
        padding: 8px 9px 9px;
    }

    .category-products-grid .product-card-body h2 {
        font-size: 12.5px;
    }

    .category-products-grid .product-view-link {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .category-products-grid .product-view-link::after {
        font-size: 14px;
    }
}
