/* =============================================================================
   KTECH CATALOGUE GRID & ITEM STYLES (UX BUILDER & FRONTEND)
   File: assets/css/builder/catalogue-shortcodes.css
   ============================================================================= */

.ktech-catalogue-grid-wrapper {
    position: relative;
    width: 100%;
    margin: 30px 0;
}

.ktech-catalogue-grid-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ktech-catalogue-grid-container {
    display: grid;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Grid Columns Utility */
.ktech-catalogue-grid-container.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ktech-catalogue-grid-container.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ktech-catalogue-grid-container.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ktech-catalogue-grid-container.cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

/* Catalogue Card Item */
.ktech-catalogue-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    text-decoration: none !important;
}

/* Cover Image Box */
.ktech-catalogue-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

.ktech-catalogue-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* Card Hover Animation */
.ktech-catalogue-card:hover .ktech-catalogue-cover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    border-color: #2563eb;
}

.ktech-catalogue-card:hover .ktech-catalogue-cover img {
    transform: scale(1.04);
}

/* Catalogue Title */
.ktech-catalogue-title {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ktech-catalogue-card:hover .ktech-catalogue-title {
    color: #0242a7;
}

/* Download Button Link */
.ktech-catalogue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.ktech-catalogue-btn svg {
    stroke: #2563eb;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.ktech-catalogue-btn:hover {
    color: #0242a7;
    text-decoration: underline !important;
}

.ktech-catalogue-btn:hover svg {
    stroke: #0242a7;
    transform: translateY(2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .ktech-catalogue-grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ktech-catalogue-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ktech-catalogue-grid-container {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 24px;
    }
}