/* LUXURY THEME CARDS */

/* Product Card */
.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:not(.out-of-stock):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:not(.out-of-stock):hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:not(.out-of-stock):hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
}



.action-btn:hover {
    background: var(--accent);
    color: #fff;
}

.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #222222;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 1;
}

.product-info {
    padding: 20px;
    text-align: left;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.product-category {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 1.05rem;
    margin: 5px 0 10px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* 2 lines * 1.4 line-height */
}

.product-info h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

.product-info h3 a:hover {
    color: var(--accent);
}

.price-box {
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #545b62;
    font-size: 0.85rem;
    margin-right: 4px;
}

.current-price {
    color: var(--price-red, #d32f2f);
    font-weight: 700;
    font-size: 1.15rem;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    min-height: 65px;
    flex-shrink: 0;
    padding: 0;
    background: #eeeeee;
    color: #000;
    text-align: center;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    margin-top: auto;
    letter-spacing: 1px;
}

.btn-add-cart:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Category Card */
.category-card {
    position: relative;
    overflow: hidden;
    height: 450px;
    border-radius: 2px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.category-content h3 {
    color: #fff;
    margin: 0 0 10px;
}

/* User Card (Profile Sidebar) */
.user-card {
    text-align: center;
    padding: 25px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.user-card p {
    margin: 4px 0 0;
    color: #999;
    font-size: 0.9rem;
}

/* Order Card */
.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

/* Stat Box */
.stat-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-box .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fdf2f4;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-box h3,
.stat-box .info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-box span,
.stat-box .info span {
    color: #888;
    font-size: 0.9rem;
}

/* --- PRODUCT GRID SYSTEM --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

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