/* style.css - OtoDriveZone Production Final Edition */

:root {
   --primary: #007bff;
   --primary-hover: #0056b3;
   --bg-main: #f8fafc;
   --text-dark: #1e293b;
   --text-muted: #64748b;
   --card-bg: #ffffff;
   --border-color: #e2e8f0;
   --header-height: 70px;
   --radius-lg: 16px;
   --radius-md: 12px;
}

/* 1. GLOBAL & LAYOUT */
body {
   font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
   margin: 0;
   padding: 0;
   background-color: var(--bg-main);
   color: var(--text-dark);
   line-height: 1.6;
}

/* PENYELARASAN LEBAR: Samakan padding & box-sizing */
.container,
.header-container {
   max-width: 1200px;
   margin: 0 auto;
   padding-left: 20px;
   padding-right: 20px;
   width: 100%;
   box-sizing: border-box;
   /* Mencegah elemen meluber */
}

.container {
   padding-top: 20px;
   padding-bottom: 20px;
}

.main-layout {
   display: grid;
   grid-template-columns: 1fr 300px;
   grid-template-columns: minmax(0, 1fr) 300px;
   gap: 32px;
   align-items: start;
}

/* 2. HEADER UTAMA (MODERN GLASS) */
.main-header {
   background: rgba(255, 255, 255, 0.9);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   height: var(--header-height);
   position: sticky;
   top: 0;
   z-index: 1000;
   border-bottom: 1px solid var(--border-color);
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-container {
   height: 100%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   /* Padding sudah diatur di baris .container, .header-container di atas */
}

.logo-section {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   justify-content: center;
   cursor: pointer;
}

.site-name {
   font-size: 1.4rem;
   font-weight: 800;
   letter-spacing: -0.5px;
   line-height: 1.1;
}

.site-name span {
   color: var(--primary);
}

.site-tagline {
   font-size: 10px;
   font-weight: 500;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.3px;
   margin-top: 2px;
}

.main-nav {
   display: flex;
   gap: 8px;
}

.nav-link {
   background: none;
   border: none;
   font-weight: 600;
   color: var(--text-muted);
   cursor: pointer;
   padding: 8px 16px;
   border-radius: 8px;
   transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
   color: var(--primary);
   background: rgba(0, 123, 255, 0.08);
}

/* 3. BRAND GRID & CARDS (SCROLLABLE & MOBILE 3-COL) */
h2#mainTitle {
   text-align: left;
   font-size: 1.5rem;
   font-weight: 800;
   margin-bottom: 24px;
}

.brand-scroll-container {
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-lg);
   padding: 20px;
   max-height: 480px;
   overflow-y: auto;
   box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.brand-scroll-container::-webkit-scrollbar {
   width: 5px;
}

.brand-scroll-container::-webkit-scrollbar-thumb {
   background: #cbd5e0;
   border-radius: 10px;
}

.grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
   gap: 16px;
}

.card {
   background: var(--bg-main);
   border-radius: var(--radius-md);
   padding: 16px 10px;
   border: 1px solid var(--border-color);
   display: flex;
   flex-direction: column;
   align-items: center;
   cursor: pointer;
   transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
   transform: translateY(-4px);
   background: white;
   border-color: var(--primary);
   box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.1);
}

.card img {
   width: 50px;
   height: 40px;
   object-fit: contain;
   margin-bottom: 10px;
   transition: transform 0.2s;
}

.card:hover img {
   transform: scale(1.1);
}

.card span {
   font-size: 12px;
   font-weight: 700;
   color: var(--text-dark);
   text-align: center;
}

/* 4. SIDEBAR */
.sidebar-section {
   margin-bottom: 40px; /* Memberi jarak lebih lega antar blok */
}

.sidebar-section h3 {
   font-size: 13px;
   font-weight: 800;
   text-transform: uppercase;
   color: var(--text-dark);
   letter-spacing: 1.2px;
   margin: 0 0 20px 0;
   display: flex;
   align-items: center;
   gap: 12px;
}

/* Aksen garis horizontal di sebelah judul (Modern Touch) */
.sidebar-section h3::after {
   content: "";
   flex: 1;
   height: 1px;
   background: var(--border-color);
}

.sidebar-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.sidebar-item {
   cursor: pointer;
   transition: all 0.2s ease;
   padding: 10px 0;
   border-bottom: 1px solid transparent; /* Placeholder agar layout stabil */
}

.sidebar-item:hover {
   transform: translateX(4px);
}

/* Style Baru untuk Konten Sidebar */
.side-meta-group {
   display: flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 4px;
}

.side-brand {
   font-size: 10px;
   font-weight: 700;
   text-transform: uppercase;
   color: white;
   background-color: var(--text-dark); /* Badge style hitam elegan */
   padding: 2px 6px;
   border-radius: 4px;
   letter-spacing: 0.5px;
}

.side-model {
   font-size: 15px;
   font-weight: 700;
   color: var(--text-dark);
   display: block;
   line-height: 1.3;
   margin-bottom: 2px;
   transition: color 0.2s;
}

.sidebar-item:hover .side-model {
   color: var(--primary);
}

.side-variant {
   font-size: 12px;
   color: var(--text-muted);
   font-weight: 500;
   display: block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

/* 5. SPECIFICATION HEADER & BACK BUTTON */
.header-nav {
   margin-bottom: 20px;
}

.back-btn {
   background: transparent;
   color: var(--primary);
   border: 1px solid var(--primary);
   padding: 8px 16px;
   border-radius: 8px;
   font-weight: 600;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 8px;
}

.variant-info-container {
   display: flex;
   align-items: center;
   gap: 24px;
   background: var(--card-bg);
   padding: 30px;
   border-radius: var(--radius-lg);
   border: 1px solid var(--border-color);
   margin-bottom: 24px;
}

.brand-logo-fixed {
   width: 100px;
   height: 70px;
   object-fit: contain;
   flex-shrink: 0;
}

.model-title {
   font-size: 28px !important;
   font-weight: 800 !important;
   margin: 0 !important;
   text-align: left !important;
}

.model-description {
   color: var(--text-muted);
   font-size: 14px;
   text-align: left !important;
}

/* 6. VARIANT TABS (REFINED WRAPPING) */
.variant-selection-wrapper {
   margin-bottom: 24px;
}

.variant-tab-container {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   padding-bottom: 15px;
   border-bottom: 2px solid #eee;
}

.variant-btn {
   padding: 10px 18px;
   background: white;
   border: 1px solid var(--border-color);
   border-radius: 100px;
   font-weight: 600;
   cursor: pointer;
   transition: 0.2s;
   font-size: 13px;
}

.variant-btn:hover,
.variant-btn.active {
   background: var(--primary);
   color: white;
   border-color: var(--primary);
}

/* 7. ACCORDION (DRAWER) */
.accordion {
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   padding: 18px 24px;
   border-radius: var(--radius-md);
   font-weight: 700;
   margin-top: 12px;
   display: flex;
   justify-content: space-between;
   cursor: pointer;
   width: 100%;
}

.accordion.active {
   border-bottom-left-radius: 0;
   border-bottom-right-radius: 0;
   background: #fafafa;
}

.panel {
   background: white;
   border: 1px solid var(--border-color);
   border-top: none;
   padding: 0 24px;
   border-bottom-left-radius: var(--radius-md);
   border-bottom-right-radius: var(--radius-md);
}

.spec-row {
   display: flex;
   justify-content: space-between;
   padding: 14px 0;
   border-bottom: 1px solid #f1f5f9;
}

.spec-label {
   color: var(--text-muted);
   font-size: 14px;
   flex: 1;
}

.spec-value {
   font-weight: 600;
   font-size: 14px;
   flex: 1;
   text-align: right;
}

/* 8. DIALOG BOX (MODAL REFINED - MOBILE FRIENDLY) */
.dialog-box {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background: white;
   border-radius: 28px;
   /* Sudut lebih halus */
   padding: 20px;
   z-index: 10001;
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 100vw rgba(0, 0, 0, 0.5);

   /* Penyesuaian Lebar Mobile */
   width: 86%;
   max-width: 340px;
   box-sizing: border-box;
   /* Kunci agar padding tidak merusak lebar */

   display: none;
   flex-direction: column;
   max-height: 80vh;
}

.dialog-box h3 {
   margin: 0 0 16px 0;
   font-size: 1.1rem;
   font-weight: 800;
   text-align: center;
   color: var(--text-dark);
}

/* Container List Model */
.models-list {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 10px;
   margin: 10px 0 15px 0;
   max-height: 300px;
   overflow-y: auto;
   padding: 4px;
   min-height: 100px;
   box-sizing: border-box;
}

/* Centering untuk pesan "No models found" */
.models-list p {
   grid-column: span 2;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 100px;
   margin: 0;
   color: var(--text-muted);
   font-size: 13px;
   font-weight: 500;
   text-align: center;
}

.model-item {
   padding: 10px 6px;
   background: #f8fafc;
   border-radius: 12px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s ease;
   text-align: center;
   font-size: 12px;
   border: 1px solid var(--border-color);
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 44px;
   /* Sedikit lebih tinggi untuk kenyamanan touch */
}

.model-item:hover {
   background: var(--primary);
   color: white;
   border-color: var(--primary);
   transform: translateY(-2px);
}

.btn-cancel {
   width: 100%;
   padding: 14px;
   border: none;
   border-radius: 14px;
   background: #f1f5f9;
   color: var(--text-muted);
   font-weight: 700;
   font-size: 13px;
   cursor: pointer;
   margin-top: 5px;
   transition: background 0.2s;
}

.btn-cancel:active {
   background: #e2e8f0;
}

/* 9. RESPONSIVE DESIGN */
@media (max-width: 900px) {
   .main-layout {
      gap: 40px;
      grid-template-columns: 1fr;
   }

   .sidebar {
      order: 2;
      width: 100%;
      margin-top: 20px;
   }
}

@media (max-width: 768px) {

   /* PENYELARASAN MOBILE: Samakan padding kiri-kanan */
   .container,
   .header-container {
      padding-left: 16px !important;
      padding-right: 16px !important;
   }

   .main-header {
      height: auto;
      padding: 15px 0;
   }

   .header-container {
      flex-direction: column;
      gap: 15px;
   }

   /* Logo & tagline di mobile jadi rata tengah */
   .logo-section {
      align-items: center;
      text-align: center;
   }

   .main-nav {
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
   }
}

@media (max-width: 480px) {
   .brand-scroll-container {
      padding: 12px;
      max-height: 400px;
   }

   .grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
   }

   .card {
      padding: 12px 5px;
   }

   .card img {
      width: 40px;
      height: 30px;
   }

   .card span {
      font-size: 10px;
   }

   .variant-info-container {
      flex-direction: column;
      text-align: center;
      padding: 20px;
   }

   .model-title {
      font-size: 22px !important;
      text-align: center !important;
   }

   .model-description {
      text-align: center !important;
   }

   .spec-row {
      flex-direction: column;
      gap: 4px;
   }

   .spec-value {
      text-align: left;
   }

   .variant-tab-container {
      justify-content: center;
   }

   .variant-btn {
      flex: 1 1 calc(50% - 10px);
      text-align: center;
      font-size: 12px;
      padding: 10px 5px;
   }
}

/* 10. SKELETONS & OTHERS */
.site-footer {
   margin-top: 60px;
   padding: 40px 20px;
   border-top: 1px solid var(--border-color);
   text-align: center;
}

.site-footer p {
   font-size: 13px;
   color: var(--text-muted);
   font-weight: 500;
   margin: 0;
}

.skeleton {
   background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
   background-size: 200% 100%;
   animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
   0% {
      background-position: 200% 0;
   }

   100% {
      background-position: -200% 0;
   }
}

.sk-header {
   height: 120px;
   width: 100%;
   border-radius: 16px;
   margin-bottom: 20px;
}

.sk-drawer {
   height: 50px;
   width: 100%;
   border-radius: 12px;
   margin-bottom: 10px;
}

.sk-card {
   height: 110px;
   width: 100%;
   border-radius: var(--radius-md);
}

@media (max-width: 350px) {
   .models-list {
      grid-template-columns: 1fr;
   }
}

/* ===============================
 * 11. HERO SPECS (CARD LAYOUT - MODERNIZED)
 * =============================== */
.hero-specs-wrapper {
   margin-top: 10px;
   margin-bottom: 30px;
}

.hero-section-header h3 {
   font-size: 13px;
   font-weight: 800;
   text-transform: uppercase;
   color: var(--text-muted);
   letter-spacing: 1.2px;
   margin: 0 0 16px 4px;
   display: flex;
   align-items: center;
   gap: 8px;
}

.hero-section-header h3::after {
   content: "";
   flex: 1;
   height: 1px;
   background: var(--border-color);
   opacity: 0.6;
}

.hero-cards-grid {
   display: flex;
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
   gap: 16px;
}

.hero-card {
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-md);
   padding: 18px 20px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   position: relative;
   overflow: hidden;
   transition: all 0.2s ease;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.hero-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
   border-color: var(--primary);
}

/* Accent decoration */
.hero-card::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   width: 4px;
   background: var(--primary);
   opacity: 0;
   transition: opacity 0.2s;
}

.hero-card:hover::before {
   opacity: 1;
}

.hero-card-label {
   font-size: 11px;
   font-weight: 600;
   color: var(--text-muted);
   text-transform: uppercase;
   margin-bottom: 6px;
   letter-spacing: 0.5px;
}

.hero-card-value {
   font-size: 17px;
   font-weight: 800;
   color: var(--text-dark);
   line-height: 1.3;
   word-wrap: break-word;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
   .hero-cards-grid {
      grid-template-columns: repeat(2, 1fr);
      /* Force 2 columns */
      gap: 10px;
   }

   .hero-card {
      padding: 14px 12px;
   }

   .hero-card-value {
      font-size: 14px;
      /* Slightly smaller for mobile fitting */
   }

   .hero-card-label {
      font-size: 10px;
   }
}

/* (Sections 12 & 13 REMOVED - Replaced by responsive grid above) */

/* ===============================
 * 14. PROFESSIONAL SPECIFICATION SYSTEM (OtoDriveZone Edition)
 * =============================== */
.specs-tab-system {
   width: 100% !important;
   max-width: 100% !important;
   margin-top: 24px;
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.main-group-tabs {
   display: flex;
   background: var(--card-bg);
   border-bottom: 1px solid var(--border-color);
   padding: 10px 24px;
   gap: 15px;
}

.group-btn {
   padding: 14px 20px;
   border: none;
   background: transparent;
   font-size: 13px;
   font-weight: 800;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.5px;
   cursor: pointer;
   position: relative;
   transition: 0.2s;
}

.group-btn.active {
   color: var(--primary);
}

.group-btn.active::after {
   content: '';
   position: absolute;
   bottom: -1px;
   left: 0;
   width: 100%;
   height: 3px;
   background: var(--primary);
   border-radius: 10px 10px 0 0;
}

.spec-content-wrapper {
   display: flex !important;
   min-height: 480px;
   width: 100%;
}

.spec-tabs-nav {
   flex: 0 0 240px;
   display: flex !important;
   flex-direction: column !important;
   padding: 24px 12px;
   background: var(--bg-main);
   border-right: 1px solid var(--border-color);
   gap: 4px;
   box-sizing: border-box;
}

.spec-tab-link {
   width: 100%;
   padding: 12px 16px;
   background: transparent;
   border: 1px solid transparent;
   border-radius: var(--radius-md);
   font-size: 13px;
   font-weight: 600;
   color: var(--text-muted);
   text-align: left;
   cursor: pointer;
   transition: all 0.2s ease;
   text-transform: capitalize;
   white-space: normal;
}

.spec-tab-link:hover {
   color: var(--primary);
   background: rgba(0, 123, 255, 0.04);
}

.spec-tab-link.active {
   background: var(--card-bg);
   color: var(--primary);
   border-color: var(--border-color);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.spec-grid-container {
   flex: 1;
   display: flex !important;
   flex-direction: column !important;
   padding: 12px 0;
   background: var(--card-bg);
   min-width: 0;
}

.spec-item-box {
   display: flex !important;
   justify-content: space-between;
   align-items: flex-start;
   padding: 16px 32px;
   border-bottom: 1px solid #f1f5f9;
   gap: 24px;
   transition: background 0.2s;
}

.spec-item-box:hover {
   background: #fafafa;
}

.spec-item-box:last-child {
   border-bottom: none;
}

.spec-item-label {
   font-size: 14px;
   font-weight: 500;
   color: var(--text-muted);
   line-height: 1.5;
   flex: 1;
   word-break: break-word;
   text-transform: capitalize;
}

.spec-item-value {
   font-size: 14px;
   font-weight: 700;
   color: var(--text-dark);
   text-align: right;
   line-height: 1.5;
   flex: 1.2;
   white-space: normal;
   word-wrap: break-word;
   overflow-wrap: break-word;
}

.check-mark {
   color: #10b981;
   font-size: 16px;
   font-weight: bold;
}

@media (max-width: 900px) {
   .spec-tabs-nav {
      flex: 0 0 200px;
   }

   .spec-item-box {
      padding: 16px 20px;
   }
}

@media (max-width: 768px) {

   .main-layout,
   .main-content,
   .specs-tab-system,
   .spec-content-wrapper {
      display: block !important;
      min-width: 0 !important;
      width: 100% !important;
   }

   .spec-tabs-nav {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      padding: 12px 20px !important;
      gap: 8px !important;
      background: var(--bg-main) !important;
      border-right: none !important;
      border-bottom: 1px solid var(--border-color) !important;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
   }

   .spec-tabs-nav::-webkit-scrollbar {
      display: none;
   }

   .spec-tab-link {
      flex: 0 0 auto !important;
      width: auto !important;
      white-space: nowrap !important;
      padding: 8px 16px !important;
      font-size: 12px !important;
      border-radius: 50px !important;
      background: #ffffff !important;
      border: 1px solid var(--border-color) !important;
      text-align: center !important;
      box-shadow: none;
   }

   .spec-tab-link.active {
      background: var(--primary) !important;
      color: #ffffff !important;
      border-color: var(--primary) !important;
      box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15) !important;
   }

   .spec-grid-container {
      padding: 0 !important;
   }

   .spec-item-box {
      padding: 14px 20px !important;
      gap: 12px;
   }

   .spec-item-label {
      font-size: 12px !important;
      flex: 1;
   }

   .spec-item-value {
      font-size: 12px !important;
      flex: 1.4;
   }
}

/* Prevent scroll arrows from flickering on desktop (Hidden by default) */
.scroll-arrow {
   display: none;
}

@media (max-width: 768px) {

   /* Container pembungkus utama agar panah bisa diposisikan absolute */
   #subTabNav {
      position: relative !important;
      display: flex !important;
      align-items: center !important;
      background: var(--bg-main) !important;
      padding: 0 !important;
      /* Reset padding agar diatur di nav-inner */
   }

   /* Elemen yang melakukan scrolling */
   .nav-inner-scroll {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      /* Padding atas & bawah 12px sesuai request */
      /* Padding kiri & kanan dilebihkan (40px) agar tombol tidak tertutup panah */
      padding: 12px 40px !important;
      gap: 10px !important;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      scrollbar-width: none;
      /* Sembunyikan scrollbar di Firefox */
   }

   .nav-inner-scroll::-webkit-scrollbar {
      display: none !important;
      /* Sembunyikan scrollbar permanen karena sudah ada panah */
   }

   .spec-tab-link {
      flex: 0 0 auto !important;
      height: 40px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 18px !important;
      white-space: nowrap !important;
      border-radius: 50px !important;
      background: #ffffff !important;
      border: 1px solid var(--border-color) !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
   }

   .spec-tab-link.active {
      background: var(--primary) !important;
      color: #ffffff !important;
      border-color: var(--primary) !important;
   }

   /* Styling Tombol Panah */
   .scroll-arrow {
      position: absolute !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      width: 32px !important;
      height: 32px !important;
      background: white !important;
      border: 1px solid var(--border-color) !important;
      border-radius: 50% !important;
      z-index: 10 !important;
      display: flex;
      /* Removed !important to allow JS toggling */
      align-items: center !important;
      justify-content: center !important;
      color: var(--primary) !important;
      font-size: 14px !important;
      font-weight: bold !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
      cursor: pointer;
   }

   .scroll-arrow.left {
      left: 4px !important;
   }

   .scroll-arrow.right {
      right: 4px !important;
   }
}

/* ===============================
 * 15. HERO IMAGE & GALLERY
 * =============================== */

/* Hero Image Section */
#heroImageContainer {
   margin-top: 24px;
   margin-bottom: 24px;
   width: 100%;
}

.hero-image-main {
   width: 100%;
   height: auto;
   max-height: 550px;
   object-fit: cover;
   border-radius: var(--radius-lg);
   border: 1px solid var(--border-color);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
   background: #f0f0f0;
   /* Placeholder color */
}

/* Gallery Section */
.gallery-wrapper {
   margin-top: 48px;
   padding-top: 32px;
   border-top: 1px solid var(--border-color);
}

.gallery-title {
   font-size: 1.5rem;
   font-weight: 800;
   margin-bottom: 24px;
}

.gallery-group-title {
   font-size: 13px;
   font-weight: 800;
   text-transform: uppercase;
   color: var(--text-muted);
   letter-spacing: 1.2px;
   margin: 24px 0 16px 0;
   display: flex;
   align-items: center;
   gap: 8px;
   text-transform: capitalize;
}

.gallery-slider {
   display: flex;
   gap: 16px;
   overflow-x: auto;
   padding-bottom: 16px;
   -webkit-overflow-scrolling: touch;
   scrollbar-width: thin;
   scroll-snap-type: x mandatory;
   max-width: 100%;
}

.gallery-slider::-webkit-scrollbar {
   height: 8px;
}

.gallery-slider::-webkit-scrollbar-thumb {
   background: #cbd5e0;
   border-radius: 10px;
}

.gallery-item {
   flex: 0 0 280px;
   background: var(--card-bg);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-md);
   overflow: hidden;
   transition: all 0.2s ease;
   cursor: pointer;
   scroll-snap-align: start;
}

.gallery-item:hover {
   transform: translateY(-4px);
   box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.08);
   border-color: var(--primary);
}

.gallery-item img {
   width: 100%;
   height: 160px;
   object-fit: cover;
   display: block;
   background: #f0f0f0;
}

.gallery-item-label {
   display: block;
   padding: 12px;
   font-size: 12px;
   font-weight: 600;
   text-align: center;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   text-transform: capitalize;
}

/* Image Modal (Lightbox) */
.image-modal {
   display: none;
   position: fixed;
   z-index: 10002;
   padding-top: 60px;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
   margin: auto;
   display: block;
   width: 90%;
   max-width: 1000px;
   animation: zoom 0.3s;
}

@keyframes zoom {
   from {
      transform: scale(0)
   }

   to {
      transform: scale(1)
   }
}

.image-modal-close {
   position: absolute;
   top: 15px;
   right: 35px;
   color: #f1f1f1;
   font-size: 40px;
   font-weight: bold;
   transition: 0.3s;
   cursor: pointer;
}

@media (max-width: 600px) {
   .gallery-item {
      flex: 0 0 220px;
   }

   .image-modal-content {
      width: 100%;
   }
}