
/* epulsemart-vendor-page.css */

/* -------------------------------------------------------------------------- */
/* Global Settings & Variables                                                */
/* -------------------------------------------------------------------------- */
:root {
  --epmart-primary-color: #3B82F6; /* A bright, modern blue */
  --epmart-secondary-color: #10B981; /* A vibrant green for accents/success */
  --epmart-accent-color: #F59E0B; /* A warm amber for attention */
  --epmart-text-primary: #1F2937; /* Dark gray for primary text */
  --epmart-text-secondary: #6B7280; /* Medium gray for secondary text */
  --epmart-background-light: #F9FAFB; /* Very light gray for page background */
  --epmart-background-card: #FFFFFF; /* White for cards */
  --epmart-border-color: #E5E7EB; /* Light gray for borders */
  --epmart-shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --epmart-shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --epmart-border-radius-container: 20px;
  --epmart-border-radius-button: 999px; /* Pill shape */
  --epmart-transition-fast: all 0.2s ease-in-out;
  --epmart-transition-medium: all 0.3s ease-in-out;
}

html {
  font-size: 60%; /* Base 10px for 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem; /* Default text size 16px */
  line-height: 1.6;
  color: var(--epmart-text-primary);
  background-color: var(--epmart-background-light);
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--epmart-primary-color);
  transition: var(--epmart-transition-fast);
}

a:hover {
  color: #1D4ED8; /* Darker shade of primary */
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h1 { font-size: 3.2rem; } /* 32px */
h2 { font-size: 2.8rem; } /* 28px */
h3 { font-size: 2.2rem; } /* 22px */

.epmart-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* -------------------------------------------------------------------------- */
/* Utility Classes                                                            */
/* -------------------------------------------------------------------------- */
.epmart-text-center { text-align: center; }
.epmart-margin-bottom-large { margin-bottom: 4rem; }
.epmart-margin-bottom-medium { margin-bottom: 2.5rem; }
.epmart-margin-bottom-small { margin-bottom: 1.5rem; }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.epmart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: var(--epmart-border-radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--epmart-transition-medium);
  text-align: center;
  white-space: nowrap;
}

.epmart-button i {
  margin-right: 0.8rem;
}

.epmart-button--primary {
  background-color: var(--epmart-primary-color);
  color: var(--epmart-background-card);
}
.epmart-button--primary:hover {
  background-color: #1D4ED8; /* Darker primary */
  box-shadow: var(--epmart-shadow-soft);
}
.epmart-button--primary:disabled {
  background-color: var(--epmart-text-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

.epmart-button--secondary {
  background-color: var(--epmart-background-card);
  color: var(--epmart-primary-color);
  border: 1px solid var(--epmart-border-color);
}
.epmart-button--secondary:hover {
  background-color: #EFF6FF; /* Lighter primary tint */
  border-color: var(--epmart-primary-color);
  box-shadow: var(--epmart-shadow-soft);
}

/* -------------------------------------------------------------------------- */
/* Vendor Hero Section                                                        */
/* -------------------------------------------------------------------------- */
.epmart-vendor-hero {
  background-color: var(--epmart-background-card); /* White or a very light color */
  padding: 4rem 0;
  margin-bottom: 4rem;
  box-shadow: var(--epmart-shadow-soft);
  border-radius: 0 0 var(--epmart-border-radius-container) var(--epmart-border-radius-container);
  overflow: hidden; /* For potential parallax or background image effects */
}

.epmart-vendor-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.epmart-vendor-hero__profile-image-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%; /* Circular profile image */
  overflow: hidden;
  box-shadow: var(--epmart-shadow-medium);
  border: 4px solid var(--epmart-background-card); /* Optional: adds a nice pop if hero bg is slightly off-white */
}

.epmart-vendor-hero__profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epmart-vendor-hero__details h1 {
  font-size: 3.6rem; /* Larger for vendor name */
  color: var(--epmart-text-primary);
  margin-bottom: 1rem;
}

.epmart-vendor-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}


/* -------------------------------------------------------------------------- */
/* Vendor Information Section                                                 */
/* -------------------------------------------------------------------------- */
.epmart-vendor-info-section {
  padding: 3rem 0;
}

.epmart-vendor-info-section__title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--epmart-text-primary);
  position: relative;
  padding-bottom: 1rem;
}
.epmart-vendor-info-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--epmart-primary-color);
  border-radius: 3px;
}


.epmart-info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.epmart-info-card {
  background-color: var(--epmart-background-card);
  border-radius: var(--epmart-border-radius-container);
  padding: 2.5rem;
  box-shadow: var(--epmart-shadow-soft);
  transition: var(--epmart-transition-medium);
}
.epmart-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--epmart-shadow-medium);
}

.epmart-info-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.epmart-info-card__header i {
  font-size: 2rem;
  color: var(--epmart-primary-color);
}

.epmart-info-card__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--epmart-text-primary);
  margin: 0;
}

.epmart-info-card__content p {
  font-size: 1.5rem;
  color: var(--epmart-text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.epmart-info-card__content p:last-child {
  margin-bottom: 0;
}

.epmart-rating-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--epmart-accent-color); /* Gold for stars */
  font-size: 1.8rem; /* Adjust star size */
  margin-bottom: 0.5rem;
}

.epmart-rating-stars__text {
  font-size: 1.4rem;
  color: var(--epmart-text-secondary);
  margin-left: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* Product Filtering & Sorting Controls                                       */
/* -------------------------------------------------------------------------- */
.epmart-product-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--epmart-background-card);
  border-radius: var(--epmart-border-radius-container);
  box-shadow: var(--epmart-shadow-soft);
}

.epmart-product-controls__sort-select {
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  border-radius: calc(var(--epmart-border-radius-button) / 2); /* Slightly less rounded for select */
  border: 1px solid var(--epmart-border-color);
  background-color: var(--epmart-background-card);
  color: var(--epmart-text-primary);
  min-width: 200px;
  appearance: none; /* Remove default arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.5em 1.5em;
  cursor: pointer;
}
.epmart-product-controls__sort-select:focus {
  outline: none;
  border-color: var(--epmart-primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3); /* Focus ring */
}

/* -------------------------------------------------------------------------- */
/* Products Section                                                           */
/* -------------------------------------------------------------------------- */
.epmart-products-section {
  padding: 3rem 0;
}

.epmart-products-section__title {
  font-size: 3rem; /* Adjusted from 2.8rem */
  margin-bottom: 3rem;
  text-align: center;
  color: var(--epmart-text-primary);
  position: relative;
  padding-bottom: 1.5rem;
}

.epmart-products-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--epmart-primary-color);
  border-radius: 3px;
}

.epmart-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
  gap: 2.5rem; /* Consistent gap */
}

.epmart-product-card {
  background-color: var(--epmart-background-card);
  border-radius: var(--epmart-border-radius-container);
  overflow: hidden;
  box-shadow: var(--epmart-shadow-soft);
  transition: var(--epmart-transition-medium);
  display: flex;
  flex-direction: column;
  position: relative; /* For badges */
  margin: 20px !important;
}

.epmart-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--epmart-shadow-medium);
}

.epmart-product-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: var(--epmart-border-radius-button);
  z-index: 1;
  color: var(--epmart-background-card);
}

.epmart-product-card__badge--new {
  background-color: var(--epmart-primary-color);
}
.epmart-product-card__badge--sale {
  background-color: var(--epmart-accent-color);
}

.epmart-product-card__image-link {
  display: block; /* Ensures the link takes up the image area */
  height: 220px; /* Consistent image height */
  padding: 8px;
}

.epmart-product-card__image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover; /* Changed from fill to cover for better aspect ratio */
  transition: transform 0.4s ease; /* Smoother zoom */
  border-radius: 20px  !important;
}
.epmart-product-card:hover .epmart-product-card__image {
  transform: scale(1.07);
}

.epmart-product-card__details {
  padding: 2rem;
  flex-grow: 1; /* Allows this section to take remaining space */
  display: flex;
  flex-direction: column;
}

.epmart-product-card__name {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--epmart-text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  /* For text truncation if needed */
  /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; */
}

.epmart-product-card__stock-info {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.epmart-product-card__stock-info--low { color: #EF4444; /* Red for low stock */ }
.epmart-product-card__stock-info--medium { color: var(--epmart-accent-color); } /* Amber for medium */
.epmart-product-card__stock-info--high { color: var(--epmart-secondary-color); } /* Green for high stock */


.epmart-product-card__price-details {
  display: flex;
  align-items: baseline; /* Align prices correctly */
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.epmart-product-card__price--current {
  font-size: 2rem; /* Prominent current price */
  font-weight: 700;
  color: var(--epmart-secondary-color); /* Green for current price */
}

.epmart-product-card__price--original {
  font-size: 1.5rem;
  color: var(--epmart-text-secondary);
  text-decoration: line-through;
}

.epmart-product-card__actions {
  margin-top: auto; /* Pushes button to the bottom of the card */
}


.epmart-product-card__view-button { /* Specific class for the view button if needed */
    /* Inherits from .epmart-button and .epmart-button--primary */
    width: 100%; /* Make button full width of card actions area */
}


.epmart-empty-message {
  grid-column: 1 / -1; /* Span all columns in grid */
  text-align: center;
  padding: 5rem 2rem;
  font-size: 1.8rem;
  color: var(--epmart-text-secondary);
  background-color: var(--epmart-background-card);
  border-radius: var(--epmart-border-radius-container);
  box-shadow: var(--epmart-shadow-soft);
}

/* -------------------------------------------------------------------------- */
/* Floating Action Button (FAB)                                               */
/* -------------------------------------------------------------------------- */
.epmart-fab {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 60px;
  height: 60px;
  background-color: var(--epmart-primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--epmart-shadow-medium);
  text-decoration: none;
  z-index: 1000;
  transition: var(--epmart-transition-medium);
  color: var(--epmart-background-card); /* White icon */
}
.epmart-fab:hover {
  background-color: #1D4ED8; /* Darker primary */
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.epmart-fab__icon {
  font-size: 2.4rem;
  line-height: 1;
}

/* For the "Back to Top" button specifically, if different from general FAB */
.epmart-back-to-top {
    /* Similar to epmart-fab, but can have distinct styling or icon */
    /* Example: Different background or icon */
    background-color: var(--epmart-text-primary); /* Darker for utility */
}
.epmart-back-to-top:hover {
    background-color: #000000;
}

/* -------------------------------------------------------------------------- */
/* Customer Reviews / Testimonials Section                                    */
/* -------------------------------------------------------------------------- */
.epmart-testimonials-section {
    padding: 3rem 0;
    background-color: var(--epmart-background-light); /* Or keep it white if preferred */
}
.epmart-testimonials-section__title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--epmart-text-primary);
  position: relative;
  padding-bottom: 1rem;
}
.epmart-testimonials-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--epmart-primary-color);
  border-radius: 3px;
}

.epmart-testimonials-slider-container {
  position: relative;
  overflow: hidden; /* Important for slider */
  max-width: 800px; /* Or desired width */
  margin: 0 auto; /* Center the slider */
}

.epmart-testimonials-slider {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Smooth slide transition */
}

.epmart-testimonial-slide {
  min-width: 100%; /* Each slide takes full container width */
  padding: 0 1rem; /* Spacing if multiple slides are partially visible */
  box-sizing: border-box;
}

.epmart-testimonial-card {
  background-color: var(--epmart-background-card);
  border-radius: var(--epmart-border-radius-container);
  padding: 3rem;
  box-shadow: var(--epmart-shadow-soft);
  text-align: center;
  position: relative;
}
.epmart-testimonial-card::before { /* Quotation mark styling */
  content: '\\201C';
  font-size: 6rem; /* Large quote */
  position: absolute;
  left: 2rem;
  top: 0.5rem;
  color: var(--epmart-border-color); /* Subtle color */
  font-family: serif;
  line-height: 1;
  z-index: 0;
}

.epmart-testimonial-card__content {
  position: relative; /* To sit above the pseudo-element quote */
  z-index: 1;
}

.epmart-testimonial-card__rating .fa-star,
.epmart-testimonial-card__rating .fa-star-half-alt {
  color: var(--epmart-accent-color);
  font-size: 1.8rem;
}
.epmart-testimonial-card__rating {
  margin-bottom: 1.5rem;
}

.epmart-testimonial-card__text {
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  color: var(--epmart-text-secondary);
  line-height: 1.7;
}

.epmart-testimonial-card__author {
  font-weight: 600;
  color: var(--epmart-primary-color);
  font-size: 1.5rem;
}

.epmart-testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.epmart-testimonial-controls__button {
  background-color: var(--epmart-background-card);
  color: var(--epmart-primary-color);
  border: 1px solid var(--epmart-border-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--epmart-transition-medium);
  font-size: 1.8rem;
}
.epmart-testimonial-controls__button:hover {
  background-color: var(--epmart-primary-color);
  color: var(--epmart-background-card);
  border-color: var(--epmart-primary-color);
  transform: scale(1.05);
}
.epmart-testimonial-controls__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* -------------------------------------------------------------------------- */
/* Scroll Animations (Placeholder for JS-driven animations like ScrollReveal) */
/* -------------------------------------------------------------------------- */
.epmart-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform; /* Performance hint */
}
.epmart-animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Notification System                                                        */
/* -------------------------------------------------------------------------- */
.epmart-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--epmart-text-primary);
  color: var(--epmart-background-card);
  padding: 1.5rem 2.5rem;
  border-radius: var(--epmart-border-radius-container); /* Softer edges */
  box-shadow: var(--epmart-shadow-medium);
  z-index: 2000; /* Above other elements */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1.5rem;
}
.epmart-notification.epmart-notification--visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------------------------------------------------------- */
/* Responsive Adjustments                                                     */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) { /* Tablets and larger phones */
  .epmart-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .epmart-vendor-hero__details h1 { font-size: 3rem; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
}

@media (max-width: 768px) { /* Smaller tablets / Large Phones */
  html { font-size: 58%; } /* Slightly adjust base for smaller screens if needed */

  .epmart-vendor-hero__content {
    flex-direction: column;
    text-align: center;
  }
  .epmart-vendor-hero__actions {
    flex-direction: column; /* Stack buttons */
    align-items: stretch; /* Make buttons full width of their container */
  }
  .epmart-vendor-hero__actions .epmart-button {
      width: 100%; /* Make buttons take more width */
      max-width: 300px; /* But not excessively wide */
      margin-left: auto;
      margin-right: auto;
  }

  .epmart-info-card-grid {
    grid-template-columns: 1fr; /* Stack cards */
  }

  .epmart-product-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .epmart-product-controls__sort-select {
    width: 100%;
  }

  .epmart-products-section__title { font-size: 2.6rem; }
  .epmart-product-card__image { height: 180px; }
  .epmart-product-card__name { font-size: 1.7rem; }
  .epmart-product-card__price--current { font-size: 1.8rem; }

  .epmart-fab {
    width: 50px;
    height: 50px;
    bottom: 2rem;
    right: 2rem;
  }
  .epmart-fab__icon { font-size: 2rem; }

  .epmart-testimonials-slider-container {
      padding: 0 1rem; /* Ensure controls don't overlap content too much */
  }
  .epmart-testimonial-card { padding: 2rem; }
  .epmart-testimonial-card::before { font-size: 5rem; left: 1.5rem; top: 0rem;}

}

@media (max-width: 576px) { /* Mobile devices */
  html { font-size: 55%; } /* Further adjustment if necessary */
  body { font-size: 1.5rem; } /* Base body font size for mobile */

  .epmart-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .epmart-vendor-hero { padding: 2.5rem 0; }
  .epmart-vendor-hero__profile-image-wrapper { width: 100px; height: 100px;}
  .epmart-vendor-hero__details h1 { font-size: 2.6rem; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.9rem; }

  .epmart-button { padding: 1rem 2rem; font-size: 1.4rem; }

  .epmart-product-grid {
    grid-template-columns: 1fr; /* Single column for products */
    gap: 2rem;
  }
  .epmart-product-card__image { height: 220px; } /* Taller image for single column */
  
  .epmart-notification {
    width: calc(100% - 4rem); /* Full width with padding */
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
  .epmart-testimonials-section__title,
  .epmart-vendor-info-section__title,
  .epmart-products-section__title {
    font-size: 2.2rem;
  }
}

