/* ==========================================================================
   ELEGANT PRODUCT CARD STYLES
   ========================================================================== */

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    text-align: left; /* Align text to the left for a cleaner look */
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.product-card-image {
    overflow: hidden; /* Ensures the image zoom stays within the card */
}

.product-card-image img {
    transition: transform 0.4s ease;
    height: 360px;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 24px;
    flex-grow: 1; /* Allows the body to fill space, pushing the CTA down */
    display: flex;
    flex-direction: column;
}

.product-category {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    color: #222;
    margin-bottom: 12px;
}

.product-tagline {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes the CTA to the bottom */
}

/* ==========================================================================
   PRODUCT CARD OVERLAY STYLES
   ========================================================================== */

/* Make the image container a positioning parent for the overlay */
.product-card-image {
    position: relative;
    overflow: hidden;
}

/* The overlay container */
.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Style the overlay */
    background-color: rgba(26, 30, 33, 0.95); /* Dark, semi-transparent background */
    color: #fff;
    
    /* Center the content inside */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;

    /* Hide it by default */
    opacity: 0;
    
    /* Smooth transition */
    transition: opacity 0.4s ease;
}

/* When you hover over the whole card, make the overlay visible */
.product-card:hover .product-card-overlay {
    opacity: 1;
}

/* Style the description text inside the overlay */
.product-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Style the "View Details" link inside the overlay */
.product-cta-overlay {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--brand-primary, #ec73fc);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-cta-overlay:hover {
    color: #fff;
}

/* .product-tagline,
.product-cta {
    display: none;
} */

.product-card-body {
    /* Adjust padding to look balanced with just the title */
    padding: 20px 24px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE STYLES
   ========================================================================== */

.product-detail-content .product-category {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.product-detail-content .product-main-title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 3rem; /* 48px */
    color: #222;
    margin-top: 0.5rem;
}

.product-detail-content .lead {
    font-size: 1.1rem;
    color: #555;
    margin-top: 1rem;
}

.features-title, .specs-title {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Key Features List */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-left: 28px;
    position: relative;
}

.feature-list li .fa-check {
    color: var(--brand-primary, #ec73fc); /* Uses your brand color */
    position: absolute;
    left: 0;
    top: 5px;
}

/* Technical Specs Table */
.tech-specs {
    font-size: 0.95rem;
    line-height: 1.8;
}

.tech-specs dt {
    font-weight: 600;
    color: #333;
}

.tech-specs dd {
    color: #666;
    margin-bottom: 0.5rem;
}

/* =========================================
   IMPROVED PRIMARY BUTTON STYLE
   ========================================= */

/* Default button state */
.btn-primary {
  background-color: var(--brand-primary, #ec73fc);
  border: 2px solid var(--brand-primary, #ec73fc);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 2.5rem; /* Custom padding */
  border-radius: 50px;     /* A "pill" shape */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out; /* Smooth transition for all properties */
}

/* The dynamic hover and focus state */
.btn-primary:hover,
.btn-primary:focus {
  /* Invert the style on hover */
  background-color: transparent;
  color: var(--brand-primary, #ec73fc);

  /* Add a 'lift' effect */
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PRODUCT IMAGE ZOOMER EFFECT
   ========================================================================== */

/* This is the container with overflow:hidden, which creates the zoom window */
.image-aspect-ratio-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Add a transition to the image for a smooth zoom */
.image-aspect-ratio-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* This is the new rule that triggers the zoom on hover */
.image-aspect-ratio-wrapper:hover img {
  transform: scale(1.5); /* 1.5 = 150% zoom. You can adjust this value. */
  cursor: zoom-in;
}

/* ==========================================================================
   MODERN PRODUCT CARD STYLES (V3)
   ========================================================================== */

/* This targets the link that wraps the card content */
.product-card-modern a.card-link {
    text-decoration: none;
    color: inherit; 
    display: block;
    height: 100%;
}

/* Main card container styling */
.product-card-modern {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Elegant hover effect */
.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Image styling - controls the height */
.product-card-modern .card-img-top {
    height: 240px; 
    object-fit: contain; 
}

.product-card-modern .card-body {
    padding: 1.25rem;
}

/* Title styling */
.product-card-modern .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
}

/* Category text styling */
.product-card-modern .card-text.small {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* Styling for the CTA button */
.product-card-modern .btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Enhances the button on card hover for a more interactive feel */
.product-card-modern:hover .btn {
    background-color: var(--bs-primary);
    color: #fff;
}

.product-cta {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--brand-primary, #ec73fc); 
    text-decoration: none;
    transition: color 0.3s ease;
}