**
 * =========================================================
 * MAKKY CORE — SHOP PRODUCT LISTING
 * =========================================================
 */

.makky-shop {
    width: 100%;
    background: #fbf9f5;
    color: #171713;
}

.makky-shop__hero {
    padding: clamp(64px, 8vw, 110px) 24px clamp(52px, 6vw, 78px);
    background: #f4efe7;
    border-bottom: 1px solid #ebe6de;
}

.makky-shop__hero-inner,
.makky-shop__body,
.makky-shop__categories-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.makky-shop__hero-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.makky-shop__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #b86b16;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.makky-shop__title {
    margin: 0;
    color: #171713;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.makky-shop__description {
    max-width: 620px;
    margin: 20px auto 0;
    color: #6f6a62;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.makky-shop__categories {
    background: #ffffff;
    border-bottom: 1px solid #ebe6de;
}

.makky-shop__categories-inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 22px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.makky-shop__categories-inner::-webkit-scrollbar {
    display: none;
}

.makky-shop__category {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #ebe6de;
    border-radius: 999px;
    background: #ffffff;
    color: #4e4942;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.makky-shop__category:hover {
    transform: translateY(-2px);
    border-color: #c9822d;
    color: #b86b16;
}

.makky-shop__category.is-active {
    border-color: #b86b16;
    background: #b86b16;
    color: #ffffff;
}

.makky-shop__category-icon,
.makky-shop__category-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    overflow: hidden;
    border-radius: 50%;
    background: #f4efe7;
}

.makky-shop__category-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.makky-shop__category.is-active
.makky-shop__category-icon,
.makky-shop__category.is-active
.makky-shop__category-media {
    background: rgba(255, 255, 255, 0.16);
}

.makky-shop__category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.makky-shop__category-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b86b16;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   BODY / TOOLBAR
========================================================= */

.makky-shop__body {
    padding-top: clamp(48px, 6vw, 76px);
    padding-bottom: clamp(72px, 8vw, 110px);
}

.makky-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.makky-shop__result-count {
    color: #777168;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.makky-shop__result-count strong {
    color: #29251f;
    font-weight: 700;
}

.makky-shop__sort {
    flex: 0 0 auto;
}

.makky-shop__sort-select {
    min-width: 190px;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid #ddd6cc;
    border-radius: 4px;
    outline: none;
    background: #ffffff;
    color: #39342e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.makky-shop__sort-select:focus {
    border-color: #b86b16;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.makky-shop__layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.makky-shop__filters {
    min-width: 0;
}

.makky-shop__filter-card {
    position: sticky;
    top: 24px;
    padding: 24px 20px;
    border: 1px solid #ebe6de;
    border-radius: 6px;
    background: #ffffff;
}

.makky-shop__filter-header {
    padding-bottom: 18px;
    border-bottom: 1px solid #ebe6de;
}

.makky-shop__filter-header h2 {
    margin: 0;
    color: #25211c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.makky-shop__filter-group {
    padding: 22px 0;
    border-bottom: 1px solid #ebe6de;
}

.makky-shop__filter-group h3 {
    margin: 0 0 14px;
    color: #2f2a24;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.makky-shop__filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.makky-shop__filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #69635b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.makky-shop__filter-option:hover,
.makky-shop__filter-option.is-active {
    color: #b86b16;
}

.makky-shop__checkbox {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #d7d0c6;
    border-radius: 3px;
    background: #ffffff;
}

.makky-shop__filter-option.is-active
.makky-shop__checkbox {
    border-color: #b86b16;
    background: #b86b16;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.makky-shop__reset {
    display: inline-block;
    margin-top: 20px;
    color: #8c5a24;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.makky-shop__reset:hover {
    color: #b86b16;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.makky-shop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
    align-items: stretch;
}

.makky-shop-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ebe6de;
    border-radius: 6px;
    background: #ffffff;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.makky-shop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 107, 22, 0.28);
    box-shadow: 0 22px 50px rgba(32, 24, 14, 0.08);
}

.makky-shop-card__image-link {
    display: block;
    overflow: hidden;
    background: #f4efe7;
    text-decoration: none;
}

.makky-shop-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.makky-shop-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.55s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.makky-shop-card:hover
.makky-shop-card__image {
    transform: scale(1.035);
}

.makky-shop-card__badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 6px 9px;
    border-radius: 3px;
    background: #b86b16;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.makky-shop-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.makky-shop-card__title {
    margin: 0;
    color: #25211c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
}

.makky-shop-card__title a {
    color: inherit;
    text-decoration: none;
}

.makky-shop-card__title a:hover {
    color: #b86b16;
}

.makky-shop-card__description {
    margin: 10px 0 0;
    color: #777168;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.65;
}

.makky-shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
}

.makky-shop-card__price {
    color: #25211c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.makky-shop-card__price del {
    margin-right: 5px;
    color: #aaa39a;
    font-size: 11px;
    font-weight: 400;
}

.makky-shop-card__price ins {
    color: #b86b16;
    text-decoration: none;
}

.makky-shop-card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #d8cfc4;
    border-radius: 50%;
    background: #ffffff;
    color: #9d5d17;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.makky-shop-card__cart:hover {
    transform: translateY(-2px);
    border-color: #b86b16;
    background: #b86b16;
    color: #ffffff;
}

.makky-shop-card__cart.loading {
    opacity: 0.55;
    pointer-events: none;
}


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

.makky-shop__pagination {
    margin-top: 48px;
    text-align: center;
}

.makky-shop__pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.makky-shop__pagination li {
    margin: 0;
    padding: 0;
}

.makky-shop__pagination a,
.makky-shop__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ebe6de;
    border-radius: 4px;
    background: #ffffff;
    color: #5f5951;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-decoration: none;
}

.makky-shop__pagination a:hover {
    border-color: #b86b16;
    color: #b86b16;
}

.makky-shop__pagination .current {
    border-color: #b86b16;
    background: #b86b16;
    color: #ffffff;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.makky-shop__empty {
    padding: 72px 30px;
    border: 1px solid #ebe6de;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
}

.makky-shop__empty h2 {
    margin: 0;
    color: #25211c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.makky-shop__empty p {
    max-width: 480px;
    margin: 14px auto 0;
    color: #777168;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.makky-shop__empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 24px;
    padding: 0 22px;
    border-radius: 4px;
    background: #b86b16;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {

    .makky-shop__layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 26px;
    }

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

}


@media (max-width: 767px) {

    .makky-shop__hero {
        padding-top: 52px;
        padding-bottom: 44px;
    }

    .makky-shop__hero-inner,
    .makky-shop__body,
    .makky-shop__categories-inner {
        width: min(100% - 32px, 1240px);
    }

    .makky-shop__title {
        font-size: clamp(38px, 11vw, 52px);
    }

    .makky-shop__description {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.65;
    }

    .makky-shop__categories-inner {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .makky-shop__category {
        min-height: 42px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .makky-shop__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 24px;
    }

    .makky-shop__sort,
    .makky-shop__sort-select {
        width: 100%;
    }

    .makky-shop__sort-select {
        min-width: 0;
    }

    .makky-shop__layout {
        display: block;
    }

    .makky-shop__filters {
        margin-bottom: 24px;
    }

    .makky-shop__filter-card {
        position: static;
    }

    .makky-shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .makky-shop-card__content {
        padding: 15px;
    }

    .makky-shop-card__title {
        font-size: 17px;
    }

    .makky-shop-card__description {
        font-size: 11px;
    }

    .makky-shop-card__footer {
        gap: 8px;
        padding-top: 16px;
    }

    .makky-shop-card__price {
        font-size: 13px;
    }

    .makky-shop-card__cart {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 19px;
    }

}


@media (max-width: 420px) {

    .makky-shop__grid {
        gap: 10px;
    }

    .makky-shop-card__content {
        padding: 13px;
    }

    .makky-shop-card__title {
        font-size: 16px;
    }

    .makky-shop-card__footer {
        align-items: flex-end;
    }

    .makky-shop-card__price {
        font-size: 12px;
    }

    .makky-shop-card__cart {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

}

/* =========================================================
   SHOP ARCHIVE CLEANUP
   Remove default theme / WooCommerce archive heading so the
   Makky Shop hero becomes the first visible shop content.
   ========================================================= */

body.post-type-archive-product .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-products-header,
body.post-type-archive-product .page-header,
body.post-type-archive-product .entry-header,
body.post-type-archive-product .site-branding,
body.post-type-archive-product .site-title,
body.post-type-archive-product .site-description {
    display: none !important;
}

body.post-type-archive-product .woocommerce {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.post-type-archive-product .makky-shop {
    margin-top: 0 !important;
}