
/* ==================================================
   KAVIYAVIN THARIGAI — SHOP BY COLLECTION
   Desktop: 4 | Tablet: 2x2 | Mobile: 2x2
   Original image ratio preserved — no crop
================================================== */

.kt-collection-section {
    --kt-collection-cream: #FFF8EF;
    --kt-collection-maroon: #2B0713;
    --kt-collection-dark: #24050F;
    --kt-collection-gold: #D7AE68;

    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 28px 0 30px;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--kt-collection-cream);
    color: var(--kt-collection-maroon);
    font-family: "Montserrat", Arial, sans-serif;
}

.kt-collection-section *,
.kt-collection-section *::before,
.kt-collection-section *::after {
    box-sizing: border-box;
}

/* HEADER */

.kt-collection-section .kt-collection-header {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 24px;
    padding: 0 24px;
    text-align: center;
}

.kt-collection-section .kt-collection-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #B28A4E;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.kt-collection-section .kt-collection-subtitle-line {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 1px;
    background: var(--kt-collection-gold);
}

.kt-collection-section .kt-collection-heading {
    margin: 0;
    padding: 0;
    color: var(--kt-collection-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .4px;
    text-align: center;
    text-transform: uppercase;
}

.kt-collection-section .kt-collection-description {
    margin: 8px 0 0;
    color: #765D50;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.kt-collection-section .kt-collection-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 5px auto 0;
    color: var(--kt-collection-gold);
}

.kt-collection-section .kt-collection-divider-line {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--kt-collection-gold);
}

.kt-collection-section .kt-collection-divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.kt-collection-section .kt-collection-divider-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--kt-collection-gold);
}

/* GRID — DESKTOP: 4 COLUMNS */

.kt-collection-section .kt-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 26px;
}

/* CARD */

.kt-collection-section .kt-collection-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.kt-collection-section .kt-collection-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    text-decoration: none;
}

/* IMAGE WRAPPER — NATURAL IMAGE HEIGHT */

.kt-collection-section .kt-collection-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(215, 174, 104, .7);
    border-radius: 160px 160px 4px 4px;
    background: #E9D8C3;
    line-height: 0;
}

/* IMAGE — NEVER FORCE A FIXED HEIGHT */

.kt-collection-section .kt-collection-image-wrap img.kt-collection-image {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: unset !important;
    object-position: center center !important;
    transform: none;
}

/* DISABLE IMAGE OVERLAY */

.kt-collection-section .kt-collection-image-overlay {
    display: none !important;
}

/* CARD TITLE */

.kt-collection-section .kt-collection-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 15px 4px 0;
    text-align: center;
}

.kt-collection-section .kt-collection-card-title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--kt-collection-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

/* GOLD ARROW */

.kt-collection-section .kt-collection-card-arrow {
    position: absolute;
    z-index: 3;
    top: -14px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(215, 174, 104, .9);
    border-radius: 50%;
    background: var(--kt-collection-gold);
    color: var(--kt-collection-maroon);
    box-shadow: 0 2px 6px rgba(36, 5, 15, .12);
    transition: background .25s ease;
}

.kt-collection-section .kt-collection-card-arrow svg {
    display: block;
    width: 14px;
    height: 14px;
}

.kt-collection-section .kt-collection-card:hover
.kt-collection-card-arrow {
    background: #E7C98D;
}

/* TABLET — 2 COLUMNS, 2 ROWS */

@media (min-width: 601px) and (max-width: 1024px) {
    .kt-collection-section {
        padding: 25px 0 27px;
    }

    .kt-collection-section .kt-collection-header {
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .kt-collection-section .kt-collection-heading {
        font-size: 23px;
    }

    .kt-collection-section .kt-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
        padding: 0 22px;
    }

    .kt-collection-section .kt-collection-image-wrap {
        border-radius: 130px 130px 4px 4px;
    }

    .kt-collection-section .kt-collection-card-title {
        font-size: 13px;
    }
}

/* MOBILE — 2 COLUMNS, 2 ROWS */

@media (max-width: 600px) {
    .kt-collection-section {
        padding: 20px 0 24px;
    }

    .kt-collection-section .kt-collection-header {
        margin-bottom: 17px;
        padding: 0 12px;
    }

    .kt-collection-section .kt-collection-subtitle {
        gap: 6px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .kt-collection-section .kt-collection-subtitle-line {
        flex-basis: 17px;
        width: 17px;
    }

    .kt-collection-section .kt-collection-heading {
        font-size: 20px;
        line-height: 1.4;
    }

    .kt-collection-section .kt-collection-description {
        font-size: 12px;
        line-height: 1.65;
    }

    .kt-collection-section .kt-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
        padding: 0 12px;
    }

    .kt-collection-section .kt-collection-image-wrap {
        border-radius: 100px 100px 4px 4px;
    }

    .kt-collection-section .kt-collection-card-content {
        padding: 14px 2px 0;
    }

    .kt-collection-section .kt-collection-card-title {
        font-size: 11px;
        line-height: 1.5;
    }

    .kt-collection-section .kt-collection-card-arrow {
        top: -13px;
        right: 5px;
        width: 25px;
        height: 25px;
    }

    .kt-collection-section .kt-collection-card-arrow svg {
        width: 13px;
        height: 13px;
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {
    .kt-collection-section .kt-collection-grid {
        gap: 18px 9px;
        padding: 0 9px;
    }

    .kt-collection-section .kt-collection-heading {
        font-size: 18px;
    }

    .kt-collection-section .kt-collection-card-title {
        font-size: 10px;
    }

    .kt-collection-section .kt-collection-card-arrow {
        right: 4px;
        width: 23px;
        height: 23px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .kt-collection-section *,
    .kt-collection-section *::before,
    .kt-collection-section *::after {
        transition: none !important;
    }
}

/* ==========================================
   DESKTOP + TABLET ONLY
   All 4 collection images same height
   Mobile styles remain unchanged
========================================== */

/* Desktop */
@media (min-width: 1025px) {
    .kt-collection-section .kt-collection-grid {
        align-items: start !important;
    }

    .kt-collection-section .kt-collection-image-wrap {
        aspect-ratio: 0.82 / 1 !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .kt-collection-section .kt-collection-image-wrap img.kt-collection-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    .kt-collection-section .kt-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start !important;
    }

    .kt-collection-section .kt-collection-image-wrap {
        aspect-ratio: 0.82 / 1 !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .kt-collection-section .kt-collection-image-wrap img.kt-collection-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}
