/* 
 * AACM Custom Shop CSS Stylesheet
 * Responsive grid, glassmorphism card designs, and micro-animations.
 */

:root {
  --shop-navy-dark: #02528E;       /* Matches primary Elementor dark blue */
  --shop-navy-medium: #095FA1;     /* Matches brand primary blue */
  --shop-navy-light: #2474B0;      /* Matches Elementor medium blue */
  --shop-teal: #449edd;            /* Matches brand accent light blue/teal (#449edd) */
  --shop-teal-hover: #1583e0;      /* Matches brand hover blue */
  --shop-teal-light: #EBF6FE;      /* Matches brand ice blue background */
  --shop-orange: #449edd;          /* Using brand accent teal instead of gold */
  --shop-orange-hover: #1583e0;    /* Hover accent */
  --shop-white: #ffffff;
  --shop-slate-light: #f9fafb;     /* Matches brand off-white background */
  --shop-slate-border: #e5ebf1;    /* Matches brand soft border gray-blue */
  --shop-charcoal: #212529;        /* Matches brand dark gray body/headers */
  --shop-text-muted: #6b7280;      /* Matches brand muted subtext gray */
  --shop-red: #449edd;             /* Avoid red, use brand accent teal instead */
  --shop-green: #21c45d;           /* Matches brand success green */
  --shop-green-light: #e3f9eb;     /* Matches brand light green background */

  --shop-radius: 16px;
  --shop-radius-sm: 8px;
  --shop-shadow: 0 4px 20px -2px rgba(2, 82, 142, 0.05), 0 2px 8px -1px rgba(2, 82, 142, 0.03);
  --shop-shadow-hover: 0 20px 40px -15px rgba(2, 82, 142, 0.15), 0 10px 20px -10px rgba(68, 158, 221, 0.1);
  --shop-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-wrapper {
  color: var(--shop-charcoal);
  background-color: var(--shop-slate-light);
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
.shop-hero {
  background: var(--shop-teal-light);
  padding: 80px 0;
  color: var(--shop-charcoal);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--shop-slate-border);
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(68, 158, 221, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.shop-hero-badge {
  display: inline-block;
  background-color: rgba(68, 158, 221, 0.15);
  color: var(--shop-teal);
  border: 1px solid rgba(68, 158, 221, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.shop-hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -1px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.shop-hero-title span {
  color: var(--shop-teal);
  position: relative;
}

.shop-hero-title.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.shop-hero-desc {
  font-size: 1.2rem;
  color: var(--shop-charcoal);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-weight: 400;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.shop-hero-desc.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

/* SEARCH & FILTER BAR */
.shop-filter-bar {
  margin: -35px auto 40px auto;
  position: relative;
  z-index: 10;
  background: var(--shop-white);
  padding: 15px 30px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(7, 20, 38, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
  gap: 20px;
  max-width: 900px;
}

.shop-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-filter-btn {
  background: none;
  border: none;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--shop-text-muted);
  cursor: pointer;
  border-radius: 50px;
  transition: var(--shop-transition);
}

.shop-filter-btn:hover {
  color: var(--shop-navy-dark);
  background-color: var(--shop-slate-light);
}

.shop-filter-btn.active {
  background-color: var(--shop-navy-dark);
  color: var(--shop-white);
}

.shop-search-box {
  position: relative;
  width: 250px;
  flex-shrink: 0; /* Prevent the search box from shrinking on desktop */
}

.shop-wrapper input.shop-search-input {
  width: 100% !important;
  padding: 10px 15px 10px 45px !important; /* Keep text shifted right of the search icon */
  font-size: 0.95rem !important;
  border: 1px solid var(--shop-slate-border) !important;
  border-radius: 50px !important;
  outline: none !important;
  background-color: var(--shop-white) !important;
  transition: var(--shop-transition) !important;
  height: 44px !important;
  box-sizing: border-box !important;
  line-height: normal !important;
}

.shop-wrapper input.shop-search-input:focus {
  border-color: var(--shop-teal) !important;
  box-shadow: 0 0 0 3px rgba(68, 158, 221, 0.15) !important;
}

.shop-search-icon {
  position: absolute;
  left: 18px; /* Perfectly centered within the 45px left padding padding */
  top: 50%;
  transform: translateY(-50%);
  color: var(--shop-text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
  z-index: 5;
}

/* PRODUCT GRID */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  align-items: start;
}

/* PRODUCT CARD */
.product-card {
  background-color: var(--shop-white);
  border-radius: var(--shop-radius);
  overflow: hidden;
  box-shadow: var(--shop-shadow);
  border: 1px solid var(--shop-slate-border);
  transition: var(--shop-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shop-shadow-hover);
  border-color: rgba(68, 158, 221, 0.3);
}

/* Card badges */
.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-badge {
  background-color: var(--shop-navy-dark);
  color: var(--shop-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-badge.sale {
  background-color: var(--shop-red);
}

/* Card Image */
.product-image-container {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 20, 38, 0.4) 0%, transparent 100%);
  opacity: 0;
  transition: var(--shop-transition);
}

.product-card:hover .product-image-overlay {
  opacity: 1;
}

/* Card Content */
.product-details {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--shop-teal);
  letter-spacing: 1px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
}

.product-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-rating span {
  color: var(--shop-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--shop-navy-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--shop-text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Features List */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  border-top: 1px dashed var(--shop-slate-border);
  padding-top: 15px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--shop-charcoal);
  margin-bottom: 8px;
}

.product-features li svg {
  width: 16px;
  height: 16px;
  color: var(--shop-green);
  flex-shrink: 0;
}

/* Prices */
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.product-price-regular {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--shop-text-muted);
}

.product-price-sale {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--shop-navy-dark);
}

.product-price-sale.promo {
  color: var(--shop-red);
}

/* CTAs */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.product-buy-btn, .product-details-btn {
  padding: 14px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--shop-radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--shop-transition);
}

.product-buy-btn {
  background-color: var(--shop-teal);
  color: var(--shop-white);
  border: none;
  box-shadow: 0 4px 12px rgba(68, 158, 221, 0.15);
}

.product-buy-btn:hover {
  background-color: var(--shop-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(68, 158, 221, 0.25);
}

.product-details-btn {
  background-color: var(--shop-white);
  color: var(--shop-navy-medium);
  border: 1px solid var(--shop-navy-light);
}

.product-details-btn:hover {
  background-color: var(--shop-teal-light);
  color: var(--shop-navy-dark);
  border-color: var(--shop-teal);
  transform: translateY(-1px);
}

.product-spec-toggle {
  background-color: var(--shop-slate-light);
  color: var(--shop-navy-dark);
  border: 1px solid var(--shop-slate-border);
  padding: 14px;
  border-radius: var(--shop-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--shop-transition);
  width: 48px;
  height: 48px;
}

.product-spec-toggle:hover {
  background-color: #eaeff5;
  border-color: #cbd5e1;
}

.product-spec-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.product-spec-toggle.active svg {
  transform: rotate(180deg);
}

/* Specifications Dropdown Container */
.product-specs-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--shop-slate-light);
  border-top: 0 solid var(--shop-slate-border);
}

.product-specs-drawer.active {
  max-height: 500px;
  border-top-width: 1px;
}

.product-specs-content {
  padding: 20px 25px;
}

.product-specs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--shop-navy-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.product-spec-item {
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 6px;
}

.product-spec-label {
  color: var(--shop-text-muted);
  margin-bottom: 2px;
}

.product-spec-value {
  font-weight: 600;
  color: var(--shop-charcoal);
}

/* TRUST SECTION */
.shop-trust-strip {
  background-color: var(--shop-white);
  border-top: 1px solid var(--shop-slate-border);
  border-bottom: 1px solid var(--shop-slate-border);
  padding: 40px 0;
  margin-bottom: 60px;
}

.shop-trust-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.shop-trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 320px;
}

.shop-trust-icon-box {
  background-color: var(--shop-teal-light);
  color: var(--shop-teal);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-trust-icon-box svg {
  width: 24px;
  height: 24px;
}

.shop-trust-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--shop-navy-dark);
  margin-bottom: 2px;
}

.shop-trust-desc {
  font-size: 0.85rem;
  color: var(--shop-text-muted);
}

/* FAQ SECTION */
.shop-faq-section {
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.shop-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: var(--shop-navy-dark);
}

.shop-section-title span {
  color: var(--shop-teal);
}

.shop-section-desc {
  font-size: 1.05rem;
  color: var(--shop-text-muted);
  text-align: center;
  margin-bottom: 40px;
}

.shop-faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shop-faq-card {
  background: var(--shop-white);
  border: 1px solid var(--shop-slate-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
  box-shadow: var(--shop-shadow);
  transition: var(--shop-transition);
}

.shop-faq-card:hover {
  border-color: rgba(68, 158, 221, 0.3);
}

.shop-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.shop-faq-qtext {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--shop-navy-dark);
}

.shop-faq-icon {
  width: 20px;
  height: 20px;
  color: var(--shop-text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.shop-faq-card.active .shop-faq-icon {
  transform: rotate(180deg);
  color: var(--shop-teal);
}

.shop-faq-answer-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-faq-answer {
  padding: 0 30px 22px 30px;
  font-size: 0.95rem;
  color: var(--shop-text-muted);
  line-height: 1.6;
}

/* NO RESULTS STATE */
.shop-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--shop-white);
  border-radius: var(--shop-radius);
  border: 1px dashed var(--shop-slate-border);
  display: none;
}

.shop-no-results svg {
  width: 48px;
  height: 48px;
  color: var(--shop-text-muted);
  margin-bottom: 15px;
}

.shop-no-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--shop-navy-dark);
  margin-bottom: 5px;
}

.shop-no-results p {
  color: var(--shop-text-muted);
  font-size: 0.9rem;
}

/* MOBILE STICKY BAR */
.shop-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--shop-navy-dark);
  color: var(--shop-white);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-sticky-bar.visible {
  transform: translateY(0);
}

.shop-sticky-info {
  display: flex;
  flex-direction: column;
}

.shop-sticky-label {
  font-size: 0.75rem;
  color: var(--shop-teal);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.shop-sticky-title {
  font-size: 0.95rem;
  font-weight: 700;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-sticky-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-sticky-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--shop-orange);
}

.shop-sticky-btn {
  background-color: var(--shop-teal);
  color: var(--shop-white);
  border: none;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--shop-transition);
}

.shop-sticky-btn:hover {
  background-color: var(--shop-teal-hover);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
  .shop-hero {
    padding: 60px 0;
  }
  .shop-hero-title {
    font-size: 2.2rem;
  }
  .shop-hero-desc {
    font-size: 1rem;
  }
  .shop-filter-bar {
    border-radius: 20px;
    padding: 15px 20px;
    margin-top: -25px;
    flex-direction: column;
    align-items: stretch;
  }
  .shop-filter-tabs {
    justify-content: center;
  }
  .shop-search-box {
    width: 100%;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-trust-flex {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
  }
  .shop-trust-item {
    width: 100%;
  }
  .shop-sticky-title {
    max-width: 150px;
  }
}
