/**
 * Arumora - Perfume Store Product Cards Styling
 */

/* Product Cards */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-bottom: 30px;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f9f9f9;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    object-fit: contain;
    padding: 15px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


.product-info {
    padding: 20px;
    text-align: center;
    background-color: #fff;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title a {
    color: #333;
}

.product-title a:hover {
    color: #7D2F38;
    text-decoration: none;
}

.product-category {
    margin-bottom: 10px;
}

.product-category a {
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-category a:hover {
    color: #D4AF37;
    text-decoration: none;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #7D2F38;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.product-price .price {
    color: #7D2F38;
}

.product-price .price-before {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
}

/* Product Actions */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.product-actions button,
.product-actions a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background-color: #7D2F38;
    border-color: #7D2F38;
}

.product-actions .btn-primary:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
}

/* Product Rating */
.product-rating {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-rating .fas.fa-star {
    color: #D4AF37;
}

.product-rating .far.fa-star {
    color: #ddd;
}

.product-rating .rating-count {
    margin-left: 5px;
    color: #777;
    font-size: 12px;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7D2F38;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.add-to-cart-btn:hover {
    background-color: #D4AF37;
    color: #fff;
}

.add-to-cart-btn i {
    margin-right: 8px;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-info {
        padding: 15px 10px;
    }
    
    .product-title {
        font-size: 14px;
        height: 36px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
}

/* Product Tabs Styling */
#productTabs {
    border-bottom: none;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#productTabs .nav-link {
    color: #333;
    font-weight: 600;
    border: none;
    background: transparent;
    padding: 8px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
}

#productTabs .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D4AF37;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s;
}

#productTabs .nav-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#productTabs .nav-link:hover {
    color: #7D2F38;
}

#productTabs .nav-link.active {
    color: #7D2F38;
    background-color: transparent;
    font-weight: 700;
}

#productTabs .nav-link.active:after {
    transform: scaleX(1);
    transform-origin: bottom left;
    height: 3px;
}

/* Mobile view tab styling */
@media (max-width: 767px) {
    .mobile-tabs {
        padding-bottom: 10px;
        overflow-x: auto;
    }
    
    .mobile-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 15px;
    }
}
