/* =========================================================
   KODIMARAM CRAFTS
   ========================================================= */

.kc-crafts-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   FILTERS
   ========================================================= */

.kc-filter-form {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.kc-filter-form input[type="text"],
.kc-filter-form select {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: var(--bg-white, #fff);
    color: var(--text-dark, #222);
    font-size: 0.9rem;
    min-width: 200px;
    flex: 1;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kc-filter-form input[type="text"]:focus,
.kc-filter-form select:focus {
    border-color: var(--gold-primary, #b8944f);
    box-shadow: 0 0 0 3px rgba(184, 148, 79, 0.08);
}

.kc-btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    background: var(--text-dark, #222);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.kc-btn:hover {
    background: var(--gold-primary, #b8944f);
    color: #fff;
    transform: translateY(-2px);
}

.kc-btn-clear {
    background: #ddd;
    color: #333;
}

.kc-btn-clear:hover {
    background: #bbb;
    color: #222;
}

/* =========================================================
   CRAFT GRID
   Matches homepage craft design
   ========================================================= */

.kc-crafts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: left;
}

/* =========================================================
   CRAFT CARD
   ========================================================= */

.kc-craft-card {
    background: var(--bg-white, #fff);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.kc-craft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   IMAGE
   ========================================================= */

.kc-card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.kc-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease;
    pointer-events: none;
}

.kc-craft-card:hover .kc-card-img::after {
    background: rgba(0, 0, 0, 0);
}

.kc-card-img {
    transition: transform 0.7s ease;
}

.kc-craft-card:hover .kc-card-img {
    transform: scale(1.05);
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.kc-card-content {
    padding: 1.5rem;
    background: var(--bg-white, #fff);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kc-card-cat {
    font-size: 0.7rem;
    color: var(--gold-primary, #b8944f);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.kc-card-title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark, #222);
    line-height: 1.4;
}

.kc-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #777);
    margin: 0 0 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* View Craft button */

.kc-card-content .kc-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 9px 16px;
    font-size: 0.7rem;
}

/* =========================================================
   FEATURED SECTION
   If shortcode is placed inside section
   ========================================================= */

.kc-featured-crafts {
    width: 100%;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.kc-pagination {
    margin-top: 50px;
    text-align: center;
}

.kc-pagination .page-numbers {
    display: inline-block;
    padding: 9px 13px;
    margin: 0 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-dark, #333);
    border-radius: 4px;
    font-size: 0.8rem;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.kc-pagination .page-numbers:hover,
.kc-pagination .page-numbers.current {
    background: var(--gold-primary, #b8944f);
    color: #fff;
    border-color: var(--gold-primary, #b8944f);
}

/* =========================================================
   SINGLE CRAFT PAGE
   ========================================================= */

.kc-single-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.kc-single-hero {
    margin-bottom: 60px;
}

.kc-single-img {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.kc-single-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
}

.kc-single-header-content {
    max-width: 900px;
    margin: 30px auto 0;
}

.kc-single-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 10px 0 20px;
    color: var(--text-dark, #222);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kc-single-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--text-muted, #666);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    font-size: 0.9rem;
}

.kc-single-short-desc {
    font-size: 1.05rem;
    color: var(--text-muted, #555);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.kc-single-body {
    max-width: 900px;
    margin: 0 auto;
}

.kc-single-content h2,
.kc-single-gallery-wrap h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark, #222);
    margin-bottom: 25px;
}

.kc-single-content {
    line-height: 1.8;
    color: var(--text-muted, #555);
}

.kc-single-gallery-wrap {
    margin-top: 60px;
}

.kc-single-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.kc-single-gallery .kc-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.kc-single-gallery img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kc-single-gallery .kc-gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================================
   EMPTY STATES
   ========================================================= */

.kc-crafts-wrapper > p {
    text-align: center;
    color: var(--text-muted, #777);
    padding: 30px 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .kc-crafts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .kc-crafts-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .kc-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .kc-filter-form input[type="text"],
    .kc-filter-form select {
        width: 100%;
        min-width: 0;
    }

    .kc-filter-form .kc-btn {
        width: 100%;
        text-align: center;
    }

    .kc-crafts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .kc-card-img {
        height: 170px;
    }

    .kc-card-content {
        padding: 1.2rem;
    }

    .kc-single-wrap {
        margin: 40px auto;
        padding: 0 15px;
    }

    .kc-single-meta {
        flex-direction: column;
        gap: 8px;
    }

    .kc-single-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kc-crafts-grid {
        grid-template-columns: 1fr;
    }

    .kc-card-img {
        height: 210px;
    }

    .kc-single-gallery {
        grid-template-columns: 1fr;
    }

    .kc-single-gallery img {
        height: 220px;
    }

}