/* ============================================
   PRODUCT CARD STYLES
   ============================================ */

/* Grid Layout */
.products-grid-sm {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px 0;
}

/* Responsive Grid */
@media (max-width: 1400px) {
    .products-grid-sm {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .products-grid-sm {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .products-grid-sm {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .products-grid-sm {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 5px;
    }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card-sm {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 340px;
    position: relative;
}

.product-card-sm:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   PRODUCT IMAGE
   ============================================ */
.product-image-sm {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-sm a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
}

.product-image-sm img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-sm:hover .product-image-sm img {
    transform: scale(1.05);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, #00b894, #00a381);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
}

/* ============================================
   PRODUCT CONTENT
   ============================================ */
.product-content-sm {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title */
.title-sm {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.title-sm a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.title-sm a:hover {
    color: #BD8802;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.product-rating .stars {
    display: flex;
    gap: 1px;
    font-size: 12px;
}

.product-rating .stars .bxs-star {
    color: #f59e0b;
}

.product-rating .stars .bx-star {
    color: #d1d5db;
}

.product-rating .rating-count {
    font-size: 11px;
    color: #6b7280;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.price-sm {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    margin: 0;
    line-height: 1;
}

.price-sm .currency {
    font-size: 14px;
    font-weight: 600;
}

.old-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-view {
    flex: 1;
    padding: 8px 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-view:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-view i {
    font-size: 14px;
}

.btn-add-cart {
    flex: 1.5;
    padding: 8px 12px;
    background: linear-gradient(135deg, #BD8802, #d4a017);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-add-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(189, 136, 2, 0.35);
}

.btn-add-cart:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-add-cart i {
    font-size: 16px;
}

.btn-add-cart .bx-loader-alt {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .product-card-sm {
        min-height: 280px;
        border-radius: 10px;
    }

    .product-content-sm {
        padding: 10px 10px 12px;
    }

    .title-sm {
        font-size: 12px;
        min-height: 30px;
        -webkit-line-clamp: 2;
    }

    .price-sm {
        font-size: 15px;
    }

    .old-price {
        font-size: 11px;
    }

    .btn-view,
    .btn-add-cart {
        font-size: 10px;
        padding: 6px 8px;
    }

    .btn-view i,
    .btn-add-cart i {
        font-size: 12px;
    }

    .product-rating .stars {
        font-size: 10px;
    }

    .product-rating .rating-count {
        font-size: 10px;
    }

    .product-badge {
        font-size: 8px;
        padding: 3px 8px;
        top: 6px;
        left: 6px;
    }
}

@media (max-width: 480px) {
    .product-card-sm {
        min-height: 250px;
        border-radius: 8px;
    }

    .product-content-sm {
        padding: 8px 8px 10px;
    }

    .title-sm {
        font-size: 11px;
        min-height: 26px;
    }

    .price-sm {
        font-size: 14px;
    }

    .action-buttons {
        gap: 5px;
    }

    .btn-view,
    .btn-add-cart {
        font-size: 9px;
        padding: 5px 6px;
        border-radius: 6px;
    }

    .btn-view i,
    .btn-add-cart i {
        font-size: 11px;
    }

    .product-rating .stars {
        font-size: 9px;
    }

    .product-rating .rating-count {
        font-size: 9px;
    }
}

/* counter area */
.counter-area {
    background: linear-gradient(135deg, #f0f4ff 0%, #dbe9f4 50%, #f7faff 100%);
    color: #333;
}

.counter-another-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s ease;
}

.counter-another-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.counter-another-content i {
    font-size: 36px;
    color: #4e73df;
    margin-bottom: 15px;
}

.counter-another-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 700;
}

.counter-another-content span {
    font-size: 15px;
    color: #777;
}

/* Newsletter Section */
.newsletter-area {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.newsletter-area .section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-area .section-title p {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #555;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter button {
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter button:hover {
    background: #0056b3;
}

@media (max-width: 576px) {
    .newsletter {
        flex-direction: column;
    }

    .newsletter button {
        width: 100%;
    }
}

.customer-reviews-area {
    background: linear-gradient(135deg, #f0f4ff 0%, #dbe9f4 50%, #f7faff 100%);
    color: #333;
}
