/* Extracted from prototype_spellboxstorm_home_mk05.html */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--body-bg);
}
#content {
    flex: 1;
}
/* MK02: Sidebar 40px menor */
.organic-module {
    max-width: calc(100% - 40px);
}

/* MK02/MK05: Menu accordion - altura dinâmica */
.organic-module .module-body {
    max-height: 480px;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

/* Custom scrollbar para WebKit */
.organic-module .module-body::-webkit-scrollbar {
    width: 4px;
}
.organic-module .module-body::-webkit-scrollbar-track {
    background: transparent;
}
.organic-module .module-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}
.organic-module .module-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Animação suave para itens que somem */
.menu-group {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.menu-group.fading-out {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Scroll suave interno se necessário */
.organic-module .module-body {
    scroll-behavior: smooth;
}

/* MK05: Link "Ver todas" no submenu */
.deep-list-footer {
    display: flex;
    align-items: center;
    padding: 10px 12px 6px 12px;
    margin-top: 6px;
    border-top: 1px dashed rgba(99, 102, 241, 0.2);
}

.deep-list-footer a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.deep-list-footer a:hover {
    color: #4f46e5;
    gap: 10px;
}

.deep-list-footer a i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.deep-list-footer a:hover i {
    transform: translateX(3px);
}

/* ========================================
   MK03: STICKY HEADER
   ======================================== */
.storm-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.storm-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* ========================================
   MK03: MEGA MENU SYSTEM
   ======================================== */
.nav-menu {
    position: relative;
}

.nav-item-wrapper {
    position: relative;
}

.nav-item-wrapper > .nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 680px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    overflow: hidden;
}

.nav-item-wrapper.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Keep menu open when hovering over it */
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu Header */
.mega-menu-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 16px 24px;
    border-bottom: 3px solid var(--primary-color, #6366f1);
}

.mega-menu-header h3 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mega Menu Body */
.mega-menu-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
}

/* Mega Menu Column */
.mega-menu-column {
    padding: 20px 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-column:hover {
    background: rgba(99, 102, 241, 0.03);
}

/* Level 2 Title */
.mega-menu-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6366f1;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category listing: force 4 columns on desktop */
@media (min-width: 992px) {
    #product-category .category-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Category listing (MK02): grid class used in template/DB overrides */
#product-category .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px;
}
@media (max-width: 1199px) {
    #product-category .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767px) {
    #product-category .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}

.mega-menu-title i {
    font-size: 0.9rem;
}

/* Level 2 & 3 Links */
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 2px;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.mega-menu-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    transform: translateX(4px);
}

.mega-menu-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.mega-menu-link:hover::before {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Level 3 - Nested submenu (sempre visível) */
.mega-submenu {
    margin-left: 16px;
    padding-left: 12px;
    border-left: 2px solid rgba(99, 102, 241, 0.15);
    margin-top: 6px;
}

.mega-submenu-link {
    display: block;
    padding: 6px 10px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mega-submenu-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    padding-left: 14px;
}

/* Mega Menu Footer */
.mega-menu-footer {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-menu-footer a {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mega-menu-footer a:hover {
    color: #4f46e5;
    gap: 10px;
}

/* Featured Card inside Mega Menu */
.mega-featured {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    margin-top: 12px;
}

.mega-featured-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.mega-featured h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.mega-featured p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Arrow indicator */
.has-submenu::after {
    content: '›';
    margin-left: auto;
    font-size: 1.1rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.has-submenu:hover::after {
    color: #6366f1;
    transform: translateX(3px);
}

/* Smaller mega menu variant */
.mega-menu-sm {
    min-width: 320px;
}

.mega-menu-sm .mega-menu-body {
    grid-template-columns: 1fr;
}

/* Color variants for different categories */
.mega-menu.theme-purple .mega-menu-header {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    border-color: #a78bfa;
}

.mega-menu.theme-orange .mega-menu-header {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    border-color: #fb923c;
}

.mega-menu.theme-green .mega-menu-header {
    background: linear-gradient(135deg, #166534 0%, #16a34a 100%);
    border-color: #4ade80;
}

.mega-menu.theme-blue .mega-menu-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-color: #60a5fa;
}

/* --- CATEGORY PAGE (v1) --- */
.category-page .storm-breadcrumb {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(98,0,234,0.14);
    border-radius: 14px 4px 14px 4px;
    padding: 8px 12px;
    margin-bottom: 14px !important;
    position: relative;
    backdrop-filter: blur(2px);
}
.category-page .storm-breadcrumb::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 1px;
    background: rgba(98,0,234,0.16);
    border-radius: 1px;
}
.category-page .storm-breadcrumb > li {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 14px;
    color: #55627a;
}
.category-page .storm-breadcrumb > li > a {
    color: #5d38b4;
    font-weight: 600;
}
.category-page .storm-breadcrumb > li + li:before {
    content: '›';
    color: #9b86d8;
    padding: 0 8px;
    font-weight: 700;
}
.category-page .category-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
}
.category-page .refine-link {
    padding: 8px 10px;
    border-radius: 10px;
    color: #4f5e75;
    background: rgba(98,0,234,.04);
}
.category-page .refine-link:hover {
    background: rgba(98,0,234,.08);
    color: #2e3a4d;
    text-decoration: none;
}
.category-page .toolbar-select {
    min-width: 170px;
}
.category-products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.category-products-grid.list-view .category-product-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    align-items: start;
}
.category-products-grid.list-view .category-product-item .image img {
    width: 100%;
    height: auto;
}
@media (max-width: 767px) {
    .category-page .toolbar-select { min-width: 140px; }
    .category-products-grid.list-view .category-product-item { grid-template-columns: 1fr; }
}

/* tighten category products frame top gap */
.category-page .category-products-section {
    margin-top: 40px !important;
}

/* --- CATEGORY SIDEBAR CYBER FRAME (accent) --- */
#product-category #column-left {
    position: relative;
    background: #fff;
    border-radius: 26px 4px 34px 26px;
    box-shadow: 0 8px 24px rgba(30, 40, 60, 0.06);
    border: 1px solid rgba(98, 0, 234, 0.18);
    padding: 16px 14px;
    overflow: visible;
}
#product-category #column-left::before,
#product-category #column-left::after {
    content: '';
    position: absolute;
    pointer-events: none;
}
#product-category #column-left::before {
    top: -8px;
    right: -8px;
    width: 140px;
    height: 54px;
    border-top: 2px solid rgba(170, 0, 255, 0.9);
    border-right: 2px solid rgba(170, 0, 255, 0.9);
    border-radius: 0 4px 0 0;
    filter: drop-shadow(0 0 4px rgba(170, 0, 255, 0.35));
}
#product-category #column-left::after {
    left: -8px;
    bottom: -8px;
    width: 120px;
    height: 70px;
    border-left: 2px solid rgba(170, 0, 255, 0.9);
    border-bottom: 2px solid rgba(170, 0, 255, 0.9);
    border-radius: 0 0 0 34px;
    filter: drop-shadow(0 0 4px rgba(170, 0, 255, 0.35));
}
#product-category #column-left .list-group {
    border: 0;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}
/* removed by request: inner corner accent + runner */
#product-category #column-left .list-group::before {
    content: 'CATEGORIAS';
    display: block;
    margin: 0 0 12px;
    padding: 0 6px 10px;
    border-bottom: 1px solid rgba(98, 0, 234, 0.15);
    color: #5b2ca0;
    font-family: var(--font-tech);
    font-size: 13px;
    letter-spacing: 0.08em;
    font-weight: 700;
}
#product-category #column-left .list-group-item {
    border: 0;
    border-radius: 12px;
    margin-bottom: 6px;
    color: #505f74;
    padding: 12px 14px;
    background: transparent;
    transition: background .2s ease, color .2s ease;
    position: relative;
}
#product-category #column-left .list-group-item:hover {
    background: rgba(98, 0, 234, 0.06);
    color: #2f3e52;
}
#product-category #column-left .list-group-item.active {
    background: rgba(98, 0, 234, 0.12);
    color: #4f2ba3;
    font-weight: 700;
}
#product-category #column-left .list-group-item.active::before {
    content: '›';
    margin-right: 8px;
}

/* Category toolbar compact row */
.category-toolbar-wrap { border-radius: 14px; }
.category-toolbar-inline { flex-wrap: nowrap; }
.category-page .toolbar-select {
    min-width: 0;
    width: 190px;
    max-width: 190px;
}
@media (max-width: 991px) {
    .category-toolbar-inline { flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .category-page .toolbar-select {
        width: 100%;
        max-width: 100%;
    }
}

/* Manufacturer list (A-Z) */
.manufacturer-letter .manufacturer-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(98,0,234,.04);
    color: #4f5e75;
    text-decoration: none;
}
.manufacturer-letter .manufacturer-link:hover {
    background: rgba(98,0,234,.08);
    color: #2e3a4d;
}

/* No-sidebar list pages: allow denser grid (6 cols) */
@media (min-width: 992px) {
  #product-category #content.col-sm-12 .category-products-grid,
  #product-search #content.col-sm-12 .category-products-grid,
  #product-manufacturer #content.col-sm-12 .category-products-grid,
  #product-special #content.col-sm-12 .category-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1200px) {
  #product-category #content.col-sm-12 .category-products-grid,
  #product-search #content.col-sm-12 .category-products-grid,
  #product-manufacturer #content.col-sm-12 .category-products-grid,
  #product-special #content.col-sm-12 .category-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Search criteria card: reduce height */
#product-search .search-criteria-card {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
#product-search .search-criteria-card .form-label {
    margin-bottom: 4px;
}

/* Product page v1: cyber gallery + price box */
#product-product .product-main-frame {
    position: relative;
    background: rgba(255,255,255,0.75);
    border-radius: 18px 4px 26px 4px;
    padding: 14px;
    border: 1px solid rgba(98,0,234,0.18);
    box-shadow: 0 10px 26px rgba(30, 40, 60, 0.06);
    overflow: hidden;
}
#product-product .product-main-frame { padding: 12px; }
#product-product .product-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    transform: scale(1.18);
    transform-origin: center;
}
@media (min-width: 992px) {
    #product-product .product-main-image { max-height: 520px; }
}
#product-product .product-thumb-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    padding: 6px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(98,0,234,0.16);
    box-shadow: 0 6px 14px rgba(30, 40, 60, 0.05);
}
#product-product .product-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#product-product .product-thumb-mini:hover {
    border-color: rgba(170,0,255,0.35);
}

#product-product .product-price-box {
    border: 1px solid rgba(98,0,234,0.18);
    border-radius: 16px 4px 16px 4px;
    position: relative;
    overflow: hidden;
}
#product-product .product-price-box::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 44px;
    height: 1px;
    background: rgba(98,0,234,0.14);
}
#product-product .price-box-header { letter-spacing: .08em; }
#product-product .price-box-price { font-family: var(--font-tech); }

/* Cyber border shimmer (product main frame) */
#product-product .product-main-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg,
      rgba(255,255,255,0),
      rgba(255,255,255,0.85),
      rgba(170,0,255,0.9),
      rgba(255,255,255,0)
    );
    background-size: 240% 100%;
    opacity: 0.55;
    filter: blur(0.2px);
    animation: cyber-border-sheen 3.6s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
@keyframes cyber-border-sheen {
    0%   { background-position: 200% 0; }
    100% { background-position: -40% 0; }
}

/* Magnific Popup navigation arrows (ensure visible) */
.storm-mfp .mfp-arrow.storm-mfp-arrow {
    width: 54px;
    height: 54px;
    line-height: 54px;
    opacity: 1;
}
.storm-mfp .mfp-arrow.storm-mfp-arrow {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(98,0,234,0.18);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 0 10px 24px rgba(30,40,60,0.10);
}
.storm-mfp .mfp-arrow.storm-mfp-arrow i {
    font-size: 26px;
    color: rgba(98,0,234,0.95);
}
.storm-mfp .mfp-arrow.storm-mfp-arrow:before,
.storm-mfp .mfp-arrow.storm-mfp-arrow:after {
    display: none !important;
}

/* Lightbox arrows closer to the image/modal */
.storm-mfp .mfp-content { position: relative; }
.storm-mfp .mfp-arrow.storm-mfp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.storm-mfp .mfp-arrow-left.storm-mfp-arrow { left: -68px; }
.storm-mfp .mfp-arrow-right.storm-mfp-arrow { right: -68px; }
@media (max-width: 991px) {
    .storm-mfp .mfp-arrow-left.storm-mfp-arrow { left: 8px; }
    .storm-mfp .mfp-arrow-right.storm-mfp-arrow { right: 8px; }
}

/* Fix horizontal scroll when lightbox opens (keep arrows inside viewport) */
html.mfp-ready,
html.mfp-ready body {
    overflow-x: hidden !important;
}
.storm-mfp .mfp-container {
    padding-left: 80px;
    padding-right: 80px;
    box-sizing: border-box;
}
.storm-mfp .mfp-arrow-left.storm-mfp-arrow { left: 16px; }
.storm-mfp .mfp-arrow-right.storm-mfp-arrow { right: 16px; }

/* Lightbox controls: better UX + keep away from edges */
.storm-mfp.mfp-wrap { overflow: hidden; }
.storm-mfp .mfp-container {
    /* more breathing room from viewport edges */
    padding-left: 110px;
    padding-right: 110px;
    padding-top: 64px;
    padding-bottom: 64px;
}
@media (max-width: 991px) {
    .storm-mfp .mfp-container {
        padding-left: 72px;
        padding-right: 72px;
        padding-top: 56px;
        padding-bottom: 56px;
    }
}
@media (max-width: 575px) {
    .storm-mfp .mfp-container {
        padding-left: 56px;
        padding-right: 56px;
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

/* Close button: keep inside modal area, not near browser/top edge */
.storm-mfp .mfp-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    line-height: 46px;
    opacity: 1;
    color: rgba(98,0,234,0.95) !important;
    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(98,0,234,0.18);
    border-radius: 14px 4px 14px 4px;
    box-shadow: 0 10px 24px rgba(30,40,60,0.10);
}
.storm-mfp .mfp-close:hover { background: rgba(255,255,255,0.98); }

/* Arrows: inset from edges */
.storm-mfp .mfp-arrow-left.storm-mfp-arrow { left: 32px; }
.storm-mfp .mfp-arrow-right.storm-mfp-arrow { right: 32px; }
@media (max-width: 575px) {
    .storm-mfp .mfp-arrow-left.storm-mfp-arrow { left: 18px; }
    .storm-mfp .mfp-arrow-right.storm-mfp-arrow { right: 18px; }
}

/* Lightbox arrows: anchor near modal content (not screen edges) */
.storm-mfp .mfp-arrow-left.storm-mfp-arrow {
    left: clamp(18px, calc(50% - 430px), 140px) !important;
}
.storm-mfp .mfp-arrow-right.storm-mfp-arrow {
    right: clamp(18px, calc(50% - 430px), 140px) !important;
}

/* Lightbox close: give padding from corner and ensure it doesn't get squeezed */
.storm-mfp .mfp-close {
    top: 28px;
    right: 28px;
    z-index: 1051;
}

/* Product gallery modal (Bootstrap 5) */
#productGalleryModal .modal-dialog { padding: 16px; }
#productGalleryModal .storm-modal-content {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(98,0,234,0.18);
    border-radius: 18px 4px 18px 4px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.25);
}
#productGalleryModal .product-modal-image {
    max-height: 72vh;
    object-fit: contain;
}
#productGalleryModal .carousel-control-prev,
#productGalleryModal .carousel-control-next {
    width: 64px;
}
#productGalleryModal .carousel-control-prev-icon,
#productGalleryModal .carousel-control-next-icon {
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

/* Bootstrap carousel controls: make visible on white modal */
#productGalleryModal .carousel-control-prev-icon,
#productGalleryModal .carousel-control-next-icon {
    filter: none;
    background-color: rgba(98,0,234,0.95);
    border-radius: 12px;
    padding: 16px;
    background-size: 18px 18px;
}
#productGalleryModal .carousel-control-prev,
#productGalleryModal .carousel-control-next {
    opacity: 1;
}

/* Product main image: center and increase presence */
#product-product .product-main-link { width: 100%; }
#product-product .product-main-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 357px; /* ~-15% */
}
#product-product .product-main-image {
    max-height: 442px; /* ~-15% */
    transform: scale(1.09); /* ~-15% vs 1.28 */
}
@media (min-width: 992px) {
    #product-product .product-main-frame { min-height: 408px; /* ~-15% */ }
    #product-product .product-main-image { max-height: 510px; /* ~-15% */ }
}

/* Product tabs: clearer tab affordance (Bootstrap 5) */
#product-product .product-tabs.nav-tabs {
    border-bottom: 1px solid rgba(98,0,234,0.14);
    gap: 2px;
}
#product-product .product-tabs .nav-link {
    border: 1px solid rgba(98,0,234,0.14);
    border-bottom: 0;
    border-radius: 12px 4px 0 0;
    padding: 8px 12px;
    margin-bottom: -1px; /* encaixa na linha de base */
    font-family: var(--font-tech);
    color: #55627a;
    background: rgba(255,255,255,0.65);
}
#product-product .product-tabs .nav-link:hover {
    background: rgba(98,0,234,0.06);
    color: #2e3a4d;
}
#product-product .product-tabs .nav-link.active {
    background: #fff;
    color: #5d38b4;
    border-color: rgba(98,0,234,0.22);
    box-shadow: 0 -8px 20px rgba(98,0,234,0.08);
}

/* Related products carousel (6 per slide) */
#product-product .related-carousel-wrap .carousel-control-prev,
#product-product .related-carousel-wrap .carousel-control-next {
    width: 64px;
}
#product-product .related-carousel-wrap .carousel-control-prev-icon,
#product-product .related-carousel-wrap .carousel-control-next-icon {
    filter: none;
    background-color: rgba(98,0,234,0.95);
    border-radius: 12px;
    padding: 16px;
    background-size: 18px 18px;
}

/* Related products: force 6 items per row on desktop */
@media (min-width: 1200px) {
  #product-product .related-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #product-product .related-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Add-to-cart modal */
#addToCartModal .cart-modal-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px 4px 14px 4px;
    border: 1px solid rgba(98,0,234,0.16);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 20px rgba(30,40,60,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#addToCartModal .cart-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Cart page v1 */
#checkout-cart .cart-item {
    padding: 12px;
    border: 1px solid rgba(98,0,234,0.10);
    border-radius: 16px 4px 16px 4px;
    background: rgba(255,255,255,0.70);
}
#checkout-cart .cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px 4px 14px 4px;
    border: 1px solid rgba(98,0,234,0.16);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#checkout-cart .cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#checkout-cart .cart-summary .border-bottom {
    border-bottom-color: rgba(98,0,234,0.10) !important;
}

/* Cart accordion (shipping/coupon) */
#checkout-cart #accordion .accordion-button {
    font-family: var(--font-tech);
    background: rgba(255,255,255,0.70);
}
#checkout-cart #accordion .accordion-button:not(.collapsed) {
    color: #5d38b4;
    background: rgba(98,0,234,0.06);
    box-shadow: none;
}
#checkout-cart #accordion .accordion-body {
    background: rgba(255,255,255,0.65);
}
#checkout-cart #accordion .accordion-item {
    border: 1px solid rgba(98,0,234,0.10);
    border-radius: 16px 4px 16px 4px;
    overflow: hidden;
}

/* Storm alerts (theme-aligned) */
.category-page .alert {
    border-radius: 16px 4px 16px 4px;
    border: 1px solid rgba(98,0,234,0.16);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 10px 26px rgba(30,40,60,0.06);
}
.category-page .alert-success {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.10);
    color: #135a44;
}
.category-page .alert-danger {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.10);
    color: #7a1d1d;
}
.category-page .alert-info {
    border-color: rgba(59, 130, 246, 0.22);
    background: rgba(59, 130, 246, 0.10);
    color: #143d6b;
}
.category-page .alert .btn-close {
    opacity: 0.8;
}
.category-page .alert .btn-close:hover { opacity: 1; }

/* Contact actions side card */
#information-contact .contact-actions-card {
    border: 1px solid rgba(98,0,234,0.14);
    border-radius: 16px 4px 16px 4px;
    background: rgba(255,255,255,0.75);
}
#information-contact .btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: none;
}

/* Premium sitemap map (cards + SVG wires) */
#information-sitemap .sitemap-map { position: relative; overflow: hidden; }
#information-sitemap .sitemap-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#information-sitemap .sitemap-wires .wire {
    fill: none;
    stroke: url(#wireGrad);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(170,0,255,0.25));
}
#information-sitemap .sitemap-nodes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    min-height: 520px;
}
#information-sitemap .sitemap-node[data-node="home"] { grid-column: 5 / span 4; }
#information-sitemap .sitemap-node[data-node="categories"] { grid-column: 1 / span 5; }
#information-sitemap .sitemap-node[data-node="manufacturers"] { grid-column: 7 / span 3; }
#information-sitemap .sitemap-node[data-node="links"] { grid-column: 10 / span 3; }
@media (max-width: 991px) {
    #information-sitemap .sitemap-nodes { grid-template-columns: 1fr; min-height: auto; }
    #information-sitemap .sitemap-node { grid-column: auto !important; }
}
#information-sitemap .sitemap-card {
    border: 1px solid rgba(98,0,234,0.14);
    border-radius: 16px 4px 16px 4px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 10px 26px rgba(30,40,60,0.06);
    overflow: hidden;
}
#information-sitemap .sitemap-card-title {
    padding: 12px 14px;
    font-family: var(--font-tech);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5d38b4;
    border-bottom: 1px solid rgba(98,0,234,0.10);
    background: rgba(98,0,234,0.04);
}
#information-sitemap .sitemap-card-body { padding: 12px 14px; }
#information-sitemap .sitemap-scroll { max-height: 320px; overflow: auto; padding-right: 6px; }
#information-sitemap .sitemap-tree, #information-sitemap .sitemap-links { list-style: none; padding-left: 0; }
#information-sitemap .sitemap-tree ul { list-style: none; padding-left: 16px; margin: 6px 0; border-left: 1px dashed rgba(98,0,234,0.14); }
#information-sitemap .sitemap-tree li { margin: 4px 0; }
#information-sitemap .sitemap-tree a, #information-sitemap .sitemap-links a {
    color: #4f5e75;
    text-decoration: none;
}
#information-sitemap .sitemap-tree a:hover, #information-sitemap .sitemap-links a:hover { color: #2e3a4d; text-decoration: underline; }
#information-sitemap .sitemap-chip {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(98,0,234,0.04);
    border: 1px solid rgba(98,0,234,0.10);
    color: #4f5e75;
    text-decoration: none;
    font-size: 0.9rem;
}
#information-sitemap .sitemap-chip:hover { background: rgba(98,0,234,0.08); color: #2e3a4d; }

/* Sitemap circuit enhancements: nodes + animated glow */
#information-sitemap .sitemap-wires .wire {
    stroke-width: 2.2;
}
#information-sitemap .sitemap-wires .wire-glow {
    fill: none;
    stroke: rgba(170,0,255,0.35);
    stroke-width: 6;
    opacity: 0.35;
    filter: blur(0.2px) drop-shadow(0 0 10px rgba(170,0,255,0.28));
}
#information-sitemap .sitemap-wires .wire-runner {
    fill: none;
    stroke: rgba(255,255,255,0.9);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 22 240;
    animation: sitemap-wire-run 2.6s linear infinite;
    filter: drop-shadow(0 0 8px rgba(170,0,255,0.6));
}
@keyframes sitemap-wire-run {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -262; }
}
#information-sitemap .sitemap-wires .wire-node {
    fill: rgba(255,255,255,0.95);
    stroke: rgba(170,0,255,0.85);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(170,0,255,0.35));
}


/* Home StormWire layer */
#common-home { overflow: visible; }
#common-home .storm-wire-zone { position: relative; overflow: visible; }
#common-home .storm-wire-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}
#common-home .storm-wire-layer-under {
    z-index: 1;
}
#common-home .storm-wire-zone > *:not(.storm-wire-layer):not(.storm-wire-layer-under) {
    position: relative;
    z-index: 2;
}
#common-home .home-wire {
    fill: none;
    stroke: url(#homeWireGrad);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(170,0,255,0.18));
}
#common-home .home-wire-glow {
    fill: none;
    stroke: rgba(170,0,255,0.25);
    stroke-width: 6;
    opacity: 0.30;
    filter: drop-shadow(0 0 10px rgba(170,0,255,0.18));
}
#common-home .home-wire-runner {
    fill: none;
    stroke: rgba(255,255,255,0.85);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 22 240;
    animation: home-wire-run 2.8s linear infinite;
    filter: drop-shadow(0 0 8px rgba(170,0,255,0.55));
}
@keyframes home-wire-run {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -262; }
}
#common-home .home-wire-node {
    fill: rgba(255,255,255,0.98);
    stroke: rgba(170,0,255,0.95);
    stroke-width: 2.2;
    filter: drop-shadow(0 0 10px rgba(170,0,255,0.45));
}

/* Home wire debug overlay */
#common-home .home-wire-debug-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background-image:
      linear-gradient(rgba(255,0,100,0.16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,0,100,0.16) 1px, transparent 1px),
      linear-gradient(rgba(255,0,100,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,0,100,0.08) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    mix-blend-mode: multiply;
    display: none;
}
#common-home .home-wire-debug-grid.is-on { display: block; }

#common-home .home-wire-debug-hud {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: rgba(20, 9, 40, 0.88);
    border: 1px solid rgba(170,0,255,0.35);
    border-radius: 10px;
    padding: 8px 10px;
    color: #f6f2ff;
    font: 12px/1.4 monospace;
    white-space: pre-line;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    display: none;
}
#common-home .home-wire-debug-hud.is-on { display: block; }

#common-home .home-wire-debug-label {
    position: absolute;
    transform: translate(8px, -10px);
    pointer-events: none;
    z-index: 6;
    padding: 2px 6px;
    font: 11px/1.2 monospace;
    background: rgba(32, 0, 70, 0.85);
    color: #fff;
    border: 1px solid rgba(170,0,255,0.4);
    border-radius: 8px;
    display: none;
}
#common-home .home-wire-debug-label.is-on { display: block; }

/* Make feature text boxes slightly more glassy to see wires behind */
#common-home .feature-box,
#common-home .text-box,
#common-home .spellboxstorm-text-boxes .storm-card,
#common-home .cyber-ticker-box,
#common-home .benefit-card {
    background: rgba(255,255,255,0.58) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(98,0,234,0.12);
}

/* Home wire debug styles removed */

/* Google OAuth button */
.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dadce0 !important;
  background: #fff !important;
  color: #1f1f1f !important;
  font-weight: 600;
}
.google-auth-btn:hover {
  background: #f8f9fa !important;
}
.google-auth-btn__g {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: conic-gradient(from 240deg, #4285F4 0 90deg, #34A853 90deg 180deg, #FBBC05 180deg 270deg, #EA4335 270deg 360deg);
}

/* Account register theme pass */
#account-register .storm-register-form fieldset,
#account-edit .storm-register-form fieldset,
#account-address .storm-register-form fieldset {
  border: 1px solid rgba(98,0,234,0.14);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 16px;
}
#account-register .storm-register-form legend,
#account-edit .storm-register-form legend,
#account-address .storm-register-form legend {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a1b89;
}
#account-register .storm-register-form .form-group,
#account-edit .storm-register-form .form-group,
#account-address .storm-register-form .form-group {
  margin-bottom: 12px;
}
#account-register .storm-register-form .control-label,
#account-edit .storm-register-form .control-label,
#account-address .storm-register-form .control-label {
  font-weight: 600;
}

/* Account area final polish */
[id^="account-"] .btn-default {
  color: #4a1b89;
  border-color: rgba(98,0,234,0.28);
  background: #fff;
}
[id^="account-"] .btn-default:hover {
  background: rgba(98,0,234,0.08);
}

/* Sidebar account module visual consistency */
#column-left .list-group {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(98,0,234,0.15);
}
#column-left .list-group .list-group-item {
  border-color: rgba(98,0,234,0.12);
}
#column-left .list-group .list-group-item:hover {
  background: rgba(98,0,234,0.06);
}

/* Jornada guiada - endereço BR */
.br-journey-tip {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  border: 1px solid rgba(98, 0, 234, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(247,243,255,.95));
  box-shadow: 0 8px 24px rgba(98,0,234,.12);
  animation: brTipIn .35s ease;
}
.br-journey-tip__inner { padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.br-journey-tip__badge {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
  background: #6200ea;
  animation: brTipPulse 1.8s infinite;
}
.br-journey-tip__title { font-size: 12px; text-transform: uppercase; color: #4a1b89; font-weight: 700; margin-bottom: 2px; }
.br-journey-tip__text { margin: 0; font-size: 14px; color: #2d2d2d; }
.br-journey-tip__close {
  margin-left: auto; border: 0; background: transparent; color: #6c757d;
  font-size: 18px; line-height: 1; cursor: pointer;
}
@keyframes brTipPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes brTipIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.br-journey-focus .form-control,
.br-journey-focus select,
.br-journey-focus textarea {
  border-color: rgba(98,0,234,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(98,0,234,.12) !important;
}
.br-journey-error .form-control,
.br-journey-error select,
.br-journey-error textarea {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.12) !important;
}

/* Address list responsive grid cards */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.address-grid__item {
  border-radius: 8px !important;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.address-grid__body {
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.address-default-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #fff;
  background: linear-gradient(90deg, #6200ea, #9c27b0);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 0 12px rgba(156,39,176,.45);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════
   Pagination — Storm theme (shared: category, search, etc.)
   ══════════════════════════════════════════════════════════ */
.pagination { display: flex; flex-wrap: wrap; gap: 2px; padding: 0; margin: 0; list-style: none; }
.pagination li { display: inline-block; }
.pagination li a,
.pagination li span {
  display: inline-block; padding: 6px 12px; font-size: 0.85rem;
  border: 1px solid #dee2e6; border-radius: 4px; color: #6c3dab;
  text-decoration: none; transition: all .15s;
}
.pagination li a:hover { background: #6c3dab; color: #fff; border-color: #6c3dab; }
.pagination li.active span,
.pagination li.active a {
  background: #6c3dab; color: #fff; border-color: #6c3dab; font-weight: 600;
}
.pagination li span { color: #999; }

/* ══════════════════════════════════════════════════════════
   Product card consistency — shared across category/search
   ══════════════════════════════════════════════════════════ */
.category-card-title { min-height: 2.7em; line-height: 1.35; margin-bottom: .45rem !important; }
.category-card-title-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card-price-row {
  min-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card-price-row .price-old { text-decoration: line-through; font-size: .86em; color: #8a8a8a; }

/* List view — shared */
.product-grid.list-view { grid-template-columns: 1fr !important; gap: 0 !important; }
.product-grid.list-view .product-thumb {
  display: flex !important; flex-direction: row !important; align-items: stretch !important;
  gap: 0 !important; padding: 0 !important; border-radius: 8px; border-bottom: none;
  box-shadow: none !important; background: #fff; height: auto !important;
  overflow: hidden; margin-bottom: 6px; border: 1px solid rgba(0,0,0,0.06);
}
.product-grid.list-view .product-thumb:hover {
  background: #fff; box-shadow: 0 2px 8px rgba(98,0,234,0.08) !important; transform: none !important;
}
.product-grid.list-view .product-thumb .image {
  flex-shrink: 0; width: 55px; padding-top: 0 !important; position: static !important;
  background: #1a1a2e !important; height: auto !important; overflow: hidden;
  border-radius: 0; display: flex; align-items: center;
}
.product-grid.list-view .product-thumb .image img {
  width: 55px !important; height: auto !important; position: static !important; object-fit: cover; display: block;
}
.product-grid.list-view .product-thumb .caption {
  flex: 1; padding: 6px 10px !important; display: flex !important;
  flex-direction: column !important; justify-content: center; gap: 2px;
  overflow: hidden; border-top: none !important;
}
.product-grid.list-view .product-thumb .caption h4 {
  margin: 0 !important; min-height: unset; font-size: 0.95rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}
.product-grid.list-view .product-thumb .caption .price {
  margin: 0 !important; font-size: 0.82rem; white-space: nowrap;
}
.product-grid.list-view .product-thumb .button-group { display: none !important; }
.product-grid.list-view .product-thumb:hover .image img { transform: none !important; }
@media (min-width: 576px) {
  .product-grid.list-view .product-thumb .image { width: 65px; }
  .product-grid.list-view .product-thumb .image img { width: 65px !important; }
  .product-grid.list-view .product-thumb .caption h4 { font-size: 1.05rem; }
}

/* ============================================================
   HOVER INTENT MENU - Variante V2 (Espelhada) + glow roxo
   Adicionado em 2026-04-24
   ============================================================ */

/* Delay da animação é configurável via JS, mas este é o default */
.nav-item-wrapper {
    --hover-delay: 280ms;
}

/* SVG injetado pelo JS para desenhar a borda */
.nav-item-wrapper .border-svg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

/* Paths: dois segmentos espelhados do topo-centro */
.nav-item-wrapper .border-path {
    fill: none;
    stroke: #A855F7;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset var(--hover-delay) ease-out, filter 200ms;
}

/* Garantir que o conteúdo do nav-item fique acima do SVG */
.nav-item-wrapper > .nav-item {
    position: relative;
    z-index: 1;
}

/* Estado "loading" — usuário está pairando o mouse, borda está sendo desenhada */
.nav-item-wrapper.loading .border-path {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 4px #A855F7)
            drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

/* Manter a borda visível enquanto o menu estiver aberto */
.nav-item-wrapper.open .border-path {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 4px #A855F7)
            drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}
