/* Products Page Styles - "At a Glance" Layout */

.products-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(0, 31, 55, 0.7), rgba(0, 31, 55, 0.85)), url('../../images/products/hero.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.products-hero h1 {
    color: #ffffff !important;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(37, 211, 102, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.products-at-a-glance {
    padding: 80px 0;
    background-color: #f3f4f6;
    /* Light gray background matching the image */
}

.glance-header {
    margin-bottom: 20px;
}

/* --- Animated Sketch Background --- */
.animated-bg-sketch {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 300px;
    max-width: 40vw;
    /* ensures it shrinks on mobile */
    opacity: 0.08;
    /* slightly more visible since it's smaller */
    z-index: 0;
    pointer-events: none;
    animation: floatSketch 15s ease-in-out infinite;
}

@keyframes floatSketch {
    0% {
        transform: translateY(-50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-55%) rotate(8deg) scale(1.05);
    }

    100% {
        transform: translateY(-50%) rotate(0deg) scale(1);
    }
}

.glance-title {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .glance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .glance-grid {
        grid-template-columns: 1fr;
    }
}

.glance-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    /* No border radius to match the sharp edges in the image */
}

.glance-img-wrapper {
    width: 100%;
    /* The images in the screenshot are somewhat landscape rectangles, let's use a 4:3 or 16:9 ratio */
    aspect-ratio: 4/3;
    overflow: hidden;
}

.glance-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glance-card:hover .glance-img {
    transform: scale(1.05);
}

.glance-text {
    padding: 24px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.glance-text strong {
    color: #1f2937;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Simple List Dropdown */
.rest-products-container {
    margin-top: 40px;
}

.simple-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-oxford-blue);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.simple-toggle-btn:hover {
    color: var(--color-tiffany-blue);
    border-bottom-color: var(--color-tiffany-blue);
}

.simple-toggle-btn svg {
    transition: transform 0.4s ease;
}

.simple-toggle-btn.expanded svg {
    transform: rotate(180deg);
}

.simple-products-dropdown {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s ease;
    margin-top: 0;
}

.simple-products-dropdown.expanded {
    grid-template-rows: 1fr;
    margin-top: 30px;
}

.simple-products-inner {
    overflow: hidden;
    min-height: 0;
}

.simple-products-list {
    list-style: none;
    padding: 20px 0 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.simple-products-list li a {
    color: #4b5563;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    padding-left: 0;
    position: relative;
}

.simple-products-list li a::before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--color-tiffany-blue);
    transition: all 0.2s ease;
}

.simple-products-list li a:hover {
    color: var(--color-tiffany-blue);
    padding-left: 20px;
}

.simple-products-list li a:hover::before {
    opacity: 1;
    left: 0;
}
