/* NAHSE Store Frontend Styles - Version 2.2 */

:root {
  --primary-blue: #003295;
  --secondary-gold: #cca000;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --border-light: #e5e5e5;
  --bg-light: #f8f9fa;
  --success-green: #28a745;
  --warning-orange: #ff9800;
  --error-red: #dc3545;
}

* {
  box-sizing: border-box;
}

/* ===== MODERN TAB INTERFACE (PILL BUTTONS) - HORIZONTAL LAYOUT ===== */
/* Added more specific selectors and inline style overrides for tabs */
.nahse-store-wrapper {
  margin: 40px 0 !important;
  clear: both !important;
}

div.nahse-modern-tabs,
.nahse-store-wrapper > .nahse-modern-tabs {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  /* Center tabs horizontally */
  justify-content: center !important;
  gap: 16px !important;
  margin-bottom: 48px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  width: 100% !important;
}

button.nahse-modern-tab,
.nahse-modern-tabs > .nahse-modern-tab {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 32px !important;
  background: #f0f0f0 !important;
  border: none !important;
  border-radius: 50px !important;
  color: #666 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.nahse-modern-tab svg {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
}

.nahse-modern-tab:hover {
  background: #e0e0e0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.nahse-modern-tab.active {
  background: var(--primary-blue) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 50, 149, 0.3) !important;
}

.nahse-tab-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  background: white !important;
  color: var(--primary-blue) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
}

.nahse-modern-tab.active .nahse-tab-count {
  background: var(--secondary-gold) !important;
  color: white !important;
}

/* Mobile responsive tabs - stack on small screens */
@media (max-width: 768px) {
  .nahse-modern-tabs {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .nahse-modern-tab {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

.nahse-tab-panels {
  margin-top: 32px;
}

.nahse-modern-panel {
  display: none;
}

.nahse-modern-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nahse-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.nahse-empty-state svg {
  margin: 0 auto 20px;
  opacity: 0.3;
}

.nahse-empty-state p {
  font-size: 18px;
  color: var(--text-light);
}

/* ===== PRODUCT GRID ===== */
.nahse-products-grid,
.nahse-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.nahse-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.nahse-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nahse-product-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.nahse-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nahse-product-card:hover .nahse-product-image img {
  transform: scale(1.05);
}

.nahse-product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  background: var(--secondary-gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.nahse-product-content {
  padding: 24px;
}

.nahse-product-type {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.nahse-product-title {
  margin: 0 0 12px 0;
}

.nahse-product-title a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.nahse-product-title a:hover {
  color: var(--primary-blue);
}

.nahse-product-price {
  margin: 16px 0;
}

.nahse-product-price del {
  color: var(--text-light);
  font-size: 16px;
  margin-right: 8px;
}

.nahse-product-price .price-current {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-blue);
}

.nahse-product-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 20px 0;
}

.nahse-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-blue);
  color: white !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nahse-button:hover {
  background: #002270;
  transform: translateY(-2px);
}

/* ===== MODERN TEMPLATE (DEFAULT) ===== */
.nahse-template-modern {
  background: white;
}

.nahse-product-gallery-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.nahse-gallery-main {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.nahse-gallery-main img {
  width: 100%;
  height: auto;
  display: block;
}

.nahse-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.nahse-thumb {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.nahse-thumb:hover {
  border-color: var(--primary-blue);
}

.nahse-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.nahse-product-hero-single {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.nahse-product-hero-single img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.nahse-badge-hero {
  position: absolute;
  top: 60px;
  right: 40px;
  padding: 12px 24px;
  background: var(--secondary-gold);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 30px;
  letter-spacing: 1px;
}

.nahse-modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.nahse-breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.nahse-modern-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
  margin: 0 0 24px 0;
}

.nahse-event-highlights {
  display: flex;
  gap: 32px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.nahse-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
}

.nahse-highlight-item svg {
  color: var(--primary-blue);
}

.nahse-author-badge {
  display: inline-block;
  padding: 12px 20px;
  background: var(--bg-light);
  border-radius: 8px;
  margin: 16px 0;
}

.nahse-modern-description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-top: 32px;
}

.nahse-modern-sidebar {
  position: relative;
}

.nahse-price-card {
  position: sticky;
  top: 20px;
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--border-light);
}

.nahse-price-original {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nahse-price-original del {
  font-size: 18px;
  color: var(--text-light);
}

.nahse-save-badge {
  padding: 4px 12px;
  background: var(--error-red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
}

.nahse-price-current {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.nahse-status {
  display: block;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.nahse-status-available {
  background: #d4edda;
  color: var(--success-green);
}

.nahse-status-limited {
  background: #fff3cd;
  color: var(--warning-orange);
}

.nahse-status-sold_out {
  background: #f8d7da;
  color: var(--error-red);
}

.nahse-buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: var(--primary-blue);
  color: white !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nahse-buy-button:hover {
  background: #002270;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 50, 149, 0.3);
}

/* ===== CLASSIC TEMPLATE ===== */
.nahse-classic-layout {
  background: white;
  padding: 60px 0;
}

/* Desktop: 2-column grid layout */
.nahse-classic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Mobile: single column with proper order */
@media (max-width: 768px) {
  .nahse-classic-container {
    grid-template-columns: 1fr;
    gap: 32px;
    display: flex;
    flex-direction: column;
  }

  /* Mobile order: Title → Images → Description → Price → Button */
  .nahse-classic-image-section {
    order: 2;
  }

  .nahse-classic-details-section {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .nahse-product-tag {
    order: 1;
  }

  .nahse-classic-title {
    order: 2;
    font-size: 28px !important;
  }

  .nahse-classic-description {
    order: 3;
  }

  .nahse-price-section {
    order: 4;
  }

  .nahse-availability-badge {
    order: 5;
  }

  .nahse-event-info {
    order: 6;
  }

  .nahse-author-info-box {
    order: 7;
  }

  .nahse-button-primary {
    order: 8;
  }
}

.nahse-product-slider,
.nahse-product-image-single {
  position: relative;
}

.nahse-slider-main,
.nahse-product-image-single {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
}

.nahse-slider-main img,
.nahse-product-image-single img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.nahse-badge-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: var(--secondary-gold);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 25px;
}

.nahse-slider-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.nahse-slider-thumb {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.nahse-slider-thumb:hover,
.nahse-slider-thumb.active {
  border-color: var(--primary-blue);
}

.nahse-slider-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.nahse-product-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.nahse-classic-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
  margin: 0 0 24px 0;
}

.nahse-price-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
}

.nahse-price-old {
  font-size: 20px;
  color: var(--text-light);
  text-decoration: line-through;
}

.nahse-price-new {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary-blue);
}

.nahse-discount {
  padding: 6px 14px;
  background: var(--error-red);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
}

.nahse-availability-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}

.nahse-availability-available {
  background: #d4edda;
  color: var(--success-green);
}

.nahse-availability-limited {
  background: #fff3cd;
  color: var(--warning-orange);
}

.nahse-availability-sold_out {
  background: #f8d7da;
  color: var(--error-red);
}

.nahse-event-info {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 12px;
}

.nahse-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--text-dark);
  font-size: 16px;
}

.nahse-info-row svg {
  color: var(--primary-blue);
}

.nahse-author-info-box {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: 8px;
}

.nahse-author-label {
  color: var(--text-light);
  font-size: 14px;
  margin-right: 8px;
}

.nahse-author-name {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
}

.nahse-button-primary {
  display: inline-block;
  width: 100%;
  padding: 18px;
  background: var(--primary-blue);
  color: white !important;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  margin: 24px 0;
  transition: all 0.3s ease;
}

.nahse-button-primary:hover {
  background: #002270;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 50, 149, 0.3);
}

/* Completely redesigned lightbox with MUCH larger images */
.nahse-lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.97);
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nahse-lightbox.active {
  display: flex !important;
}

.nahse-lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nahse-lightbox-image {
  max-width: 95vw !important;
  max-height: 95vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.nahse-lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  padding: 0;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 100000;
}

.nahse-lightbox-close:hover {
  background: var(--primary-blue);
  transform: rotate(90deg);
}

.nahse-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 50, 149, 0.9);
  color: white;
  border: none;
  font-size: 32px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.nahse-lightbox-nav:hover {
  background: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 50, 149, 0.6);
}

.nahse-lightbox-prev {
  left: 40px;
}

.nahse-lightbox-next {
  right: 40px;
}

/* Mobile responsive layout for Classic template */
/* Added mobile responsive ordering for Classic template */
@media (max-width: 768px) {
  .nahse-classic-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Reorder sections on mobile: Title, Gallery, Description, Button */
  .nahse-classic-image-section {
    order: 1;
  }

  .nahse-classic-details-section {
    order: 2;
    display: flex;
    flex-direction: column;
  }

  .nahse-product-tag {
    order: 1;
  }

  .nahse-classic-title {
    order: 2;
    font-size: 28px;
  }

  .nahse-price-section {
    order: 3;
  }

  .nahse-availability-badge {
    order: 4;
  }

  .nahse-classic-description-mobile {
    display: block;
    order: 5;
  }

  .nahse-event-info {
    order: 6;
  }

  .nahse-author-info-box {
    order: 7;
  }

  .nahse-button-primary {
    order: 8;
  }

  .nahse-classic-description-desktop {
    display: none;
  }

  /* Mobile tab adjustments */
  .nahse-modern-tabs {
    gap: 12px !important;
  }

  .nahse-modern-tab {
    padding: 14px 24px !important;
    font-size: 16px !important;
  }

  .nahse-tab-count {
    min-width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  /* Product grid mobile */
  .nahse-products-grid,
  .nahse-store-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Modern template mobile */
  .nahse-modern-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .nahse-modern-title {
    font-size: 32px;
  }

  .nahse-event-highlights {
    flex-direction: column;
    gap: 16px;
  }

  /* Minimal template mobile */
  .nahse-minimal-title {
    font-size: 36px;
  }

  .nahse-minimal-new-price {
    font-size: 48px;
  }

  .nahse-minimal-gallery {
    grid-template-columns: 1fr;
  }

  /* Showcase template mobile */
  .nahse-showcase-gallery {
    grid-template-columns: 1fr;
  }

  .nahse-showcase-title {
    font-size: 32px;
  }

  /* Lightbox mobile adjustments */
  .nahse-lightbox-image {
    max-width: 95%;
    max-height: 80vh;
  }

  .nahse-lightbox-close {
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 36px;
  }

  .nahse-lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .nahse-lightbox-prev {
    left: 10px;
  }

  .nahse-lightbox-next {
    right: 10px;
  }
}

/* Desktop-only styles */
@media (min-width: 769px) {
  .nahse-classic-description-mobile {
    display: none;
  }

  .nahse-classic-description-desktop {
    display: block;
  }
}

.nahse-classic-description-mobile {
  display: none;
}

.nahse-classic-description-desktop {
  display: block;
}

.nahse-description h3,
.nahse-classic-description-mobile h3,
.nahse-classic-description-desktop h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.nahse-description {
  margin-top: 32px;
}

.nahse-description h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Darker, more readable description text across all templates */
.nahse-classic-description,
.nahse-minimal-content,
.nahse-showcase-description,
.nahse-modern-description,
.nahse-description,
.nahse-product-excerpt,
.nahse-product-content p {
  color: #1f2937 !important;
  line-height: 1.8 !important;
  font-size: 17px !important;
}

/* Responsive font sizes */
@media (max-width: 768px) {
  /* Mobile font sizes */
  .nahse-classic-title,
  .nahse-minimal-title,
  .nahse-showcase-title,
  h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
}
