/* Product Page Specific Styles */

.products-page-section {
    padding: 60px 5%;
    background-color: #f9fafb;
}

.section-header {
    padding-top: 37px;
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    background-color: #eff6ff;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-desc {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout - 5 Columns */
.products-page-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Product Card */
.product-page-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image Container */
.product-image-container {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
}

/* Owl navigation buttons positioned outside/alongside the image */
.product-image-container .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    /* children will receive pointer events */
}

.product-image-container .owl-nav button {
    position: absolute;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    z-index: 5;
    transition: transform 0.15s ease, background 0.15s ease;
}

.product-image-container .owl-nav .owl-prev {
    left: 8px;
}

.product-image-container .owl-nav .owl-next {
    right: 8px;
}

.product-image-container .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.05);
}

/* Make arrows slightly outside container on large screens */
@media (min-width: 900px) {
    .product-image-container .owl-nav .owl-prev {
        left: -20px;
    }

    .product-image-container .owl-nav .owl-next {
        right: -20px;
    }
}

.product-image-slide img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.product-page-card:hover .product-image-slide img {
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes button to bottom */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button */
.btn-secondary.small-btn {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.85rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-secondary.small-btn:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
    .products-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .products-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .products-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .products-page-grid {
        grid-template-columns: 1fr;
    }

    .product-page-card {
        height: auto;
    }

    .product-desc {
        flex-grow: 0;
        margin-bottom: 1rem;
    }
}