@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Inter:wght@400;500;600;700&display=swap");

/* Category page - Kent Trophies & Awards design (scoped to .category-page) */
.category-page {
    --ink: #173c19;
    --muted-ink: #767676;
    --description-ink: #666a67;
    --leaf: #d6e1d2;
    --accent: #376b32;
    --display-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    overflow-x: hidden;
    background: #ffffff;
    color: var(--ink);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    padding-bottom: 76px;
}

.category-page .store-header-bg-image {
    height: 70px;
    width: 100%;
}

.category-page .container {
    width: min(1150px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

/* Hero */
.category-page .category-hero {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    margin-top: 24px;
    padding: 32px;
    border: 0;
    border-radius: 18px;
    background: #f4f1ea url("../../assets/images/category-page/products-page-bg-image.png") center / cover no-repeat;
    box-shadow: none;
}

.category-page .category-hero-text {
    display: block;
    padding: 0;
}

.category-page .category-hero-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 58px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0;
    text-align: left;
}

.category-page .category-hero-description {
    max-width: none;
    margin: 16px 0 0;
    color: var(--muted-ink);
    font-size: 15px;
    line-height: 1.55;
}

.category-page .category-hero-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 28px;
}

.category-page .category-hero-thumb {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(23, 60, 25, 0.12);
}

.category-page .category-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-page .category-hero-media {
    position: relative;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eef1ec;
    box-shadow: 0 12px 24px rgba(23, 60, 25, 0.22);
}

.category-page .category-hero-media > img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.category-page .category-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.category-page .category-hero-play img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Our Range */
.category-page .category-range {
    margin-top: 0;
    padding: 49px 0 0;
}

.category-page .category-range-title {
    margin: 12px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.category-page .category-range-description {
    max-width: 700px;
    margin: 16px auto 0;
    color: var(--description-ink);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.category-page .category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1000px;
    margin: 28px auto 0;
}

.category-page .category-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    border: 1px solid #e1e5e1;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.category-page .category-chip:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.category-page .category-chip.active {
    border-color: var(--accent);
    background: var(--leaf);
}

.category-page .category-chip-image {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f3f4f6;
    display: block;
}

.category-page .category-chip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-page .category-empty {
    padding: 48px 0;
    color: var(--description-ink);
    font-size: 15px;
    text-align: center;
}

/* Product grid + cards */
.category-page .product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.category-page .product-card-tile {
    position: relative;
    display: block;
    padding: 18px 18px 60px;
    border: 1px solid #e7e9e6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(23, 60, 25, 0.06);
    color: var(--ink);
    text-decoration: none;
    transform: none;
}

.category-page .product-card-tile:hover {
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(23, 60, 25, 0.12);
    transform: none;
}

.category-page .product-card-tile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 230px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #eceeec;
}

.category-page .product-card-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.category-page .product-card-tile-badge {
    display: inline-block;
    margin: 16px 0 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--leaf);
    color: #2f5b2c;
    font-size: 11px;
    font-weight: 600;
}

.category-page .product-card-tile-title {
    margin: 12px 0 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.category-page .product-card-tile-text {
    margin: 8px 0 0;
    color: var(--description-ink);
    font-size: 13px;
    line-height: 1.5;
}

.category-page .product-card-tile-arrow {
    right: 18px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    background: #eef1ee;
    color: var(--ink);
}

.category-page .product-card-tile:hover .product-card-tile-arrow {
    background: var(--accent);
    color: #ffffff;
}

/* Pagination */
.category-page .category-pagination {
    margin-top: 48px;
}

.category-page .store-pagination-wrapper {
    justify-content: center;
    gap: 10px;
}

.category-page .pagination-link,
.category-page .pagination-number,
.category-page .pagination-ellipsis {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.category-page .pagination-link {
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    color: var(--muted-ink);
    font-weight: 500;
    background: transparent;
}

.category-page .pagination-link:hover:not(.disabled) {
    border: 0;
    background: transparent;
    color: var(--accent);
}

.category-page .pagination-numbers {
    gap: 6px;
}

.category-page .pagination-number {
    min-width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
}

.category-page .pagination-number:hover:not(.active) {
    border: 0;
    background: var(--leaf);
    color: var(--ink);
}

.category-page .pagination-number.active {
    background: var(--accent);
    border: 0;
    color: #ffffff;
}

.category-page .pagination-ellipsis {
    color: var(--ink);
}

/* Responsive */
@media (min-width: 1200px) {
    .category-page .category-range {
        padding-top: 70px;
    }

    .category-page .category-chips {
        margin-top: 38px;
    }
}

@media (max-width: 1100px) {
    .category-page .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .category-page .category-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .category-page .category-hero-media > img {
        height: 300px;
    }

    .category-page .category-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        max-width: none;
        margin-left: -24px;
        margin-right: -24px;
        padding: 4px 24px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .category-page .category-chips::-webkit-scrollbar {
        display: none;
    }

    .category-page .category-chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 700px) {
    .category-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-page .category-range-title {
        font-size: 30px;
    }

    .category-page .category-hero-thumb {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 600px) {
    .category-page .category-range-break {
        display: none;
    }

    .category-page .category-hero {
        padding: 22px;
    }

    .category-page .category-hero-title {
        font-size: clamp(34px, 8vw, 58px);
    }

    .category-page .category-hero-thumbs {
        flex-wrap: wrap;
    }

    .category-page .category-hero-media > img {
        height: 220px;
    }

    .category-page .category-range {
        padding-top: 40px;
    }

    .category-page .category-chips {
        margin-top: 24px;
    }

    .category-page .store-pagination-wrapper {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-page .product-grid {
        grid-template-columns: 1fr;
    }

    .category-page .category-hero {
        padding: 18px;
    }

    .category-page .category-hero-thumb {
        width: 72px;
        height: 72px;
    }
}
