/* ==========================================================================
   KRUNAL KELAWALA - Components & Interactive UI Styles
   ========================================================================== */

/* ==========================================================================
   Page Headers & Breadcrumbs
   ========================================================================== */

.page-banner {
  background: linear-gradient(rgba(20, 2, 4, 0.85), rgba(40, 5, 8, 0.9)), url('../images/demo-boutique.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
}

.page-banner h1 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-banner h1 span {
  color: var(--secondary-light);
}

.page-banner p {
  font-size: 1.05rem;
  color: #e0d0d0;
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.88rem;
}

.breadcrumb-nav a {
  color: #ccc;
}

.breadcrumb-nav a:hover {
  color: var(--secondary-light);
}

.breadcrumb-nav span {
  color: var(--secondary);
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(212, 175, 55, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #f0f0f0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.modal-header-custom {
  background: linear-gradient(135deg, #1c0305 0%, #4a0c0f 100%);
  color: #ffffff;
  padding: 28px 30px;
  border-top-left-radius: calc(var(--radius-lg) - 2px);
  border-top-right-radius: calc(var(--radius-lg) - 2px);
}

.modal-header-custom h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.modal-header-custom p {
  font-size: 0.85rem;
  color: #e0d0d0;
  margin: 0;
}

.modal-body-custom {
  padding: 30px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Store Locator Components
   ========================================================================== */

.store-locator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 30px;
}

.store-sidebar {
  padding: 30px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  max-height: 750px;
}

.store-search-box {
  margin-bottom: 20px;
}

.store-search-box input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #ddd;
  font-size: 0.9rem;
}

.store-filter-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.store-filter-group select {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #ddd;
  font-size: 0.88rem;
}

.store-list-container {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
}

.store-item-card {
  background: #fbfbfb;
  border-radius: var(--radius-md);
  border: 1px solid #e8e8e8;
  padding: 18px;
  margin-bottom: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.store-item-card:hover, .store-item-card.active {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(139, 24, 30, 0.12);
  transform: translateX(4px);
}

.store-item-card h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.store-item-badge {
  display: inline-block;
  background: rgba(139, 24, 30, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.store-item-address {
  font-size: 0.84rem;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.store-item-actions {
  display: flex;
  gap: 10px;
}

.store-map-view {
  background: #f5f5f5;
  position: relative;
  min-height: 500px;
}

.store-map-view iframe {
  width: 100%;
  height: 100%;
  min-height: 650px;
  border: none;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-search-wrapper {
  max-width: 600px;
  margin: 0 auto 40px;
}

.faq-search-wrapper input {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.faq-search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 24, 30, 0.1);
}

.accordion-list {
  max-width: 850px;
  margin: 0 auto;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  user-select: none;
  transition: var(--transition);
}

.accordion-header h4 {
  font-size: 1.02rem;
  font-family: 'Poppins', sans-serif;
  color: #222;
  margin: 0;
  font-weight: 600;
}

.accordion-item.active .accordion-header h4 {
  color: var(--primary);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #666;
  transition: var(--transition);
}

.accordion-item.active .accordion-icon {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fdfdfd;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  padding: 18px 24px 24px;
  max-height: 500px;
}

/* ==========================================================================
   Gallery Category Filter & Grid
   ========================================================================== */

.filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 24, 30, 0.25);
}

.gallery-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-card-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 280px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  opacity: 0.9;
  transition: var(--transition);
}

.gallery-item-overlay h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.gallery-item-overlay span {
  font-size: 0.78rem;
  color: var(--secondary-light);
}

/* ==========================================================================
   Blogs & Articles Cards
   ========================================================================== */

.blog-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 24, 30, 0.3);
}

.blog-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #eee;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

.blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.blog-content {
  padding: 24px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.blog-content h3 a {
  color: #222;
}

.blog-content h3 a:hover {
  color: var(--primary);
}

.blog-content p {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border-left: 5px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideInToast 0.3s ease forwards;
}

.toast.toast-success {
  border-left-color: #27ae60;
}

.toast.toast-error {
  border-left-color: #e74c3c;
}

.toast-content {
  font-size: 0.88rem;
  color: #333;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
}

@keyframes slideInToast {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
