

/* ====================== PRODUCTS PAGE ====================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.products-header {
    text-align: center;
    margin: 50px 0 60px;
}

.products-header h1 {
    font-size: 2.8rem;
    color: #bfdbfe;
    margin-bottom: 12px;
}

.products-header p {
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 10px 0;
    justify-content: center;
    align-content: start;
}

.product-card {
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1f2937;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: #60a5fa;
    box-shadow: 0 25px 35px -10px rgba(0, 0, 0, 0.5);
}

.product-image-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.12) rotate(8deg); /* زوم ۱۲٪ + چرخش ۸ درجه (ملایم و جذاب) */
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: white;
}

.product-weight {
    color: #60a5fa;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: #bfdbfe;
    margin-bottom: 16px;
}

.order-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.order-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Search Styles */
.search-container {
    margin-top: 25px;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    z-index: 2;
}

.product-search-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.product-search-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.product-search-input::placeholder {
    color: #64748b;
}



/* Responsive */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-container {
        height: 240px;
    }
}



/* ================= SKELETON LOADING ================= */
.skeleton-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.skeleton-image {
    height: 260px;
    background: #1f2937;
    position: relative;
    overflow: hidden;
}

.skeleton-line {
    height: 12px;
    background: #1f2937;
    margin: 10px auto;
    border-radius: 6px;
    width: 80%;
    position: relative;
    overflow: hidden;
}

.skeleton-line.short {
    width: 50%;
}

.skeleton-line.price {
    width: 60%;
    height: 16px;
}

.skeleton-image::after,
.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(191,219,254,0.25),
        rgba(191,219,254,0.4),
        transparent
    );
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}



@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(280px, 1fr));
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 599px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}