/* ===================================
   MAGPYEHUB LTD - PRODUCTS PAGE STYLES
   Specialized styles for product catalog
   =================================== */

/* ========== PAGE HERO ========== */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--cream), var(--light-cream));
    overflow: hidden;
}

.page-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.7), 
        rgba(220, 20, 60, 0.6), 
        rgba(34, 139, 34, 0.7));
    opacity: 0.9;
}

.page-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: white;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    opacity: 0.6;
    font-size: 0.8rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.3rem;
    color: white;
    opacity: 0.95;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-hero .hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.page-hero .stat {
    text-align: center;
    color: white;
}

.page-hero .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ghana-gold);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-hero .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== PRODUCT FILTER ========== */
.product-filter {
    background: white;
    border-bottom: 1px solid var(--border-gray);
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-gray);
    color: var(--charcoal);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    border-color: var(--ghana-gold);
    background: var(--light-cream);
}

.filter-tab.active {
    background: var(--ghana-gold);
    color: var(--charcoal);
    border-color: var(--ghana-gold);
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-dropdown select {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 160px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    background: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--medium-gray);
}

.view-btn:hover,
.view-btn.active {
    background: var(--ghana-gold);
    color: var(--charcoal);
}

/* ========== PRODUCT SECTIONS ========== */
.product-section {
    padding: 80px 0;
}

.product-section:nth-child(even) {
    background: var(--light-cream);
}

.product-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ========== PRODUCTS SHOWCASE ========== */
.products-showcase {
    margin-bottom: 60px;
}

.showcase-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: var(--radius-xl);
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-soft);
}

.showcase-feature h3 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.showcase-feature p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.benefit i {
    color: var(--ghana-green);
    font-size: 1.1rem;
}

.feature-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* ========== ENHANCED PRODUCT CARDS ========== */
.products-grid .product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
}

.products-grid .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.size-badge {
    background: var(--ghana-gold);
    color: var(--charcoal);
}

.product-badge.size-badge.green {
    background: var(--ghana-green);
    color: white;
}

.product-badge.size-badge.gold {
    background: var(--ghana-gold);
    color: var(--charcoal);
}

.product-badge.size-badge.red {
    background: var(--ghana-red);
    color: white;
}

.product-badge.size-badge.blue {
    background: #1E40AF;
    color: white;
}

.product-badge.new {
    background: #10B981;
    color: white;
}

.product-badge.premium {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
}

.product-badge.gift {
    background: linear-gradient(135deg, var(--ghana-red), var(--heritage-red));
    color: white;
}

.product-badge.luxury {
    background: linear-gradient(135deg, #1F2937, #374151);
    color: var(--ghana-gold);
}

/* ========== PRODUCT CONTENT ENHANCEMENTS ========== */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light-cream);
    border-radius: var(--radius-md);
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.spec-label {
    font-weight: 500;
    color: var(--charcoal);
}

.spec-value {
    color: var(--medium-gray);
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: var(--light-cream);
    color: var(--charcoal);
}

.qty-input {
    border: none;
    width: 50px;
    height: 36px;
    text-align: center;
    font-size: 0.9rem;
    background: transparent;
    color: var(--charcoal);
}

.qty-input:focus {
    outline: none;
}

.add-to-cart {
    flex: 1;
    min-width: 140px;
}

.price-per {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-left: 8px;
}

/* ========== GIFT SETS SPECIFIC ========== */
.gift-contents {
    margin-bottom: 20px;
}

.gift-contents h4 {
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.gift-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gift-contents li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.gift-contents i {
    color: var(--ghana-green);
    font-size: 0.8rem;
}

.gift-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--light-cream);
    border-radius: var(--radius-md);
}

.individual-price {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.savings {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ghana-green);
}

/* ========== CUSTOMER REVIEWS ========== */
.customer-reviews {
    padding: var(--section-padding);
    background: var(--warm-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.review-rating i {
    color: var(--ghana-gold);
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--charcoal);
    font-style: italic;
    margin-bottom: 24px;
    border: none;
    position: relative;
    padding: 0;
}

.review-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--ghana-gold);
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ghana-gold);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 1rem;
}

.author-location {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* ========== QUICK VIEW MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--charcoal);
    transform: scale(1.1);
}

/* ========== LIST VIEW ========== */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 24px;
    align-items: center;
}

.products-grid.list-view .product-image {
    height: 150px;
}

.products-grid.list-view .product-content {
    padding: 20px 0;
}

.products-grid.list-view .product-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.products-grid.list-view .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid.list-view .product-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding: 20px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-hero .hero-stats {
        gap: 24px;
    }
    
    .page-hero .stat-number {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .showcase-feature {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .showcase-feature h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .add-to-cart {
        width: 100%;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .review-card {
        padding: 24px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .products-grid.list-view .product-actions {
        align-items: center;
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-hero .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .sort-dropdown select {
        width: 100%;
    }
    
    .quantity-selector {
        align-self: stretch;
    }
}

/* ========== HOVER EFFECTS FOR DESKTOP ========== */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-image img {
        transform: scale(1.05);
    }
    
    .review-card:hover {
        transform: translateY(-6px);
    }
    
    .filter-tab:hover {
        transform: translateY(-1px);
    }
    
    .qty-btn:hover {
        transform: scale(1.1);
    }
}

/* ========== ANIMATION CLASSES ========== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ========== LOADING STATES ========== */
.product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card.loading .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}