
/* Custom UI helpers for Tailwind-based theme */
.cart-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .4rem;border-radius:9999px;background:#7b1220;color:#fff;font-size:.7rem;font-weight:700}
.menu-toggle{display:none}
.navbar .has-dropdown:hover .dropdown{display:block}
@media (max-width:1023px){
  .menu-toggle{display:inline-flex}
}

.hero-slider-modern{position:relative;background:linear-gradient(135deg,#5e0d17 0%, #7b1220 45%, #9b2433 100%)}
.hero-slide{display:none}
.hero-slide.active{display:grid}
.hero-label{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:9999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.hero-visual{position:relative;min-height:320px}
.hero-visual-a{background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),transparent 20%),linear-gradient(135deg,#17304f,#61131d)}
.hero-visual-b{background:radial-gradient(circle at 70% 25%,rgba(255,255,255,.18),transparent 18%),linear-gradient(135deg,#f0f4fb,#b7cce7)}
.hero-visual-c{background:radial-gradient(circle at 60% 35%,rgba(255,255,255,.22),transparent 18%),linear-gradient(135deg,#9d2230,#5f0b13)}
.hero-visual::before,.hero-visual::after{content:"";position:absolute;border-radius:1rem;box-shadow:0 14px 30px rgba(0,0,0,.16)}
.hero-visual-a::before{width:130px;height:200px;background:#f5f6fb;right:20%;bottom:56px}
.hero-visual-a::after{width:118px;height:182px;background:#17304f;left:18%;bottom:74px;transform:rotate(-10deg)}
.hero-visual-b::before{width:136px;height:205px;background:#fff;right:18%;bottom:60px}
.hero-visual-b::after{width:122px;height:185px;background:#244a80;left:20%;bottom:74px;transform:rotate(8deg)}
.hero-visual-c::before{width:136px;height:205px;background:#fefefe;right:20%;bottom:58px}
.hero-visual-c::after{width:120px;height:184px;background:#7c0f19;left:18%;bottom:74px;transform:rotate(-6deg)}
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:9999px;background:rgba(255,255,255,.94);color:#5e0d17;font-size:1.5rem;cursor:pointer;z-index:5}
.hero-nav.prev{left:14px}.hero-nav.next{right:14px}
.hero-dots{position:absolute;left:24px;bottom:18px;display:flex;gap:8px;z-index:5}
.hero-dots button{width:10px;height:10px;border-radius:9999px;border:0;background:rgba(255,255,255,.45);cursor:pointer}
.hero-dots button.active{width:28px;background:#fff}

.books-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.author-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
@media (max-width:1279px){.books-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1023px){.books-grid,.news-grid,.author-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:639px){.books-grid,.news-grid,.author-list-grid{grid-template-columns:1fr}}

.book-card,.news-card,.author-home-card,.author-profile-card,.author-detail-card,.filter-card,.product-image-card,.product-info-card,.summary-card,.form-card,.table-card,.cart-drawer,.order-modal{background:#fff;border:1px solid #eee4e6;border-radius:1.25rem;box-shadow:0 10px 30px rgba(50,15,22,.06)}
.book-card{padding:.75rem}
.book-thumb{display:flex;align-items:flex-end;height:220px;padding:.9rem;border-radius:1rem;position:relative;color:#fff;font-weight:800;line-height:1.15}
.thumb1{background:linear-gradient(180deg,#0c1a37,#0f2856)}
.thumb2{background:linear-gradient(180deg,#edf3fb,#bfd2ea);color:#244a80}
.thumb3{background:linear-gradient(180deg,#11739f,#0d4968)}
.thumb4{background:linear-gradient(180deg,#fbfbfb,#dfe4eb);color:#0f3e7b}
.thumb5{background:linear-gradient(180deg,#334d2c,#121b15)}
.thumb6{background:linear-gradient(180deg,#f7f8fb,#d7dfec);color:#173d72}
.tag{position:absolute;top:.7rem;left:.7rem;padding:.25rem .5rem;border-radius:.5rem;background:#7b1220;color:#fff;font-size:.65rem;font-weight:700}
.book-title{margin-top:.8rem;font-size:.95rem;font-weight:700;line-height:1.5}
.book-meta{margin-top:.35rem;font-size:.78rem;color:#6b7280}
.book-price-row{display:flex;align-items:center;justify-content:space-between;margin-top:.8rem}
.book-price-row strong{font-size:.9rem;color:#5e0d17}
.book-cart{width:2.2rem;height:2.2rem;border-radius:.8rem;border:1px solid #eadfe1;background:#fff;color:#7b1220;cursor:pointer}

.news-card{overflow:hidden}
.news-thumb{display:block;height:210px}
.news1{background:linear-gradient(135deg,#17304f,#61131d)}
.news2{background:linear-gradient(135deg,#9d2230,#d45a69)}
.news3{background:linear-gradient(135deg,#244a80,#90a9cb)}
.news-body{padding:1rem}
.news-meta{font-size:.75rem;color:#6b7280;margin-bottom:.5rem}
.news-card h3{margin:0 0 .5rem;font-size:1.1rem;line-height:1.4}
.news-card p{margin:0 0 .7rem;font-size:.84rem;color:#475569;line-height:1.7}
.read-more{font-size:.82rem;color:#7b1220;font-weight:700}

.author-photo-wrap,.author-home-photo-wrap{display:block;position:relative;padding:1rem 1rem 0}
.author-photo-lg,.author-home-photo,.author-photo-xl{display:block;height:230px;border-radius:1.1rem;position:relative;overflow:hidden}
.author1{background:linear-gradient(135deg,#d8d8d8,#9a9a9a)}
.author2{background:linear-gradient(135deg,#e7d6cf,#b78f7f)}
.author3{background:linear-gradient(135deg,#c9d9c2,#6d8b5f)}
.author4{background:linear-gradient(135deg,#c8d7e8,#6f8fb4)}
.author-photo-lg::before,.author-home-photo::before,.author-photo-xl::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.28),transparent 18%),radial-gradient(circle at 50% 42%,rgba(255,255,255,.18),transparent 22%)}
.author-photo-lg::after,.author-home-photo::after,.author-photo-xl::after{content:"";position:absolute;left:50%;bottom:16px;transform:translateX(-50%);width:108px;height:108px;border-radius:9999px;background:rgba(255,255,255,.22);border:2px solid rgba(255,255,255,.25)}
.author-photo-badge,.author-home-badge{position:absolute;left:24px;bottom:12px;padding:.42rem .75rem;border-radius:9999px;background:#fff;color:#7b1220;font-size:.7rem;font-weight:700;border:1px solid #f1e2e4}
.author-profile-body,.author-home-body{padding:1rem}
.author-profile-body h3,.author-home-body h3{margin:0 0 .4rem;font-size:1.15rem;line-height:1.35}
.author-profile-body p,.author-home-body p{margin:0;font-size:.83rem;color:#475569;line-height:1.7}
.author-field{display:inline-flex;align-items:center;padding:.35rem .65rem;border-radius:9999px;background:#f9e7ea;color:#7b1220;font-weight:700;font-size:.72rem;margin-bottom:.65rem}

.product-detail-cover{display:flex;align-items:flex-end;height:480px;padding:1.25rem;border-radius:1.1rem;font-size:1.9rem;font-weight:800;color:#fff}
.summary-line{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem 0;font-size:.88rem}
.summary-line.total{margin-top:.45rem;padding-top:.9rem;border-top:1px solid #eee;font-size:1.1rem;font-weight:800;color:#5e0d17}
.order-table{width:100%;border-collapse:collapse}
.order-table th,.order-table td{padding:.9rem;border-bottom:1px solid #eee;text-align:left;font-size:.84rem}
.order-table thead tr{background:#faf5f6;color:#5f1a23}
.status-badge{display:inline-flex;padding:.35rem .6rem;border-radius:9999px;font-size:.72rem;font-weight:700}
.badge-success{background:#d9f6e4;color:#1b7a43}
.badge-warning{background:#fff3cd;color:#876019}
.badge-danger{background:#fde1e4;color:#b12034}

.btn-primary,.btn-outline,.btn-link{display:inline-flex;align-items:center;justify-content:center;padding:.8rem 1rem;border-radius:1rem;font-size:.84rem;font-weight:700}
.btn-primary{background:#7b1220;color:#fff}
.btn-outline{background:#fff;color:#7b1220;border:1px solid #eadfe1}
.btn-link{background:none;color:#7b1220;padding:0}
.full{width:100%}

.pagination-wrap{margin-top:1rem;display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.pagination-numbers{display:flex;gap:.5rem;flex-wrap:wrap}
.pagination-link,.pagination-number{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 .9rem;background:#fff;border:1px solid #eee4e6;border-radius:1rem;font-size:.82rem;font-weight:700;box-shadow:0 10px 24px rgba(50,15,22,.05)}
.pagination-number.active{background:#7b1220;color:#fff;border-color:#7b1220}

.flash-message{margin:.75rem 0 0;padding:.85rem 1rem;border-radius:1rem;font-size:.84rem;font-weight:600}
.flash-success{background:#e6f8ec;color:#1f7a47;border:1px solid #caebd7}
.flash-error{background:#fdeced;color:#a12334;border:1px solid #f4d3d7}

.cart-drawer{position:fixed;top:0;right:-420px;width:390px;max-width:100%;height:100vh;z-index:110;transition:.3s ease;display:flex;flex-direction:column}
.cart-drawer.active{right:0}
.drawer-backdrop,.modal-backdrop,.auth-backdrop,.confirm-backdrop{position:fixed;inset:0;background:rgba(18,16,17,.42);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:.25s ease}
.drawer-backdrop.active,.modal-backdrop.active,.auth-backdrop.active,.confirm-backdrop.active{opacity:1;visibility:visible}
.drawer-backdrop{z-index:109}.modal-backdrop{z-index:119}.auth-backdrop{z-index:140}.confirm-backdrop{z-index:200}
.cart-drawer-header,.order-modal-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.1rem;border-bottom:1px solid #eee}
.cart-drawer-body{padding:1rem 1.1rem;flex:1;overflow:auto}
.cart-drawer-footer{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding:1rem 1.1rem;border-top:1px solid #eee}
.empty-note{color:#6b7280;font-size:.86rem}

.order-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);width:min(640px,calc(100% - 24px));z-index:120;opacity:0;visibility:hidden;transition:.25s ease}
.order-modal.active{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.order-modal-body{padding:1.2rem}
.order-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;font-size:.84rem;line-height:1.7}

.auth-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:.25s ease;z-index:141}
.auth-modal.active{opacity:1;visibility:visible}
.auth-modal-card{width:min(920px,100%);display:grid;grid-template-columns:1fr 1.05fr;background:#fff;border:1px solid #eee4e6;border-radius:1.5rem;box-shadow:0 24px 70px rgba(45,11,18,.18);overflow:hidden;position:relative}
.auth-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:0;border-radius:9999px;background:#fff;box-shadow:0 12px 24px rgba(65,12,20,.08);font-size:1.4rem;cursor:pointer;z-index:2}
.auth-panel{padding:2rem}
.auth-panel-left{background:linear-gradient(135deg,#5e0d17,#9b2433);color:#fff}
.auth-kicker{display:inline-flex;padding:.45rem .75rem;border-radius:9999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1rem}
.auth-panel-left h3{margin:0 0 .75rem;font-size:1.9rem;line-height:1.15}
.auth-panel-left p{margin:0 0 1rem;color:#f4dde1;font-size:.84rem;line-height:1.8}
.auth-feature-list{margin:0;padding-left:1rem;display:grid;gap:.55rem;font-size:.82rem}
.auth-demo-note{margin-top:1rem;padding:.85rem 1rem;border-radius:1rem;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);font-size:.75rem;line-height:1.7}
.auth-tabs{display:flex;gap:.5rem;padding:.35rem;background:#f8f4f5;border:1px solid #eee4e6;border-radius:1rem;margin-bottom:1rem}
.auth-tab{flex:1;border:0;background:transparent;border-radius:.8rem;padding:.75rem .8rem;font-weight:700;color:#6a5156;cursor:pointer}
.auth-tab.active{background:#fff;color:#5e0d17;box-shadow:0 6px 16px rgba(54,14,21,.06)}
.auth-form-wrap{display:none}.auth-form-wrap.active{display:block}
.auth-form-wrap h4{margin:0 0 .9rem;font-size:1.5rem;color:#61131d}
.auth-form{display:grid;gap:.9rem}
.auth-field{display:grid;gap:.45rem}
.auth-field label{font-size:.75rem;font-weight:700;color:#5c474c}
.auth-field input{width:100%;padding:.85rem .95rem;border:1px solid #e4dadd;border-radius:.9rem;outline:none;background:#fff}
.auth-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-size:.75rem}
.auth-check{display:inline-flex;align-items:center;gap:.5rem;color:#6d5b60}
.auth-link{color:#7b1220;font-weight:700;font-size:.75rem}

.confirm-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);width:min(440px,calc(100% - 24px));background:#fff;border:1px solid #eee4e6;border-radius:1.4rem;box-shadow:0 24px 70px rgba(45,11,18,.14);z-index:201;opacity:0;visibility:hidden;transition:.25s ease;overflow:hidden}
.confirm-modal.active{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.confirm-head{padding:1.3rem 1.4rem .5rem}
.confirm-badge{width:52px;height:52px;border-radius:1rem;background:linear-gradient(135deg,#fff4f5,#fde8eb);display:flex;align-items:center;justify-content:center;font-size:1.3rem;margin-bottom:.9rem}
.confirm-head h3{margin:0;font-size:1.35rem;color:#61131d}
.confirm-body{padding:0 1.4rem .5rem;color:#5c4c50;line-height:1.7;font-size:.88rem}
.confirm-actions{display:flex;gap:.7rem;justify-content:flex-end;padding:1rem 1.4rem 1.4rem}
.confirm-btn{min-width:110px;height:44px;border-radius:.9rem;border:0;font-weight:700;cursor:pointer;font-size:.88rem}
.confirm-cancel{background:#fff;border:1px solid #e6dde0;color:#5d4c50}
.confirm-ok{background:#7b1220;color:#fff}

.toast-wrap{position:fixed;top:20px;right:20px;display:grid;gap:10px;z-index:260}
.toast-item{min-width:280px;max-width:360px;display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:center;padding:14px 16px;background:#fff;border:1px solid #eee4e6;border-radius:1rem;box-shadow:0 18px 40px rgba(44,11,19,.10);transform:translateY(-8px);opacity:0;transition:.25s ease}
.toast-item.show{transform:translateY(0);opacity:1}
.toast-item.success .toast-icon{background:#e8f7ee;color:#177245}
.toast-item.error .toast-icon{background:#fdebed;color:#b12034}
.toast-icon{width:40px;height:40px;border-radius:.9rem;display:flex;align-items:center;justify-content:center;font-weight:800}
.toast-text{font-size:.82rem;line-height:1.6;font-weight:600;color:#4f4346}

.checkout-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-bottom:1rem}
.checkout-step{border:1px solid #eee4e6;background:#fff;color:#6f5d61;border-radius:1rem;padding:.85rem .7rem;font-weight:700;cursor:pointer}
.checkout-step.active{background:#7b1220;color:#fff;border-color:#7b1220}
.checkout-step-panel{display:none}.checkout-step-panel.active{display:block}
.checkout-nav-row{display:flex;gap:.7rem;justify-content:flex-end;margin-top:1rem}

.ajax-list.is-loading{opacity:.55;pointer-events:none;transition:.2s ease}

@media (max-width:1023px){
  .auth-modal-card{grid-template-columns:1fr}
}
@media (max-width:767px){
  .product-detail-cover{height:360px;font-size:1.5rem}
  .hero-visual{min-height:220px}
}
@media (max-width:639px){
  .auth-modal{padding:12px;align-items:flex-end}
  .auth-panel-left{display:none}
  .order-detail-grid{grid-template-columns:1fr}
  .cart-drawer-footer,.confirm-actions,.checkout-nav-row{grid-template-columns:1fr;flex-direction:column-reverse}
  .toast-wrap{top:auto;right:12px;left:12px;bottom:14px}
  .toast-item{min-width:auto;max-width:none}
  .checkout-steps{grid-template-columns:1fr}
}

.line-clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/* Slider active fix */
.hero-slider-modern{
  position:relative;
  isolation:isolate;
}
.hero-slide{
  display:none !important;
}
.hero-slide.active{
  display:grid !important;
}
.hero-dots{
  display:flex;
  align-items:center;
}


/* Modern minimal cart drawer redesign */
.modern-cart-drawer{
  width: min(760px, 100vw);
  right: -780px;
  max-width: 100vw;
  background: #fff;
}
.modern-cart-drawer.active{
  right: 0;
}
.modern-cart-header{
  padding: 22px 22px 14px;
  border-bottom: 0;
}
.modern-cart-title{
  display:flex;
  align-items:center;
  gap:16px;
}
.modern-cart-badge-icon{
  width:64px;
  height:64px;
  border-radius:18px;
  background:#eef2ff;
  color:#2563eb;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}
.modern-cart-title h3{
  margin:0;
  font-size:24px;
  font-weight:800;
  color:#0f172a;
}
.modern-cart-close{
  width:46px;
  height:46px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  color:#0f172a;
  font-size:28px;
}
.modern-cart-divider{
  height:1px;
  background:#e5e7eb;
  margin:0 22px;
}
.modern-cart-body{
  padding:18px 22px;
}
.cart-drawer-list{
  display:grid;
  gap:18px;
}
.cart-modern-item{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:20px;
  padding:18px;
  border:1px solid #e5e7eb;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.cart-modern-cover{
  min-height:180px;
  border-radius:16px;
  display:flex;
  align-items:flex-end;
  padding:14px;
  color:#fff;
  font-weight:800;
  line-height:1.1;
  font-size:14px;
}
.cart-modern-content{
  min-width:0;
  display:grid;
  align-content:space-between;
  gap:14px;
}
.cart-modern-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.cart-modern-top h4{
  margin:0;
  font-size:18px;
  line-height:1.35;
  font-weight:800;
  color:#0f172a;
}
.cart-modern-remove{
  width:46px;
  height:46px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:#fff;
  color:#dc2626;
  flex-shrink:0;
}
.cart-modern-qty-wrap{
  display:flex;
  align-items:center;
}
.cart-modern-qty-form{
  display:inline-grid;
  grid-template-columns:52px 92px 52px;
  align-items:center;
  border:1px solid #d1d5db;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.cart-modern-qty-btn{
  width:52px;
  height:52px;
  border:0;
  background:#fff;
  font-size:28px;
  line-height:1;
  color:#334155;
  cursor:pointer;
}
.cart-modern-qty-input{
  width:92px;
  height:52px;
  border:0;
  text-align:center;
  font-size:18px;
  font-weight:700;
  color:#0f172a;
  background:#fff;
  outline:none;
}
.cart-modern-price{
  font-size:14px;
  color:#6b7280;
}
.cart-modern-bottom{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
}
.cart-modern-subtotal{
  font-size:20px;
  font-weight:900;
  color:#0f172a;
}
.modern-cart-summary{
  padding:18px 22px 22px;
}
.modern-cart-total-line{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.modern-cart-total-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#111827;
}
.modern-cart-total-label strong{
  font-size:18px;
}
.modern-cart-total-label span{
  font-size:14px;
  color:#6b7280;
  font-weight:600;
}
.modern-cart-total-value{
  font-size:30px;
  font-weight:900;
  color:#0f172a;
}
.modern-cart-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.modern-cart-btn{
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:700;
}
.modern-cart-btn-light{
  background:#fff;
  border:1px solid #d1d5db;
  color:#1e3a8a;
}
.modern-cart-btn-primary{
  background:#2563eb;
  color:#fff;
}
.cart-empty-state{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:20px;
  color:#64748b;
}
.cart-empty-icon{
  width:72px;
  height:72px;
  border-radius:18px;
  background:#eef2ff;
  color:#2563eb;
  display:grid;
  place-items:center;
  font-size:32px;
  margin:0 auto 14px;
}
.cart-empty-state h4{
  margin:0 0 8px;
  color:#0f172a;
  font-size:20px;
}
.cart-empty-state p{
  margin:0;
  font-size:14px;
  line-height:1.7;
}
@media (max-width: 768px){
  .modern-cart-drawer{
    width:100vw;
  }
  .cart-modern-item{
    grid-template-columns:1fr;
  }
  .cart-modern-cover{
    min-height:150px;
  }
  .cart-modern-bottom,
  .modern-cart-total-line,
  .modern-cart-actions{
    grid-template-columns:1fr;
    display:grid;
  }
  .modern-cart-actions{
    gap:12px;
  }
  .modern-cart-total-value{
    font-size:24px;
  }
}


/* Compact minimal cart drawer */
.compact-cart-drawer{
  width:min(460px, 100vw);
  right:-500px;
}
.compact-cart-drawer.active{
  right:0;
}
.compact-cart-header{
  padding:14px 16px 10px;
  border-bottom:0;
}
.compact-cart-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.compact-cart-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.compact-cart-title h3{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}
.compact-cart-close{
  width:36px;
  height:36px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  color:#334155;
  font-size:22px;
}
.compact-cart-divider{
  height:1px;
  background:#eceff3;
  margin:0 16px;
}
.compact-cart-body{
  padding:12px 16px;
}
.compact-cart-list{
  display:grid;
  gap:12px;
}
.cart-compact-item{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:12px;
  padding:12px;
  border:1px solid #e8edf2;
  border-radius:16px;
  background:#fff;
}
.cart-compact-cover{
  height:92px;
  border-radius:12px;
  background-size:cover;
  background-position:center;
}
.cart-compact-content{
  min-width:0;
  display:grid;
  gap:8px;
}
.cart-compact-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.cart-compact-top h4{
  margin:0;
  font-size:14px;
  line-height:1.4;
  font-weight:800;
  color:#0f172a;
}
.cart-compact-remove{
  width:28px;
  height:28px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#dc2626;
  background:#fff;
  flex-shrink:0;
  font-size:18px;
}
.cart-compact-meta{
  font-size:12px;
  color:#64748b;
}
.cart-compact-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.cart-compact-qty-form{
  display:grid;
  grid-template-columns:32px 46px 32px;
  align-items:center;
  border:1px solid #dbe2ea;
  border-radius:12px;
  overflow:hidden;
}
.cart-compact-qty-btn{
  width:32px;
  height:32px;
  border:0;
  background:#fff;
  font-size:18px;
  color:#334155;
  cursor:pointer;
}
.cart-compact-qty-input{
  width:46px;
  height:32px;
  border:0;
  text-align:center;
  font-size:13px;
  font-weight:700;
  color:#0f172a;
  background:#fff;
  outline:none;
}
.cart-compact-subtotal{
  font-size:15px;
  font-weight:900;
  color:#0f172a;
}
.compact-cart-summary{
  padding:12px 16px 16px;
}
.compact-cart-total-line{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.compact-cart-total-label{
  display:flex;
  align-items:center;
  gap:6px;
}
.compact-cart-total-label strong{
  font-size:15px;
  color:#111827;
}
.compact-cart-total-label span{
  font-size:12px;
  color:#64748b;
  font-weight:600;
}
.compact-cart-total-value{
  font-size:22px;
  font-weight:900;
  color:#0f172a;
}
.compact-cart-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.compact-cart-btn{
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
}
.compact-cart-btn-light{
  background:#fff;
  border:1px solid #dbe2ea;
  color:#334155;
}
.compact-cart-btn-primary{
  background:#2563eb;
  color:#fff;
}
.compact-empty-state{
  min-height:180px;
}
.compact-empty-state .cart-empty-icon{
  width:56px;
  height:56px;
  border-radius:14px;
  font-size:24px;
}
.compact-empty-state h4{
  font-size:16px;
}
.compact-empty-state p{
  font-size:13px;
}
@media (max-width: 640px){
  .compact-cart-drawer{
    width:100vw;
  }
}


/* Compact cart page sync */
#cartAjaxContainer .summary-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  font-size:13px;
  color:#334155;
}
#cartAjaxContainer .summary-line strong{
  color:#0f172a;
  font-weight:800;
}
#cartAjaxContainer .summary-line.total{
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid #e5e7eb;
  font-size:18px;
}
#cartAjaxContainer .compact-cart-list{
  gap:10px;
}
#cartAjaxContainer .cart-compact-item{
  border-radius:14px;
}


/* Compact checkout sync */
.compact-checkout-steps{
  margin-bottom:14px;
}
.compact-label{
  display:block;
  margin:0 0 7px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#64748b;
}
.compact-input{
  width:100%;
  border:1px solid #dbe2ea;
  background:#fff;
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  outline:none;
  color:#0f172a;
}
.compact-input:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.14);
}
.compact-textarea{
  min-height:110px;
  resize:vertical;
}
.compact-payment-option{
  display:grid;
  grid-template-columns:18px 1fr;
  gap:12px;
  align-items:start;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
}
.compact-payment-option input{
  margin-top:3px;
}
.compact-payment-option strong{
  display:block;
  font-size:14px;
  color:#0f172a;
}
.compact-payment-option small{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:#64748b;
  line-height:1.6;
}
.compact-summary-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed #e5e7eb;
}
.compact-summary-item:last-child{
  border-bottom:0;
}
.compact-summary-title{
  display:grid;
  gap:4px;
}
.compact-summary-title strong{
  font-size:13px;
  color:#0f172a;
  line-height:1.5;
}
.compact-summary-title span{
  font-size:12px;
  color:#64748b;
}
.compact-summary-price{
  font-size:13px;
  font-weight:800;
  color:#0f172a;
  white-space:nowrap;
}
#checkoutSummaryCard .summary-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  font-size:13px;
  color:#334155;
}
#checkoutSummaryCard .summary-line strong{
  color:#0f172a;
  font-weight:800;
}
#checkoutSummaryCard .summary-line.total{
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid #e5e7eb;
  font-size:18px;
}


/* v2 compact cart minimal */
.compact-cart-drawer{
  width:min(400px,100vw);
  right:-430px;
}
.compact-cart-header{
  padding:12px 14px 8px;
}
.compact-cart-title{
  gap:8px;
}
.compact-cart-icon{
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:16px;
}
.compact-cart-title h3{
  font-size:16px;
}
.compact-cart-close{
  width:32px;
  height:32px;
  border-radius:10px;
  font-size:20px;
}
.compact-cart-divider{
  margin:0 14px;
}
.compact-cart-body{
  padding:10px 14px;
}
.compact-cart-list{
  gap:10px;
}
.cart-compact-item{
  grid-template-columns:64px 1fr;
  gap:10px;
  padding:10px;
  border-radius:14px;
}
.cart-compact-cover{
  height:88px;
  border-radius:10px;
}
.cart-compact-top h4{
  font-size:12px;
  line-height:1.35;
}
.cart-compact-remove{
  width:24px;
  height:24px;
  border-radius:8px;
  font-size:16px;
}
.cart-compact-meta{
  font-size:11px;
}
.cart-compact-bottom{
  gap:8px;
}
.cart-compact-qty-form{
  grid-template-columns:28px 40px 28px;
  border-radius:10px;
}
.cart-compact-qty-btn{
  width:28px;
  height:28px;
  font-size:16px;
}
.cart-compact-qty-input{
  width:40px;
  height:28px;
  font-size:12px;
}
.cart-compact-subtotal{
  font-size:13px;
}
.compact-cart-summary{
  padding:10px 14px 14px;
}
.compact-cart-total-line{
  margin-bottom:10px;
}
.compact-cart-total-label strong{
  font-size:14px;
}
.compact-cart-total-label span{
  font-size:11px;
}
.compact-cart-total-value{
  font-size:20px;
}
.compact-cart-actions-3{
  grid-template-columns:1fr;
}
.compact-cart-btn{
  height:40px;
  border-radius:10px;
  font-size:12px;
}
@media (min-width: 360px){
  .compact-cart-actions-3{
    grid-template-columns:1fr 1fr;
  }
  .compact-cart-actions-3 a:last-child{
    grid-column:1 / -1;
  }
}
@media (min-width: 520px){
  .compact-cart-actions-3{
    grid-template-columns:1fr 1fr 1fr;
  }
  .compact-cart-actions-3 a:last-child{
    grid-column:auto;
  }
}


/* Realistic compact cover cards */
.cart-compact-cover{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:8px;
  background-size:cover;
  background-position:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px rgba(15,23,42,.08);
}
.cart-compact-cover::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,.38) 100%);
}
.cart-compact-cover-overlay{
  position:absolute;
  inset:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:inherit;
  pointer-events:none;
}
.cart-compact-cover-badge{
  position:absolute;
  top:7px;
  left:7px;
  z-index:2;
  padding:2px 5px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#7b1220;
  font-size:8px;
  font-weight:800;
  letter-spacing:.02em;
}
.cart-compact-cover-title{
  position:relative;
  z-index:2;
  color:#fff;
  font-size:9px;
  font-weight:800;
  line-height:1.2;
  text-shadow:0 1px 2px rgba(0,0,0,.28);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/* Checkout step active fix */
.checkout-step-panel{
  display:none;
}
.checkout-step-panel.active{
  display:block !important;
}

.checkout-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:20px;
}

.checkout-step{
  min-height:56px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  font-weight:800;
  font-size:15px;
  color:#475569;
  transition:.2s ease;
}

.checkout-step.active{
  background:#8b1020;
  color:#fff;
  border-color:#8b1020;
  box-shadow:0 8px 20px rgba(139,16,32,.12);
}

.checkout-nav-row{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:22px;
  flex-wrap:wrap;
}

.checkout-nav-row .compact-cart-btn{
  min-width:140px;
}

@media (max-width:768px){
  .checkout-steps{
    grid-template-columns:1fr;
  }
  .checkout-nav-row{
    justify-content:stretch;
  }
  .checkout-nav-row .compact-cart-btn{
    width:100%;
  }
}


.compact-file-input{
  width:100%;
  font-size:13px;
  color:#334155;
}
.compact-file-input::file-selector-button{
  border:1px solid #dbe2ea;
  background:#fff;
  color:#0f172a;
  border-radius:12px;
  padding:10px 14px;
  margin-right:12px;
  font-weight:700;
  cursor:pointer;
}


.payment-proof-preview{
  margin-top:14px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#f8fafc;
}
.payment-proof-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.payment-proof-preview-head strong{
  font-size:13px;
  color:#0f172a;
}
.payment-proof-meta{
  font-size:11px;
  color:#64748b;
}
.payment-proof-image{
  display:block;
  width:100%;
  max-height:240px;
  object-fit:contain;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
}
.payment-proof-pdf{
  padding:12px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  font-size:13px;
  color:#334155;
}
.hidden{
  display:none !important;
}


/* Navbar visibility + dropdown fix */
.desktop-menu{
  display:flex;
  align-items:center;
  gap:4px;
  list-style:none;
  margin:0;
  padding:0;
}
.desktop-menu > li{
  position:relative;
}
.menu-item{
  display:block;
  padding:14px 16px;
  font-size:14px;
  font-weight:700;
  color:#334155;
}
.menu-item:hover{
  color:#7b1220;
}
.dropdown{
  display:none;
  position:absolute;
  left:0;
  top:100%;
  min-width:240px;
  margin-top:8px;
  padding:8px;
  list-style:none;
  border:1px solid #eadfe1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 32px rgba(50,15,22,.10);
  z-index:80;
}
.dropdown li a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  color:#334155;
}
.dropdown li a:hover{
  background:#fbf6f7;
  color:#7b1220;
}
.has-dropdown:hover > .dropdown{
  display:block !important;
}
.mobile-nav{
  padding:12px 0;
}
.mobile-nav-grid{
  display:grid;
  gap:8px;
}
.mobile-nav-item{
  display:block;
  padding:12px 14px;
  border:1px solid #eadfe1;
  border-radius:16px;
  background:#fff;
  color:#334155;
  font-size:14px;
  font-weight:700;
}
.mobile-nav-item:hover{
  color:#7b1220;
  background:#fbf6f7;
}

@media (max-width: 1023px){
  .desktop-menu{
    display:none;
  }
}
@media (min-width: 1024px){
  .mobile-nav{
    display:none !important;
  }
}


/* Enterprise compact header/navbar/search */
.enterprise-topline{
  background:#5e0d17;
  color:#fff;
  font-size:11px;
}
.enterprise-topline-inner{
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.enterprise-topline-links{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.enterprise-topline-links a,
.enterprise-topline-links button,
.enterprise-topline-links span{
  opacity:.92;
}
.enterprise-header{
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #eadfe1;
  box-shadow:0 8px 24px rgba(50,15,22,.04);
}
.enterprise-bar{
  display:grid;
  grid-template-columns:auto 1fr minmax(220px,360px) auto;
  align-items:center;
  gap:16px;
  min-height:70px;
}
.enterprise-brand{
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}
.enterprise-brand-mark{
  font-size:38px;
  line-height:1;
  font-weight:900;
  color:#5e0d17;
  letter-spacing:-.04em;
}
.enterprise-brand-text{
  border-left:1px solid #eadfe1;
  padding-left:12px;
  font-size:10px;
  line-height:1.35;
  font-weight:800;
  text-transform:uppercase;
  color:#5e0d17;
}
.enterprise-nav{
  min-width:0;
}
.desktop-menu{
  display:flex;
  align-items:center;
  gap:2px;
  list-style:none;
  margin:0;
  padding:0;
}
.desktop-menu > li{
  position:relative;
}
.menu-item{
  display:block;
  padding:11px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  color:#334155;
  transition:.2s ease;
}
.menu-item:hover{
  color:#7b1220;
  background:#fbf6f7;
}
.dropdown{
  display:none;
  position:absolute;
  left:0;
  top:100%;
  min-width:230px;
  margin-top:8px;
  padding:8px;
  list-style:none;
  border:1px solid #eadfe1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 38px rgba(50,15,22,.10);
  z-index:90;
}
.dropdown li a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  color:#334155;
}
.dropdown li a:hover{
  background:#fbf6f7;
  color:#7b1220;
}
.has-dropdown:hover > .dropdown{
  display:block !important;
}
.enterprise-search{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  border:1px solid #eadfe1;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  min-width:0;
}
.enterprise-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:none;
  padding:12px 14px;
  font-size:13px;
  background:transparent;
}
.enterprise-search button{
  border:0;
  background:#7b1220;
  color:#fff;
  height:100%;
  padding:0 16px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.enterprise-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.enterprise-action-btn,
.enterprise-user-chip{
  height:40px;
  padding:0 14px;
  border:1px solid #eadfe1;
  background:#fff;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#334155;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.enterprise-user-chip{
  background:#fbf6f7;
  color:#7b1220;
}
.enterprise-menu-toggle{
  display:none;
  width:40px;
  height:40px;
  border:0;
  border-radius:14px;
  background:#7b1220;
  color:#fff;
  font-size:18px;
}
.mobile-nav{
  padding:12px 0 14px;
}
.mobile-nav-grid{
  display:grid;
  gap:8px;
}
.mobile-nav-item{
  display:block;
  padding:12px 14px;
  border:1px solid #eadfe1;
  border-radius:14px;
  background:#fff;
  color:#334155;
  font-size:13px;
  font-weight:700;
}
.mobile-nav-item:hover{
  color:#7b1220;
  background:#fbf6f7;
}
.mobile-nav-group{
  display:grid;
  gap:8px;
  margin-top:4px;
}
.mobile-nav-label{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#7b1220;
  padding:4px 2px;
}

@media (max-width: 1279px){
  .enterprise-bar{
    grid-template-columns:auto 1fr auto;
  }
  .enterprise-search{
    order:4;
    grid-column:1 / -1;
  }
}
@media (max-width: 1023px){
  .enterprise-bar{
    grid-template-columns:auto 1fr auto;
    min-height:64px;
  }
  .desktop-menu{
    display:none;
  }
  .enterprise-menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}
@media (min-width: 1024px){
  .mobile-nav{
    display:none !important;
  }
}
@media (max-width: 767px){
  .enterprise-topline{
    display:none;
  }
  .enterprise-bar{
    gap:10px;
    padding:10px 0;
  }
  .enterprise-brand-mark{
    font-size:32px;
  }
  .enterprise-brand-text{
    font-size:9px;
    padding-left:10px;
  }
  .enterprise-action-btn,
  .enterprise-user-chip{
    display:none;
  }
  .enterprise-search input{
    font-size:12px;
    padding:11px 12px;
  }
  .enterprise-search button{
    padding:0 14px;
    font-size:12px;
  }
}


/* Mobile header/menu tidy fix */
@media (max-width: 1023px){
  .enterprise-header{
    position:sticky;
    top:0;
  }

  .enterprise-bar{
    grid-template-columns: auto 1fr auto;
    align-items:center;
    gap:12px;
  }

  .enterprise-nav{
    grid-column: 1 / -1;
    order: 10;
  }

  .mobile-nav{
    padding:12px 0 16px;
    margin-top:8px;
    border-top:1px solid #f0e4e6;
  }

  .mobile-nav-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .mobile-nav-item{
    padding:13px 14px;
    border-radius:16px;
    font-size:14px;
    line-height:1.2;
  }

  .mobile-nav-group{
    margin-top:2px;
    padding-top:4px;
  }

  .mobile-nav-label{
    padding:4px 2px 8px;
    font-size:12px;
  }

  .enterprise-search{
    order: 4;
    grid-column: 1 / -1;
    margin-top:2px;
  }
}

@media (max-width: 767px){
  .enterprise-header .max-w-7xl{
    padding-left:14px;
    padding-right:14px;
  }

  .enterprise-bar{
    grid-template-columns:auto 1fr auto;
    min-height:58px;
    gap:10px;
  }

  .enterprise-brand{
    gap:10px;
    min-width:0;
  }

  .enterprise-brand-mark{
    font-size:28px;
  }

  .enterprise-brand-text{
    font-size:8px;
    line-height:1.35;
    padding-left:8px;
  }

  .enterprise-menu-toggle{
    width:38px;
    height:38px;
    border-radius:12px;
    flex-shrink:0;
  }

  .enterprise-search{
    margin-top:8px;
  }

  .enterprise-search input{
    padding:10px 12px;
  }

  .enterprise-search button{
    min-width:58px;
  }

  .mobile-nav{
    margin-top:10px;
  }
}


/* Header/nav like requested mockup */
.header-accent-line{
  height:8px;
  background:#7b1220;
}
.mock-header-shell{
  background:#fff;
  border-bottom:1px solid #efe2e5;
}
.mock-header-main{
  min-height:96px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
}
.mock-brand{
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}
.mock-brand-mark{
  font-size:56px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.05em;
  color:#7b1220;
}
.mock-brand-text{
  border-left:2px solid #eadfe1;
  padding-left:14px;
  font-size:13px;
  line-height:1.25;
  font-weight:800;
  color:#470b13;
}
.mock-search{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  overflow:hidden;
  border:1px solid #eadfe1;
  border-radius:24px;
  background:#fff;
}
.mock-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:none;
  padding:18px 22px;
  font-size:15px;
  color:#334155;
  background:transparent;
}
.mock-search button{
  height:56px;
  border:0;
  background:#8b1020;
  color:#fff;
  padding:0 24px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.mock-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.mock-chip{
  height:56px;
  padding:0 22px;
  border:1px solid #eadfe1;
  background:#fff;
  color:#334155;
  border-radius:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
}
.mock-chip-user{
  color:#6b1220;
}
.mock-chip-cart{
  gap:10px;
}
.mock-mobile-toggle{
  display:none;
  width:50px;
  height:50px;
  border:0;
  border-radius:18px;
  background:#8b1020;
  color:#fff;
  font-size:22px;
}

.mock-nav-shell{
  background:#fff;
  border-bottom:1px solid #efe2e5;
}
.mock-nav-row{
  min-height:64px;
  display:flex;
  align-items:center;
}
.mock-desktop-menu{
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
}
.mock-desktop-menu > li{
  position:relative;
}
.mock-desktop-menu .menu-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  font-size:18px;
  font-weight:700;
  color:#223757;
}
.mock-desktop-menu .menu-item:hover{
  color:#7b1220;
  background:#fbf6f7;
}
.nav-caret{
  font-size:10px;
  transform:translateY(1px);
}
.mock-nav-shell .dropdown{
  margin-top:10px;
  min-width:240px;
  border-radius:18px;
}
.mock-nav-shell .dropdown li a{
  font-size:14px;
}

@media (max-width: 1279px){
  .mock-header-main{
    grid-template-columns:auto 1fr;
  }
  .mock-header-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
    margin-top:-4px;
    padding-bottom:12px;
  }
}
@media (max-width: 1023px){
  .mock-header-main{
    grid-template-columns:auto 1fr auto;
    gap:12px;
    min-height:78px;
    padding:10px 0;
  }
  .mock-search{
    grid-column:1 / -1;
    order:4;
  }
  .mock-header-actions{
    grid-column:auto;
    margin-top:0;
    padding-bottom:0;
  }
  .mock-chip{
    display:none;
  }
  .mock-mobile-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .mock-desktop-menu{
    display:none;
  }
  .mock-nav-row{
    min-height:auto;
    align-items:stretch;
  }
  .mobile-nav{
    width:100%;
    padding:12px 0 16px;
  }
}
@media (max-width: 767px){
  .mock-brand-mark{
    font-size:40px;
  }
  .mock-brand-text{
    font-size:10px;
    padding-left:10px;
  }
  .mock-search input{
    padding:14px 16px;
    font-size:13px;
  }
  .mock-search button{
    height:48px;
    padding:0 18px;
    font-size:13px;
  }
}


/* Minimal small header/nav */
.mini-topline{
  background:#7b1220;
  color:#fff;
  font-size:10px;
}
.mini-topline-inner{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mini-topline-links{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.mini-header-shell{
  background:#fff;
  border-bottom:1px solid #f1e4e6;
}
.mini-header-main{
  min-height:82px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
}
.mini-brand{
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}
.mini-brand-mark{
  font-size:40px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.05em;
  color:#7b1220;
}
.mini-brand-text{
  border-left:1px solid #eadfe1;
  padding-left:12px;
  font-size:10px;
  line-height:1.25;
  font-weight:800;
  color:#470b13;
}
.mini-search{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  overflow:hidden;
  border:1px solid #eadfe1;
  border-radius:18px;
  background:#fff;
}
.mini-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:none;
  padding:14px 18px;
  font-size:13px;
  color:#334155;
  background:transparent;
}
.mini-search button{
  height:48px;
  border:0;
  background:#8b1020;
  color:#fff;
  padding:0 18px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.mini-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.mini-chip{
  height:48px;
  padding:0 18px;
  border:1px solid #eadfe1;
  background:#fff;
  color:#334155;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.mini-chip-user{
  color:#6b1220;
}
.mini-chip-cart{
  gap:8px;
}
.mini-mobile-toggle{
  display:none;
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:#8b1020;
  color:#fff;
  font-size:18px;
}

.mini-nav-shell{
  background:#fff;
  border-bottom:1px solid #f1e4e6;
}
.mini-nav-row{
  min-height:54px;
  display:flex;
  align-items:center;
}
.mini-desktop-menu{
  display:flex;
  align-items:center;
  gap:6px;
  list-style:none;
  margin:0;
  padding:0;
}
.mini-desktop-menu > li{
  position:relative;
}
.mini-desktop-menu .menu-item{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  color:#223757;
}
.mini-desktop-menu .menu-item:hover{
  color:#7b1220;
  background:#fbf6f7;
}
.mini-nav-shell .dropdown{
  margin-top:8px;
  min-width:220px;
  border-radius:16px;
}
.mini-nav-shell .dropdown li a{
  font-size:13px;
}

@media (max-width: 1279px){
  .mini-header-main{
    grid-template-columns:auto 1fr;
  }
  .mini-header-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
    margin-top:-4px;
    padding-bottom:10px;
  }
}
@media (max-width: 1023px){
  .mini-header-main{
    grid-template-columns:auto 1fr auto;
    gap:10px;
    min-height:70px;
    padding:10px 0;
  }
  .mini-search{
    grid-column:1 / -1;
    order:4;
  }
  .mini-header-actions{
    grid-column:auto;
    margin-top:0;
    padding-bottom:0;
  }
  .mini-chip{
    display:none;
  }
  .mini-mobile-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .mini-desktop-menu{
    display:none;
  }
  .mini-nav-row{
    min-height:auto;
    align-items:stretch;
  }
  .mobile-nav{
    width:100%;
    padding:12px 0 16px;
  }
}
@media (max-width: 767px){
  .mini-topline{
    display:none;
  }
  .mini-header-main{
    min-height:62px;
    gap:10px;
  }
  .mini-brand-mark{
    font-size:32px;
  }
  .mini-brand-text{
    font-size:8px;
    padding-left:8px;
  }
  .mini-search input{
    padding:12px 14px;
    font-size:12px;
  }
  .mini-search button{
    height:42px;
    padding:0 14px;
    font-size:12px;
  }
}


/* Ultra clean publisher header/nav */
.publisher-topline{
  background:#6f0f1b;
  color:#fff;
  font-size:10px;
  letter-spacing:.02em;
}
.publisher-topline-inner{
  min-height:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.publisher-topline-links{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.publisher-topline-links a,
.publisher-topline-links button,
.publisher-topline-links span{
  opacity:.92;
}

.publisher-header-shell{
  background:rgba(255,255,255,.98);
  border-bottom:1px solid #efe5e7;
  backdrop-filter:blur(14px);
}
.publisher-header-main{
  min-height:74px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
}
.publisher-brand{
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}
.publisher-brand-mark{
  font-size:36px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.05em;
  color:#71111d;
}
.publisher-brand-text{
  border-left:1px solid #eadfe1;
  padding-left:10px;
  font-size:9px;
  line-height:1.3;
  font-weight:800;
  color:#501019;
}
.publisher-search{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid #eadfe1;
  border-radius:999px;
  box-shadow:0 8px 22px rgba(48,12,18,.04);
}
.publisher-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:none;
  background:transparent;
  padding:12px 18px;
  font-size:13px;
  color:#334155;
}
.publisher-search button{
  height:44px;
  border:0;
  background:#7b1220;
  color:#fff;
  padding:0 18px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.publisher-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.publisher-chip{
  height:42px;
  padding:0 16px;
  border:1px solid #eadfe1;
  background:#fff;
  color:#334155;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.publisher-chip-user{
  color:#7b1220;
  background:#fcf8f8;
}
.publisher-chip-cart{
  gap:8px;
}
.publisher-mobile-toggle{
  display:none;
  width:40px;
  height:40px;
  border:0;
  border-radius:14px;
  background:#7b1220;
  color:#fff;
  font-size:18px;
}

.publisher-nav-shell{
  background:#fff;
  border-bottom:1px solid #f2e7e9;
}
.publisher-nav-row{
  min-height:52px;
  display:flex;
  align-items:center;
}
.publisher-desktop-menu{
  display:flex;
  align-items:center;
  gap:4px;
  list-style:none;
  margin:0;
  padding:0;
}
.publisher-desktop-menu > li{
  position:relative;
}
.publisher-desktop-menu .menu-item{
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:#223757;
  transition:.18s ease;
}
.publisher-desktop-menu .menu-item:hover{
  color:#7b1220;
  background:#fbf6f7;
}
.publisher-nav-shell .dropdown{
  margin-top:10px;
  min-width:220px;
  border-radius:16px;
  border:1px solid #eadfe1;
  box-shadow:0 20px 40px rgba(45,10,18,.08);
}
.publisher-nav-shell .dropdown li a{
  font-size:13px;
}
.publisher-nav-shell .dropdown li a:hover{
  background:#fbf6f7;
}

@media (max-width: 1279px){
  .publisher-header-main{
    grid-template-columns:auto 1fr;
  }
  .publisher-header-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
    margin-top:-4px;
    padding-bottom:8px;
  }
}
@media (max-width: 1023px){
  .publisher-header-main{
    grid-template-columns:auto 1fr auto;
    min-height:66px;
    gap:10px;
    padding:8px 0;
  }
  .publisher-search{
    grid-column:1 / -1;
    order:4;
  }
  .publisher-header-actions{
    grid-column:auto;
    margin-top:0;
    padding-bottom:0;
  }
  .publisher-chip{
    display:none;
  }
  .publisher-mobile-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .publisher-desktop-menu{
    display:none;
  }
}
@media (max-width: 767px){
  .publisher-topline{
    display:none;
  }
  .publisher-brand-mark{
    font-size:30px;
  }
  .publisher-brand-text{
    font-size:8px;
    padding-left:8px;
  }
  .publisher-search input{
    padding:11px 14px;
    font-size:12px;
  }
  .publisher-search button{
    height:40px;
    padding:0 14px;
    font-size:12px;
  }
}

/* Dropdown clickability fix */
.publisher-desktop-menu > li.has-dropdown{
  position:relative;
}
.publisher-nav-shell .has-dropdown > .menu-item,
.publisher-nav-shell .has-dropdown > .menu-link{
  position:relative;
  z-index:2;
}
.publisher-nav-shell .dropdown{
  top:calc(100% + 2px);
  margin-top:0;
  z-index:120;
}
.publisher-nav-shell .has-dropdown::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height:14px;
}
.publisher-nav-shell .has-dropdown:hover > .dropdown,
.publisher-nav-shell .has-dropdown:focus-within > .dropdown,
.publisher-nav-shell .has-dropdown.open > .dropdown{
  display:block !important;
}


/* Clean responsive cart button fix */
.publisher-chip-cart{
  gap:8px;
  position:relative;
}
.cart-icon-wrap{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 18px;
}
.cart-icon-svg{
  width:18px;
  height:18px;
  display:block;
}
.cart-text{
  line-height:1;
}
.publisher-chip-cart .cart-badge{
  margin-left:2px;
}

@media (max-width: 1023px){
  .publisher-chip-cart{
    display:inline-flex;
    width:42px;
    height:42px;
    min-width:42px;
    padding:0;
    border-radius:14px;
  }
  .publisher-chip-cart .cart-text{
    display:none;
  }
  .publisher-chip-cart .cart-badge{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:18px;
    height:18px;
    padding:0 4px;
    font-size:10px;
  }
}

@media (max-width: 639px){
  .publisher-header-actions{
    gap:6px;
  }
  .publisher-chip-cart{
    width:40px;
    height:40px;
    min-width:40px;
  }
  .cart-icon-wrap,
  .cart-icon-svg{
    width:17px;
    height:17px;
  }
}


/* Discount ribbon + old price */
.discount-ribbon{
  position:absolute;
  top:14px;
  right:-34px;
  z-index:6;
  min-width:120px;
  transform:rotate(38deg);
  text-align:center;
  padding:6px 12px;
  background:linear-gradient(135deg,#b91c1c,#7f1d1d);
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  box-shadow:0 8px 18px rgba(127,29,29,.22);
  pointer-events:none;
}
.old-price{
  font-size:12px;
  line-height:1.2;
  color:#94a3b8;
  text-decoration:line-through;
  text-decoration-thickness:2px;
}
@media (max-width: 640px){
  .discount-ribbon{
    top:12px;
    right:-40px;
    min-width:115px;
    font-size:10px;
    padding:5px 10px;
  }
}


/* Search near cart: minimal toggle */
.publisher-search-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:8px;
  z-index:50;
}
.publisher-search-icon-btn{
  width:42px;
  height:42px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid rgba(127,29,29,.12);
  background:#fff;
  color:#7f1d1d;
  transition:all .2s ease;
  box-shadow:0 4px 12px rgba(127,29,29,.05);
  cursor:pointer;
}
.publisher-search-icon-btn:hover{
  background:#fff7f7;
  transform:translateY(-1px);
}
.publisher-search-icon-svg{
  width:18px;
  height:18px;
  display:block;
}
.publisher-search-dropdown{
  position:absolute;
  top:50px;
  right:0;
  width:280px;
  background:#fff;
  border:1px solid rgba(127,29,29,.12);
  border-radius:16px;
  padding:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  display:none;
  z-index:9999;
  gap:8px;
  align-items:center;
}
.publisher-search-dropdown.is-open{
  display:flex !important;
}
.publisher-search-input{
  flex:1;
  min-width:0;
  border:1px solid rgba(127,29,29,.15);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  font-size:14px;
  background:#fff;
  color:#1f2937;
}
.publisher-search-submit{
  border:none;
  background:#7f1d1d;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  white-space:nowrap;
}
.publisher-search-submit:hover{
  opacity:.92;
}
@media (max-width: 1024px){
  .publisher-search-toggle{
    margin-right:6px;
  }
  .publisher-search-dropdown{
    width:250px;
    top:46px;
    right:-4px;
  }
}
@media (max-width: 640px){
  .publisher-search-icon-btn{
    width:40px;
    height:40px;
    min-width:40px;
    border-radius:12px;
  }
  .publisher-search-icon-svg{
    width:17px;
    height:17px;
  }
  .publisher-search-dropdown{
    width:220px;
    right:-8px;
    top:44px;
    padding:8px;
  }
  .publisher-search-input{
    padding:9px 10px;
    font-size:13px;
  }
  .publisher-search-submit{
    padding:9px 10px;
    font-size:12px;
  }
}



/* Header tidy fix */
.top-links-bar{
  position:relative;
  z-index:30;
}
.top-links-bar > div{
  min-height:44px;
}
.top-links-bar a{
  font-size:13px;
  font-weight:600;
}

.publisher-header-shell{
  position:relative;
  z-index:20;
}
.publisher-header-main{
  min-height:92px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
}
.publisher-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:max-content;
}
.publisher-brand-mark{
  font-size:3.1rem;
  line-height:1;
}
.publisher-brand-text{
  line-height:1.15;
}

.publisher-header-actions{
  display:flex;
  align-items:center;
  justify-self:end;
  gap:10px;
  flex-wrap:nowrap;
}
.publisher-header-actions > *{
  flex:0 0 auto;
}

.mock-chip,
.publisher-chip{
  height:50px;
  border-radius:18px;
  padding:0 18px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.mock-chip-user{
  min-width:180px;
  color:#7b1220;
  border-color:#ead7db;
  background:#fff;
}
.publisher-chip-wishlist{
  min-width:104px;
}
.publisher-chip-cart{
  min-width:190px;
  padding:0 20px;
  gap:10px;
}

.publisher-search-toggle{
  margin-right:0;
}
.publisher-search-icon-btn{
  width:50px;
  height:50px;
  min-width:50px;
  border-radius:18px;
}
.publisher-search-icon-svg{
  width:19px;
  height:19px;
}
.publisher-search-dropdown{
  top:58px;
  right:0;
  width:290px;
  border-radius:18px;
  padding:10px;
}

.publisher-nav-shell{
  background:#fff;
}
.publisher-nav-link{
  padding-top:18px;
  padding-bottom:18px;
}

@media (max-width: 1180px){
  .publisher-header-main{
    grid-template-columns:auto auto;
    gap:14px;
  }
  .publisher-header-search{
    display:none;
  }
  .publisher-header-actions{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .mock-chip,
  .publisher-chip{
    height:46px;
    border-radius:16px;
    padding:0 16px;
  }
  .publisher-search-icon-btn{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:16px;
  }
  .publisher-chip-cart{
    min-width:160px;
  }
}

@media (max-width: 768px){
  .top-links-bar > div{
    justify-content:center !important;
    padding-top:10px !important;
    padding-bottom:10px !important;
  }
  .top-links-bar > div > div:first-child{
    width:100%;
    text-align:center;
  }
  .publisher-header-main{
    grid-template-columns:1fr;
    gap:12px;
    padding-top:14px;
    padding-bottom:14px;
  }
  .publisher-brand{
    justify-content:center;
  }
  .publisher-header-actions{
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }
  .mock-chip-user,
  .publisher-chip-wishlist{
    min-width:auto;
  }
  .publisher-chip-cart{
    min-width:auto;
    padding:0 16px;
  }
  .publisher-search-icon-btn{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:14px;
  }
  .publisher-search-dropdown{
    top:48px;
    right:50%;
    transform:translateX(50%);
    width:min(260px, calc(100vw - 32px));
  }
}



/* Premium header style */
.premium-header-shell{
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.98)),
    radial-gradient(circle at top left, rgba(127,29,29,.05), transparent 34%);
  border-bottom:1px solid rgba(127,29,29,.08);
  box-shadow:0 8px 30px rgba(15,23,42,.04);
}

.top-links-bar{
  background:linear-gradient(90deg,#8f151b 0%, #a31b20 45%, #8f151b 100%) !important;
  border-bottom:0 !important;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.08);
}
.top-links-bar a{
  opacity:.96;
}
.top-links-bar a:hover{
  opacity:1;
  text-decoration:none;
}
.top-links-bar > div{
  max-width:1280px !important;
}

.premium-header-main{
  min-height:98px;
  grid-template-columns:auto 1fr auto;
  gap:24px;
  padding-top:14px;
  padding-bottom:14px;
}

.premium-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.premium-brand-mark{
  font-size:3.3rem;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  color:#8f151b;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}
.premium-brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}
.premium-brand-text strong,
.premium-brand-text b{
  color:#111827;
}
.premium-brand-text{
  font-size:13px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#2f2f2f;
}

.premium-header-actions{
  gap:12px;
}
.premium-header-actions .mock-chip,
.premium-header-actions .publisher-chip{
  height:52px;
  border-radius:999px;
  padding:0 22px;
  border:1px solid rgba(127,29,29,.12);
  background:linear-gradient(180deg,#fff,#fff8f8);
  box-shadow:0 6px 18px rgba(127,29,29,.05);
  color:#334155;
}
.premium-header-actions .mock-chip:hover,
.premium-header-actions .publisher-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(127,29,29,.08);
}
.premium-header-actions .mock-chip-user{
  color:#8f151b;
  font-weight:800;
  min-width:188px;
}
.premium-header-actions .publisher-chip-wishlist{
  min-width:112px;
}
.premium-header-actions .publisher-chip-cart{
  min-width:198px;
  color:#334155;
  font-weight:800;
  gap:12px;
}

.publisher-chip-cart .cart-badge{
  background:#9f1723 !important;
  box-shadow:0 4px 10px rgba(159,23,35,.2);
}

.publisher-search-toggle{
  margin-right:2px;
}
.publisher-search-icon-btn{
  width:52px;
  height:52px;
  min-width:52px;
  border-radius:999px;
  border:1px solid rgba(127,29,29,.12);
  background:linear-gradient(180deg,#fff,#fff8f8);
  color:#8f151b;
  box-shadow:0 6px 18px rgba(127,29,29,.05);
}
.publisher-search-icon-btn:hover{
  background:#fff;
  box-shadow:0 10px 22px rgba(127,29,29,.08);
}
.publisher-search-dropdown{
  top:60px;
  right:-8px;
  width:310px;
  border-radius:18px;
  border:1px solid rgba(127,29,29,.12);
  box-shadow:0 18px 44px rgba(15,23,42,.12);
}

.premium-nav-shell{
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
  border-top:1px solid rgba(127,29,29,.06);
  border-bottom:1px solid rgba(127,29,29,.08);
}
.premium-nav-shell .publisher-nav-inner{
  max-width:1280px;
}
.premium-nav-link{
  position:relative;
  font-weight:800;
  color:#173160;
  padding:18px 18px;
}
.premium-nav-link:hover{
  color:#8f151b;
}
.premium-nav-link::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:10px;
  height:2px;
  border-radius:99px;
  background:linear-gradient(90deg,#8f151b,#c2410c);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .22s ease;
}
.premium-nav-link:hover::after,
.premium-nav-link.is-active::after{
  transform:scaleX(1);
}

@media (max-width: 1180px){
  .premium-header-main{
    grid-template-columns:auto auto;
    gap:16px;
  }
  .premium-header-actions{
    gap:10px;
  }
  .premium-header-actions .mock-chip,
  .premium-header-actions .publisher-chip{
    height:48px;
    padding:0 18px;
  }
  .publisher-search-icon-btn{
    width:48px;
    height:48px;
    min-width:48px;
  }
  .premium-header-actions .publisher-chip-cart{
    min-width:172px;
  }
}

@media (max-width: 768px){
  .premium-header-main{
    grid-template-columns:1fr;
    gap:14px;
    min-height:auto;
    padding-top:16px;
    padding-bottom:16px;
  }
  .premium-brand{
    justify-content:center;
  }
  .premium-brand-mark{
    font-size:3rem;
  }
  .premium-header-actions{
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }
  .premium-header-actions .mock-chip-user,
  .premium-header-actions .publisher-chip-wishlist,
  .premium-header-actions .publisher-chip-cart{
    min-width:auto;
  }
  .premium-header-actions .mock-chip,
  .premium-header-actions .publisher-chip{
    height:44px;
    padding:0 16px;
  }
  .publisher-search-icon-btn{
    width:44px;
    height:44px;
    min-width:44px;
  }
  .publisher-search-dropdown{
    top:50px;
    right:50%;
    transform:translateX(50%);
    width:min(270px, calc(100vw - 28px));
  }
  .premium-nav-link{
    padding:16px 14px;
    font-size:15px;
  }
}


/* Unified single-bar header */
.unified-header-shell{
  background:#fff;
  border-bottom:1px solid rgba(127,29,29,.08);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.unified-header-main{
  max-width:1280px;
  margin:0 auto;
  min-height:92px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:26px;
  padding:0 16px;
}
.unified-brand{
  min-width:max-content;
  text-decoration:none;
}
.unified-navbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
  flex-wrap:wrap;
}
.unified-navbar .premium-nav-link{
  padding:12px 14px;
  font-size:16px;
  line-height:1;
  white-space:nowrap;
}
.unified-header-actions{
  display:flex;
  align-items:center;
  justify-self:end;
  gap:10px;
  flex-wrap:nowrap;
}
.unified-cart-btn{
  min-width:168px !important;
  text-decoration:none;
}
.unified-cart-btn .cart-text{
  display:inline-flex;
}
.publisher-search-toggle{
  margin-right:0 !important;
}
.publisher-search-dropdown{
  top:58px !important;
  right:0 !important;
}
.publisher-nav-shell{
  display:none !important;
}
@media (max-width: 1180px){
  .unified-header-main{
    grid-template-columns:1fr;
    gap:14px;
    padding-top:14px;
    padding-bottom:14px;
  }
  .unified-brand{
    justify-self:center;
  }
  .unified-navbar{
    justify-content:center;
    gap:2px;
  }
  .unified-navbar .premium-nav-link{
    font-size:15px;
    padding:10px 12px;
  }
  .unified-header-actions{
    justify-self:center;
  }
}
@media (max-width: 768px){
  .unified-header-main{
    gap:12px;
    min-height:auto;
  }
  .unified-navbar{
    overflow-x:auto;
    flex-wrap:nowrap;
    justify-content:flex-start;
    width:100%;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .unified-navbar::-webkit-scrollbar{
    display:none;
  }
  .unified-navbar .premium-nav-link{
    font-size:14px;
    padding:10px 10px;
  }
  .unified-header-actions{
    width:100%;
    justify-content:center;
  }
  .unified-cart-btn{
    min-width:auto !important;
    padding:0 16px !important;
  }
  .unified-cart-btn .cart-text{
    display:none;
  }
}


/* Precise safe single-bar refinement */
.unified-header-shell{
  background:linear-gradient(180deg,#ffffff 0%, #fffdfd 100%);
  border-bottom:1px solid rgba(120, 20, 28, .08);
  box-shadow:0 8px 22px rgba(17,24,39,.045);
}
.unified-header-main{
  max-width:1280px;
  min-height:88px;
  gap:18px;
  padding:0 18px;
}
.unified-brand{
  gap:12px;
}
.premium-brand-lockup{
  position:relative;
}
.premium-brand-mark{
  font-size:3.15rem;
  font-weight:900;
  letter-spacing:-.05em;
  color:#8d1419;
}
.premium-brand-text{
  font-size:12px;
  line-height:1.12;
  letter-spacing:.04em;
  color:#2b2b2b;
}
.unified-navbar-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}
.unified-navbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:0 6px;
}
.unified-nav-item{
  position:relative;
  padding:12px 12px !important;
  font-size:15px !important;
  font-weight:800 !important;
  color:#16315f !important;
  border-radius:10px;
  transition:all .18s ease;
}
.unified-nav-item:hover{
  color:#8d1419 !important;
  background:rgba(141,20,25,.04);
}
.unified-nav-item::after{
  left:12px !important;
  right:12px !important;
  bottom:8px !important;
  height:2px !important;
  background:linear-gradient(90deg,#8d1419,#b45309) !important;
}
.unified-header-actions{
  gap:10px;
}
.premium-header-actions .publisher-chip,
.premium-header-actions .mock-chip{
  height:46px;
  border-radius:999px;
  padding:0 18px;
  background:#fff;
  border:1px solid rgba(141,20,25,.12);
  box-shadow:none;
}
.premium-search-pill{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1px solid rgba(141,20,25,.12) !important;
  box-shadow:none !important;
  color:#8d1419 !important;
}
.premium-search-pill:hover{
  background:#fff8f8 !important;
  box-shadow:none !important;
  transform:none !important;
}
.publisher-search-icon-svg{
  width:18px;
  height:18px;
}
.publisher-search-dropdown{
  top:54px !important;
  right:0 !important;
  width:290px !important;
  border-radius:14px !important;
  border:1px solid rgba(141,20,25,.12) !important;
  box-shadow:0 16px 34px rgba(17,24,39,.10) !important;
  padding:10px !important;
}
.publisher-search-input{
  height:40px;
  border-radius:10px !important;
}
.publisher-search-submit{
  height:40px;
  border-radius:10px !important;
  background:#8d1419 !important;
}
.premium-cart-pill{
  min-width:164px !important;
  gap:10px !important;
  height:46px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1px solid rgba(141,20,25,.12) !important;
  box-shadow:none !important;
  color:#334155 !important;
}
.premium-cart-pill .cart-icon-wrap,
.premium-cart-pill .cart-icon-svg{
  width:18px;
  height:18px;
}
.premium-cart-pill .cart-badge{
  position:static !important;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  background:#9d1620 !important;
  color:#fff;
}
.top-links-bar{
  background:linear-gradient(90deg,#8d1419 0%, #a11a1f 50%, #8d1419 100%) !important;
}
.top-links-bar > div{
  max-width:1280px !important;
  padding:7px 18px !important;
}
.top-links-bar a{
  font-size:12px !important;
  font-weight:700 !important;
}
@media (max-width: 1200px){
  .unified-header-main{
    grid-template-columns:auto 1fr auto;
    gap:12px;
    padding:0 14px;
  }
  .premium-brand-mark{
    font-size:2.9rem;
  }
  .premium-brand-text{
    font-size:11px;
  }
  .unified-nav-item{
    padding:11px 10px !important;
    font-size:14px !important;
  }
}
@media (max-width: 980px){
  .unified-header-main{
    grid-template-columns:1fr;
    padding-top:14px;
    padding-bottom:14px;
    min-height:auto;
  }
  .unified-brand{
    justify-content:center;
  }
  .unified-navbar-wrap{
    width:100%;
  }
  .unified-navbar{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    row-gap:4px;
  }
  .unified-header-actions{
    justify-self:center;
  }
}
@media (max-width: 640px){
  .top-links-bar > div{
    justify-content:center !important;
    padding:8px 12px !important;
  }
  .top-links-bar > div > div:first-child{
    width:100%;
    text-align:center;
  }
  .premium-brand-mark{
    font-size:2.6rem;
  }
  .premium-brand-text{
    font-size:10px;
  }
  .unified-navbar{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .unified-navbar::-webkit-scrollbar{
    display:none;
  }
  .unified-nav-item{
    white-space:nowrap;
    font-size:13px !important;
    padding:10px 9px !important;
  }
  .unified-header-actions{
    width:100%;
    justify-content:center;
    gap:8px;
  }
  .premium-cart-pill{
    min-width:auto !important;
    padding:0 14px !important;
  }
  .premium-cart-pill .cart-text{
    display:none !important;
  }
  .publisher-search-dropdown{
    right:50% !important;
    transform:translateX(50%);
    width:min(270px, calc(100vw - 26px)) !important;
  }
}


/* Responsive header + category dropdown */
.unified-header-main{
  align-items:center;
}

.unified-navbar{
  align-items:center;
  gap:4px;
}

.nav-dropdown{
  position:relative;
  display:flex;
  align-items:center;
}

.nav-dropdown-toggle{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  background:transparent;
  border:0;
  cursor:pointer;
}

.nav-caret{
  font-size:12px;
  line-height:1;
  opacity:.8;
  transition:transform .2s ease;
}

.nav-dropdown.is-open .nav-caret{
  transform:rotate(180deg);
}

.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid rgba(141,20,25,.10);
  border-radius:14px;
  box-shadow:0 16px 34px rgba(17,24,39,.10);
  padding:8px;
  display:none;
  z-index:120;
}

.nav-dropdown:hover .nav-dropdown-menu{
  display:block;
}

.nav-dropdown.is-open .nav-dropdown-menu{
  display:block;
}

.nav-dropdown-item{
  display:block;
  padding:11px 12px;
  border-radius:10px;
  color:#334155;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
}

.nav-dropdown-item:hover{
  background:rgba(141,20,25,.05);
  color:#8d1419;
}

@media (max-width: 980px){
  .unified-header-main{
    grid-template-columns:1fr;
    gap:14px;
  }

  .unified-navbar-wrap{
    width:100%;
  }

  .unified-navbar{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    row-gap:6px;
  }

  .nav-dropdown-menu{
    top:calc(100% + 8px);
    left:50%;
    transform:translateX(-50%);
    min-width:240px;
  }
}

@media (max-width: 640px){
  .unified-header-main{
    padding-top:12px;
    padding-bottom:12px;
    gap:10px;
  }

  .premium-brand-lockup{
    transform:scale(.96);
    transform-origin:center;
  }

  .unified-navbar{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
    gap:2px;
  }

  .unified-navbar-wrap{
    width:100%;
    overflow:hidden;
  }

  .nav-dropdown{
    position:relative;
    flex:0 0 auto;
  }

  .nav-dropdown-menu{
    position:absolute;
    left:0;
    transform:none;
    min-width:200px;
    max-width:240px;
  }

  .unified-header-actions{
    width:100%;
    justify-content:center;
    flex-wrap:nowrap;
  }

  .premium-search-pill,
  .premium-cart-pill{
    flex:0 0 auto;
  }
}


/* Mobile responsive header fix */
@media (max-width: 768px){
  .top-links-bar{
    display:none !important;
  }

  .unified-header-shell{
    border-bottom:1px solid rgba(141,20,25,.08);
    box-shadow:0 6px 18px rgba(15,23,42,.04);
  }

  .unified-header-main{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:12px 12px 10px !important;
    min-height:auto !important;
    align-items:center !important;
  }

  .mobile-brand-lockup,
  .unified-brand{
    width:100%;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    text-align:left;
  }

  .premium-brand-mark{
    font-size:2.4rem !important;
    line-height:1 !important;
  }

  .premium-brand-text{
    font-size:10px !important;
    line-height:1.1 !important;
    letter-spacing:.03em !important;
  }

  .unified-navbar-wrap{
    width:100% !important;
    overflow:hidden !important;
  }

  .unified-navbar{
    width:100% !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:2px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
    padding:0 0 4px !important;
    margin:0 !important;
  }

  .unified-navbar::-webkit-scrollbar{
    display:none !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:14px !important;
    padding:10px 12px !important;
    border-radius:10px !important;
  }

  .nav-dropdown{
    flex:0 0 auto !important;
    position:relative !important;
  }

  .nav-dropdown-menu{
    left:0 !important;
    right:auto !important;
    top:calc(100% + 8px) !important;
    transform:none !important;
    min-width:190px !important;
    max-width:220px !important;
    z-index:300 !important;
  }

  .mobile-actions-row,
  .unified-header-actions{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    flex-wrap:nowrap !important;
    margin-top:2px !important;
  }

  .premium-search-pill{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
  }

  .publisher-search-dropdown{
    top:48px !important;
    right:50% !important;
    transform:translateX(50%) !important;
    width:min(260px, calc(100vw - 24px)) !important;
  }

  .premium-cart-pill,
  .unified-cart-btn{
    min-width:auto !important;
    height:42px !important;
    padding:0 14px !important;
    gap:8px !important;
  }

  .premium-cart-pill .cart-text{
    display:none !important;
  }

  .premium-cart-pill .cart-badge{
    min-width:22px !important;
    height:22px !important;
    font-size:10px !important;
    padding:0 6px !important;
  }
}

@media (max-width: 420px){
  .unified-header-main{
    padding:10px 10px 8px !important;
    gap:8px !important;
  }

  .premium-brand-mark{
    font-size:2.15rem !important;
  }

  .premium-brand-text{
    font-size:9px !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    font-size:13px !important;
    padding:9px 10px !important;
  }

  .mobile-actions-row,
  .unified-header-actions{
    gap:8px !important;
  }

  .premium-search-pill{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .premium-cart-pill,
  .unified-cart-btn{
    height:40px !important;
    padding:0 12px !important;
  }
}


/* Modern minimal responsive refinement */
:root{
  --mm-maroon:#8d1419;
  --mm-maroon-soft:#f8eeee;
  --mm-border:rgba(141,20,25,.10);
  --mm-text:#1f2937;
  --mm-muted:#64748b;
}

.modern-minimal-header{
  background:#fff;
  border-bottom:1px solid var(--mm-border);
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.unified-header-shell{
  background:#fff !important;
  box-shadow:0 8px 24px rgba(15,23,42,.04) !important;
}

.unified-header-main{
  max-width:1240px !important;
  min-height:78px !important;
  gap:18px !important;
  padding:0 18px !important;
}

.premium-brand-mark{
  font-size:2.75rem !important;
  color:var(--mm-maroon) !important;
  letter-spacing:-.04em !important;
}

.premium-brand-text{
  font-size:11px !important;
  line-height:1.1 !important;
  color:#2b2b2b !important;
  letter-spacing:.03em !important;
}

.modern-navbar-wrap{
  min-width:0;
}

.unified-navbar{
  gap:4px !important;
}

.unified-nav-item,
.nav-dropdown-toggle{
  font-size:14px !important;
  font-weight:700 !important;
  padding:10px 12px !important;
  border-radius:10px !important;
  color:#213a6a !important;
}

.unified-nav-item:hover,
.nav-dropdown-toggle:hover{
  background:rgba(141,20,25,.04) !important;
  color:var(--mm-maroon) !important;
}

.unified-nav-item::after,
.nav-dropdown-toggle::after{
  bottom:6px !important;
}

.nav-dropdown-menu{
  border-radius:14px !important;
  border:1px solid var(--mm-border) !important;
  box-shadow:0 14px 32px rgba(15,23,42,.10) !important;
  padding:8px !important;
}

.nav-dropdown-item{
  border-radius:10px !important;
  font-size:13px !important;
  padding:10px 12px !important;
}

.modern-actions-row{
  gap:8px !important;
}

.premium-search-pill{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1px solid var(--mm-border) !important;
  box-shadow:none !important;
}

.publisher-search-dropdown{
  width:280px !important;
  border-radius:14px !important;
  border:1px solid var(--mm-border) !important;
}

.publisher-search-input{
  height:38px !important;
  border-radius:10px !important;
  font-size:13px !important;
}

.publisher-search-submit{
  height:38px !important;
  border-radius:10px !important;
  font-size:13px !important;
  padding:0 14px !important;
  background:var(--mm-maroon) !important;
}

.premium-cart-pill,
.unified-cart-btn{
  min-width:136px !important;
  height:42px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  border:1px solid var(--mm-border) !important;
  background:#fff !important;
  box-shadow:none !important;
}

.premium-cart-pill .cart-text{
  font-size:14px !important;
  font-weight:700 !important;
}

.premium-cart-pill .cart-badge{
  min-width:22px !important;
  height:22px !important;
  font-size:10px !important;
  background:var(--mm-maroon) !important;
}

.top-links-bar{
  background:linear-gradient(90deg,#8d1419,#9f1b21,#8d1419) !important;
}

.top-links-bar > div{
  max-width:1240px !important;
  padding:7px 18px !important;
}

.top-links-bar a{
  font-size:12px !important;
  font-weight:600 !important;
}

/* Tablet */
@media (max-width: 1024px){
  .unified-header-main{
    grid-template-columns:1fr !important;
    min-height:auto !important;
    padding:14px 16px 12px !important;
    gap:12px !important;
  }

  .unified-brand{
    justify-content:center !important;
  }

  .modern-navbar-wrap{
    width:100% !important;
  }

  .unified-navbar{
    width:100% !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    row-gap:4px !important;
  }

  .modern-actions-row{
    width:100% !important;
    justify-content:center !important;
  }
}

/* Mobile */
@media (max-width: 768px){
  .top-links-bar{
    display:none !important;
  }

  .unified-header-main{
    padding:12px 12px 10px !important;
    gap:10px !important;
  }

  .premium-brand-mark{
    font-size:2.2rem !important;
  }

  .premium-brand-text{
    font-size:9px !important;
  }

  .unified-brand{
    justify-content:center !important;
    gap:8px !important;
  }

  .modern-navbar-wrap{
    width:100% !important;
    overflow:hidden !important;
  }

  .unified-navbar{
    width:100% !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:0 0 4px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .unified-navbar::-webkit-scrollbar{
    display:none !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:13px !important;
    padding:9px 10px !important;
  }

  .nav-dropdown-menu{
    min-width:190px !important;
    max-width:220px !important;
    left:0 !important;
    transform:none !important;
  }

  .modern-actions-row{
    width:100% !important;
    justify-content:center !important;
    gap:8px !important;
  }

  .premium-search-pill{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .publisher-search-dropdown{
    top:46px !important;
    right:50% !important;
    transform:translateX(50%) !important;
    width:min(255px, calc(100vw - 24px)) !important;
  }

  .premium-cart-pill,
  .unified-cart-btn{
    min-width:auto !important;
    height:40px !important;
    padding:0 12px !important;
  }

  .premium-cart-pill .cart-text{
    display:none !important;
  }
}

@media (max-width: 420px){
  .unified-header-main{
    padding:10px 10px 8px !important;
  }

  .premium-brand-mark{
    font-size:2rem !important;
  }

  .premium-brand-text{
    font-size:8.5px !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    font-size:12px !important;
    padding:8px 9px !important;
  }

  .publisher-search-dropdown{
    width:min(240px, calc(100vw - 18px)) !important;
  }
}


/* Robust responsive navbar fix */
.mobile-nav-toolbar{
  display:none;
}

@media (max-width: 768px){
  .mobile-nav-toolbar{
    display:flex;
    width:100%;
    justify-content:center;
    margin-top:2px;
  }

  .mobile-nav-toggle{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:40px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid rgba(141,20,25,.10);
    background:#fff;
    color:#8d1419;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
  }

  .mobile-nav-toggle-icon{
    font-size:16px;
    line-height:1;
  }

  .modern-navbar-wrap{
    width:100% !important;
    overflow:visible !important;
    display:none !important;
  }

  .modern-navbar-wrap.is-open{
    display:block !important;
  }

  .unified-navbar{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:6px !important;
    overflow:visible !important;
    padding:8px 0 0 !important;
    margin:0 !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    white-space:normal !important;
    padding:12px 14px !important;
    border-radius:12px !important;
    background:#fff !important;
    border:1px solid rgba(141,20,25,.08);
    font-size:13px !important;
  }

  .unified-nav-item::after,
  .nav-dropdown-toggle::after{
    display:none !important;
  }

  .nav-dropdown{
    width:100% !important;
    display:block !important;
  }

  .nav-dropdown-menu{
    position:static !important;
    transform:none !important;
    min-width:100% !important;
    max-width:100% !important;
    width:100% !important;
    box-shadow:none !important;
    border:1px solid rgba(141,20,25,.08) !important;
    border-radius:12px !important;
    padding:6px !important;
    margin-top:6px !important;
    display:none;
    background:#fffaf9 !important;
  }

  .nav-dropdown.is-open .nav-dropdown-menu{
    display:block !important;
  }

  .nav-dropdown:hover .nav-dropdown-menu{
    display:none !important;
  }

  .nav-dropdown-item{
    padding:10px 12px !important;
    font-size:13px !important;
  }
}


/* Mobile menu right aligned fix */
@media (max-width: 768px){

  .unified-header-main{
    position:relative !important;
  }

  .mobile-nav-toolbar{
    width:100% !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    margin-top:0 !important;
    margin-bottom:2px !important;
    order:2;
  }

  .mobile-nav-toggle{
    height:42px !important;
    padding:0 16px !important;
    border-radius:999px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    font-size:13px !important;
    font-weight:700 !important;
    margin-left:auto !important;
  }

  .modern-actions-row,
  .unified-header-actions{
    width:100% !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:8px !important;
    margin-top:0 !important;
    order:3;
  }

  .premium-search-pill{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .premium-cart-pill,
  .unified-cart-btn{
    height:40px !important;
    min-width:auto !important;
    padding:0 12px !important;
  }

  .unified-navbar-wrap{
    order:4;
  }

  .mobile-brand-lockup,
  .unified-brand{
    order:1;
  }
}

@media (max-width: 420px){

  .mobile-nav-toggle{
    height:40px !important;
    padding:0 14px !important;
    font-size:12px !important;
  }

  .modern-actions-row,
  .unified-header-actions{
    gap:6px !important;
  }
}



/* Mobile menu icon visible fix */
@media (max-width:768px){

  .mobile-menu-round{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    border-radius:18px !important;
    background:#97161b !important;
    color:#fff !important;
    border:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    box-shadow:none !important;
    cursor:pointer !important;
    padding:0 !important;
    font-size:unset !important;
    line-height:1 !important;
    overflow:visible !important;
    opacity:1 !important;
    visibility:visible !important;
  }

  .mobile-menu-lines{
    width:22px !important;
    height:16px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    align-items:center !important;
  }

  .mobile-menu-lines span{
    display:block !important;
    width:22px !important;
    height:2.5px !important;
    background:#ffffff !important;
    border-radius:999px !important;
    opacity:1 !important;
    visibility:visible !important;
  }

  .mobile-menu-round::before,
  .mobile-menu-round::after{
    display:none !important;
    content:none !important;
  }
}


/* Force mobile menu toggle visible */
@media (max-width:768px){
  .top-links-bar{
    display:block !important;
    background:#97161b !important;
  }
  .top-links-bar > div{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding:14px 12px !important;
  }
  .top-links-bar > div > div:first-child{
    display:none !important;
  }
  .top-links-bar > div > div:last-child{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:14px 18px !important;
    width:100% !important;
  }

  .unified-header-main{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    align-items:center !important;
    gap:12px !important;
    padding:14px 14px !important;
    min-height:auto !important;
  }

  .mobile-brand-lockup,
  .unified-brand{
    width:auto !important;
    justify-content:flex-start !important;
    gap:10px !important;
  }

  .modern-actions-row,
  .unified-header-actions{
    width:auto !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 !important;
    order:2 !important;
  }

  .premium-search-pill{
    display:none !important;
  }

  .premium-cart-pill,
  .unified-cart-btn{
    width:52px !important;
    min-width:52px !important;
    height:52px !important;
    padding:0 !important;
    border-radius:18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
  }

  .premium-cart-pill .cart-text{
    display:none !important;
  }

  .premium-cart-pill .cart-badge{
    position:absolute !important;
    top:-6px !important;
    right:-6px !important;
    min-width:22px !important;
    height:22px !important;
    font-size:10px !important;
  }

  .mobile-nav-toolbar{
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    margin:0 !important;
    order:2 !important;
  }

  .mobile-menu-round{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    border-radius:18px !important;
    background:#97161b !important;
    color:#fff !important;
    border:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    box-shadow:none !important;
    cursor:pointer !important;
    padding:0 !important;
    opacity:1 !important;
    visibility:visible !important;
  }

  .mobile-menu-lines{
    width:22px !important;
    height:16px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    align-items:center !important;
  }

  .mobile-menu-lines span{
    display:block !important;
    width:22px !important;
    height:2.5px !important;
    background:#ffffff !important;
    border-radius:999px !important;
  }

  .unified-navbar-wrap,
  .modern-navbar-wrap{
    display:none !important;
    width:100% !important;
    order:3 !important;
  }

  .unified-navbar-wrap.is-open,
  .modern-navbar-wrap.is-open{
    display:block !important;
  }

  .unified-navbar{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:6px !important;
    overflow:visible !important;
    padding:10px 0 0 !important;
    margin:0 !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    white-space:normal !important;
    padding:12px 14px !important;
    border-radius:12px !important;
    background:#fff !important;
    border:1px solid rgba(141,20,25,.08) !important;
    font-size:13px !important;
  }

  .unified-nav-item::after,
  .nav-dropdown-toggle::after{
    display:none !important;
  }

  .nav-dropdown{
    width:100% !important;
    display:block !important;
  }

  .nav-dropdown-menu{
    position:static !important;
    transform:none !important;
    min-width:100% !important;
    max-width:100% !important;
    width:100% !important;
    box-shadow:none !important;
    border:1px solid rgba(141,20,25,.08) !important;
    border-radius:12px !important;
    padding:6px !important;
    margin-top:6px !important;
    display:none !important;
    background:#fffaf9 !important;
  }

  .nav-dropdown.is-open .nav-dropdown-menu{
    display:block !important;
  }

  .nav-dropdown:hover .nav-dropdown-menu{
    display:none !important;
  }
}



/* FINAL INLINE MENU TOGGLE FIX */
@media (max-width:768px){
  .mobile-nav-toolbar{
    display:none !important;
  }

  .publisher-header-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    width:auto !important;
  }

  .premium-search-pill,
  .publisher-search-toggle{
    display:none !important;
  }

  .mobile-menu-inline{
    display:flex !important;
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    border-radius:14px !important;
    background:#9d1519 !important;
    color:#fff !important;
    border:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    cursor:pointer !important;
    opacity:1 !important;
    visibility:visible !important;
    position:relative !important;
    z-index:50 !important;
  }

  .mobile-menu-inline .mobile-menu-lines{
    width:20px !important;
    height:14px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    align-items:center !important;
  }

  .mobile-menu-inline .mobile-menu-lines span{
    width:20px !important;
    height:2px !important;
    display:block !important;
    background:#fff !important;
    border-radius:999px !important;
  }

  .unified-cart-btn{
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    padding:0 !important;
    border-radius:14px !important;
  }

  .unified-cart-btn .cart-text{
    display:none !important;
  }

  #mobileNavbarPanel{
    display:none !important;
    width:100% !important;
    padding:12px 14px 14px !important;
  }

  #mobileNavbarPanel.is-open{
    display:block !important;
  }

  .unified-navbar{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding:14px 16px !important;
    border-radius:14px !important;
    background:#fff !important;
    border:1px solid rgba(141,20,25,.08) !important;
    font-size:14px !important;
    font-weight:700 !important;
  }
}


/* CATEGORY CLICK FIX */
.nav-dropdown{
  position:relative !important;
}
.nav-dropdown-toggle{
  position:relative !important;
  z-index:2 !important;
}
.nav-dropdown-menu{
  z-index:9999 !important;
  pointer-events:auto !important;
}
.nav-dropdown-menu .nav-dropdown-item{
  position:relative !important;
  z-index:2 !important;
  pointer-events:auto !important;
  text-decoration:none !important;
}
@media (min-width: 769px){
  .nav-dropdown-category{
    padding-bottom:8px !important;
    margin-bottom:-8px !important;
  }
  .nav-dropdown-menu{
    top:calc(100% + 4px) !important;
    left:0 !important;
    display:none;
  }
  .nav-dropdown-category:hover .nav-dropdown-menu,
  .nav-dropdown-category:focus-within .nav-dropdown-menu,
  .nav-dropdown-category.is-open .nav-dropdown-menu{
    display:block !important;
  }
}
@media (max-width: 768px){
  .nav-dropdown-menu{
    position:static !important;
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    margin-top:6px !important;
    display:none !important;
  }
  .nav-dropdown-category.is-open .nav-dropdown-menu{
    display:block !important;
  }
}


/* MOBILE MENU CLICK FIX */
.mobile-menu-round{
  display:none;
}

@media (max-width:768px){
  #mobileNavToggle.mobile-menu-round,
  .mobile-menu-inline.mobile-menu-round{
    display:flex !important;
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    border-radius:14px !important;
    background:#a3161a !important;
    color:#fff !important;
    border:none !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    cursor:pointer !important;
    position:relative !important;
    z-index:999 !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  #mobileNavToggle .mobile-menu-lines{
    width:20px !important;
    height:14px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    align-items:center !important;
    pointer-events:none;
  }

  #mobileNavToggle .mobile-menu-lines span{
    width:20px !important;
    height:2px !important;
    display:block !important;
    background:#fff !important;
    border-radius:999px !important;
    pointer-events:none;
  }

  #mobileNavbarPanel{
    display:none !important;
    width:100% !important;
    padding:12px 14px 14px !important;
  }

  #mobileNavbarPanel.is-open{
    display:block !important;
  }

  .unified-navbar{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    width:100% !important;
  }
}


/* MODERN LEFT LOGO MOBILE HEADER */
@media (max-width:768px){
  .top-links-bar{
    background:#a3161a !important;
    border-bottom:none !important;
    box-shadow:none !important;
  }

  .top-links-bar > div{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:10px 18px !important;
    padding:10px 12px !important;
    max-width:100% !important;
  }

  .top-links-bar > div > div:first-child{
    display:none !important;
  }

  .top-links-bar a{
    color:#fff !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    text-decoration:none !important;
  }

  .unified-header-shell{
    background:#fff !important;
    border-bottom:1px solid rgba(141,20,25,.08) !important;
    box-shadow:0 6px 18px rgba(15,23,42,.05) !important;
  }

  .unified-header-main{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:10px !important;
    padding:14px 14px !important;
    min-height:auto !important;
  }

  .unified-brand,
  .mobile-brand-lockup{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    width:auto !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    text-decoration:none !important;
  }

  .premium-brand-mark{
    font-size:2.15rem !important;
    line-height:1 !important;
    color:#9a1218 !important;
    letter-spacing:-.04em !important;
    flex:0 0 auto !important;
  }

  .premium-brand-text{
    display:block !important;
    font-size:8.8px !important;
    line-height:1.08 !important;
    letter-spacing:.03em !important;
    color:#2b2b2b !important;
    text-align:left !important;
    flex:0 1 auto !important;
  }

  .publisher-header-actions,
  .modern-actions-row,
  .mobile-right-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    width:auto !important;
    flex:0 0 auto !important;
    margin:0 !important;
  }

  .publisher-search-toggle,
  .premium-search-pill{
    display:none !important;
  }

  .mobile-cart-btn,
  .premium-cart-pill,
  .unified-cart-btn{
    width:50px !important;
    min-width:50px !important;
    height:50px !important;
    border-radius:16px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    background:#fff !important;
    border:1px solid rgba(141,20,25,.10) !important;
    box-shadow:none !important;
  }

  .mobile-cart-btn .cart-text,
  .premium-cart-pill .cart-text,
  .unified-cart-btn .cart-text{
    display:none !important;
  }

  .mobile-cart-btn .cart-icon-wrap,
  .premium-cart-pill .cart-icon-wrap,
  .unified-cart-btn .cart-icon-wrap{
    width:19px !important;
    height:19px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .mobile-cart-btn .cart-icon-svg,
  .premium-cart-pill .cart-icon-svg,
  .unified-cart-btn .cart-icon-svg{
    width:19px !important;
    height:19px !important;
  }

  .mobile-cart-btn .cart-badge,
  .premium-cart-pill .cart-badge,
  .unified-cart-btn .cart-badge{
    position:absolute !important;
    top:-6px !important;
    right:-6px !important;
    min-width:22px !important;
    height:22px !important;
    padding:0 6px !important;
    border-radius:999px !important;
    background:#a3161a !important;
    color:#fff !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1 !important;
  }

  #mobileNavToggle.mobile-menu-round,
  .mobile-menu-inline.mobile-menu-round{
    width:50px !important;
    min-width:50px !important;
    height:50px !important;
    border-radius:16px !important;
    background:#a3161a !important;
    border:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    box-shadow:none !important;
  }

  #mobileNavToggle .mobile-menu-lines,
  .mobile-menu-inline .mobile-menu-lines{
    width:20px !important;
    height:14px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    align-items:center !important;
  }

  #mobileNavToggle .mobile-menu-lines span,
  .mobile-menu-inline .mobile-menu-lines span{
    width:20px !important;
    height:2.2px !important;
    background:#fff !important;
    border-radius:999px !important;
    display:block !important;
  }

  #mobileNavbarPanel{
    display:none !important;
    width:100% !important;
    padding:0 14px 14px !important;
  }

  #mobileNavbarPanel.is-open{
    display:block !important;
  }

  .unified-navbar{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding:13px 15px !important;
    border-radius:14px !important;
    background:#fff !important;
    border:1px solid rgba(141,20,25,.08) !important;
    color:#203a69 !important;
    font-size:14px !important;
    font-weight:700 !important;
    box-shadow:0 2px 8px rgba(15,23,42,.03) !important;
  }

  .nav-dropdown-menu{
    position:static !important;
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    margin-top:6px !important;
    padding:6px !important;
    border-radius:12px !important;
    border:1px solid rgba(141,20,25,.08) !important;
    box-shadow:none !important;
    background:#fff8f8 !important;
  }

  .nav-dropdown-item{
    display:block !important;
    padding:10px 12px !important;
    border-radius:10px !important;
    font-size:13px !important;
  }
}

@media (max-width:420px){
  .top-links-bar > div{
    gap:8px 14px !important;
    padding:9px 10px !important;
  }

  .top-links-bar a{
    font-size:11px !important;
  }

  .unified-header-main{
    padding:12px 10px !important;
    gap:8px !important;
  }

  .premium-brand-mark{
    font-size:1.95rem !important;
  }

  .premium-brand-text{
    font-size:8px !important;
  }

  .mobile-cart-btn,
  .premium-cart-pill,
  .unified-cart-btn,
  #mobileNavToggle.mobile-menu-round,
  .mobile-menu-inline.mobile-menu-round{
    width:46px !important;
    min-width:46px !important;
    height:46px !important;
    border-radius:14px !important;
  }

  #mobileNavbarPanel{
    padding:0 10px 12px !important;
  }

  .unified-nav-item,
  .nav-dropdown-toggle{
    padding:12px 14px !important;
    font-size:13px !important;
  }
}


/* MOBILE LEFT RIGHT TIDY FIX */
@media (max-width:768px){
  .unified-header-main{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:12px !important;
    padding:12px 14px !important;
    min-height:auto !important;
  }

  .unified-brand,
  .mobile-brand-lockup{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    text-align:left !important;
  }

  .premium-brand-mark{
    font-size:2.05rem !important;
    line-height:1 !important;
    margin:0 !important;
    flex:0 0 auto !important;
  }

  .premium-brand-text{
    display:block !important;
    font-size:8.5px !important;
    line-height:1.08 !important;
    letter-spacing:.02em !important;
    margin:0 !important;
    max-width:120px !important;
    text-align:left !important;
  }

  .publisher-header-actions,
  .modern-actions-row,
  .mobile-right-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    width:auto !important;
    flex:0 0 auto !important;
    margin:0 !important;
  }

  .mobile-cart-btn,
  .premium-cart-pill,
  .unified-cart-btn{
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    border-radius:16px !important;
    padding:0 !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#fff !important;
    border:1px solid rgba(141,20,25,.10) !important;
    box-shadow:0 2px 10px rgba(15,23,42,.04) !important;
  }

  .mobile-cart-btn .cart-text,
  .premium-cart-pill .cart-text,
  .unified-cart-btn .cart-text{
    display:none !important;
  }

  .mobile-cart-btn .cart-badge,
  .premium-cart-pill .cart-badge,
  .unified-cart-btn .cart-badge{
    top:-5px !important;
    right:-5px !important;
    min-width:21px !important;
    height:21px !important;
    font-size:10px !important;
    box-shadow:0 2px 8px rgba(163,22,26,.18) !important;
  }

  #mobileNavToggle.mobile-menu-round,
  .mobile-menu-inline.mobile-menu-round{
    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    border-radius:16px !important;
    padding:0 !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#a3161a !important;
    box-shadow:0 4px 14px rgba(163,22,26,.18) !important;
  }

  #mobileNavToggle .mobile-menu-lines,
  .mobile-menu-inline .mobile-menu-lines{
    width:20px !important;
    height:14px !important;
  }

  #mobileNavToggle .mobile-menu-lines span,
  .mobile-menu-inline .mobile-menu-lines span{
    width:20px !important;
    height:2.2px !important;
  }
}

@media (max-width:420px){
  .unified-header-main{
    padding:10px 12px !important;
    gap:10px !important;
  }

  .premium-brand-mark{
    font-size:1.9rem !important;
  }

  .premium-brand-text{
    font-size:7.8px !important;
    max-width:108px !important;
  }

  .mobile-cart-btn,
  .premium-cart-pill,
  .unified-cart-btn,
  #mobileNavToggle.mobile-menu-round,
  .mobile-menu-inline.mobile-menu-round{
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    border-radius:14px !important;
  }
}

/* Real image upgrade: product, news, author, cart */
.book-thumb-real,
.news-thumb-real,
.product-detail-cover-real,
.author-photo-real,
.side-news-thumb-real,
.cart-compact-cover-real{
  position:relative;
  overflow:hidden;
  background:#f5f1f2;
}
.book-thumb-real img,
.news-thumb-real img,
.product-detail-cover-real img,
.author-photo-real img,
.side-news-thumb-real img,
.cart-compact-cover-real img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .35s ease;
}
.book-thumb-real:hover img,
.news-thumb-real:hover img,
.author-home-card:hover .author-photo-real img,
.author-profile-card:hover .author-photo-real img{
  transform:scale(1.045);
}
.book-thumb-real{display:block;padding:0;color:#fff;box-shadow:inset 0 -90px 70px rgba(0,0,0,.55)}
.book-thumb-real::after,
.news-thumb-real::after,
.product-detail-cover-real::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.68) 100%);
  pointer-events:none;
}
.book-thumb-caption{
  position:absolute;
  left:.9rem;
  right:.9rem;
  bottom:.85rem;
  z-index:2;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.book-thumb-real .tag{z-index:3;background:rgba(123,18,32,.94);backdrop-filter:blur(4px)}
.product-detail-cover-real{display:block;padding:0}
.product-detail-cover-real span{
  position:absolute;
  left:1.25rem;
  right:1.25rem;
  bottom:1.25rem;
  z-index:2;
  color:#fff;
  text-shadow:0 3px 18px rgba(0,0,0,.45);
}
.news-thumb-real{border-radius:1.1rem 1.1rem 0 0;background:#f7f2f3}
.news-detail .news-thumb-real{border-radius:1.35rem}
.author-photo-real::before,
.author-photo-real::after{display:none!important}
.author-photo-real img{border-radius:inherit;object-position:center top}
.side-news-thumb-real{display:block;width:84px;height:64px;border-radius:14px;background:#f7f2f3}
.cart-compact-cover-real{width:58px;height:76px;border-radius:12px;flex:none;box-shadow:0 8px 20px rgba(48,15,22,.10)}


.hero-visual::before,.hero-visual::after{display:none}
@media (max-width:767px){
  .book-thumb{height:240px}
  .product-detail-cover-real{height:420px}
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* gambar selalu proporsional */
    object-position: center; /* fokus tengah */
    display: block;
    transition: 0.4s ease;
}

/* optional hover effect */
.hero-visual:hover .hero-img {
    transform: scale(1.03);
}

/* tablet */
@media (max-width: 1024px) {
    .hero-visual {
        height: 320px;
    }
}

/* mobile */
@media (max-width: 768px) {
    .hero-visual {
        height: 240px;
    }
}


/* === Dynamic Mega Menu Kategori + Sub Kategori === */
.mega-category-menu{
  width:min(920px, calc(100vw - 32px)) !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  padding:16px !important;
  border-radius:24px !important;
  border:1px solid rgba(127,18,32,.12) !important;
  background:linear-gradient(180deg,#fff 0%,#fff9fa 100%) !important;
  box-shadow:0 24px 60px rgba(71,11,19,.18) !important;
}
.mega-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 4px 14px;
  border-bottom:1px solid rgba(127,18,32,.08);
  margin-bottom:14px;
}
.mega-menu-head strong{
  display:block;
  color:#470b13;
  font-size:16px;
  letter-spacing:-.02em;
}
.mega-eyebrow{
  display:block;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#ab5368;
  margin-bottom:3px;
}
.mega-all-link{
  flex:none;
  border-radius:999px;
  padding:9px 14px;
  background:#7b1220;
  color:#fff !important;
  font-size:12px;
  font-weight:800;
  text-decoration:none !important;
  box-shadow:0 10px 18px rgba(123,18,32,.18);
}
.mega-menu-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.mega-menu-card{
  border:1px solid rgba(127,18,32,.08);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  padding:12px;
  min-height:118px;
  transition:all .2s ease;
}
.mega-menu-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(71,11,19,.09);
  border-color:rgba(127,18,32,.18);
}
.mega-menu-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
  color:#7b1220 !important;
  font-size:14px;
  font-weight:900;
  text-decoration:none !important;
}
.mega-menu-title::after{
  content:'→';
  opacity:.6;
}
.mega-subcategory-list{
  display:grid;
  gap:5px;
}
.mega-subcategory-item{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 9px !important;
  border-radius:12px !important;
  color:#475569 !important;
  background:rgba(251,246,247,.8);
  font-size:12px !important;
  font-weight:700 !important;
  text-decoration:none !important;
}
.mega-subcategory-item:hover{
  background:#f6ecee !important;
  color:#7b1220 !important;
}
.mega-subcategory-item small{
  color:#ab5368;
  font-size:15px;
  line-height:1;
}
.mega-subcategory-empty{
  padding:8px 9px;
  border-radius:12px;
  background:#f8fafc;
  color:#94a3b8;
  font-size:12px;
  font-weight:700;
}

/* Secondary mega menu bar */
.secondary-mega-wrap{
  position:relative;
}
.secondary-mega-menu{
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  width:min(860px, calc(100vw - 40px));
  display:none;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  padding:14px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(127,18,32,.10);
  box-shadow:0 20px 50px rgba(71,11,19,.15);
  z-index:9999;
}
.secondary-mega-wrap:hover .secondary-mega-menu,
.secondary-mega-wrap:focus-within .secondary-mega-menu{
  display:grid;
}
.secondary-mega-card{
  border-radius:16px;
  padding:11px;
  background:linear-gradient(180deg,#fff,#fbf6f7);
  border:1px solid rgba(127,18,32,.08);
}
.secondary-mega-title{
  display:block;
  color:#7b1220;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
  margin-bottom:7px;
}
.secondary-mega-child{
  display:block;
  padding:6px 8px;
  border-radius:10px;
  color:#64748b;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}
.secondary-mega-child:hover{
  background:#f6ecee;
  color:#7b1220;
}
.mobile-nav-parent{
  font-weight:900 !important;
  color:#7b1220 !important;
  background:#fff !important;
  border:1px solid rgba(127,18,32,.10) !important;
}
.mobile-nav-child{
  margin-left:10px !important;
  font-size:12px !important;
  background:#fbf6f7 !important;
  color:#64748b !important;
}

@media (max-width: 980px){
  .mega-category-menu{
    position:static !important;
    transform:none !important;
    width:100% !important;
    max-height:70vh;
    overflow:auto;
    box-shadow:none !important;
    border-radius:18px !important;
    padding:12px !important;
  }
  .mega-menu-grid{
    grid-template-columns:1fr !important;
  }
  .mega-menu-head{
    align-items:flex-start;
  }
  .secondary-mega-menu{
    display:none !important;
  }
}
@media (min-width: 981px) and (max-width: 1180px){
  .mega-category-menu{
    left:auto !important;
    right:-180px !important;
    transform:none !important;
  }
  .mega-menu-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Revisi Daftar Penulis: foto penuh, ukuran permanen
   ========================================================= */
.author-list-grid{
  align-items:stretch;
  gap:1.25rem;
}
.author-profile-card,
.author-home-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius:24px;
}
.author-photo-wrap,
.author-home-photo-wrap{
  padding:1.25rem 1.25rem 0 !important;
}
.author-photo-lg,
.author-home-photo{
  width:100%;
  height:320px !important;
  min-height:320px !important;
  max-height:320px !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,#f7eef0,#efe2e5) !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
}
.author-photo-real img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:linear-gradient(135deg,#f8f1f2,#efe3e6);
  border-radius:inherit;
}
.author-profile-card:hover .author-photo-real img,
.author-home-card:hover .author-photo-real img{
  transform:none !important;
}
.author-photo-badge,
.author-home-badge{
  left:2rem !important;
  bottom:1rem !important;
  z-index:3;
  box-shadow:0 10px 25px rgba(94,13,23,.12);
}
.author-profile-body,
.author-home-body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:1rem 1.25rem 1.35rem !important;
}
.author-profile-body p,
.author-home-body p{
  min-height:46px;
}
.author-profile-body .read-more,
.author-home-body .read-more{
  margin-top:auto;
}
@media (max-width:1023px){
  .author-photo-lg,
  .author-home-photo{
    height:285px !important;
    min-height:285px !important;
    max-height:285px !important;
  }
}
@media (max-width:639px){
  .author-photo-wrap,
  .author-home-photo-wrap{
    padding:1rem 1rem 0 !important;
  }
  .author-photo-lg,
  .author-home-photo{
    height:260px !important;
    min-height:260px !important;
    max-height:260px !important;
    border-radius:18px !important;
  }
}

/* =========================================================
   PREMIUM AUTHORS SECTION - clean, modern, professional
   ========================================================= */
section:has(.author-home-card){
  background:linear-gradient(180deg,#fffafa 0%,#fbf4f5 100%);
}
.author-home-card,
.author-profile-card{
  position:relative;
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(128,23,36,.10) !important;
  border-radius:28px !important;
  overflow:hidden;
  box-shadow:0 18px 48px rgba(72,15,24,.075) !important;
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.author-home-card:hover,
.author-profile-card:hover{
  transform:translateY(-5px);
  border-color:rgba(128,23,36,.22) !important;
  box-shadow:0 24px 65px rgba(72,15,24,.13) !important;
}
.author-home-photo-wrap,
.author-photo-wrap{
  padding:1rem !important;
  display:block;
  position:relative;
}
.author-home-photo,
.author-photo-lg{
  height:380px !important;
  min-height:380px !important;
  max-height:380px !important;
  width:100%;
  border-radius:22px !important;
  overflow:hidden;
  background:#f8eef0 !important;
  box-shadow:inset 0 -80px 70px rgba(0,0,0,.25);
}
.author-home-photo::after,
.author-photo-lg::after{
  content:"" !important;
  display:block !important;
  position:absolute;
  inset:auto 0 0 0;
  height:45%;
  width:auto;
  border:0;
  border-radius:0;
  transform:none;
  left:0;
  bottom:0;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.44));
  pointer-events:none;
}
.author-photo-real img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  background:#f8eef0 !important;
  transition:transform .45s ease !important;
}
.author-home-card:hover .author-photo-real img,
.author-profile-card:hover .author-photo-real img{
  transform:scale(1.035) !important;
}
.author-home-badge,
.author-photo-badge{
  left:1.65rem !important;
  bottom:1.65rem !important;
  z-index:4;
  padding:.5rem .85rem !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.94) !important;
  backdrop-filter:blur(10px);
  color:#820d1c !important;
  font-size:.72rem !important;
  font-weight:800 !important;
  letter-spacing:.01em;
  border:1px solid rgba(255,255,255,.76) !important;
  box-shadow:0 12px 28px rgba(44,12,18,.18) !important;
}
.author-home-body,
.author-profile-body{
  padding:.15rem 1.55rem 1.7rem !important;
}
.author-home-body h3,
.author-profile-body h3{
  margin:0 0 .35rem !important;
  color:#111827;
  font-size:1.12rem !important;
  line-height:1.35 !important;
  letter-spacing:-.015em;
  font-weight:800;
}
.author-home-body h3 a,
.author-profile-body h3 a{
  color:inherit;
  text-decoration:none;
}
.author-home-body p,
.author-profile-body p{
  min-height:auto !important;
  color:#475569 !important;
  font-size:.86rem !important;
  line-height:1.65 !important;
}
.author-field{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-bottom:.7rem;
  padding:.42rem .72rem;
  border-radius:999px;
  background:linear-gradient(135deg,#fff0f2,#f8e2e6);
  color:#8a1020 !important;
  font-size:.72rem;
  font-weight:800;
}
.author-profile-body .read-more{
  display:inline-flex;
  width:max-content;
  margin-top:.85rem;
  color:#8a1020;
  font-weight:800;
}
@media (min-width:1280px){
  .grid.xl\:grid-cols-4 .author-home-photo{height:400px !important;min-height:400px !important;max-height:400px !important;}
}
@media (max-width:1023px){
  .author-home-photo,
  .author-photo-lg{height:340px !important;min-height:340px !important;max-height:340px !important;}
}
@media (max-width:639px){
  .author-home-card,
  .author-profile-card{border-radius:22px !important;}
  .author-home-photo-wrap,
  .author-photo-wrap{padding:.85rem !important;}
  .author-home-photo,
  .author-photo-lg{height:310px !important;min-height:310px !important;max-height:310px !important;border-radius:18px !important;}
  .author-home-body,
  .author-profile-body{padding:.1rem 1.2rem 1.35rem !important;}
}

/* =========================================================
   COMPACT PREMIUM AUTHORS - ukuran kecil, rapi, profesional
   ========================================================= */
.author-home-card,
.author-profile-card{
  border-radius:22px !important;
  box-shadow:0 12px 34px rgba(72,15,24,.075) !important;
}
.author-home-card:hover,
.author-profile-card:hover{
  transform:translateY(-3px) !important;
  box-shadow:0 18px 42px rgba(72,15,24,.12) !important;
}
.author-home-photo-wrap,
.author-photo-wrap{
  padding:.75rem .75rem 0 !important;
}
.author-home-photo,
.author-photo-lg{
  height:255px !important;
  min-height:255px !important;
  max-height:255px !important;
  border-radius:18px !important;
  background:#f8eef0 !important;
}
.author-photo-real img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
}
.author-home-badge,
.author-photo-badge{
  left:1.15rem !important;
  bottom:.85rem !important;
  padding:.38rem .68rem !important;
  font-size:.64rem !important;
  box-shadow:0 8px 20px rgba(44,12,18,.14) !important;
}
.author-home-body,
.author-profile-body{
  padding:.85rem 1rem 1.15rem !important;
}
.author-home-body h3,
.author-profile-body h3{
  font-size:.98rem !important;
  line-height:1.28 !important;
  margin-bottom:.25rem !important;
}
.author-home-body p,
.author-profile-body p{
  font-size:.78rem !important;
  line-height:1.45 !important;
}
.author-field{
  padding:.30rem .58rem !important;
  font-size:.66rem !important;
  margin-bottom:.48rem !important;
}
.author-profile-body .read-more{
  margin-top:.55rem !important;
  font-size:.78rem !important;
}
@media (min-width:1280px){
  .grid.xl\:grid-cols-4 .author-home-photo{
    height:255px !important;
    min-height:255px !important;
    max-height:255px !important;
  }
}
@media (max-width:1023px){
  .author-home-photo,
  .author-photo-lg{
    height:230px !important;
    min-height:230px !important;
    max-height:230px !important;
  }
}
@media (max-width:639px){
  .author-home-card,
  .author-profile-card{border-radius:18px !important;}
  .author-home-photo-wrap,
  .author-photo-wrap{padding:.65rem .65rem 0 !important;}
  .author-home-photo,
  .author-photo-lg{
    height:220px !important;
    min-height:220px !important;
    max-height:220px !important;
    border-radius:15px !important;
  }
  .author-home-body,
  .author-profile-body{padding:.75rem .85rem 1rem !important;}
}

/* Form validation - profile/register/password */
.form-error,
.js-field-error {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    color: #b91c1c;
}
.form-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}
.form-alert-danger {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
}
.input-invalid,
.auth-field input.input-invalid,
form input.input-invalid,
form textarea.input-invalid {
    border-color: #ef4444 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .08) !important;
}
.auth-field .form-error,
.auth-field .js-field-error {
    margin-top: -6px;
    margin-bottom: 4px;
}

/* News category filter */
.news-category-panel{
  margin-bottom:22px;
  padding:20px;
  border:1px solid rgba(122,18,32,.08);
  border-radius:24px;
  background:linear-gradient(180deg,#fff 0%,#fffafa 100%);
  box-shadow:0 18px 45px rgba(50,15,22,.055);
}
.news-category-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:16px;
}
.news-category-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8f1220;
}
.news-category-eyebrow:before{
  content:"";
  width:24px;
  height:2px;
  border-radius:999px;
  background:#a20f21;
}
.news-category-head h2{
  margin-top:4px;
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  color:#4b0810;
}
.news-category-total{
  white-space:nowrap;
  padding:8px 12px;
  border-radius:999px;
  background:#fff1f2;
  color:#8f1220;
  font-size:12px;
  font-weight:900;
}
.news-search-form{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}
.news-search-form input{
  flex:1;
  min-width:0;
  height:48px;
  padding:0 16px;
  border:1px solid rgba(122,18,32,.12);
  border-radius:16px;
  background:#fff;
  outline:none;
  font-size:14px;
  color:#17233d;
}
.news-search-form input:focus{
  border-color:#9f1239;
  box-shadow:0 0 0 4px rgba(159,18,57,.08);
}
.news-search-form button{
  height:48px;
  padding:0 20px;
  border-radius:16px;
  background:linear-gradient(135deg,#7b1220,#a20f21);
  color:#fff;
  font-weight:900;
  box-shadow:0 14px 28px rgba(123,18,32,.16);
}
.news-category-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.news-category-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:9px 13px;
  border:1px solid rgba(122,18,32,.10);
  border-radius:999px;
  background:#fff;
  color:#4b5563;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
  transition:all .2s ease;
}
.news-category-chip span{
  min-width:24px;
  padding:3px 7px;
  border-radius:999px;
  background:#f8e4e7;
  color:#8f1220;
  font-size:11px;
  text-align:center;
}
.news-category-chip:hover,
.news-category-chip.active{
  background:linear-gradient(135deg,#7b1220,#a20f21);
  color:#fff;
  border-color:transparent;
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(123,18,32,.15);
}
.news-category-chip:hover span,
.news-category-chip.active span{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.news-thumb{position:relative;}
.news-card-category{
  position:absolute;
  left:14px;
  bottom:14px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#8f1220;
  font-size:11px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(50,15,22,.14);
}
.empty-state-card{
  padding:34px;
  border:1px dashed rgba(122,18,32,.18);
  border-radius:22px;
  background:#fff;
  text-align:center;
}
.empty-state-card h3{
  font-size:20px;
  color:#4b0810;
  font-weight:900;
}
.empty-state-card p{
  margin:8px 0 14px;
  color:#667085;
}
@media(max-width:640px){
  .news-category-panel{padding:16px;border-radius:20px;}
  .news-category-head{display:block;}
  .news-category-total{display:inline-flex;margin-top:10px;}
  .news-search-form{display:block;}
  .news-search-form input{width:100%;}
  .news-search-form button{width:100%;margin-top:10px;}
  .news-category-chip{font-size:12px;padding:8px 11px;}
}



.wa-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.wa-floating-label {
    background: #ffffff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 12px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.wa-floating-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366, #16a34a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-floating-icon svg {
    width: 36px;
    height: 36px;
}

.wa-floating:hover .wa-floating-icon {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 36px rgba(22, 163, 74, 0.42);
}

@media (max-width: 640px) {
    .wa-floating {
        right: 14px;
        bottom: 14px;
    }

    .wa-floating-icon {
        width: 54px;
        height: 54px;
    }

    .wa-floating-icon svg {
        width: 31px;
        height: 31px;
    }

    .wa-floating-label {
        font-size: 11px;
        padding: 8px 10px;
    }
}


/* =========================
   PENULIS PILIHAN COMPACT
========================= */
.section-head-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title-compact {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.2;
    font-weight: 800;
    color: #6f1020;
    letter-spacing: -0.02em;
}

.section-link-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #8b1e2d;
    text-decoration: none;
    white-space: nowrap;
}

.section-link-compact:hover {
    color: #5f1220;
}

.authors-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.author-compact-card {
    background: #fff;
    border: 1px solid #eee5e7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(80, 24, 34, 0.04);
    transition: all 0.2s ease;
    overflow: hidden;
}

.author-compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(80, 24, 34, 0.10);
    border-color: #e4cfd5;
}

.author-compact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px 16px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.author-compact-photo {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f7f2f3;
    border: 2px solid #f2e5e8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
    flex-shrink: 0;
}

.author-compact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-compact-name {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #2c1f22;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-compact-count {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.2;
    color: #7b7280;
    font-weight: 500;
}

/* responsive */
@media (min-width: 640px) {
    .authors-compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .authors-compact-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .author-compact-card {
        border-radius: 16px;
    }

    .author-compact-link {
        padding: 16px 10px 14px;
    }

    .author-compact-photo {
        width: 78px;
        height: 78px;
        margin-bottom: 10px;
    }

    .author-compact-name {
        font-size: 14px;
        min-height: 38px;
    }

    .author-compact-count {
        font-size: 11.5px;
    }
}

@media (max-width: 639px) {
    .section-title-compact {
        font-size: 1.35rem;
    }

    .section-link-compact {
        font-size: 12px;
    }

    .author-compact-photo {
        width: 72px;
        height: 72px;
    }

    .author-compact-name {
        font-size: 13px;
        min-height: 36px;
    }

    .author-compact-count {
        font-size: 11px;
    }
}

/* =====================================================
   AUTHORS COMPACT - PENULIS PILIHAN & DAFTAR PENULIS
===================================================== */
.authors-section-soft {
    background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
}

.authors-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.authors-section-title {
    margin: 0;
    color: #7b1220;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.authors-section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8e3348;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.authors-section-link:hover {
    color: #5e0d17;
}

.authors-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.author-mini-card {
    background: #fff;
    border: 1px solid #efe3e6;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(71, 11, 19, 0.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.author-mini-card:hover {
    transform: translateY(-2px);
    border-color: #e3c8d0;
    box-shadow: 0 12px 28px rgba(71, 11, 19, 0.10);
}

.author-mini-link {
    min-height: 132px;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.author-mini-avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    overflow: hidden;
    background: #f8edf0;
    border: 2px solid #f1dfe4;
    margin-bottom: 8px;
    flex: 0 0 auto;
}

.author-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-mini-name {
    margin: 0;
    color: #201517;
    font-size: 12.5px;
    line-height: 1.22;
    font-weight: 800;
    min-height: 31px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-mini-count {
    margin: 5px 0 0;
    color: #766a6d;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 600;
}

@media (min-width: 640px) {
    .authors-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .authors-mini-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .author-mini-link {
        min-height: 128px;
        padding: 12px 8px 9px;
    }

    .author-mini-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .authors-section-title {
        font-size: 1.2rem;
    }

    .authors-mini-grid {
        gap: 10px;
    }

    .author-mini-link {
        min-height: 124px;
        padding: 11px 7px 9px;
    }

    .author-mini-avatar {
        width: 56px;
        height: 56px;
    }

    .author-mini-name {
        font-size: 11.5px;
    }
}

/* Halaman daftar penulis */
.authors-page-section {
    background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
}

.authors-page-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.authors-page-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    color: #8e3348;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.authors-page-title {
    margin: 0;
    color: #5e0d17;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.authors-page-desc {
    max-width: 520px;
    margin: 8px 0 0;
    color: #7b7280;
    font-size: 14px;
    line-height: 1.7;
}

.authors-search-box {
    width: min(100%, 360px);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ecdfe3;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(71, 11, 19, 0.06);
}

.authors-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    color: #25191c;
    font-size: 13px;
}

.authors-search-box button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #7b1220, #ab5368);
    color: #fff;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.authors-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.author-list-card {
    background: #fff;
    border: 1px solid #efe3e6;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(71, 11, 19, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.author-list-card:hover {
    transform: translateY(-2px);
    border-color: #e2c8d0;
    box-shadow: 0 14px 32px rgba(71, 11, 19, 0.11);
}

.author-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.author-list-avatar {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    overflow: hidden;
    background: #f8edf0;
    border: 2px solid #f1dfe4;
    flex: 0 0 auto;
}

.author-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-list-info {
    min-width: 0;
}

.author-list-info h2 {
    margin: 0;
    color: #201517;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-list-field {
    margin: 5px 0 0;
    color: #7b7280;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-list-count {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fbf0f2;
    color: #7b1220;
    font-size: 11px;
    font-weight: 800;
}

@media (min-width: 768px) {
    .authors-page-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (min-width: 1180px) {
    .authors-page-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .authors-page-top {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 16px;
    }

    .authors-search-box {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .authors-page-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PRODUK TERKAIT DETAIL
========================= */
.product-related-section {
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(251,246,247,0.72));
}

.product-related-section .books-grid {
    align-items: stretch;
}

@media (max-width: 640px) {
    .product-related-section {
        padding-top: 1rem;
    }
}


/* =====================================================
   LOGO UMSI HEADER
===================================================== */
.umsi-brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 230px !important;
    text-decoration: none !important;
}

.umsi-brand-emblem {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.umsi-brand-emblem img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.umsi-brand-wordmark {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: #2b2b2b !important;
    line-height: 1 !important;
}

.umsi-brand-wordmark strong {
    color: #9a1218 !important;
    font-size: 2.45rem !important;
    line-height: .9 !important;
    font-weight: 950 !important;
    letter-spacing: -0.06em !important;
}

.umsi-brand-wordmark small {
    display: block !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(127, 18, 32, .18) !important;
    color: #2d2d2d !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-align: left !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .umsi-brand-logo {
        min-width: 0 !important;
        gap: 8px !important;
    }

    .umsi-brand-emblem {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .umsi-brand-wordmark strong {
        font-size: 1.75rem !important;
    }

    .umsi-brand-wordmark small {
        font-size: 8.8px !important;
        padding-left: 7px !important;
    }
}

@media (max-width: 420px) {
    .umsi-brand-emblem {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    .umsi-brand-wordmark strong {
        font-size: 1.55rem !important;
    }

    .umsi-brand-wordmark small {
        font-size: 7.8px !important;
    }
}

/* =====================================================
   REVISI DAFTAR PENULIS - FOTO CENTER & LEBIH BESAR
===================================================== */
.authors-page-grid .author-list-card {
    min-height: 205px;
}

.authors-page-grid .author-list-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    min-height: 205px;
    padding: 22px 16px 20px;
}

.authors-page-grid .author-list-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 4px;
    flex: 0 0 92px;
    border-width: 3px;
    box-shadow: 0 8px 18px rgba(71, 11, 19, 0.10);
}

.authors-page-grid .author-list-info {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.authors-page-grid .author-list-info h2 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1.25;
    max-width: 230px;
}

.authors-page-grid .author-list-field {
    text-align: center;
    margin-top: 6px;
}

.authors-page-grid .author-list-count {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    justify-content: center;
}

@media (max-width: 640px) {
    .authors-page-grid .author-list-card,
    .authors-page-grid .author-list-link {
        min-height: 190px;
    }

    .authors-page-grid .author-list-avatar {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }
}


/* ==============================
   CHECKOUT PAYMENT PROOF REQUIRED
============================== */
.payment-proof-upload-box {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.payment-proof-upload-box.payment-proof-invalid {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .08);
}

.payment-proof-error {
    margin-top: 8px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}

.compact-file-input:required {
    cursor: pointer;
}


/* =====================================================
   CHECKOUT VALIDATION ALERT - BIODATA, PAYMENT, PROOF
===================================================== */
.checkout-field-invalid,
.compact-input.checkout-field-invalid {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.checkout-inline-error {
    margin: 7px 0 0;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.compact-payment-option.payment-option-invalid {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.payment-proof-upload-box.payment-proof-invalid {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.payment-proof-error {
    margin-top: 8px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}

.toast-item.error .toast-icon {
    background: #dc2626;
    color: #fff;
}

/* =====================================================
   PRODUCT DETAIL - AUTHORS, TABS, RELATED PRODUCTS
===================================================== */
.product-authors-box {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px;
}

.product-authors-title {
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.product-authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.product-author-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: #7b1220;
    border: 1px solid #f0d6dc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(123, 18, 32, 0.05);
}

.product-author-chip:hover {
    background: #ffe4e6;
    color: #5e0d17;
}

.product-author-chip::before {
    content: "✦";
    margin-right: 6px;
    font-size: 10px;
    color: #ab5368;
}

.product-author-chip.muted {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.product-author-chip.muted::before {
    display: none;
}

.product-info-tabs {
    background: #ffffff;
    border: 1px solid #f0e2e5;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(71, 11, 19, 0.06);
}

.product-tab-buttons {
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #e7d9dd;
    margin-bottom: 22px;
}

.product-tab-btn {
    position: relative;
    border: 0;
    background: transparent;
    padding: 0 0 14px;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
}

.product-tab-btn.active {
    color: #111827;
}

.product-tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #7b1220;
    border-radius: 999px;
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}

.product-synopsis {
    max-width: 980px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.75;
}

.product-synopsis p {
    margin: 0 0 16px;
}

.product-detail-table {
    max-width: 820px;
    border: 1px solid #f0e2e5;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.product-detail-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #f3e8eb;
    font-size: 14px;
}

.product-detail-row:last-child {
    border-bottom: 0;
}

.product-detail-row span {
    color: #64748b;
    font-weight: 700;
}

.product-detail-row strong {
    color: #2b1015;
    font-weight: 800;
}

.related-product-box {
    background: #fff;
    border: 1px solid #f0e2e5;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(71, 11, 19, 0.06);
}

.related-product-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.related-product-kicker {
    display: inline-flex;
    color: #8e3348;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.related-product-head h2 {
    margin: 0;
    color: #5e0d17;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.related-product-link {
    color: #8e3348;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.related-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .related-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-authors-box {
        flex-direction: column;
        gap: 6px;
    }

    .product-authors-title {
        font-size: 14px;
    }

    .product-author-chip {
        font-size: 12px;
        padding: 6px 10px;
    }

    .product-info-tabs {
        padding: 18px;
        border-radius: 18px;
    }

    .product-tab-buttons {
        gap: 20px;
        overflow-x: auto;
    }

    .product-tab-btn {
        font-size: 13px;
        white-space: nowrap;
    }

    .product-synopsis {
        font-size: 14px;
        line-height: 1.7;
    }

    .product-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 13px 14px;
    }

    .related-product-box {
        padding: 16px;
        border-radius: 18px;
    }

    .related-product-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .related-product-head h2 {
        font-size: 20px;
    }
}


/* =====================================================
   AUTHOR DETAIL - BUKU KARYA PENULIS
===================================================== */
.author-detail-products-wrap {
    border-top: 1px solid #f0e2e5;
    padding-top: 24px;
}

.author-books-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.author-books-kicker {
    display: inline-flex;
    margin-bottom: 5px;
    color: #8e3348;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.author-books-title {
    margin: 0;
    color: #5e0d17;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.author-books-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: #7b1220;
    border: 1px solid #f0d6dc;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.author-books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.author-books-empty {
    padding: 18px;
    border-radius: 18px;
    background: #fff8f9;
    border: 1px dashed #e8cfd6;
    color: #7b7280;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 768px) {
    .author-books-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .author-books-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .author-books-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .author-books-title {
        font-size: 18px;
    }

    .author-books-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   AUTHOR DETAIL - FINAL CLEAN LAYOUT
========================================= */
.author-hero-box {
    background: #fff;
    border: 1px solid #f1e5e8;
    border-radius: 26px;
    padding: 26px 28px;
    box-shadow: 0 12px 34px rgba(71, 11, 19, 0.05);
}

.author-breadcrumb-mini {
    color: #9b1c2b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.author-hero-box h1 {
    margin: 0;
    color: #4f0d17;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.author-hero-box p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
}

.author-detail-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.author-profile-card-new,
.author-books-card-new,
.other-authors-card {
    background: #fff;
    border: 1px solid #f1e5e8;
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(71, 11, 19, 0.05);
}

.author-profile-card-new {
    padding: 22px;
    position: sticky;
    top: 18px;
}

.author-profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.author-profile-photo-wrap {
    width: 210px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: #f7f3f4;
    border: 1px solid #efe2e5;
}

.author-profile-photo-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-profile-info {
    width: 100%;
}

.author-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: #9b1c2b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.author-profile-info h2 {
    margin: 0 0 12px;
    color: #4f0d17;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.author-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.author-meta-list li {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.author-meta-list strong {
    color: #334155;
}

.author-profile-body {
    border-top: 1px solid #f2e7ea;
    padding-top: 16px;
}

.author-profile-body h3 {
    margin: 0 0 10px;
    color: #5e0d17;
    font-size: 1.3rem;
    font-weight: 800;
}

.author-profile-body p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.author-books-card-new,
.other-authors-card {
    padding: 22px;
}

.author-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.author-section-kicker {
    display: inline-flex;
    color: #9b1c2b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.author-section-head h2 {
    margin: 0;
    color: #5e0d17;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.author-book-count-badge,
.other-authors-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff1f2;
    color: #9b1c2b;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.author-books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.other-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.other-author-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #f1e5e8;
    border-radius: 18px;
    padding: 14px;
    transition: all .2s ease;
}

.other-author-item:hover {
    transform: translateY(-2px);
    border-color: #e9d3d8;
    box-shadow: 0 12px 26px rgba(71, 11, 19, 0.08);
}

.other-author-photo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f7f3f4;
}

.other-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.other-author-info {
    min-width: 0;
}

.other-author-info h3 {
    margin: 0 0 4px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.other-author-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.other-author-info span {
    display: inline-flex;
    margin-top: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff1f2;
    color: #9b1c2b;
    font-size: 11px;
    font-weight: 800;
}

.author-empty-state {
    padding: 20px;
    border: 1px dashed #ead8de;
    border-radius: 18px;
    color: #64748b;
    background: #fffafb;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .author-books-grid,
    .other-authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .author-detail-layout {
        grid-template-columns: 1fr;
    }

    .author-profile-card-new {
        position: static;
    }
}

@media (max-width: 640px) {
    .author-hero-box,
    .author-profile-card-new,
    .author-books-card-new,
    .other-authors-card {
        border-radius: 18px;
        padding: 16px;
    }

    .author-profile-photo-wrap {
        width: 170px;
        border-radius: 18px;
    }

    .author-profile-info h2 {
        font-size: 1.6rem;
    }

    .author-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-section-head h2 {
        font-size: 1.35rem;
    }

    .author-books-grid,
    .other-authors-grid {
        grid-template-columns: 1fr;
    }

    .other-author-item {
        padding: 12px;
    }
}


/* ===============================
   AGENDA PAGE
================================ */
.agenda-hero {
    background: #fff;
    border: 1px solid #f1e5e8;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(71, 11, 19, 0.05);
}

.agenda-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #9b1c2b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.agenda-hero h1 {
    margin: 0;
    color: #4f0d17;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.agenda-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.agenda-card {
    background: #fff;
    border: 1px solid #f1e5e8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(71, 11, 19, 0.06);
    transition: all .22s ease;
}

.agenda-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(71, 11, 19, 0.12);
}

.agenda-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8f2f4;
}

.agenda-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.agenda-card:hover .agenda-thumb img {
    transform: scale(1.05);
}

.agenda-date-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(123, 18, 32, .92);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.agenda-body {
    padding: 18px;
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
    color: #9b1c2b;
    font-size: 12px;
    font-weight: 800;
}

.agenda-body h2 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.agenda-body h2 a {
    color: inherit;
    text-decoration: none;
}

.agenda-body p {
    margin: 10px 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.agenda-read-more,
.agenda-back-link {
    display: inline-flex;
    align-items: center;
    color: #7b1220;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.agenda-empty {
    background: #fff;
    border: 1px dashed #ead8de;
    border-radius: 20px;
    padding: 24px;
    color: #64748b;
}

.agenda-detail-card {
    background: #fff;
    border: 1px solid #f1e5e8;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(71, 11, 19, 0.06);
}

.agenda-detail-image {
    aspect-ratio: 16 / 7;
    background: #f8f2f4;
    overflow: hidden;
}

.agenda-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-detail-body {
    padding: 28px;
}

.agenda-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #9b1c2b;
    font-size: 13px;
    font-weight: 800;
}

.agenda-detail-body h1 {
    margin: 0;
    color: #4f0d17;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.agenda-detail-content {
    margin-top: 18px;
    color: #334155;
    font-size: 15px;
    line-height: 1.85;
}

@media (max-width: 1024px) {
    .agenda-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .agenda-hero,
    .agenda-detail-card {
        border-radius: 18px;
    }

    .agenda-hero,
    .agenda-detail-body {
        padding: 18px;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .agenda-body h2 {
        font-size: 16px;
    }
}
/* Premium product cards: daftar produk, beranda, penulis, produk terkait */
.product-list-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border:1px solid rgba(123,18,32,.10);border-radius:22px;background:linear-gradient(135deg,#fff,rgba(255,247,247,.86));box-shadow:0 14px 35px rgba(48,15,22,.06)}
.product-list-summary strong{display:block;color:#5f111f;font-size:1rem;font-weight:900}.product-list-kicker{display:block;margin-bottom:.18rem;font-size:.67rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#9f2438}.product-list-note{font-size:.82rem;color:#64748b;font-weight:700}
.product-card-premium{padding:.72rem;background:linear-gradient(180deg,#fff 0%,#fff 72%,#fff8f8 100%)}
.product-card-premium::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 20% 0%,rgba(166,33,54,.10),transparent 34%),radial-gradient(circle at 100% 22%,rgba(248,231,235,.75),transparent 30%);opacity:.85}.product-card-premium>*{position:relative;z-index:1}
.product-card-cover{height:245px;border:1px solid rgba(123,18,32,.08);box-shadow:0 18px 40px rgba(48,15,22,.10)}.product-card-cover img{object-position:center center}.product-card-cover::after{background:linear-gradient(180deg,rgba(0,0,0,.04) 20%,rgba(37,10,16,.72) 100%)}
.product-card-category{position:absolute;left:.75rem;top:.75rem;z-index:4;max-width:calc(100% - 1.5rem);border:1px solid rgba(255,255,255,.36);border-radius:999px;padding:.36rem .68rem;background:rgba(255,255,255,.88);color:#6f1424;font-size:.68rem;font-weight:900;line-height:1;backdrop-filter:blur(10px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 10px 25px rgba(15,23,42,.12)}
.product-card-caption{font-size:.88rem;font-weight:900;line-height:1.35}.product-card-body{padding:1rem .28rem .18rem}.product-card-title{min-height:2.85rem;color:#1f2937;font-size:.96rem;font-weight:900;line-height:1.42;letter-spacing:-.01em}.product-card-title a:hover{color:#7b1220}
.product-card-meta{margin-top:.45rem;color:#64748b;font-size:.76rem;font-weight:700;letter-spacing:.01em}.product-card-footer{margin-top:.95rem;display:flex;align-items:flex-end;justify-content:space-between;gap:.8rem}.product-card-price-box{min-width:0}.product-card-old-price{margin-bottom:.2rem;color:#94a3b8;font-size:.72rem;font-weight:700}.product-card-price{display:block;color:#6f1424;font-size:1rem;font-weight:1000;line-height:1.1}
.product-card-stock{display:inline-flex;margin-top:.38rem;border-radius:999px;padding:.22rem .5rem;font-size:.65rem;font-weight:900;line-height:1;background:#f1f5f9;color:#64748b}.product-card-stock.is-ready{background:#ecfdf5;color:#047857}.product-card-stock.is-empty{background:#fff1f2;color:#be123c}
.premium-discount-ribbon{top:1rem;right:1rem;z-index:8;min-width:auto;transform:none;display:inline-flex;align-items:center;gap:.28rem;border:1px solid rgba(255,255,255,.42);border-radius:999px;padding:.43rem .6rem;background:linear-gradient(135deg,#ef4444 0%,#a3132a 45%,#5f111f 100%);box-shadow:0 16px 30px rgba(127,29,29,.26),inset 0 1px 0 rgba(255,255,255,.20);color:#fff;font-size:.66rem;font-weight:900;letter-spacing:.02em;overflow:hidden}.premium-discount-ribbon::after{content:"";position:absolute;top:-40%;bottom:-40%;width:1.8rem;left:-2rem;transform:rotate(22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:premiumRibbonShine 3.2s ease-in-out infinite}.premium-discount-ribbon span{font-size:.58rem;text-transform:uppercase;opacity:.88}.premium-discount-ribbon strong{font-size:.82rem;line-height:1}@keyframes premiumRibbonShine{0%,55%{left:-2.2rem}100%{left:120%}}
.premium-cart-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border:1px solid rgba(123,18,32,.16);border-radius:16px;background:linear-gradient(135deg,#7b1220,#b4233a);color:#fff;box-shadow:0 14px 26px rgba(123,18,32,.24),inset 0 1px 0 rgba(255,255,255,.18);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}.premium-cart-icon-btn svg{width:20px;height:20px}.premium-cart-icon-btn:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(123,18,32,.30);filter:saturate(1.05)}.premium-cart-icon-btn:active{transform:translateY(0) scale(.97)}.premium-cart-icon-btn:disabled{cursor:not-allowed;opacity:.46;filter:grayscale(.2);box-shadow:none}
.product-detail-cover-card{position:relative;overflow:hidden}.detail-discount-ribbon{top:1.1rem;right:1.1rem}.product-detail-cart-btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;box-shadow:0 16px 32px rgba(123,18,32,.22)}.product-detail-cart-btn svg{width:19px;height:19px;flex:none}
@media (max-width:640px){.product-list-summary{align-items:flex-start;flex-direction:column;padding:.9rem}.product-card-cover{height:235px}.premium-discount-ribbon{top:.78rem;right:.78rem;padding:.38rem .54rem}.product-card-body{padding:.88rem .15rem .1rem}.product-card-title{font-size:.92rem}.premium-cart-icon-btn{width:42px;height:42px;min-width:42px;border-radius:15px}}
