/* ═══════════════════════════════════════════════
   ZFS Solution — Catalog Styles
   Category listing + Product detail + Mega menu
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   1. CATEGORY / LISTING PAGE
   ═══════════════════════════════════════════════ */

.catalog-category-view .page-title-wrapper {
    padding: 1.5rem 1.5rem 0;
}

.catalog-category-view .page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.25rem;
}

.catalog-category-view .category-description {
    font-size: 13px;
    color: #5a5f6a;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid #1e2128;
}

/* Layout: sidebar + main */
.zfs-catalog-columns {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    min-height: 600px;
}

.catalog-category-view .sidebar-main {
    border-right: 1px solid #1e2128;
    padding: 1.5rem;
    background: #0d0e10;
}

.catalog-category-view .column.main {
    padding: 1.5rem;
    background: #0d0e10;
}

/* Filter title */
.catalog-category-view .block.filter .block-title strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #e8eaed;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1e2128;
}

/* Filter groups */
.catalog-category-view .filter-options-item {
    border-bottom: 1px solid #1e2128;
    margin-bottom: 0;
}

.catalog-category-view .filter-options-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a5f6a;
    padding: 0.75rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.catalog-category-view .filter-options-title::after {
    content: '+';
    font-size: 14px;
    color: #5a5f6a;
    font-weight: 300;
}

.catalog-category-view .filter-options-item.active .filter-options-title::after {
    content: '−';
}

.catalog-category-view .filter-options-content {
    padding-bottom: 0.75rem;
}

.catalog-category-view .filter-options-content .item {
    margin-bottom: 6px;
}

.catalog-category-view .filter-options-content a {
    font-size: 13px;
    color: #8a8f9a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    transition: color 0.15s;
}

.catalog-category-view .filter-options-content a:hover {
    color: #00c2ff;
}

.catalog-category-view .filter-options-content .count {
    font-size: 11px;
    color: #3a3f4a;
    margin-left: auto;
}

/* Active filters */
.catalog-category-view .filter-current .items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-category-view .filter-current .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0e1e2e;
    border: 1px solid #1a4a6e;
    color: #00c2ff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.catalog-category-view .filter-current .remove {
    color: #00c2ff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

/* Toolbar */
.catalog-category-view .toolbar-products {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-category-view .toolbar-amount {
    font-size: 12px;
    color: #5a5f6a;
}

.catalog-category-view .toolbar-amount .toolbar-number {
    color: #e8eaed;
    font-weight: 500;
}

.catalog-category-view .modes {
    display: flex;
    gap: 4px;
}

.catalog-category-view .modes-mode {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e2128;
    border-radius: 4px;
    color: #5a5f6a;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.catalog-category-view .modes-mode.active,
.catalog-category-view .modes-mode:hover {
    border-color: #00c2ff;
    color: #00c2ff;
}

.catalog-category-view .sorter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-category-view .sorter-label {
    font-size: 12px;
    color: #5a5f6a;
}

.catalog-category-view .sorter-options {
    background: #13151a;
    border: 1px solid #1e2128;
    color: #e8eaed;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.catalog-category-view .sorter-options:focus {
    border-color: #00c2ff;
}

/* Product grid */
.catalog-category-view .products-grid .products.list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-category-view .products-grid .product-item {
    background: #13151a;
    border: 1px solid #1e2128;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
    list-style: none;
}

.catalog-category-view .products-grid .product-item:hover {
    border-color: #2e3340;
    transform: translateY(-2px);
}

.catalog-category-view .product-item-photo {
    display: block;
    background: #0d0e10;
    border-bottom: 1px solid #1e2128;
    padding: 1.5rem;
    text-align: center;
}

.catalog-category-view .product-item-photo img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s;
}

.catalog-category-view .product-item:hover .product-item-photo img {
    transform: scale(1.04);
}

.catalog-category-view .product-item-details {
    padding: 0.875rem;
}

.catalog-category-view .product-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #8a8f9a;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 36px;
}

.catalog-category-view .product-item-name a {
    color: #8a8f9a;
    text-decoration: none;
    transition: color 0.15s;
}

.catalog-category-view .product-item-name a:hover {
    color: #e8eaed;
}

.catalog-category-view .price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.catalog-category-view .price-box .price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.catalog-category-view .price-box .old-price .price {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #3a3f4a;
    text-decoration: line-through;
    font-weight: 400;
}

.catalog-category-view .price-box .special-price .price {
    color: #00c2ff;
}

.catalog-category-view .stock.available span {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    background: #0e2e18;
    color: #4ade80;
    border: 1px solid #1a5e30;
    margin-bottom: 8px;
}

.catalog-category-view .stock.unavailable span {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    background: #1a1d23;
    color: #5a5f6a;
    border: 1px solid #1e2128;
    margin-bottom: 8px;
}

.catalog-category-view .action.tocart.primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 16px;
    background: #00c2ff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.catalog-category-view .action.tocart.primary:hover {
    background: #33cfff;
}

.catalog-category-view .action.tocart.primary.disabled,
.catalog-category-view .action.tocart.primary[disabled] {
    background: #1a1d23;
    color: #5a5f6a;
    cursor: not-allowed;
}

/* Secondary actions */
.catalog-category-view .product-item-actions .actions-secondary {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.catalog-category-view .action.towishlist,
.catalog-category-view .action.tocompare {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: none;
    color: #5a5f6a;
    border: 1px solid #1e2128;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.catalog-category-view .action.towishlist:hover,
.catalog-category-view .action.tocompare:hover {
    border-color: #00c2ff;
    color: #00c2ff;
}

/* Pagination */
.catalog-category-view .pages {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e2128;
}

.catalog-category-view .pages .items {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.catalog-category-view .pages .item a,
.catalog-category-view .pages .item strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    color: #8a8f9a;
    text-decoration: none;
    border: 1px solid #1e2128;
    background: #13151a;
    transition: border-color 0.15s, color 0.15s;
}

.catalog-category-view .pages .item a:hover {
    border-color: #00c2ff;
    color: #00c2ff;
}

.catalog-category-view .pages .item.current strong {
    background: #0e1e2e;
    border-color: #1a4a6e;
    color: #00c2ff;
}

/* ═══════════════════════════════════════════════
   2. PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════ */

.catalog-product-view .page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.catalog-product-view .product-info-main {
    padding: 0 0 0 2rem;
}

/* Breadcrumbs */
.catalog-product-view .breadcrumbs {
    padding: 1rem 1.5rem 0;
}

.catalog-product-view .breadcrumbs .items {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.catalog-product-view .breadcrumbs .item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5a5f6a;
}

.catalog-product-view .breadcrumbs .item a {
    color: #5a5f6a;
    text-decoration: none;
    transition: color 0.15s;
}

.catalog-product-view .breadcrumbs .item a:hover {
    color: #00c2ff;
}

.catalog-product-view .breadcrumbs .item::after {
    content: '/';
    color: #3a3f4a;
}

.catalog-product-view .breadcrumbs .item:last-child::after {
    display: none;
}

.catalog-product-view .breadcrumbs .item.category strong {
    color: #8a8f9a;
}

/* Product layout */
.catalog-product-view .product.media {
    background: #13151a;
    border: 1px solid #1e2128;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.catalog-product-view .product.media img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Product title */
.catalog-product-view .page-title-wrapper.product .page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0 0 1rem;
}

/* SKU */
.catalog-product-view .product.attribute.sku {
    font-size: 12px;
    color: #5a5f6a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog-product-view .product.attribute.sku .type {
    font-weight: 500;
    color: #3a3f4a;
}

.catalog-product-view .product.attribute.sku .value {
    color: #5a5f6a;
    font-family: 'Barlow', monospace;
}

/* Stock status */
.catalog-product-view .stock.available,
.catalog-product-view .stock.unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.catalog-product-view .stock.available span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    background: #0e2e18;
    color: #4ade80;
    border: 1px solid #1a5e30;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-product-view .stock.available span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
}

.catalog-product-view .stock.unavailable span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    background: #1a1d23;
    color: #5a5f6a;
    border: 1px solid #1e2128;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Price */
.catalog-product-view .product-info-price {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e2128;
}

.catalog-product-view .product-info-price .price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-product-view .product-info-price .price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.catalog-product-view .product-info-price .old-price .price {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    color: #3a3f4a;
    text-decoration: line-through;
    font-weight: 400;
}

.catalog-product-view .product-info-price .special-price .price {
    color: #00c2ff;
}

.catalog-product-view .product-info-price .price-label {
    font-size: 12px;
    color: #5a5f6a;
}

/* Tax notice */
.catalog-product-view .product-info-price .price-including-tax,
.catalog-product-view .product-info-price .price-excluding-tax {
    font-size: 11px;
    color: #5a5f6a;
    display: block;
    margin-top: 4px;
}

/* Add to cart */
.catalog-product-view .box-tocart {
    margin-bottom: 1.5rem;
}

.catalog-product-view .box-tocart .fieldset {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-product-view .box-tocart .field.qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-product-view .box-tocart .field.qty label {
    font-size: 12px;
    color: #5a5f6a;
    margin: 0;
}

.catalog-product-view .box-tocart .field.qty input {
    width: 60px;
    text-align: center;
    background: #13151a;
    border: 1px solid #1e2128;
    color: #e8eaed;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
}

.catalog-product-view .box-tocart .action.tocart.primary {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: #00c2ff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.catalog-product-view .box-tocart .action.tocart.primary:hover {
    background: #33cfff;
}

.catalog-product-view .box-tocart .action.tocart.primary.disabled {
    background: #1a1d23;
    color: #5a5f6a;
    cursor: not-allowed;
}

/* Wishlist / compare */
.catalog-product-view .product-addto-links {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.catalog-product-view .product-addto-links .action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    color: #5a5f6a;
    border: 1px solid #1e2128;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.catalog-product-view .product-addto-links .action:hover {
    border-color: #00c2ff;
    color: #00c2ff;
}

/* Short description */
.catalog-product-view .product.attribute.overview {
    font-size: 14px;
    color: #8a8f9a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e2128;
}

/* Product tabs */
.catalog-product-view .product.info.detailed {
    margin-top: 3rem;
    border-top: 1px solid #1e2128;
}

.catalog-product-view .product.data.items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #1e2128;
}

.catalog-product-view .product.data.items .item.title {
    list-style: none;
}

.catalog-product-view .product.data.items .item.title a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 13px;
    font-weight: 500;
    color: #5a5f6a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.catalog-product-view .product.data.items .item.title.active a,
.catalog-product-view .product.data.items .item.title a:hover {
    color: #00c2ff;
    border-bottom-color: #00c2ff;
}

.catalog-product-view .product.data.items .item.content {
    display: none;
    padding: 2rem 0;
    font-size: 14px;
    color: #8a8f9a;
    line-height: 1.8;
    list-style: none;
}

.catalog-product-view .product.data.items .item.content.active {
    display: block;
}

/* Attributes table */
.catalog-product-view .product.attribute table,
.catalog-product-view .additional-attributes {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.catalog-product-view .additional-attributes tbody tr {
    border-bottom: 1px solid #1e2128;
}

.catalog-product-view .additional-attributes tbody tr:last-child {
    border-bottom: none;
}

.catalog-product-view .additional-attributes .col.label {
    color: #5a5f6a;
    padding: 10px 0;
    width: 200px;
    font-weight: 500;
}

.catalog-product-view .additional-attributes .col.data {
    color: #e8eaed;
    padding: 10px 0 10px 1rem;
}

/* Related products */
.catalog-product-view .block.related,
.catalog-product-view .block.upsell {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e2128;
}

.catalog-product-view .block.related .block-title strong,
.catalog-product-view .block.upsell .block-title strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════
   3. MEGA MENU
   ═══════════════════════════════════════════════ */

.zfs-nav {
    position: relative;
}

.zfs-nav-item {
    position: relative;
}

.zfs-nav-item:hover .zfs-mega-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.zfs-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 680px;
    background: #13151a;
    border: 1px solid #1e2128;
    border-top: 2px solid #00c2ff;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.zfs-mega-col h4 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00c2ff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e2128;
}

.zfs-mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zfs-mega-col ul li a {
    font-size: 12px;
    color: #8a8f9a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    transition: color 0.15s;
}

.zfs-mega-col ul li a:hover {
    color: #e8eaed;
}

.zfs-mega-col ul li a::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #2e3340;
    flex-shrink: 0;
    transition: background 0.15s;
}

.zfs-mega-col ul li a:hover::before {
    background: #00c2ff;
}

/* ═══════════════════════════════════════════════
   SEARCH RESULTS PAGE
   ═══════════════════════════════════════════════ */

.catalogsearch-result-index .page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1.5rem 1.5rem 0;
    margin: 0;
}

.catalogsearch-result-index .search.found {
    font-size: 13px;
    color: #5a5f6a;
    padding: 0.5rem 1.5rem 1rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .zfs-mega-menu {
        grid-template-columns: repeat(2, 1fr);
        min-width: 400px;
    }

    .catalog-category-view .products-grid .products.list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .zfs-catalog-columns {
        grid-template-columns: 1fr;
    }

    .catalog-category-view .sidebar-main {
        border-right: none;
        border-bottom: 1px solid #1e2128;
    }

    .catalog-product-view .product-info-main {
        padding: 1.5rem 0 0;
    }

    .zfs-mega-menu {
        display: none !important;
    }
}
