/* CATALOG SECTION STYLES FOR AKKULA - LIGHT SOHO THEME */
:root {
    --brand-dark:   #232323;
    --brand-purple: #4B1C4F;
    --brand-plum:   #6B2D70;
    --text-muted:   rgba(35, 35, 35, 0.5);
    --card-bg:      #FFFFFF;
    --bg-light:     #EAEAEA;
}

.catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.tag {
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--brand-dark);
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
}

.tag:hover,
.tag.active {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* PRODUCT CARD */
.product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border-radius: 8px;
}

.product-card:hover {
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: var(--brand-purple);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--brand-dark);
}

.product-desc {
    font-size: 14px;
    color: rgba(35, 35, 35, 0.7);
    margin-bottom: auto;
    line-height: 1.6;
    min-height: 50px;
}

.view-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--brand-dark);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    margin-top: 20px;
    border-radius: 4px;
}

.view-btn:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 35, 0.85);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 1200px;
    margin: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.8);
    border: none;
    color: var(--brand-dark);
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    line-height: 1;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #fff;
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--bg-light);
}

.gallery-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-images img.active {
    opacity: 1;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--brand-dark);
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-prev:hover,
.gallery-next:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-info {
    padding: 50px 40px;
}

.modal-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.modal-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    font-weight: 600;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(35, 35, 35, 0.75);
    margin-bottom: 30px;
}

.modal-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.modal-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 15px;
    color: var(--brand-dark);
    font-weight: 500;
}

.modal-cta {
    display: block;
    text-align: center;
    padding: 18px 40px;
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s;
}

.modal-cta:hover {
    background: var(--brand-purple);
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .modal.active {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-content {
        margin: 10px;
        max-height: none;
        overflow-y: visible;
    }
    .modal-gallery {
        height: 50vh;
        min-height: 280px;
    }
    .modal-info {
        padding: 30px 20px;
    }
    .products-grid {
        padding: 20px 15px;
    }
}

@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); padding: 60px 40px; }
    .modal-content { grid-template-columns: 1.2fr 1fr; }
    .modal-gallery { height: 600px; }
    .modal-info { padding: 60px 50px; }
}

@media (min-width: 1025px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .modal-gallery { height: 700px; }
}

@media (min-width: 1441px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1025px) and (max-width: 1440px), (max-height: 900px) {
    .modal-gallery { height: 50vh; min-height: 400px; max-height: 500px; }
    .modal-info { padding: 40px; }
    .modal-title { font-size: 28px; }
    .modal-content { max-height: 90vh; overflow-y: auto; }
}

