/* Products Page Styles */

/* Products Hero */
.products-hero {
    padding: 140px 24px 60px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    text-align: center;
}

.products-hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.products-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Filter */
.product-filter {
    padding: 30px 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: white;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Products Section */
.products-section {
    padding: 60px 0 100px;
    background: var(--background-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-card.hidden {
    display: none;
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-subtitle {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.product-benefit {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}

.product-details {
    margin-bottom: 12px;
}

.product-origin {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-origin::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00B894 0%, #00a085 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    background: linear-gradient(135deg, #00a085 0%, #009070 100%);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart.added {
    background: #333;
}

/* Cart Icon in Navigation */
.cart-icon {
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #00B894;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #00B894;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count[data-count="0"] {
    display: none;
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00B894;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInUp 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cart-toast i {
    font-size: 1.2rem;
}

.cart-toast a {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(30px); }
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-icon.animate {
    animation: cartBounce 0.3s ease;
}

/* Product CTA Banner */
.product-cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-color), #00a884);
}

.cta-banner-content {
    text-align: center;
    color: white;
}

.cta-banner-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-content .btn-primary {
    background: white;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-banner-content .btn-primary:hover {
    background: #f0fdf4;
    transform: translateY(-3px);
}

/* Origin Info Section */
.origin-info {
    padding: 100px 0;
    background: var(--background);
}

.origin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.origin-card {
    text-align: center;
}

.origin-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.origin-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.origin-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* How to Order Section */
.how-to-order {
    padding: 100px 0;
    background: var(--background-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-image {
    margin-bottom: 20px;
}

.step-image img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.step-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.cta-center {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .origin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 120px 24px 40px;
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .product-filter {
        top: 60px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .origin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-banner-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-tab {
        flex-shrink: 0;
    }
}
