/* 
 * Test Papers & Mock Test Bundles Shop Stylesheet
 * Premium aesthetics, glassmorphism, responsive grid, and interactive animations
 */

:root {
    --sh-dark-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    --sh-primary: #4f46e5;
    --sh-primary-hover: #4338ca;
    --sh-primary-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --sh-secondary: #0d9488;
    --sh-secondary-grad: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    --sh-accent: #fbbf24;
    --sh-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --sh-card-hover-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --sh-border-radius: 1.25rem;
    --sh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Page Header (Hero Section) --- */
.page-header {
    background: var(--sh-dark-bg);
    color: #ffffff;
    padding: 6.5rem 0 7.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    text-decoration: none;
    transition: var(--sh-transition);
}

.page-header .breadcrumb-item a:hover {
    color: var(--sh-accent) !important;
}

.page-header .breadcrumb-item.active {
    color: #ffffff !important;
    opacity: 0.9;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-header h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to right, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Filter & Sort Section --- */
.filter-sort-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.75rem;
    border-radius: var(--sh-border-radius);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    margin-top: 2rem;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    min-width: 90px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sh-transition);
}

.filter-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--sh-primary-grad);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: scale(1.03);
}

.sort-select {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    background-color: #ffffff;
    transition: var(--sh-transition);
    outline: none;
}

.sort-select:focus {
    border-color: var(--sh-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.results-count {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.btn-reset-filters {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--sh-transition);
}

.btn-reset-filters:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff !important;
    transform: translateY(-1px);
}

/* --- Category Title Badges --- */
.section-badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--sh-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.category-description {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* --- Product Cards Redesign --- */
.product-card {
    background: #ffffff;
    border-radius: var(--sh-border-radius);
    overflow: hidden;
    box-shadow: var(--sh-card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: var(--sh-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-card-hover-shadow);
    border-color: #cbd5e1;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--sh-transition);
}

.product-image img {
    transition: var(--sh-transition);
}

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

.product-image i {
    font-size: 3.5rem;
    opacity: 0.9;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--sh-transition);
}

.product-card:hover .product-image i {
    transform: scale(1.1) rotate(2deg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ecfdf5;
    color: #059669;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #d1fae5;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.product-badge.paid {
    background: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}

.product-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    transition: var(--sh-transition);
}

.product-card:hover .product-title {
    color: var(--sh-primary);
}

.product-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.88rem; /* fallback for height */
}

/* Product metadata tags */
.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
    background: #f8fafc;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.product-meta-item i {
    color: var(--sh-primary);
    font-size: 0.85rem;
}

/* Pricing Display */
.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sh-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
}

.product-price.free {
    color: #059669;
}

.product-price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Premium Product Buttons */
.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.btn-purchase, .btn-sample, .btn-call {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--sh-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none !important;
}

.btn-purchase {
    background: var(--sh-primary-grad);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.35);
}

.btn-sample {
    background: #ffffff;
    color: var(--sh-primary) !important;
    border: 2px solid #e2e8f0;
}

.btn-sample:hover {
    background: #f5f3ff;
    border-color: #ddd6fe;
    transform: translateY(-2px);
}

.btn-call {
    background: #ffffff;
    color: var(--sh-secondary) !important;
    border: 2px solid #ccfbf1;
}

.btn-call:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    transform: translateY(-2px);
}

/* Help Section / Contact Banner */
.help-section {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: var(--sh-border-radius);
    padding: 3.5rem;
    text-align: center;
    color: #ffffff;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
}

.help-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 75%);
    border-radius: 50%;
}

.help-section h3 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.help-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.help-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.help-btn {
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: var(--sh-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.help-btn-primary {
    background: #ffffff;
    color: var(--sh-primary) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.help-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.help-btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.help-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.help-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #ffffff !important;
}

.help-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.25rem;
    }
    .help-section {
        padding: 2rem;
    }
    .help-section h3 {
        font-size: 1.6rem;
    }
    .filter-sort-section {
        padding: 1.25rem;
    }
}
