/**
 * Products Archive Page Styles
 */

/* Hero Banner */
.ises-products-hero {
    background: linear-gradient(135deg, var(--tbay-primary-color) 0%, var(--tbay-primary-color-1) 100%);
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px 0;
    position: relative;
}

.ises-products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 30, 87, 0.75) 0%, rgba(3, 19, 49, 0.85) 100%);
}

.ises-hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.ises-hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
}

.ises-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
}

.ises-breadcrumb a {
    color: var(--tbay-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ises-breadcrumb a:hover {
    color: #ffffff;
}

.ises-breadcrumb-separator {
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.ises-breadcrumb-current {
    color: #ffffff;
    font-weight: 600;
}

/* Main Container */
.ises-products-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ises-products-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.ises-products-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.ises-categories-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ises-category-item {
    margin-bottom: 8px;
}

.ises-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px 20px 30px;
    color: var(--tbay-primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    background: #f3f5f9;
}

.ises-category-link:hover {
    background: var(--tbay-secondary-color);
    color: #ffffff;
}

.ises-category-item.active .ises-category-link {
    background: var(--tbay-primary-color);
    color: #ffffff;
    font-weight: 600;
}

.ises-category-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.ises-category-link:hover .ises-category-arrow,
.ises-category-item.active .ises-category-link .ises-category-arrow {
    transform: translateX(5px);
}

/* WhatsApp Button */
.ises-whatsapp-button {
    margin-top: 25px;
}

.ises-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.ises-whatsapp-link:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.ises-whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Products Content */
.ises-products-content {
    flex: 1;
}

.ises-products-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--tbay-primary-color);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    position: relative;
}

.ises-products-section-title::before {
    position: absolute;
    content: '';
    left: 0px;
    bottom: 0px;
    width: 120px;
    height: 1px;
    background-color: var(--tbay-secondary-color);
}

.ises-products-section-title::after {
    position: absolute;
    content: '';
    left: 0px;
    bottom: 0px;
    width: 40px;
    height: 1px;
    background-color: var(--tbay-primary-color);
}

.ises-products-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Product Card */
.ises-product-card {
    background: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: #ccc solid thin;
}

.ises-product-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--tbay-primary-color);
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 22px;
}

.ises-product-name::before {
    position: absolute;
    content: '';
    left: 0px;
    bottom: 0px;
    height: 1px;
    width: 50px;
    background-color: #5ea0d6;
}

.ises-product-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ises-product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid rgba(0, 30, 87, 0.15);
}

.ises-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ises-product-tags {
    flex: 1;
}

.ises-tags-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.ises-tag-item {
    color: var(--tbay-primary-color);
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    display: block;
    flex: 0 0 50%;
}

.ises-tag-item::before {
    content: "\f345";
    font-family: "dashicons";
    color: white;
    padding: 1px;
    font-weight: 900;
    font-size: 12px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: var(--tbay-secondary-color);
}

/* No Products Message */
.ises-no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--tbay-primary-color);
    font-size: 18px;
    font-style: italic;
}

/* Pagination */
.ises-products-grid .pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ises-products-grid .pagination a,
.ises-products-grid .pagination span {
    padding: 10px 16px;
    border: 1px solid var(--tbay-secondary-color);
    border-radius: 6px;
    color: var(--tbay-primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ises-products-grid .pagination a:hover,
.ises-products-grid .pagination .current {
    background: var(--tbay-primary-color);
    color: #ffffff;
    border-color: var(--tbay-primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ises-products-wrapper {
        flex-direction: column;
    }

    .ises-products-sidebar {
        width: 100%;
    }

    .ises-product-body {
        flex-direction: column;
    }

    .ises-product-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .ises-hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .ises-breadcrumb {
        font-size: 16px;
    }

    .ises-products-container {
        margin: 20px auto;
    }

    .ises-product-name {
        font-size: 20px;
    }
}