@import url("../base/variables.5e7fedb82cda.css");
@import url("../base/reset.dae278e6190d.css");
@import url("../base/typography.c84c9b472a75.css");
@import url("../components/bottom-nav.55a43022d6a3.css");
@import url("../components/desktop-sidebar.535d177e9251.css");

/* ==========================================================================
   CSS Variables & Page Scope
   ========================================================================== */
:root {
  --explore-header-height: 60px;
  --explore-categories-height: 52px;
  --explore-gap-mobile: 2px;
  --explore-gap-desktop: 4px;
  --explore-max-width: 980px;
  --explore-tile-radius: 2px;
}

body.page-explore {
  background-color: var(--bg-main, #f7f3ee);
  color: var(--text-primary, #1e1e1c);
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body.theme-dark.page-explore {
  background-color: #0c0c0e;
  color: #f3f3f3;
}

@media (min-width: 768px) {
  body.page-explore {
    padding-bottom: 0;
  }
}

/* Container */
.explore-wrapper {
  max-width: var(--explore-max-width);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   Pull to Refresh Indicator (Mobile)
   ========================================================================== */
.explore-ptr {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card, #ffffff);
  padding: 8px 18px;
  border-radius: var(--radius-full, 999px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.explore-ptr.is-visible {
  transform: translate(-50%, 14px);
}

.explore-ptr.is-loading .explore-ptr__icon {
  animation: exploreSpin 0.8s linear infinite;
}

.explore-ptr__icon {
  color: var(--primary, #8b5e3c);
  font-size: 0.95rem;
}

.explore-ptr__text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary, #666);
}

@keyframes exploreSpin {
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Explore Header & Instagram Search Bar
   ========================================================================== */
.explore-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(247, 243, 238, 0.92);
  padding: 8px 12px 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-dark .explore-header {
  background-color: rgba(12, 12, 14, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.explore-header.is-hidden {
  transform: translateY(-100%);
}

.explore-header__container {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--explore-max-width);
  margin: 0 auto;
}

.explore-header__search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--bg-card, #ffffff);
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  height: 42px;
  transition: all 0.2s ease;
  position: relative;
}

body.theme-dark .explore-header__search-wrapper {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.explore-header__search-wrapper:focus-within {
  border-color: var(--primary, #8b5e3c);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
  background-color: var(--bg-card, #ffffff);
}

body.theme-dark .explore-header__search-wrapper:focus-within {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #d4a373;
}

.explore-header__search-icon {
  color: var(--text-muted, #999);
  font-size: 0.95rem;
  margin-inline-end: 8px;
  flex-shrink: 0;
}

.explore-header__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-primary, #1e1e1c);
  font-family: inherit;
  min-width: 0;
  padding: 0;
}

body.theme-dark .explore-header__search-input {
  color: #fff;
}

.explore-header__search-input::-webkit-search-cancel-button {
  display: none;
}

.explore-header__search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted, #999);
  font-size: 1rem;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.explore-header__search-clear:hover {
  color: var(--text-primary, #1e1e1c);
}

.explore-header__filter-btn {
  position: relative;
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #555);
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.theme-dark .explore-header__filter-btn {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ddd;
}

.explore-header__filter-btn:hover {
  border-color: var(--primary, #8b5e3c);
  color: var(--primary, #8b5e3c);
}

.explore-header__filter-btn.has-filters {
  border-color: var(--primary, #8b5e3c);
  color: var(--primary, #8b5e3c);
  background: rgba(139, 94, 60, 0.1);
}

.explore-header__filter-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background-color: var(--secondary, #c08552);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.explore-header__filter-badge[data-count="0"] {
  display: none;
}

/* Search Suggestions Popup */
.explore-search-suggestions {
  padding: 10px 4px 4px;
  animation: slideSuggestions 0.2s ease;
}

@keyframes slideSuggestions {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.explore-search-suggestions__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  margin-bottom: 8px;
}

.explore-search-suggestions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.js-search-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  color: var(--text-primary, #222);
  font-size: 0.82rem;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition: all 0.15s ease;
}

body.theme-dark .js-search-suggestion {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eee;
}

.js-search-suggestion i {
  color: #e65100;
}

.js-search-suggestion:hover {
  border-color: var(--primary, #8b5e3c);
  background: rgba(139, 94, 60, 0.08);
}

/* ==========================================================================
   Category Chips Bar
   ========================================================================== */
.explore-categories {
  position: relative;
  padding: 8px 12px 10px;
  overflow: hidden;
  background: transparent;
}

.explore-categories__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.explore-categories__list::-webkit-scrollbar {
  display: none;
}

.explore-categories__item {
  flex-shrink: 0;
}

.explore-categories__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-full, 999px);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary, #444);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-dark .explore-categories__btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.explore-categories__btn:hover {
  background: rgba(139, 94, 60, 0.08);
  border-color: var(--primary, #8b5e3c);
  color: var(--primary, #8b5e3c);
}

.explore-categories__btn.is-active {
  background: var(--primary, #8b5e3c);
  border-color: var(--primary, #8b5e3c);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(139, 94, 60, 0.3);
}

body.theme-dark .explore-categories__btn.is-active {
  background: #d4a373;
  border-color: #d4a373;
  color: #121212;
  box-shadow: 0 2px 8px rgba(212, 163, 115, 0.35);
}

.explore-categories__icon {
  font-size: 0.85rem;
}

.explore-categories__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
}

.explore-categories__fade--start {
  right: 0;
  background: linear-gradient(to left, var(--bg-main, #f7f3ee), transparent);
}

.explore-categories__fade--end {
  left: 0;
  background: linear-gradient(to right, var(--bg-main, #f7f3ee), transparent);
}

body.theme-dark .explore-categories__fade--start {
  background: linear-gradient(to left, #0c0c0e, transparent);
}

body.theme-dark .explore-categories__fade--end {
  background: linear-gradient(to right, #0c0c0e, transparent);
}

/* ==========================================================================
   Main Explore Grid (Instagram 3-Column Asymmetric Rhythm)
   ========================================================================== */
.explore-main-content {
  padding: 0 0 30px;
  min-height: 60vh;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: var(--explore-gap-mobile);
  padding: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .explore-grid {
    gap: var(--explore-gap-desktop);
    padding: 0 4px;
  }
}

/* Explore Tile */
.explore-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #1a1a1e;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--explore-tile-radius);
  transition: transform 0.25s ease;
}

/* Classic Instagram 10-Item Repeating Pattern:
   - Item 3 (3rd item of first half): Column 3, Span 2 Rows
   - Item 6 (1st item of second half): Column 1, Span 2 Rows
*/
.explore-tile--tall,
.explore-tile:nth-child(10n + 3) {
  grid-column: 3;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.explore-tile:nth-child(10n + 6) {
  grid-column: 1;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.explore-tile.is-hidden-post {
  display: none !important;
}

/* Media Box */
.explore-tile__media-box {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.explore-tile__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background-color: #222;
}

.explore-tile:hover .explore-tile__media {
  transform: scale(1.04);
}

/* Corner Badges */
.explore-tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.explore-tile__badge--video i {
  font-size: 1rem;
}

.explore-tile__price-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.explore-tile__price-tag i {
  color: #e2a85c;
  font-size: 0.75rem;
}

/* Desktop Hover Overlay (Instagram Overlay) */
.explore-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

@media (min-width: 768px) {
  .explore-tile:hover .explore-tile__overlay {
    opacity: 1;
  }
}

.explore-tile__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.explore-tile__stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.explore-tile__stat i {
  font-size: 1.15rem;
}

/* Double-Tap Heart Animation */
.explore-tile__double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: #ffffff;
  font-size: 3.5rem;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(225, 48, 108, 0.8));
  opacity: 0;
}

.explore-tile__double-tap-heart.is-animating {
  animation: heartPop 0.8s ease forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; color: #ff3040; }
  60% { transform: translate(-50%, -50%) scale(1); opacity: 1; color: #ff3040; }
  100% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
}

/* ==========================================================================
   Empty State & Infinite Loader
   ========================================================================== */
.explore-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary, #666);
}

.explore-empty__icon {
  font-size: 3.5rem;
  color: var(--primary, #8b5e3c);
  margin-bottom: 16px;
  opacity: 0.8;
}

.explore-empty h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary, #1e1e1c);
}

body.theme-dark .explore-empty h3 {
  color: #fff;
}

.explore-empty p {
  font-size: 0.9rem;
  color: var(--text-muted, #888);
  margin-bottom: 20px;
}

.explore-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary, #8b5e3c);
  color: #fff;
  border: none;
  border-radius: var(--radius-full, 999px);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.explore-empty__btn:hover {
  background: var(--secondary, #c08552);
  transform: translateY(-1px);
}

.explore-loader {
  display: none;
  justify-content: center;
  padding: 30px 0;
}

.explore-loader.is-active {
  display: flex;
}

.explore-loader__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 94, 60, 0.2);
  border-top-color: var(--primary, #8b5e3c);
  border-radius: 50%;
  animation: exploreSpin 0.7s linear infinite;
}

/* ==========================================================================
   Instagram Split-Screen Desktop Modal
   ========================================================================== */
.explore-desktop-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-desktop-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.explore-desktop-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.explore-desktop-modal__content {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1020px;
  height: 84vh;
  max-height: 740px;
  background: var(--bg-card, #ffffff);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-dark .explore-desktop-modal__content {
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-desktop-modal.is-open .explore-desktop-modal__content {
  transform: scale(1);
}

.explore-desktop-modal__close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.explore-desktop-modal__close-btn:hover {
  background: rgba(220, 53, 69, 0.85);
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

/* Media Side */
.explore-desktop-modal__media-side {
  flex: 1.35;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.explore-desktop-modal__media-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.explore-desktop-modal__main-img,
.explore-desktop-modal__main-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.explore-desktop-modal__main-img[hidden],
.explore-desktop-modal__main-video[hidden] {
  display: none !important;
}

/* Info Side */
.explore-desktop-modal__info-side {
  flex: 1;
  min-width: 360px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #ffffff);
  border-inline-start: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

body.theme-dark .explore-desktop-modal__info-side {
  background: #18181c;
  border-inline-start-color: rgba(255, 255, 255, 0.08);
}

/* Vendor Header in Modal */
.explore-desktop-modal__vendor-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

body.theme-dark .explore-desktop-modal__vendor-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.explore-desktop-modal__vendor-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.explore-desktop-modal__vendor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary, #8b5e3c);
  flex-shrink: 0;
}

.explore-desktop-modal__vendor-name {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary, #1e1e1c);
}

body.theme-dark .explore-desktop-modal__vendor-name {
  color: #fff;
}

.explore-desktop-modal__vendor-name .icon-verified {
  color: #0095f6;
  font-size: 0.85rem;
}

.explore-desktop-modal__vendor-location {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  display: block;
}

.explore-desktop-modal__vendor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-desktop-modal__follow-btn {
  background: transparent;
  border: 1px solid var(--primary, #8b5e3c);
  color: var(--primary, #8b5e3c);
  padding: 5px 12px;
  border-radius: var(--radius-full, 999px);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.explore-desktop-modal__follow-btn:hover {
  background: var(--primary, #8b5e3c);
  color: #fff;
}

.explore-desktop-modal__follow-btn.is-following {
  background: rgba(139, 94, 60, 0.12);
  border-color: transparent;
  color: var(--text-secondary, #666);
}

.explore-desktop-modal__more-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #888);
  font-size: 1.1rem;
  padding: 6px;
  cursor: pointer;
}

/* Scroll Area (Caption & Comments) */
.explore-desktop-modal__scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  scrollbar-width: thin;
}

.explore-desktop-modal__caption-block {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

body.theme-dark .explore-desktop-modal__caption-block {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.explore-desktop-modal__caption-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.explore-desktop-modal__caption-content {
  flex: 1;
}

.explore-desktop-modal__caption-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary, #1e1e1c);
  margin-bottom: 4px;
}

body.theme-dark .explore-desktop-modal__caption-text {
  color: #e5e5e5;
}

.explore-desktop-modal__caption-text strong {
  margin-inline-end: 6px;
  color: var(--text-primary, #1e1e1c);
}

body.theme-dark .explore-desktop-modal__caption-text strong {
  color: #fff;
}

.explore-desktop-modal__caption-time {
  font-size: 0.72rem;
  color: var(--text-muted, #888);
}

/* Comments in Modal */
.explore-desktop-modal__comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explore-comment {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

.explore-comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.explore-comment__body {
  flex: 1;
}

.explore-comment__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.explore-comment__author {
  font-weight: 700;
  color: var(--text-primary, #1e1e1c);
  font-size: 0.85rem;
}

body.theme-dark .explore-comment__author {
  color: #fff;
}

.explore-comment__time {
  font-size: 0.7rem;
  color: var(--text-muted, #888);
}

.explore-comment__text {
  color: var(--text-secondary, #333);
  line-height: 1.45;
  margin-bottom: 4px;
}

body.theme-dark .explore-comment__text {
  color: #ccc;
}

.explore-comment__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explore-comment__action {
  background: transparent;
  border: none;
  color: var(--text-muted, #888);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.explore-comment__action.is-liked {
  color: #ff3040;
}

/* Modal Footer */
.explore-desktop-modal__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  background: var(--bg-card, #ffffff);
}

body.theme-dark .explore-desktop-modal__footer {
  background: #18181c;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.explore-desktop-modal__actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.explore-desktop-modal__actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.explore-desktop-modal__action-btn {
  background: transparent;
  border: none;
  color: var(--text-primary, #1e1e1c);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

body.theme-dark .explore-desktop-modal__action-btn {
  color: #fff;
}

.explore-desktop-modal__action-btn:hover {
  transform: scale(1.15);
}

.explore-desktop-modal__action-btn.is-liked i {
  color: #ff3040;
}

.explore-desktop-modal__action-btn.is-saved i {
  color: var(--primary, #8b5e3c);
}

body.theme-dark .explore-desktop-modal__action-btn.is-saved i {
  color: #d4a373;
}

.explore-desktop-modal__likes-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #1e1e1c);
  margin-bottom: 10px;
}

body.theme-dark .explore-desktop-modal__likes-info {
  color: #fff;
}

/* Modal Commerce Bar */
.explore-desktop-modal__commerce-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 94, 60, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(139, 94, 60, 0.15);
}

body.theme-dark .explore-desktop-modal__commerce-bar {
  background: rgba(212, 163, 115, 0.08);
  border-color: rgba(212, 163, 115, 0.18);
}

.explore-desktop-modal__price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.explore-desktop-modal__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary, #8b5e3c);
}

body.theme-dark .explore-desktop-modal__price {
  color: #d4a373;
}

.explore-desktop-modal__currency {
  font-size: 0.78rem;
  color: var(--text-secondary, #666);
}

.explore-desktop-modal__cart-btn {
  background: var(--primary, #8b5e3c);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.explore-desktop-modal__cart-btn:hover {
  background: var(--secondary, #c08552);
  transform: translateY(-1px);
}

.explore-desktop-modal__cart-btn.is-added {
  background: #2e7d32;
}

/* Quick Comment Input */
.explore-desktop-modal__comment-form {
  margin-top: 10px;
  width: 100%;
}

.explore-desktop-modal__comment-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface, #f5f4f0);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .explore-desktop-modal__comment-input-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.explore-desktop-modal__comment-input-wrap:focus-within {
  border-color: var(--primary, #8b5e3c);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
  background: #ffffff;
}

body.theme-dark .explore-desktop-modal__comment-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: #d4a373;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.18);
}

.explore-desktop-modal__comment-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary, #1e1e1c);
  padding: 6px 4px;
  text-align: right;
}

body.theme-dark .explore-desktop-modal__comment-input {
  color: #fff;
}

.explore-desktop-modal__comment-input::placeholder {
  color: var(--text-muted, #999);
  font-size: 0.84rem;
}

.explore-desktop-modal__comment-submit {
  background: var(--primary, #8b5e3c);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(139, 94, 60, 0.25);
  flex-shrink: 0;
}

.explore-desktop-modal__comment-submit:hover {
  background: var(--secondary, #a36d44);
  transform: scale(1.03);
}

.explore-desktop-modal__comment-submit:active {
  transform: scale(0.96);
}

body.theme-dark .explore-desktop-modal__comment-submit {
  background: #d4a373;
  color: #1a1a1a;
}

/* ==========================================================================
   Mobile Comments Bottom Sheet (Instagram Drawer)
   ========================================================================== */
.explore-comments-sheet {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.explore-comments-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.explore-comments-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.explore-comments-sheet__panel {
  position: relative;
  z-index: 2;
  background: var(--bg-card, #ffffff);
  border-radius: 16px 16px 0 0;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

body.theme-dark .explore-comments-sheet__panel {
  background: #18181c;
}

.explore-comments-sheet.is-open .explore-comments-sheet__panel {
  transform: translateY(0);
}

.explore-comments-sheet__handle {
  width: 38px;
  height: 4px;
  background: var(--border-color, rgba(0, 0, 0, 0.2));
  border-radius: 2px;
  margin: 8px auto 4px;
}

body.theme-dark .explore-comments-sheet__handle {
  background: rgba(255, 255, 255, 0.25);
}

.explore-comments-sheet__header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

body.theme-dark .explore-comments-sheet__header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.explore-comments-sheet__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary, #1e1e1c);
}

body.theme-dark .explore-comments-sheet__title {
  color: #fff;
}

.explore-comments-sheet__count {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  font-weight: 500;
}

.explore-comments-sheet__post-meta {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  margin: 2px 0 0;
}

.explore-comments-sheet__close {
  background: transparent;
  border: none;
  color: var(--text-secondary, #666);
  font-size: 1.1rem;
  padding: 4px;
  cursor: pointer;
}

.explore-comments-sheet__sort {
  display: flex;
  padding: 8px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
}

.explore-comments-sheet__sort-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #888);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  padding: 2px 0;
  cursor: pointer;
  position: relative;
}

.explore-comments-sheet__sort-btn.is-active {
  color: var(--primary, #8b5e3c);
}

body.theme-dark .explore-comments-sheet__sort-btn.is-active {
  color: #d4a373;
}

.explore-comments-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 200px;
}

.explore-comments-sheet__loader {
  display: none;
  justify-content: center;
  padding: 20px 0;
}

.explore-comments-sheet__loader.is-active {
  display: flex;
}

.explore-comments-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted, #888);
}

.explore-comments-empty i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.explore-comments-sheet__footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-card, #ffffff);
}

body.theme-dark .explore-comments-sheet__footer {
  background: #18181c;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.explore-comments-sheet__user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.explore-comments-sheet__input-wrap {
  flex: 1;
  background: var(--bg-main, #f0ede8);
  border-radius: 18px;
  padding: 6px 12px 4px;
}

body.theme-dark .explore-comments-sheet__input-wrap {
  background: rgba(255, 255, 255, 0.08);
}

.explore-comments-sheet__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary, #1e1e1c);
  resize: none;
  max-height: 80px;
}

body.theme-dark .explore-comments-sheet__input {
  color: #fff;
}

.explore-comments-sheet__emoji-bar {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.js-emoji-insert {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.js-emoji-insert:hover {
  transform: scale(1.2);
}

.explore-comments-sheet__submit {
  background: var(--primary, #8b5e3c);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.explore-comments-sheet__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Filter & Options Bottom Sheets
   ========================================================================== */
.explore-filter-sheet,
.explore-options-menu {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.explore-filter-sheet.is-open,
.explore-options-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.explore-filter-sheet__overlay,
.explore-options-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.explore-filter-sheet__panel,
.explore-options-menu__panel {
  position: relative;
  z-index: 2;
  background: var(--bg-card, #ffffff);
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
}

body.theme-dark .explore-filter-sheet__panel,
body.theme-dark .explore-options-menu__panel {
  background: #18181c;
}

.explore-filter-sheet.is-open .explore-filter-sheet__panel,
.explore-options-menu.is-open .explore-options-menu__panel {
  transform: translateY(0);
}

.explore-filter-sheet__header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.explore-filter-sheet__header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-filter-sheet__close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary, #666);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.explore-filter-sheet__close:hover {
  background: var(--bg-muted, rgba(139, 94, 60, 0.08));
  color: var(--primary, #8b5e3c);
}

.explore-filter-sheet__body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explore-filter-group h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #444);
}

body.theme-dark .explore-filter-group h3 {
  color: #ccc;
}

.explore-filter-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.explore-filter-chip {
  position: relative;
  cursor: pointer;
}

.explore-filter-chip input {
  position: absolute;
  opacity: 0;
}

.explore-filter-chip span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  background: var(--bg-main, #f0ede8);
  border: 1px solid var(--border-color, transparent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

body.theme-dark .explore-filter-chip span {
  background: rgba(255, 255, 255, 0.06);
}

.explore-filter-chip input:checked + span {
  background: var(--primary, #8b5e3c);
  color: #fff;
  font-weight: 600;
}

/* Range Slider */
.explore-filter-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explore-filter-range input[type="range"] {
  width: 100%;
  accent-color: var(--primary, #8b5e3c);
}

.explore-filter-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
}

/* Toggle Checkboxes */
.explore-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.88rem;
}

.explore-filter-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #8b5e3c);
}

.explore-filter-sheet__footer {
  padding: 14px 18px max(16px, env(safe-area-inset-bottom, 16px));
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  display: flex;
  gap: 12px;
  background: var(--bg-card, #ffffff);
}

body.theme-dark .explore-filter-sheet__footer {
  background: #18181c;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.explore-filter-sheet__reset {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
  color: var(--text-secondary, #555);
  padding: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.explore-filter-sheet__apply {
  flex: 2;
  background: var(--primary, #8b5e3c);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Options Menu */
.explore-options-menu__panel {
  padding: 8px 0;
}

.explore-options-menu__item {
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  text-align: start;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary, #1e1e1c);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.theme-dark .explore-options-menu__item {
  color: #fff;
}

.explore-options-menu__item:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.theme-dark .explore-options-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.explore-options-menu__cancel {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  color: #ff3b30;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 4px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.explore-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translate(-50%, 40px);
  background: linear-gradient(135deg, #4A2E1B 0%, #2E180D 100%);
  color: #FFF8F0;
  padding: 10px 20px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(196, 106, 43, 0.5);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(36, 18, 10, 0.42), 0 0 18px rgba(196, 106, 43, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 10000;
  direction: rtl;
}

.explore-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 768px) {
  .explore-toast {
    bottom: 30px;
  }
}

/* ==========================================================================
   📱 Sheets & Bottom Nav Coexistence
   ========================================================================== */
body:has(.explore-filter-sheet.is-open) .bottom-nav,
body:has(.explore-comments-sheet.is-open) .bottom-nav,
body:has(.explore-options-menu.is-open) .bottom-nav,
.bottom-nav.is-hidden-by-modal {
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(100px) !important;
}

/* ==========================================================================
   💻 Desktop Responsive Modal Layouts (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .explore-filter-sheet,
  .explore-options-menu,
  .explore-comments-sheet {
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
  }

  .explore-filter-sheet__panel {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
    transform: translateY(24px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .explore-filter-sheet.is-open .explore-filter-sheet__panel {
    transform: translateY(0) scale(1);
  }

  .explore-options-menu__panel {
    width: 100%;
    max-width: 380px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .explore-options-menu.is-open .explore-options-menu__panel {
    transform: translateY(0) scale(1);
  }

  .explore-comments-sheet__panel {
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
    transform: translateY(24px) scale(0.96);
  }

  .explore-comments-sheet.is-open .explore-comments-sheet__panel {
    transform: translateY(0) scale(1);
  }

  .explore-direct-sheet__panel {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
    transform: translateY(24px) scale(0.96);
  }

  .explore-direct-sheet.is-open .explore-direct-sheet__panel {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Direct Share & Send Sheet Styles
   ========================================================================== */
.explore-direct-sheet {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.explore-direct-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.explore-direct-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.explore-direct-sheet.is-open .explore-direct-sheet__overlay {
  opacity: 1;
}

.explore-direct-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card, #ffffff);
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  direction: rtl;
}

body.theme-dark .explore-direct-sheet__panel {
  background: #18181c;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.explore-direct-sheet.is-open .explore-direct-sheet__panel {
  transform: translateY(0);
}

.explore-direct-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

body.theme-dark .explore-direct-sheet__header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.explore-direct-sheet__header-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #1e1e1c);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.theme-dark .explore-direct-sheet__header-info h3 {
  color: #fff;
}

.explore-direct-sheet__subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary, #777);
  margin-top: 3px;
}

.explore-direct-sheet__close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary, #888);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.explore-direct-sheet__close:hover {
  color: var(--primary, #8b5e3c);
}

.explore-direct-sheet__body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.explore-direct-sheet__search {
  position: relative;
  display: flex;
  align-items: center;
}

.explore-direct-sheet__search i {
  position: absolute;
  right: 14px;
  color: var(--text-muted, #999);
  font-size: 0.9rem;
}

.explore-direct-sheet__search input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.12));
  background: var(--bg-main, #FAF8F5);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

body.theme-dark .explore-direct-sheet__search input {
  background: #232329;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.explore-direct-sheet__contacts-section h4,
.explore-direct-sheet__social-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary, #666);
  margin-bottom: 10px;
}

body.theme-dark .explore-direct-sheet__contacts-section h4,
body.theme-dark .explore-direct-sheet__social-section h4 {
  color: #aaa;
}

.explore-direct-sheet__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-direct-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  transition: background 0.2s ease;
}

body.theme-dark .explore-direct-contact {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.explore-direct-contact img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.explore-direct-contact__info {
  flex: 1;
  margin: 0 12px;
  display: flex;
  flex-direction: column;
  text-align: start;
}

.explore-direct-contact__info strong {
  font-size: 0.88rem;
  color: var(--text-primary, #222);
}

body.theme-dark .explore-direct-contact__info strong {
  color: #fff;
}

.explore-direct-contact__info span {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
}

.explore-direct-contact__btn {
  background: var(--primary, #8b5e3c);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.explore-direct-contact__btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.explore-direct-contact__btn.is-sent {
  background: #2e7d32;
  pointer-events: none;
}

/* Social Sharing Grid */
.explore-social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  text-align: center;
}

@media (max-width: 480px) {
  .explore-social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.explore-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.explore-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.2s ease;
}

.explore-social-btn:hover .explore-social-icon {
  transform: translateY(-3px) scale(1.05);
}

.explore-social-icon.telegram { background: #229ED9; }
.explore-social-icon.whatsapp { background: #25D366; }
.explore-social-icon.eitaa { background: #E65100; }
.explore-social-icon.bale { background: #00A389; }
.explore-social-icon.twitter { background: #000000; }
.explore-social-icon.copy { background: #8B5E3C; }

.explore-social-btn span {
  font-size: 0.72rem;
  color: var(--text-secondary, #555);
  font-weight: 500;
}

body.theme-dark .explore-social-btn span {
  color: #ccc;
}

.explore-direct-sheet__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  display: flex;
  justify-content: center;
}

body.theme-dark .explore-direct-sheet__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.explore-direct-sheet__cancel {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary, #333);
  cursor: pointer;
  transition: background 0.2s ease;
}

body.theme-dark .explore-direct-sheet__cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ==========================================================================
   📱 Mobile Responsive Split-Screen Modal & High Z-Index Overlays
   ========================================================================== */
.explore-desktop-modal {
  z-index: 10040;
}

.explore-options-menu,
.explore-direct-sheet,
.explore-comments-sheet,
.explore-filter-sheet {
  z-index: 10050;
}

body:has(.explore-desktop-modal.is-open) .bottom-nav {
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(100px) !important;
}

@media (max-width: 767px) {
  .explore-desktop-modal {
    padding: 12px 8px;
    align-items: center;
  }

  .explore-desktop-modal__content {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
    overflow-y: auto;
  }

  .explore-desktop-modal__media-side {
    flex: 0 0 auto;
    width: 100%;
    height: 40vh;
    min-height: 220px;
    max-height: 44vh;
    overflow: hidden;
  }

  .explore-desktop-modal__main-img,
  .explore-desktop-modal__main-video {
    max-height: 44vh;
  }

  .explore-desktop-modal__info-side {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .explore-desktop-modal__scroll-area {
    max-height: 32vh;
  }

  .explore-desktop-modal__close-btn {
    top: 10px;
    right: auto;
    left: 10px;
    z-index: 25;
    background: rgba(0, 0, 0, 0.65);
  }
}
