/* ============================================= */
/* ====== SHOP PAGE STYLES (FINAL DESIGN) ====== */
/* ============================================= */

/* --- 1. Shop Hero Section --- */
.shop-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #e4f9f0, #eaf2ff);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.shop-hero-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    background-color: var(--color-light); border-radius: 50%;
    color: var(--color-primary); font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.shop-hero h1 { font-size: 3rem; color: var(--color-dark); margin-bottom: 1rem; }
.shop-hero p { font-size: 1.1rem; color: #555; max-width: 600px; margin: 0 auto; }

/* --- 2. "How It Works" Section --- */
.how-it-works { padding: 5rem 0; background-color: var(--color-light); }
.how-it-works .section-title { margin-bottom: 4rem; }
.how-it-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how-it-works-card {
    padding: 2rem; text-align: center; position: relative;
    border-radius: 0.75rem; transition: all 0.3s ease;
}
.how-it-works-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(100, 110, 140, 0.12); }
.step-icon-wrapper { display: inline-flex; position: relative; margin-bottom: 1.5rem; }
.step-icon-wrapper i {
    width: 4rem; height: 4rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background-color: #f0fdf4;
    color: var(--color-primary); font-size: 2rem;
}
.step-number {
    position: absolute; top: -0.5rem; right: -0.5rem;
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--color-dark); color: var(--color-light);
    border-radius: 50%; font-weight: 700;
}
.how-it-works-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.how-it-works-card p { color: #6c757d; }
.card-underline {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-brand-blue));
    transform: scaleX(0); transition: transform 0.4s ease;
}
.how-it-works-card:hover .card-underline { transform: scaleX(1); }


/* --- 3. Product Grid Section (Reference Design) --- */
.product-grid-section {
    padding: 5rem 0;
    background-color: #0F172B; /* The correct dark background */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* --- Product Card (More Compact Design) --- */
.product-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: var(--color-light);
    padding: 0.75rem; /* Reduced padding */
    overflow: hidden;
}
.product-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}
.featured-tag {
    position: absolute; top: 0.5rem; right: 0.5rem; /* Adjusted position */
    background-color: var(--color-primary); color: var(--color-light);
    padding: 3px 8px; /* Smaller padding */
    font-size: 0.7rem; /* Smaller font */
    font-weight: 700; border-radius: 50px;
}

.product-content {
    padding: 1rem; /* Reduced padding */
    flex-grow: 1; display: flex; flex-direction: column;
}
.product-category {
    font-size: 0.7rem; /* Smaller font */
    text-transform: uppercase; color: var(--color-primary);
    font-weight: 700; margin-bottom: 0.25rem;
}
.product-name {
    color: var(--color-light); font-weight: 600; /* Lighter weight */
    font-size: 1rem; /* Smaller font */
    line-height: 1.3; margin-bottom: 0.75rem;
    height: 2.6em; /* Fixed height for 2 lines */
    overflow: hidden;
}
.product-rating {
    display: flex; align-items: center;
    color: #f59e0b; margin-bottom: 1rem;
}
.product-rating .fa-star { font-size: 0.8rem; margin-right: 2px; } /* Smaller stars */
.product-rating .rating-text { font-size: 0.8rem; font-weight: 600; color: #cbd5e1; margin-left: 0.25rem; }
.product-rating .reviews-text { font-size: 0.75rem; color: #64748b; margin-left: 0.25rem; }

.enquire-btn {
    background-color: var(--color-primary); color: var(--color-light);
    border: none; padding: 0.6rem; /* Reduced padding */
    border-radius: 0.375rem; font-size: 0.85rem; /* Smaller font */
    font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: background-color 0.3s ease;
    margin-top: auto;
}
.enquire-btn:hover { background-color: #0d9488; }

/* ============================================= */
/* ========= ON-SCROLL ANIMATION STYLES ======== */
/* ============================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive for Shop Page --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .how-it-works-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}