/* 
* BGHair - Custom Styles
* Elegant and modern styling for the BGHair online store
*/

/* ===== VARIABLES ===== */
:root {
    --primary: #000;
    --secondary: #333;
    --accent: #F0CCFA;
    --light: #f8f9fa;
    --light-accent: #f9f0fc; /* Light purple background */
    --dark: #212529;
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --button-purple: #9C27B0; /* New vibrant purple color for buttons */
    --button-purple-hover: #7B1FA2; /* Darker purple for hover states */
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: var(--body-font);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 76px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
}

.btn-primary {
    background-color: var(--button-purple);
    border-color: var(--button-purple);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--button-purple-hover);
    border-color: var(--button-purple-hover);
    color: #fff;
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.btn-outline-primary {
    border-color: var(--button-purple);
    color: var(--button-purple);
}

.btn-outline-primary:hover {
    background-color: var(--button-purple);
    border-color: var(--button-purple);
    color: #fff;
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.btn-accent {
    background-color: var(--button-purple);
    border-color: var(--button-purple);
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--button-purple-hover);
    border-color: var(--button-purple-hover);
    color: #fff;
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.btn-outline-accent {
    border-color: var(--button-purple);
    color: var(--button-purple);
}

.btn-outline-accent:hover {
    background-color: var(--button-purple);
    border-color: var(--button-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: var(--button-purple);
    transform: translateX(-50%);
}

.bg-accent {
    background-color: var(--accent) !important;
    color: var(--primary);
}

.text-accent {
    color: var(--accent) !important;
}

.text-button-purple {
    color: var(--button-purple) !important;
}

.bg-light-accent {
    background-color: var(--light-accent) !important;
    color: var(--primary);
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #000 !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.brand-text {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--button-purple) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--button-purple);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link.active {
    color: var(--button-purple) !important;
}

.navbar-nav .nav-link.active::after {
    width: 70%;
    opacity: 1;
}

.navbar-nav .nav-item {
    position: relative;
}

/* Active indicator for dropdown items */
.dropdown-item.active {
    background-color: #222;
    color: var(--button-purple);
}

/* Mobile nav active state */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link.active::after {
        width: 30px;
        left: 1rem;
        transform: none;
    }
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #222;
    color: var(--button-purple);
    transform: translateX(5px);
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: 100vh;
    padding-top: 0; /* Remove padding to close gap */
    padding-bottom: 0; /* Remove bottom padding as well */
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--button-purple);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--button-purple);
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--button-purple);
    color: #fff;
    transform: translateY(-3px);
}

/* Fix for navbar */
.navbar-nav {
    align-items: center;
}

.navbar-collapse {
    justify-content: flex-end;
}

/* Fix for main content padding */
main {
    padding-top: 0; /* Remove padding to close gap */
}

/* Fix for footer spacing */
footer {
    margin-top: 50px;
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 20px;
    }
}

/* Fix for cart badge */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Fix for product cards */
.product-card {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Add slightly more elevation on hover for desktop */
@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

/* Ensure product images have consistent sizing */
.product-img {
    position: relative;
    overflow: hidden;
    height: 300px; /* Increased from 250px */
    background-color: #f8f9fa;
}

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

/* Ensure product actions are visible by default on mobile */
@media (max-width: 767.98px) {
    .product-actions {
        opacity: 1;
        visibility: visible;
    }
    
    .product-action-btn {
        transform: translateY(0);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 80vh; /* Slightly shorter for better proportions */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    margin-top: 0; /* Remove margin to close gap */
    padding: 0; /* Remove padding */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 204, 250, 0.6); /* Subtle purplish overlay using the accent color */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center; /* Center the text */
    margin: 0 auto; /* Center the content */
    max-width: 800px; /* Control the width */
    padding: 2rem; /* Add some padding */
}

.hero h1 {
    font-size: 4rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.hero p {
    font-size: 1.5rem; /* Larger subtitle */
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

/* ===== COLLECTION SECTION ===== */
.collection-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 400px; /* Increased from 350px for taller cards */
    background-color: #000; /* Added black background */
}

.collection-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.collection-img-container {
    height: 300px; /* Increased from 250px for taller images */
    overflow: hidden;
    position: relative;
}

.collection-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    opacity: 0.9; /* Slightly reduce opacity for better text contrast */
}

.collection-card:hover .collection-img-container img {
    transform: scale(1.05);
    opacity: 1; /* Full opacity on hover */
}

.collection-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    transition: all 0.3s ease;
    height: 120px; /* Increased height for content area */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.collection-card:hover .collection-content {
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.5), transparent);
    height: 140px; /* Expand slightly on hover */
}

.collection-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

/* Responsive adjustments for collection cards */
@media (max-width: 1199.98px) {
    .collection-card {
        height: 380px; /* Increased from 330px */
    }
    
    .collection-img-container {
        height: 280px; /* Increased from 230px */
    }
}

@media (max-width: 991.98px) {
    .collection-card {
        height: 360px; /* Increased from 310px */
    }
    
    .collection-img-container {
        height: 260px; /* Increased from 210px */
    }
}

@media (max-width: 767.98px) {
    .collection-card {
        height: 340px; /* Increased from 290px */
    }
    
    .collection-img-container {
        height: 240px; /* Increased from 190px */
    }
    
    .collection-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .collection-card {
        height: 320px; /* Increased from 270px */
    }
    
    .collection-img-container {
        height: 220px; /* Increased from 170px */
    }
}

/* ===== PRODUCT CARD ===== */
.product-img {
    position: relative;
    overflow: hidden;
    height: 300px; /* Increased from 250px */
    background-color: #f8f9fa;
}

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

/* Responsive adjustments for product images */
@media (max-width: 1199.98px) {
    .product-img, .featured-product-img {
        height: 280px;
    }
}

@media (max-width: 991.98px) {
    .product-img, .featured-product-img {
        height: 260px;
    }
}

@media (max-width: 767.98px) {
    .product-img, .featured-product-img {
        height: 240px;
    }
}

@media (max-width: 575.98px) {
    .product-img, .featured-product-img {
        height: 220px;
    }
}

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

.product-actions {
    position: absolute;
    top: 10px; /* Changed from bottom to top */
    right: 10px; /* Changed from left to right */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    padding: 0.5rem;
    transition: all 0.3s ease;
    background-color: transparent; /* Removed background */
    opacity: 1; /* Make visible by default */
    visibility: visible; /* Make visible by default */
}

/* Remove hover effect since actions are always visible */
.product-card:hover .product-actions {
    /* Removed bottom: 0 */
}

.product-action-btn {
    width: 36px; /* Slightly smaller */
    height: 36px; /* Slightly smaller */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(0); /* No transform by default */
    transition: all 0.3s ease;
}

.product-action-btn:last-child {
    margin-bottom: 0; /* No margin for last button */
}

.product-action-btn:hover {
    background-color: var(--button-purple);
    color: #fff;
    transform: scale(1.1); /* Add slight scale effect on hover */
}

.card-body {
    flex: 1; /* Allow card body to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space content evenly */
    padding: 1rem 1.25rem; /* Reduced top/bottom padding while keeping sides */
}

/* Mobile-specific card body styling */
@media (max-width: 575.98px) {
    .card-body {
        padding: 0.75rem 1rem; /* Further reduced padding on mobile */
    }
}

.product-title {
    margin-top: 0.25rem; /* Reduced from 0.5rem */
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.1rem; /* Further reduced from 0.25rem */
    flex: 0 0 auto; /* Don't grow, don't shrink, auto basis */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6rem; /* Reduced from 2.8rem to tighten spacing */
}

/* Mobile-specific product title styling */
@media (max-width: 575.98px) {
    .product-title {
        font-size: 1rem;
        height: 2.4rem; /* Reduced from 2.6rem */
        margin-bottom: 0.1rem;
    }
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--button-purple);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem; /* Further reduced from 0.5rem */
    line-height: 1.2; /* Added to reduce natural line height */
}

.product-rating {
    color: #ffc107;
    margin-bottom: 5px; /* Further reduced from 8px */
}

/* Add to cart button container */
.card-body .btn-container {
    margin-top: 0.25rem; /* Reduced from 0.5rem */
}

/* Make the button more compact */
.card-body .btn-sm {
    padding: 0.25rem 0.75rem; /* Reduced padding for a more compact button */
    font-size: 0.85rem; /* Slightly smaller font size */
    background-color: var(--button-purple);
    border-color: var(--button-purple);
    color: #fff;
}

.card-body .btn-sm:hover {
    background-color: var(--button-purple-hover);
    border-color: var(--button-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== FEATURES SECTION ===== */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%; /* Make all boxes equal height */
    min-height: 250px; /* Ensure a minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 3px solid var(--button-purple); /* Add purple border by default */
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--button-purple);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light);
    border-radius: 5px;
    margin: 15px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ===== INSTAGRAM FEED ===== */
.instagram-item {
    position: relative;
    overflow: hidden;
}

.instagram-item img {
    transition: all 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-icon {
    color: white;
    font-size: 2rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ===== COLOR OPTIONS ===== */
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option.active, .color-option:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ===== ACCORDION STYLING ===== */
.accordion-button:not(.collapsed) {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(240, 204, 250, 0.5);
    border-color: var(--accent);
}

/* ===== FORM CONTROLS ===== */
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(240, 204, 250, 0.25);
}

/* ===== TABLE STYLING ===== */
.table-light {
    background-color: var(--accent);
    color: var(--primary);
}

/* ===== CARD STYLING ===== */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== ALERT STYLING ===== */
.alert-info {
    background-color: rgba(240, 204, 250, 0.2);
    border-color: var(--accent);
    color: var(--primary);
}

/* ===== BREADCRUMB STYLING ===== */
.breadcrumb-item.active {
    color: var(--accent);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== CART NOTIFICATION ===== */
#cartNotification {
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

#cartNotification .toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
}

#cartNotification .toast-body {
    padding: 1rem;
    background-color: #fff;
}

#cartNotification img {
    border-radius: 4px;
    border: 1px solid #eee;
}

#cartNotificationName {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

#cartNotificationPrice {
    font-size: 0.9rem;
    color: #666;
}

#cartNotificationCount {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* ===== MOBILE CART ICON ===== */
.mobile-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.mobile-cart-icon .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
    transform: translate(25%, -25%);
}

/* ===== MOBILE CART STYLES ===== */
@media (max-width: 767.98px) {
    .quantity-selector .btn-sm {
        padding: 0.25rem 0.5rem;
    }
    
    .quantity-selector .form-control-sm {
        padding: 0.25rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Ensure proper spacing in mobile cart view */
    .card .row .col-6,
    .card .row .col-8,
    .card .row .col-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Make sure text doesn't overflow */
    .product-title a {
        font-size: 0.95rem;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Enhanced product card styles for mobile */
    .product-card {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border: none;
    }
    
    /* Make product actions visible by default on mobile */
    .product-actions {
        opacity: 1;
        visibility: visible;
        bottom: 10px;
    }
    
    .product-action-btn {
        transform: translateY(0);
    }
}

/* ===== FEATURED PRODUCTS SECTION ===== */
.featured-products-section {
    padding: 3rem 0;
}

.featured-product-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: auto; /* Remove fixed height to allow natural sizing */
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.featured-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-product-img {
    position: relative;
    overflow: hidden;
    height: 300px; /* Increased from 250px */
    background-color: #f8f9fa;
}

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

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

.featured-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
}

.featured-product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-product-action-btn:hover {
    background-color: var(--button-purple);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.featured-product-card-body {
    height: auto; /* Remove fixed height to allow natural sizing */
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.featured-product-title {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto; /* Remove fixed height */
    min-height: 2.8rem; /* Use min-height instead */
}

.featured-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem; /* Increase spacing */
    line-height: 1.2;
}

.featured-btn-container {
    margin-top: 0.5rem;
    text-align: center;
}

.featured-btn-container .btn {
    background-color: var(--button-purple);
    border-color: var(--button-purple);
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.featured-btn-container .btn:hover {
    background-color: var(--button-purple-hover);
    border-color: var(--button-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for featured products */
@media (max-width: 991.98px) {
    .featured-product-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .featured-product-card {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .featured-product-card {
        margin-bottom: 1rem;
    }
    
    .featured-product-title {
        font-size: 1rem;
        height: 2.4rem;
    }
} 