/* 
   OtoMoto Refined 1:1 Architecture
   - Dual Fixed Navigation (Main Header + Utility Bar)
   - Transparent Content Modules
   - Highlighted White Sidebar Cards
*/

:root {
  --om-bg: #f2f4f5; /* Original background */
  --om-white: #ffffff;
  --om-blue: #003785;
  --om-blue-hover: #002a66;
  --om-text-main: #1e293b;
  --om-text-body: #334155;
  --om-text-muted: #64748b;
  --om-border: #f1f5f9;
  --header-height: 65px;
  --nav-height: 60px;
}

body {
  background-color: var(--om-bg);
}

/* Ensure the page content has enough space for the sticky main header */
.offer-details-page {
  /* Exact height of headers, no extra buffer */
  padding-top: calc(var(--header-height) + var(--nav-height) + 5px);
  padding-bottom: 80px;
}

/* --- Fixed Utility/Gallery Bar --- */
.om-nav-wrapper {
  background: var(--om-bg);
  border-bottom: 1px solid var(--om-border);
  padding: 0;
  height: var(--nav-height);
  width: 100%;
  position: fixed;
  top: var(--header-height); /* Sticks below the main header */
  left: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
}

.om-nav-container {
  max-width: none !important;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .om-nav-container {
    padding: 0 20px;
  }
}

.om-back-link {
  text-decoration: none;
  color: var(--om-text-body);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-utility-actions {
  display: flex;
  gap: 16px; /* Reduced gap since buttons are larger */
  align-items: center;
}

.om-utility-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--om-text-body);
  font-size: 18px;
}

.om-utility-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--om-blue);
}

.om-utility-icon-btn.fav-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.1);
  background: rgba(239, 68, 68, 0.05);
}

.om-utility-icon-btn.fav-active i {
  font-weight: 900;
  color: #ef4444 !important; /* Force color on icon */
}

/* --- Layout Grid --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.om-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* --- Left Side: Transparent Sections --- */
.om-main-column {
  min-width: 0; /* Prevent grid blowout */
  background: transparent;
}

.om-section-block {
  padding: 32px 0;
  background: transparent; /* Reverted to avoid blending */
  border-radius: 0;
  border-bottom: 1px solid var(--om-border);
  margin-bottom: 0;
}

/* Remove top padding for the first section (gallery) to pull it up */
.om-section-block.om-desktop-gallery {
  padding-top: 0; /* Aligned with sidebar start */
}

.om-section-block:last-child {
  border-bottom: none;
}

.om-section-title {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--om-text-main);
}

.om-gallery-stage {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  background: transparent; /* Removed white background */
  border: none; /* Removed border */
  border-radius: 12px;
  overflow: hidden;
}

.om-gallery-stage img {
  height: clamp(400px, 60vh, 600px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s ease;
  cursor: zoom-in;
  border-radius: 12px;
}

.om-gallery-stage img.fading {
  opacity: 0;
}

.om-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.om-nav-btn.l {
  left: 20px;
}
.om-nav-btn.r {
  right: 20px;
}

.om-thumbs-strip {
  padding: 16px 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Thumbs Strip */
.om-thumbs-strip::-webkit-scrollbar {
  height: 6px;
}
.om-thumbs-strip::-webkit-scrollbar-track {
  background: transparent;
}
.om-thumbs-strip::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}
.om-thumbs-strip::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.om-thumb-box {
  width: 110px;
  height: 75px;
  flex-shrink: 0;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.om-thumb-box.active {
  border-color: var(--om-blue);
}
.om-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icon Matrix */
.om-icon-matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}
.om-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.om-icon-item i {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
}
.om-icon-item span {
  font-size: 11px;
  color: var(--om-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.om-icon-item strong {
  font-size: 14px;
  color: var(--om-text-main);
  margin-top: 4px;
}

/* Details Table */
.om-details-grid-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}
.om-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.om-detail-row .lbl {
  color: var(--om-text-muted);
}
.om-detail-row .val {
  color: var(--om-text-main);
  font-weight: 500;
}

/* --- Sidebar: White Content Cards --- */
.om-sidebar-column {
  width: 320px;
  flex-shrink: 0;

  /* Scroll Block / Sticky Sidebar */
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + 40px);
  align-self: start;
  height: fit-content;
}

.om-white-card {
  background: #ffffff;
  border-radius: 5px;
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: clamp(16px, 3vw, 24px);
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.om-card-title {
  font-size: clamp(18px, 4vw, 22px); /* Smaller */
  font-weight: 700;
  color: var(--om-text-main);
  margin: 0 0 16px 0;
}

.om-card-price {
  font-size: clamp(26px, 5vw, 36px); /* Smaller */
  font-weight: 700;
  color: var(--om-text-main);
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.om-card-price span {
  font-size: 18px;
  color: var(--om-text-muted);
  font-weight: 400;
}

.om-info-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.om-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--om-text-body);
}

.om-info-item i {
  color: #008329;
  font-size: 16px;
}

.om-btn-primary {
  display: block;
  width: 100%;
  padding: clamp(12px, 2.5vw, 16px);
  background: transparent;
  color: var(--om-blue);
  text-align: center;
  text-decoration: none;
  font-weight: 600 !important;
  font-size: clamp(12px, 2vw, 14px);
  border-radius: clamp(8px, 1.5vw, 12px);
  border: 1px solid var(--om-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.om-btn-primary:hover {
  background: var(--om-blue);
  color: #fff;
}

.om-btn-outline {
  display: block;
  width: 100%;
  padding: clamp(12px, 2.5vw, 16px);
  background: transparent;
  color: var(--om-text-muted);
  text-align: center;
  text-decoration: none;
  font-weight: 600 !important;
  font-size: clamp(12px, 2vw, 14px);
  border-radius: clamp(8px, 1.5vw, 12px);
  border: 1px solid var(--om-border);
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.om-btn-outline:hover {
  border-color: var(--om-text-muted);
  color: var(--om-text-main);
}

.om-sidebar-map-wrap {
  margin-top: 32px;
  border-top: 1px solid #f0f0f0;
  padding-top: 32px;
}

.om-map-box {
  height: 180px;
  background: #eef1f3;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.om-location-pin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--om-blue);
}

/* Equipment Accordion */
.om-eq-accordion {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.om-eq-cat-item {
  border: none;
  border-radius: 5px;
  background: #f8fafc; /* Light background from screenshot */
  overflow: hidden;
  margin-bottom: 8px;
}

.om-eq-cat-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f8fafc;
  transition: background 0.2s;
}

.om-eq-cat-header:hover {
  background: #f0f2f4;
}

.om-eq-cat-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--om-text-main);
}

.om-eq-cat-header i {
  font-size: 12px;
  color: var(--om-blue);
  transition: transform 0.3s;
}

.om-eq-cat-item.active .om-eq-cat-header i {
  transform: rotate(180deg);
}

.om-eq-cat-content {
  display: none;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #f2f4f5;
}

.om-eq-cat-item.active .om-eq-cat-content {
  display: block;
}

.om-eq-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 24px;
}


.om-eq-single {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--om-text-body);
}

.om-eq-single i {
  color: var(--om-blue);
  margin-top: 3px;
  font-size: 11px;
}

/* Seller Info Section (Otomoto Style) */
.om-seller-details-box {
  margin-top: 60px;
  padding: 40px;
  background: #f9fafc;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.om-seller-name-big {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--om-text-main);
}

.om-seller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.om-seller-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
}

.om-seller-badge i {
  color: #666;
  font-size: 14px;
}

.om-legal-link {
  font-size: 13px;
  color: #0066cc;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 30px;
}

.om-legal-link:hover {
  text-decoration: underline;
}

.om-seller-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--om-border);
  border-radius: 5px;
  padding: 4px; /* Minimal padding */
  margin-bottom: 20px;
  max-width: 100%;
  max-height: 120px;
  width: fit-content;
}

.om-seller-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.om-contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.om-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.om-btn-contact-main {
  background: #ebf2fa;
  color: var(--om-blue);
  border: 1px solid transparent;
  padding: 14px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.om-btn-contact-main:hover {
  background: #e1eaf5;
}

.om-btn-numbers {
  background: #fff;
  color: var(--om-blue);
  border: 1px solid var(--om-blue);
  padding: 14px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.om-more-contact-wrap h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

.om-seller-link-more {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0066cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.om-map-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--om-text-main);
}

.om-map-addr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #0066cc;
  margin-bottom: 20px;
  text-decoration: none;
}

.om-full-map-box {
  width: 100%;
  height: 350px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

/* --- Description Expandable Logic --- */
.om-description-container {
  position: relative;
  max-height: 200px; /* Shortened version */
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 15px;
  color: var(--om-text-body);
  line-height: 1.8;
}

.om-description-container.expanded {
  max-height: 2000px; /* Big enough for any description */
}

.om-description-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(242, 244, 245, 0),
    rgba(242, 244, 245, 1)
  );
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.om-description-container.expanded .om-description-overlay {
  opacity: 0;
}

.om-btn-read-more {
  background: none;
  border: none;
  color: var(--om-blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.om-btn-read-more i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.om-btn-read-more.active i {
  transform: rotate(180deg);
}

/* --- Mobile Elements --- */
.om-mobile-header {
  display: none; /* Desktop hidden */
  margin-bottom: 24px;
}

.om-mobile-title {
  font-size: clamp(24px, 6vw, 32px); /* Much larger title */
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: var(--om-text-main);
}

.om-mobile-price {
  display: none;
}

/* ... */

/* --- Mobile Conversion Block & New Mobile Elements (Hidden by default on Desktop) --- */
.om-mobile-conversion-block,
.om-gallery-section,
.om-sticky-bottom-bar {
  display: none;
}

@media (min-width: 1025px) {
  .om-desktop-header {
    display: block;
  }
}

/* --- REFINED PROFESSIONAL MOBILE UI --- */
@media (max-width: 1024px) {
  .om-desktop-header {
    display: none !important;
  }
  /* Hide Desktop Gallery */
  .om-desktop-gallery {
    display: none;
  }

  /* --- REFINED PROFESSIONAL MOBILE UI (Reference Style) --- */

  .offer-details-page {
    padding-top: calc(var(--header-height) + 16px); /* No nav bar on mobile */
    padding-bottom: 100px;
  }

  .om-nav-wrapper {
    display: none !important; /* Hide utility nav on mobile */
  }

  /* Layout: Full Width Stack */
  .container {
    padding: 0 16px !important; /* Small side padding for text content */
  }

  .om-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .om-main-column,
  .om-sidebar-column {
    width: 100%;
    display: block;
  }
  .om-sidebar-column {
    order: 10;
  }

  /* 1. EDGE-TO-EDGE GALLERY */
  .om-gallery-section {
    display: block;
    margin: 0 -16px 20px -16px; /* Break out of container padding */
  }

  .om-gallery-stage {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 50vh; /* Prevent filling whole screen */
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
  }

  .om-gallery-stage img {
    width: 100%;
    height: 100%;
    max-height: 50vh; /* Sync with stage */
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }

  /* Photo Counter Badge */
  .om-image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
  }

  .om-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #000;
    border-radius: 50%;
    opacity: 0.8;
  }
  .om-thumbs-strip {
    display: none;
  } /* Hide thumbs on mobile like reference */

  /* 2. REFERENCE HEADER TYPOGRAPHY */
  .om-mobile-info-container {
    padding: 16px 15px;
    background: var(--om-bg);
    text-align: left; /* Left align like reference */
  }

  .om-mobile-title-ref {
    font-size: 18px;
    font-weight: 400; /* Normal weight */
    margin: 0 0 4px 0;
    color: var(--om-text-main);
    line-height: 1.3;
  }

  .om-mobile-subtitle-ref {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
  }

  .om-mobile-price-ref {
    font-size: 24px;
    font-weight: 700;
    color: var(--om-text-main);
  }

  /* Ensure conversion elements and sidebar cards are visible on mobile */
  .om-mobile-header,
  .om-mobile-conversion-block {
    display: block;
    margin-bottom: 20px;
  }
  
  .om-sidebar-column .om-white-card:first-child {
    display: block;
    margin-bottom: 20px;
  }


  /* 3. STICKY BOTTOM BAR */
  .om-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8fafc; /* Match light desktop accent */
    border-top: 1px solid #f1f5f9;
    padding: 12px 16px;
    display: grid; /* Show on mobile */
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .om-sticky-bottom-bar button {
    height: 48px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
  }

  .om-sticky-bottom-bar .om-btn-primary {
    background: #ebf2fa; /* Light theme for rezerwuj */
    color: var(--om-blue);
    border: 1px solid transparent;
    text-transform: uppercase;
  }

  .om-sticky-bottom-bar .om-btn-numbers {
    background: #ffffff;
    color: var(--om-blue);
    border: 1px solid var(--om-blue);
  }

  /* 4. OPTIMIZED SECTIONS */
  .om-section-block {
    padding: 24px 0;
  }

  .om-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
  }

  /* 5. CLEAN ICON GRID */
  .om-icon-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .om-icon-item {
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 16px;
    gap: 4px;
    text-align: center;
    align-items: center;
  }

  .om-icon-item i {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--om-blue);
  }
  .om-icon-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--om-text-muted);
  }
  .om-icon-item strong {
    font-size: 14px;
    color: var(--om-text-main);
    font-weight: 700;
  }

  /* 6. STANDARD TABLE */
  .om-details-grid-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .om-details-grid-table .col {
    background: transparent;
    padding: 0;
    border: none;
  }

  .om-detail-row {
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }

  .om-detail-row .lbl {
    font-size: 14px;
  }

  /* 7. DESCRIPTION */
  .om-description-container {
    font-size: 15px;
    line-height: 1.6;
  }

  /* 8. BUTTONS */
  .om-btn-primary,
  .om-btn-outline,
  .om-btn-contact-main,
  .om-btn-numbers {
    width: 100%;
  }

  .om-btn-read-more {
    font-size: 14px;
    padding: 10px 0;
    justify-content: flex-start;
  }

  /* Align other centered elements back to left */
  .om-seller-name-big {
    text-align: left;
  }
  .om-seller-badges {
    justify-content: flex-start;
  }
  .om-legal-link {
    text-align: left;
    margin: 0 0 20px 0;
  }

  .om-contact-grid {
    margin-top: 20px;
  }
  .om-more-contact-wrap {
    align-items: flex-start;
    text-align: left;
  }
  .om-map-section {
    text-align: left;
  }
  .om-map-header {
    justify-content: flex-start;
  }
  .om-map-addr {
    justify-content: flex-start;
  }

  /* Equipment Mobile */
  .om-eq-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Reviews Preview Mobile */
  .om-reviews-preview-container {
    padding: 20px !important;
    margin: 30px 0 !important;
  }

  .om-reviews-preview-container > div {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .om-review-item-thin {
    padding: 10px 0 !important;
  }

  .om-review-text {
    font-size: 12px !important;
  }
}


/* --- Lightbox Gallery --- */
.om-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

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

.om-lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.om-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.om-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 12001;
  transition: transform 0.2s;
}

.om-lightbox-close:hover {
  transform: scale(1.1);
  color: #ddd;
}

.om-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 12001;
}

.om-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.om-lightbox-nav.l {
  left: 30px;
}

.om-lightbox-nav.r {
  right: 30px;
}

.om-lightbox-counter {
  color: white;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .om-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
  }
  .om-lightbox-nav.l {
    left: 10px;
  }
  .om-lightbox-nav.r {
    right: 10px;
  }
  .om-lightbox-close {
    top: 10px;
    right: 10px;
  }
}

.om-lightbox-content img {
  max-width: 95vw !important;
  max-height: 90vh !important;
  object-fit: contain !important;
}

.om-lightbox {
  z-index: 99999 !important;
}

/* --- Reviews Thin Style & Modal Refinement --- */
.om-review-item-thin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.om-review-item-thin:last-child {
  border-bottom: none;
}

.om-review-star {
  color: #f59e0b;
  font-size: 10px !important;
  margin-top: 4px;
}

.om-review-author {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--om-text-main) !important;
  margin-bottom: 2px !important;
}

.om-review-text {
  font-size: 13px !important;
  color: var(--om-text-muted) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.om-reviews-modal-content {
  background: #fff;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .om-reviews-modal-content {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
  }
  
  .om-modal-header h2 {
    font-size: 16px !important;
  }
}


.om-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.om-modal-body {
  padding: 0 24px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.om-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.om-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}
