/* ==========================================================================
   ISLAMI COMICS STORE - STYLESHEET (css/store.css)
   Official Islamic Digital Comic Storefront
   ========================================================================== */

:root {
  --brand-green: #1a4332;
  --brand-green-dark: #122d22;
  --brand-green-light: #2d6a4f;
  --brand-green-soft: #eaf3ed;
  --brand-gold: #d4973b;
  --brand-gold-soft: #fcf6eb;
  
  --bg-page: #f8f6f0;
  --bg-card: #ffffff;
  --bg-subtle: #f0eae1;
  --bg-subtle-hover: #e6dfd3;
  
  --text-dark: #18221b;
  --text-muted: #57655c;
  --text-subtle: #87968e;
  
  --border-color: #e5dec9;
  --border-subtle: #efe9dc;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   TOP HEADER NAVBAR
   ========================================================================== */
.comics-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  width: 100%;
}

.comics-header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.btn-home:hover {
  background: var(--bg-subtle-hover);
  color: var(--brand-green);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-green), #245840);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1.5px solid var(--brand-gold);
  box-shadow: 0 2px 6px rgba(26, 67, 50, 0.2);
}

.brand-text-wrap h1 {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--brand-green);
  line-height: 1.1;
}

.brand-text-wrap h1 span {
  color: var(--brand-gold);
}

.brand-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

/* Header Center Search */
.header-center {
  flex: 1;
  max-width: 440px;
  min-width: 140px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  font-size: 13px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 36px 8px 36px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fdfbf7;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand-green);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 67, 50, 0.08);
}

/* Header Right Nav */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link-btn:hover {
  color: var(--brand-green);
  background: var(--bg-subtle);
}

.nav-btn-active-pill {
  background: var(--brand-green);
  color: #ffffff;
  border: 1px solid var(--brand-green);
}

.nav-btn-active-pill:hover {
  background: var(--brand-green-light);
  color: #fff;
}

.btn-studio-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: #edf6f0;
  color: var(--brand-green);
  border: 1px solid #c9e2d5;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-studio-header:hover {
  background: #d8ebd0;
}

.notif-bell-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-dark);
  transition: all 0.2s;
  flex-shrink: 0;
}

.notif-bell-btn:hover {
  background: var(--bg-subtle-hover);
}

.notif-badge-pill {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Profile Wrapper & Dropdown */
.user-profile-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.user-profile-btn:hover {
  background: var(--bg-subtle);
}

.user-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand-gold);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 8px;
  display: none !important;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}

.user-dropdown-menu.open {
  display: flex !important;
}

.dropdown-header-info {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.dropdown-user-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-green);
}

.dropdown-user-email {
  font-size: 10px;
  color: var(--text-muted);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--brand-green-soft);
  color: var(--brand-green);
}

.dropdown-item i {
  font-size: 12px;
  width: 16px;
  color: var(--text-muted);
}

.dropdown-item:hover i {
  color: var(--brand-green);
}

/* ==========================================================================
   3-COLUMN MAIN STORE LAYOUT
   ========================================================================== */
.store-main-layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ==========================================================================
   LEFT SIDEBAR (Browse, Categories, Filters)
   ========================================================================== */
.store-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-box-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
  padding-left: 8px;
}

.side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s;
  width: 100%;
}

.side-btn-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-btn i {
  font-size: 13px;
  width: 16px;
  color: var(--text-muted);
}

.side-btn:hover {
  background: var(--bg-subtle);
  color: var(--brand-green);
}

.side-btn.active {
  background: #eaf3ed;
  color: var(--brand-green);
  font-weight: 800;
}

.side-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
}

/* Filter Dropdowns */
.filter-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.filter-select-sm {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
}

.btn-apply-filters {
  width: 100%;
  padding: 8px;
  background: var(--brand-green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-apply-filters:hover {
  background: var(--brand-green-light);
}

/* ==========================================================================
   CENTER COLUMN (Hero Banner, USP Bar, Grids)
   ========================================================================== */
.store-center-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* Store Hero Banner */
.store-hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(254, 252, 248, 0.96) 0%, rgba(254, 252, 248, 0.75) 50%, rgba(254, 252, 248, 0.2) 100%),
              url('/assets/comics/explore-banner.jpg') right center / cover no-repeat;
  padding: 32px 36px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  box-shadow: var(--shadow-sm);
}

.store-hero-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--brand-green);
  margin-bottom: 4px;
}

.store-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.store-hero-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pill-sort {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  transition: all 0.2s;
}

.btn-pill-sort.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

/* 4 USP Feature Badges */
.store-usp-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usp-icon {
  font-size: 16px;
  color: var(--brand-green);
}

.usp-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
}

.usp-desc {
  font-size: 9px;
  color: var(--text-muted);
}

/* Featured & New Release Section Rows */
.store-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.store-sec-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-cards-track-wrap {
  position: relative;
}

.store-cards-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.store-comic-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s ease;
}

.store-comic-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-md);
}

.store-cover-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background-color: #121815;
}

.store-cover-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.store-comic-card:hover .store-cover-wrap img {
  transform: scale(1.06);
}

.store-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 13, 0.88) 0%, rgba(10, 16, 13, 0.1) 60%, rgba(10, 16, 13, 0.3) 100%);
}

.store-badge-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}

.store-badge-tag.bestseller { background: #059669; }
.store-badge-tag.historical { background: #b45309; }
.store-badge-tag.adventure { background: #0284c7; }
.store-badge-tag.popular { background: #7c3aed; }
.store-badge-tag.kids { background: #0ea5e9; }
.store-badge-tag.islamic { background: #059669; }
.store-badge-tag.new { background: #2563eb; }

.store-heart-wishlist {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 3;
  transition: all 0.2s;
}

.store-heart-wishlist:hover {
  background: #ef4444;
}

.store-card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-comic-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-comic-author {
  font-size: 9px;
  color: var(--text-muted);
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
}

.store-rating {
  font-weight: 700;
  color: var(--text-dark);
}

.store-rating i {
  color: #f59e0b;
}

.store-price {
  font-weight: 900;
  color: var(--brand-green);
}

.store-price.free {
  color: #10b981;
}

.btn-store-scroll-next {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-dark);
  z-index: 10;
  transition: all 0.2s;
}

.btn-store-scroll-next:hover {
  background: var(--brand-green);
  color: #fff;
}

/* ==========================================================================
   RIGHT SIDEBAR (Special Offer, Daily Deal, Popular, Why Digital)
   ========================================================================== */
.store-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card 1: Ramadan Sale */
.ramadan-offer-card {
  background: linear-gradient(135deg, #0f2e22 0%, #1a4332 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.offer-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.offer-title {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

.offer-discount {
  font-size: 13px;
  color: #fde68a;
}

.btn-offer-deals {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: #047857;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  align-self: flex-start;
  transition: all 0.2s;
  border: 1px solid #10b981;
}

.btn-offer-deals:hover {
  background: #059669;
}

/* Card 2: Daily Deal */
.daily-deal-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
}

.deal-timer-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-green);
}

.timer-num {
  background: var(--bg-subtle);
  padding: 2px 4px;
  border-radius: 4px;
}

.deal-card-content {
  display: flex;
  gap: 10px;
}

.deal-thumb {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deal-comic-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
}

.deal-comic-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.deal-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.price-strike {
  font-size: 10px;
  text-decoration: line-through;
  color: var(--text-subtle);
}

.price-discount {
  font-size: 12px;
  font-weight: 900;
  color: #dc2626;
}

.badge-discount-pct {
  background: #fee2e2;
  color: #dc2626;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
}

.btn-buy-deal {
  width: 100%;
  padding: 8px;
  background: var(--brand-green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: all 0.2s;
}

.btn-buy-deal:hover {
  background: var(--brand-green-light);
}

/* Card 3: Popular Categories */
.popular-cat-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.popular-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pop-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.pop-cat-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.pop-cat-item:hover .pop-cat-circle {
  background: var(--brand-green-soft);
  transform: scale(1.08);
}

.pop-cat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

/* Card 4: Why Read Digital Comics */
.why-digital-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.why-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.why-item i {
  color: #10b981;
  font-size: 11px;
}

.why-img-mockup {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f0e6d6;
  margin-top: 4px;
}

.why-img-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   BOTTOM 3 PROMO CARDS ROW
   ========================================================================== */
.store-bottom-promos {
  max-width: 1480px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.promo-action-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.promo-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-green);
}

.promo-action-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-action-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-dark);
}

.promo-action-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.btn-promo-action {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  align-self: flex-start;
  transition: all 0.2s;
}

.btn-promo-action:hover {
  background: var(--brand-green-light);
}

.promo-thumb-art {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.promo-thumb-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   MODAL DIALOGS (Reader & Buy)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 13, 0.78);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-window.dark {
  background: #121815;
  color: #fff;
  border: 1px solid rgba(212, 151, 59, 0.3);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-window.dark .modal-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-window.dark .modal-header-icon {
  background: rgba(212, 151, 59, 0.2);
  color: var(--brand-gold);
}

.modal-h3 {
  font-size: 16px;
  font-weight: 800;
}

.modal-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-window.dark .modal-sub {
  color: #9eb1a8;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-window.dark .btn-close-modal {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reader-canvas {
  height: 340px;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.reader-dialogue-box {
  background: rgba(14, 22, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 151, 59, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #fff;
}

.reader-dialogue-text {
  font-size: 14px;
  font-weight: 700;
  color: #f7ca97;
  margin-bottom: 6px;
}

.reader-narration-text {
  font-size: 12px;
  color: #e5ede9;
}

.reader-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.btn-reader-nav {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

/* ==========================================================================
   MOBILE-ONLY COMPONENTS & RESPONSIVE DESIGN (Mockup 13)
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  font-size: 20px;
  color: var(--text-dark);
  padding: 4px;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 990;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  flex: 1;
  height: 100%;
  transition: all 0.2s;
}

.mob-nav-item i {
  font-size: 16px;
}

.mob-nav-item.active {
  color: var(--brand-green);
  font-weight: 900;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
}

.mobile-store-special-offer, .mobile-store-daily-deal, .mobile-store-categories, .mobile-store-why-read {
  display: none;
}

@media (max-width: 1280px) {
  .store-main-layout {
    grid-template-columns: 200px 1fr;
  }
  .store-sidebar-right {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 65px;
  }

  .comics-header-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .btn-home, .header-center, .header-right .nav-link-btn, .header-right .btn-studio-header {
    display: none;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .brand-text-wrap h1 {
    font-size: 13px;
  }

  .brand-tagline {
    font-size: 8px;
  }

  .header-right {
    gap: 8px;
  }

  .notif-bell-btn {
    width: 32px;
    height: 32px;
  }

  .user-profile-avatar {
    width: 32px;
    height: 32px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .store-main-layout {
    display: block;
    padding: 12px 14px;
  }

  .store-sidebar-left, .store-sidebar-right {
    display: none;
  }

  .store-hero-card {
    padding: 20px 16px;
    min-height: 160px;
    border-radius: var(--radius-lg);
  }

  .store-hero-title {
    font-size: 20px;
  }

  .store-hero-sub {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .store-usp-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .usp-item {
    gap: 8px;
  }

  .usp-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .usp-title {
    font-size: 10px;
  }

  .usp-sub {
    font-size: 8px;
  }

  .mobile-store-special-offer, .mobile-store-daily-deal, .mobile-store-categories, .mobile-store-why-read {
    display: flex;
    flex-direction: column;
  }

  .store-cards-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    gap: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .store-cards-track::-webkit-scrollbar {
    display: none;
  }

  .store-cards-track .store-comic-card, .store-cards-track .store-card {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    flex: 0 0 145px !important;
  }

  .store-cards-track .store-cover-wrap {
    height: 185px !important;
  }

  .store-bottom-promos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .promo-action-card {
    padding: 12px;
  }
}


