/* ========================================
   Products Page Styles
   Professional, Modern, Clean White Theme
   ======================================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

#products-page {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    font-family: metropolisregular, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 600px;
}

.products-container {
    width: 100%;
}

/* Product Groups Navigation */
.product-groups-nav {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    overflow: hidden;
}

.groups-header {
    background: linear-gradient(135deg, #67a552 0%, #6eb057 100%);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-family: metropolissemi_bold, sans-serif;
    letter-spacing: 0.3px;
}

.groups-header i {
    color: #c5f5b4;
    font-size: 20px;
    margin-right: 10px;
}

.groups-list {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background: #f8faf7;
}

.group-tab {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e3df;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: metropolissemi_bold, sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.group-tab:hover {
    border-color: #67a552;
    background: #f0f9ed;
    color: #67a552;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 165, 82, 0.15);
}

.group-tab.active {
    background: linear-gradient(135deg, #67a552 0%, #6eb057 100%);
    border-color: #67a552;
    color: #fff;
    box-shadow: 0 4px 15px rgba(103, 165, 82, 0.3);
}

.group-tab i {
    margin-right: 8px;
    font-size: 16px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-header {
    background: linear-gradient(135deg, #f8faf7 0%, #eef1ed 100%);
    padding: 20px;
    border-bottom: 2px solid #e8ebe7;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-family: metropolissemi_bold, sans-serif;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
}

.product-availability.in-stock {
    color: #67a552;
    border: 1px solid #67a552;
}

.product-availability.limited {
    color: #f76d3c;
    border: 1px solid #f76d3c;
}

.product-availability.out-of-stock {
    color: #dc3545;
    border: 1px solid #dc3545;
}

.product-availability i {
    font-size: 12px;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: #67a552;
    margin-right: 10px;
    font-size: 12px;
}

/* Pricing Section */
.product-pricing {
    background: #f8faf7;
    padding: 10px;
    border-radius: 6px;
}

.price-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.currency {
    font-size: 16px;
    color: #67a552;
    font-weight: 600;
}

.amount {
    font-size: 32px;
    color: #2c3e50;
    font-weight: 600;
    font-family: metropolissemi_bold, sans-serif;
}

.period {
    font-size: 14px;
    color: #6c757d;
}

.price-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.price-option {
    flex: 1;
    min-width: 45%;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e3df;
    transition: all 0.3s ease;
}

.price-option:hover {
    border-color: #67a552;
    background: #f0f9ed;
}

.price-option .price {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-option .term {
    font-size: 12px;
    color: #6c757d;
    display: block;
    margin-top: 4px;
}

.bundle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f76d3c 0%, #ff8659 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(247, 109, 60, 0.3);
}

.free-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* Product Actions */
.product-actions {
    padding: 0 20px 20px;
}

.btn-order {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #67a552 0%, #6eb057 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: metropolissemi_bold, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(103, 165, 82, 0.3);
}

.btn-order:hover {
    box-shadow: 0 6px 20px rgba(103, 165, 82, 0.4);
    transform: translateY(-2px);
}

.btn-order:disabled {
    background: #e0e3df;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-order:disabled:hover {
    transform: none;
}

.btn-order i {
    font-size: 18px;
}

/* Empty State */
.empty-products {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.empty-icon {
    font-size: 80px;
    color: #e0e3df;
    margin-bottom: 20px;
}

.empty-products h4 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: metropolissemi_bold, sans-serif;
}

.empty-products p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Cart Actions Bar */
.cart-actions-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid #e8ebe7;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.cart-actions-container {
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-count {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8faf7;
    border-radius: 6px;
}

.cart-count i {
    color: #67a552;
    font-size: 20px;
}

.cart-count-text {
    font-size: 14px;
    color: #555;
}

.cart-count-number {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-left: 5px;
}

.btn-view-cart {
    padding: 14px 36px;
    background: linear-gradient(135deg, #f76d3c 0%, #ff8659 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: metropolissemi_bold, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(247, 109, 60, 0.3);
}

.btn-view-cart:hover {
    box-shadow: 0 6px 20px rgba(247, 109, 60, 0.4);
    transform: translateY(-2px);
}

/* Loading State */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e3df;
    border-top-color: #67a552;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    #products-page {
        padding: 30px 20px 50px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 991px) {
    #products-page {
        padding: 20px 15px 40px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .cart-actions-bar {
        margin: 30px -15px -40px;
    }
}

@media (max-width: 767px) {
    #products-page {
        font-size: 14px;
    }

    .groups-list {
        padding: 15px;
    }

    .group-tab {
        padding: 10px 18px;
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-name {
        font-size: 18px;
    }

    .amount {
        font-size: 28px;
    }

    .price-option {
        min-width: 100%;
    }

    .cart-actions-container {
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
        justify-content: center;
    }

    .btn-view-cart {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #products-page {
        padding: 15px 10px 30px;
    }

    .groups-header {
        padding: 14px 18px;
    }

    .groups-header h3 {
        font-size: 16px;
    }

    .product-header {
        padding: 15px;
    }

    .product-body {
        padding: 15px;
    }

    .product-pricing {
        padding: 10px;
    }

    .cart-actions-bar {
        padding: 15px;
        margin: 20px -10px -30px;
    }
}

/* Animation Effects */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideIn 0.4s ease;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover Effects */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #67a552, #6eb057, #67a552);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* Special Offers */
.special-offer {
    position: relative;
    overflow: visible;
}

.special-offer::after {
    content: 'HOT';
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
