.products-page {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('Apple Link.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.products-container h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.category-card i {
    font-size: 2.5rem;
    color: #007AFF;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
}

.category-card h2 {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.category-card:hover h2 {
    color: #007AFF;
}

.item-count {
    color: #666;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Product Categories */
.product-category {
    display: none;
    margin: 2rem 0;
    animation: slideIn 0.5s ease-out;
}

.product-category.active {
    display: block;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 122, 255, 0.1);
}

.close-category {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.close-category:hover {
    color: #007AFF;
    transform: rotate(90deg);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.product-item p {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.price {
    font-weight: bold;
    color: #007AFF !important;
    font-size: 1.3rem;
    margin: 1rem 0;
}

.inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.inquiry-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.inquiry-btn i {
    font-size: 1.2rem;
}

/* Featured Products Section */
.featured-products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.featured-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.featured-products h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: #007AFF;
    transform: translateX(-50%);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .products-container {
        padding: 1rem;
    }

    .products-container h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .product-item img {
        height: 180px;
    }

    .featured-products h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .featured-products {
        padding: 3rem 0;
    }
}

@media (max-width: 900px) {
    .products-container {
        padding: 1rem;
        margin-top: 60px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .features-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .category-card, .feature-card {
        width: 98vw;
        min-width: 0;
        margin: 0 auto 1.2rem auto;
    }
    .product-category {
        padding: 1.2rem 0.5rem;
        border-radius: 14px;
    }
    .product-list {
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.5rem 0.1rem;
    }
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        width: 98vw;
        margin: 0 auto 1.2rem auto;
    }
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    .products-container {
        padding: 0.5rem;
        margin-top: 40px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .category-card, .feature-card {
        width: 99vw;
        min-width: 0;
        margin: 0 auto 0.8rem auto;
        font-size: 0.98rem;
    }
    .product-category {
        padding: 0.7rem 0.2rem;
        border-radius: 10px;
    }
    .product-list {
        max-height: 65vh;
        overflow-y: auto;
        padding: 0.3rem 0.05rem;
    }
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        width: 99vw;
        margin: 0 auto 0.8rem auto;
        font-size: 0.97rem;
    }
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .products-container {
        padding: 1rem;
        margin-top: 60px;
    }

    .products-container h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-card h2 {
        font-size: 1.5rem;
    }

    .product-category {
        padding: 1rem;
    }

    .category-header h2 {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .product-item {
        padding: 1.5rem;
        min-height: 450px;
    }

    .product-item img {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .product-item h3 {
        font-size: 1.3rem;
    }

    .inquiry-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-card i {
        font-size: 2.5rem;
    }

    .category-card h2 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-category {
        padding: 1.5rem;
    }

    .products-container h1 {
        font-size: 2rem;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }
}
