/* ============ SHARED ============ */
.eae-shop, .eae-product-detail, .eae-product-related {
  background: var(--theme-color-bg_color, #0a0a0a);
  color: #e8e8e8;
}
.eae-shop-inner { max-width: 1320px; margin: 0 auto; padding: 64px 28px 80px; }
.eae-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: #ff6a00; margin: 0 0 12px; font-weight: 600; }

.eae-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 8px; text-decoration: none !important; font-weight: 600; font-size: 14px; letter-spacing: .02em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; border: none; font-family: inherit; }
.eae-btn-lg { padding: 16px 30px; font-size: 15px; }
.eae-btn-primary { background: #ff6a00; color: #0a0a0a !important; }
.eae-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,106,0,.35); }
.eae-btn-ghost { background: transparent; color: #e8e8e8 !important; border: 1px solid #2f2f2f; }
.eae-btn-ghost:hover { border-color: #ff6a00; color: #fff !important; background: rgba(255,106,0,.06); }
.eae-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ SHOP LISTING ============ */
.eae-shop-header { text-align: center; margin-bottom: 40px; }
.eae-shop-title { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.05; margin: 0 0 20px; font-weight: 700; color: #fff; }
.eae-shop-lede { max-width: 720px; margin: 0 auto; color: #b8b8b8; font-size: 16px; line-height: 1.65; }

/* ============ LAYOUT: sidebar + main ============ */
.eae-layout { display: grid; grid-template-columns: minmax(260px, 1fr) 3fr; gap: 36px; align-items: start; }
.eae-layout-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; }
.eae-layout-sidebar::-webkit-scrollbar { width: 8px; }
.eae-layout-sidebar::-webkit-scrollbar-thumb { background: #1f1f1f; border-radius: 4px; }
.eae-layout-sidebar::-webkit-scrollbar-thumb:hover { background: #2f2f2f; }
.eae-layout-main { min-width: 0; }

/* Sidebar <details> wrapper (only acts as accordion on mobile) */
.eae-sidebar-details { background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 14px; padding: 18px 14px; }
.eae-sidebar-summary { display: none; }

/* ============ TREE ============ */
.eae-tree { display: flex; flex-direction: column; gap: 2px; }
.eae-tree button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px 9px 14px; background: transparent; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 8px; color: #cfcfcf; cursor: pointer; font-family: inherit; text-align: left; transition: all .15s ease; }
.eae-tree button:hover { background: #141414; color: #fff; border-left-color: rgba(255,106,0,.5); }
.eae-tree button.active { background: rgba(255,106,0,.12); color: #ff6a00; border-left-color: #ff6a00; }
.eae-tree .eae-tree-label { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eae-tree .eae-tree-count { font-size: 10px; color: #888; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 999px; font-weight: 600; flex-shrink: 0; }
.eae-tree button.active .eae-tree-count { background: rgba(255,106,0,.18); color: #ff6a00; }

/* Top "All Products" row */
.eae-tree-all { font-weight: 600 !important; font-size: 13px; margin-bottom: 14px; padding: 11px 12px 11px 14px !important; background: #141414 !important; border: 1px solid #232323 !important; border-left: 3px solid transparent !important; }
.eae-tree-all:hover { background: #1a1a1a !important; }
.eae-tree-all.active { background: rgba(255,106,0,.14) !important; border-color: rgba(255,106,0,.3) !important; border-left-color: #ff6a00 !important; color: #ff6a00 !important; }

/* Brand row — bigger, with logo chip */
.eae-tree-node { margin-bottom: 14px; padding-top: 6px; border-top: 1px solid #1a1a1a; }
.eae-tree-node:first-of-type { border-top: none; padding-top: 0; }
.eae-tree-brand { font-weight: 700 !important; font-size: 14px !important; padding: 12px 12px 12px 12px !important; }
.eae-tree-brand-logo { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.eae-tree-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Bucket row */
.eae-tree-bucket-group { display: flex; flex-direction: column; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid #1a1a1a; }
.eae-tree-bucket { font-weight: 600 !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; padding-top: 7px !important; padding-bottom: 7px !important; }
.eae-tree-bucket .eae-tree-label { color: inherit; }

/* Sub-category row */
.eae-tree-subcat { padding-left: 28px !important; font-size: 13px; }

/* ============ TOOLBAR (right pane) ============ */
.eae-shop-toolbar { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.eae-shop-search { flex: 1; padding: 12px 18px; background: #111; border: 1px solid #222; border-radius: 999px; color: #fff; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.eae-shop-search:focus { border-color: #ff6a00; }
.eae-shop-search::placeholder { color: #666; }
.eae-shop-count { font-size: 13px; color: #888; white-space: nowrap; }

/* ============ RESPONSIVE (≤960px) ============ */
@media (max-width: 960px) {
  .eae-layout { grid-template-columns: 1fr; gap: 20px; }
  .eae-layout-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .eae-sidebar-details { padding: 4px 14px; }
  .eae-sidebar-summary {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 4px; cursor: pointer; font-weight: 600; color: #fff; font-size: 14px;
    list-style: none; user-select: none;
  }
  .eae-sidebar-summary::-webkit-details-marker { display: none; }
  .eae-sidebar-summary::before { content: "▸"; color: #ff6a00; transition: transform .2s; display: inline-block; }
  .eae-sidebar-details[open] .eae-sidebar-summary::before { transform: rotate(90deg); }
  .eae-sidebar-details[open] .eae-tree { padding-bottom: 12px; }
}

.eae-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.eae-product-card { display: flex; flex-direction: column; background: #121212; border: 1px solid #1f1f1f; border-radius: 14px; overflow: hidden; text-decoration: none !important; color: inherit !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.eae-product-card:hover { transform: translateY(-4px); border-color: #ff6a00; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.eae-product-img { aspect-ratio: 1 / 1; background: #fafafa; padding: 18px; display: flex; align-items: center; justify-content: center; }
.eae-product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.eae-product-card:hover .eae-product-img img { transform: scale(1.05); }
.eae-product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.eae-product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.eae-cat-badge { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #ff6a00; font-weight: 600; padding: 3px 9px; border: 1px solid rgba(255,106,0,.3); border-radius: 999px; }
.eae-brand-badge { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #999; font-weight: 600; padding: 3px 9px; border: 1px solid #2a2a2a; border-radius: 999px; }
.eae-product-title { font-size: 17px; margin: 0; color: #fff; font-weight: 600; line-height: 1.3; }
.eae-product-cta { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: #ff6a00; letter-spacing: .02em; }

.eae-empty { text-align: center; color: #777; padding: 60px 0; font-style: italic; }

.eae-shop-cta { margin-top: 72px; background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%); border: 1px solid #262626; border-radius: 18px; padding: 48px 32px; text-align: center; }
.eae-shop-cta h2 { margin: 0 0 12px; font-size: 30px; color: #fff; font-weight: 700; }
.eae-shop-cta p { margin: 0 auto 24px; max-width: 560px; color: #bbb; font-size: 16px; line-height: 1.6; }
.eae-shop-cta .eae-btn-row { justify-content: center; }

/* ============ PRODUCT DETAIL ============ */
/* Break out of theme .content_wrap padding/max-width */
.page_content_wrap.eae-fullbleed { padding: 0 !important; max-width: none !important; width: 100% !important; }
.page_content_wrap.eae-fullbleed > * { max-width: none; }

.eae-product-page { background: var(--theme-color-bg_color, #0a0a0a); color: #e8e8e8; padding: 0 0 80px; }

.eae-breadcrumb { max-width: 1280px; margin: 0 auto; padding: 32px 28px 0; font-size: 13px; color: #888; }
.eae-breadcrumb a { color: #aaa; text-decoration: none; transition: color .15s; }
.eae-breadcrumb a:hover { color: #ff6a00; }
.eae-breadcrumb .current { color: #fff; }
.eae-breadcrumb span[aria-hidden="true"] { padding: 0 8px; color: #444; }

.eae-product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; max-width: 1280px; margin: 0 auto; padding: 32px 28px 56px; align-items: start; }
.eae-product-gallery { position: sticky; top: 90px; }
.eae-product-gallery-main { background: #fafafa; border-radius: 16px; padding: 56px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: 1px solid #1f1f1f; max-width: 560px; margin: 0 auto; }
.eae-product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.eae-product-info { display: flex; flex-direction: column; gap: 18px; }
.eae-product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.eae-cat-link { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #999 !important; text-decoration: none !important; padding: 5px 12px; border: 1px solid #2a2a2a; border-radius: 999px; transition: all .15s; }
.eae-cat-link:hover { border-color: #ff6a00; color: #fff !important; }
.eae-product-h1 { font-size: clamp(36px, 4.5vw, 54px); line-height: 1.05; margin: 4px 0 0; color: #fff; font-weight: 700; }
.eae-product-desc { font-size: 16px; line-height: 1.65; color: #bcbcbc; margin: 0; }
.eae-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 6px; }

.eae-product-meta-list { list-style: none; padding: 22px 0 0; margin: 0; border-top: 1px solid #1f1f1f; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.eae-product-meta-list li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.eae-product-meta-list li span { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: #777; font-weight: 600; }
.eae-product-meta-list li strong { color: #e8e8e8; font-weight: 500; }

.eae-product-help { margin-top: 8px; padding: 20px 22px; background: rgba(255,106,0,.06); border: 1px solid rgba(255,106,0,.25); border-radius: 12px; }
.eae-product-help h3 { margin: 0 0 8px; font-size: 15px; color: #fff; font-weight: 600; }
.eae-product-help p { margin: 0; font-size: 14px; line-height: 1.55; color: #bbb; }

/* Related */
.eae-product-related { max-width: 1280px; margin: 0 auto; padding: 24px 28px 24px; }
.eae-product-related h2 { font-size: 28px; color: #fff; margin: 0 0 24px; font-weight: 700; }
.eae-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.eae-related-card { display: block; text-decoration: none !important; color: inherit !important; background: #121212; border: 1px solid #1f1f1f; border-radius: 12px; overflow: hidden; transition: all .2s; }
.eae-related-card:hover { transform: translateY(-3px); border-color: #ff6a00; }
.eae-related-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fafafa; padding: 14px; }
.eae-related-card h4 { font-size: 14px; margin: 12px 14px 14px; color: #fff; font-weight: 600; line-height: 1.3; }

/* Responsive */
@media (max-width: 960px) {
  .eae-product-detail { grid-template-columns: 1fr; gap: 32px; padding: 20px 20px 48px; }
  .eae-product-gallery { position: static; top: auto; }
  .eae-product-gallery-main { padding: 36px; max-width: 480px; }
  .eae-product-meta-list { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .eae-shop-inner { padding: 40px 20px 60px; }
  .eae-shop-cta { padding: 36px 24px; margin-top: 48px; }
  .eae-shop-cta h2 { font-size: 24px; }
  .eae-breadcrumb { padding: 24px 20px 0; }
}
@media (max-width: 560px) {
  .eae-product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .eae-product-body { padding: 14px 14px 16px; }
  .eae-product-title { font-size: 14px; }
  .eae-product-img { padding: 14px; }
  .eae-shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .eae-shop-count { text-align: center; }
}
