/* Asor Ventures - Main Stylesheet
  Colors:
    - Gold: #D4AF37
    - White: #FFFFFF
    - Dark Gray: #333333
    - Light Gray BG: #f8f9fa
  Font: Poppins, sans-serif
*/

body {
    font-family: 'Poppins', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #fcfcfc; /* Slightly more vivid background */
}

/* --- Typography & Base --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: #D4AF37;
    text-decoration: none;
}

a:hover {
    color: #b38f29;
    text-decoration: none;
}

.btn-primary {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #FFFFFF;
    padding: 10px 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #b38f29;
    border-color: #b38f29;
}

.btn-secondary {
    background-color: #333333;
    border-color: #333333;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #555555;
    border-color: #555555;
}

/* --- Header & Navigation --- */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #333333;
}

.navbar-brand .gold {
    color: #D4AF37;
}

.nav-link {
    font-weight: 500;
    color: #333333;
    margin: 0 10px;
    position: relative; /* Needed for the underline effect */
}

.nav-link.active,
.nav-link:hover {
    color: #D4AF37;
    font-weight: 700; /* Make it bolder */
}

.nav-link.active::after, .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjust position as needed */
    left: 0;
    width: 100%;
    height: 3px; /* Thickness of the underline */
    background-color: #D4AF37; /* Gold color for the underline */
    transition: all 0.3s ease;
}

/* --- Hero Banner (Home Page) --- */
.hero-banner {
    background: url('../images/hero-banner.jpg') no-repeat center center/cover;
    color: #FFFFFF;
    padding: 150px 0;
    text-align: center;
    position: relative;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Section Styling --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title .gold {
    color: #D4AF37;
}

/* --- Product Card --- */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 30px;
}

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

.product-card img {
    width: 100%;
    height: auto; /* Allow height to adjust based on aspect ratio */
    aspect-ratio: 1 / 1; /* Maintain a square aspect ratio */
    object-fit: cover; /* Cover the area, cropping if necessary */
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card .card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #6c757d; /* Bootstrap's text-muted color */
    font-size: 0.9em;
    font-weight: 400;
    margin-right: 5px;
}

/* --- Category Card Specific Styles --- */
.category-card {
    position: relative; /* Needed for absolute positioning of the overlay */
    border: none; /* Remove default card border if desired */
    border-radius: 8px;
    overflow: hidden; /* Ensures content stays within rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
}

.category-card .card-img {
    width: 100%;
    height: auto; /* Allow height to adjust based on aspect ratio */
    aspect-ratio: 1 / 1; /* Maintain a square aspect ratio */
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block; /* Remove extra space below image */
}

.category-card .card-img-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for better text contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add some padding inside the overlay */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease;
}

.category-card:hover .card-img-overlay {
    opacity: 1; /* Show on hover */
}

.category-card .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Add text shadow for readability */
}

.category-card .btn-primary {
    /* Inherits styles from global .btn-primary, but can be overridden here if needed */
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 50px 0;
}

.footer h5 {
    color: #D4AF37;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p, .footer a {
    color: #ccc;
}

.footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer .social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #D4AF37;
}

.footer .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Cart & Checkout --- */
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item .form-control {
    width: 70px;
}



/* --- Page Headers --- */
.page-header {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    background-size: cover;
    background-position: center;
    color: #FFFFFF; /* Ensure text is visible over dark image */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow for readability */
}

.page-header h1 {
    font-size: 3rem;
    color: #333333;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* --- Hero Slider --- */
#heroSlider .carousel-item {
    height: 70vh; /* 70% of the viewport height */
    max-height: 500px; /* Maximum height of 500px */
}

#heroSlider .carousel-item img {
    object-fit: cover; /* Cover the entire slider area */
    height: 100%;
    width: 100%;
}

#heroSlider .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 20px;
}

/* --- Feature Box Styling (Why Choose Us Section) --- */
.feature-box {
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #e9ecef; /* Light gray border */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.feature-box:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Stronger shadow on hover */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100; /* Ensure it's above other content */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

.whatsapp-float img {
    width: 35px; /* Adjust image size within the button */
    height: 35px;
}

/* WhatsApp Floating Message */
.whatsapp-message {
    position: fixed;
    bottom: 35px; /* Adjust to align with the icon */
    right: 110px; /* Position next to the icon */
    background-color: #555;
    color: #FFF;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap; /* Prevent text from wrapping */
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 99; /* Slightly lower than the button */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out;
}

.whatsapp-float:hover + .whatsapp-message {
    opacity: 1; /* Show message on hover of the button */
}