/*
Theme Name: Cabal Shop Theme
Theme URI: https://cabaltechnologies.com/
Author: Cabal Technologies LLP
Author URI: https://cabaltechnologies.com/
Description: Custom WooCommerce theme matching the Cabal Technologies main website design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: cabal-shop
WC tested up to: 10.0
*/

/* ── CSS Variables (match main site) ─────────────────────────────────────── */
:root {
    --bg-1: #040612;
    --bg-2: #08132e;
    --bg-3: #0c163f;
    --neon-cyan: #4de6ff;
    --neon-magenta: #c200ff;
    --neon-purple: #8b3bff;
    --text: #f5f9ff;
    --muted: rgba(255,255,255,0.72);
    --header-h: 134px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left,  rgba(77,230,255,0.10), transparent 18%),
        radial-gradient(circle at bottom right, rgba(194,0,255,0.12), transparent 16%),
        #040612;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

/* ── TOP BAR ─────────────────────────────────────────────────────────────── */
.cabal-topbar {
    background: rgba(3,8,25,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
}
.cabal-topbar .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cabal-topbar .social-links {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    margin: 0; padding: 0;
    padding-right: 1.25rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.cabal-topbar .social-links a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    transition: color .15s;
}
.cabal-topbar .social-links a:hover { color: var(--neon-cyan); }
.cabal-topbar .contact-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0; padding: 0;
}
.cabal-topbar .contact-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    font-weight: 500;
    transition: color .15s;
}
.cabal-topbar .contact-links a i { font-size: 0.72rem; }
.cabal-topbar .contact-links a:hover { color: var(--neon-cyan); }

/* ── MAIN HEADER ─────────────────────────────────────────────────────────── */
.cabal-main-header {
    background: rgba(3,8,25,0.92);
    border-bottom: 1px solid rgba(77,230,255,0.14);
    box-shadow: 0 4px 40px rgba(0,0,0,0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 88px;
}
.cabal-nav-row {
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0 2rem;
    display: flex;
    align-items: center;
    gap: 0;
}
.cabal-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1.5rem 0 0;
    height: 100%;
}
.cabal-logo img {
    width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}
.cabal-nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    flex-wrap: nowrap;
}
.cabal-nav li a {
    color: rgba(235,243,255,0.88);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.5rem 1.1rem;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    display: block;
}
.cabal-nav li a:hover,
.cabal-nav li.current-menu-item > a {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}
.cabal-nav li.active-shop > a {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.cabal-header-right {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    height: 100%;
    margin-left: auto;
}
.cabal-phone-info {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    line-height: 1.4;
}
.cabal-phone-info span { display: none; }
.cabal-phone-info a {
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}
.cabal-phone-info a i {
    margin-right: 0.4rem;
    color: var(--neon-magenta);
    font-size: 0.85rem;
}

.cabal-cta-btn {
    background: linear-gradient(135deg, #8b3bff, #c200ff);
    border: none;
    color: #fff !important;
    padding: 0 2.5rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: none;
    transition: filter .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    align-self: stretch;
}
.cabal-cta-btn:hover {
    filter: brightness(1.12);
    color: #fff !important;
}

/* WooCommerce cart count in header */
.cabal-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 1rem;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: color .15s;
    align-self: stretch;
}
.cabal-cart-link:hover { color: var(--neon-cyan); }
.cart-count {
    background: var(--neon-cyan);
    color: #040612;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Mobile hamburger */
.cabal-mob-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    margin-left: auto;
    padding: 0.25rem;
}
.cabal-mob-menu {
    display: none;
    background: rgba(3,8,25,0.98);
    border-top: 1px solid rgba(77,230,255,0.1);
    padding: 1rem 1.5rem 1.5rem;
}
.cabal-mob-menu.open { display: block; }
.cabal-mob-menu nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cabal-mob-menu nav ul li a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(235,243,255,0.85);
}
.cabal-mob-menu nav ul li a:hover { color: var(--neon-cyan); }

/* ── MAIN CONTENT AREA ───────────────────────────────────────────────────── */
.cabal-site-content {
    min-height: 60vh;
    padding: 2.5rem 0;
}
.cabal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── WOOCOMMERCE PRODUCT PAGE ────────────────────────────────────────────── */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .woocommerce div.product { grid-template-columns: 1fr; gap: 2rem; }
}

/* Product image */
.woocommerce div.product div.images {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(77,230,255,0.12);
    background: rgba(255,255,255,0.03);
}
.woocommerce div.product div.images img {
    border-radius: 16px;
}

/* Product summary */
.woocommerce div.product div.summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.woocommerce div.product .product_title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 0.5rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-cyan) !important;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}
.woocommerce div.product .price .woocommerce-Price-amount {
    color: var(--neon-cyan);
}
.woocommerce div.product .price .tax_label,
.woocommerce div.product .woocommerce-price-suffix {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    margin-left: 0.3rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 2px solid rgba(77,230,255,0.3);
    padding-left: 1rem;
}

/* Stock badge */
.woocommerce div.product .stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
}
.woocommerce div.product .in-stock {
    background: rgba(77,230,255,0.12);
    border: 1px solid rgba(77,230,255,0.3);
    color: var(--neon-cyan);
}
.woocommerce div.product .out-of-stock {
    background: rgba(194,0,255,0.1);
    border: 1px solid rgba(194,0,255,0.28);
    color: #c200ff;
}

/* ADD TO CART BUTTON */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
    background: linear-gradient(135deg, rgba(77,230,255,0.95), rgba(194,0,255,0.95)) !important;
    border: 1px solid rgba(77,230,255,0.3) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(77,230,255,0.22);
    transition: transform .2s, box-shadow .2s, filter .2s;
    cursor: pointer;
    width: auto;
    min-width: 180px;
    text-align: center;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 14px 36px rgba(77,230,255,0.32) !important;
    filter: brightness(1.1) !important;
    background: linear-gradient(135deg, rgba(77,230,255,0.95), rgba(194,0,255,0.95)) !important;
    color: #fff !important;
}
.woocommerce div.product form.cart .quantity input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(77,230,255,0.2);
    color: var(--text);
    border-radius: 0.4rem;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    width: 80px;
    text-align: center;
}

/* Product meta */
.woocommerce div.product .product_meta {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 0.75rem;
}
.woocommerce div.product .product_meta span { color: rgba(255,255,255,0.65); }
.woocommerce div.product .product_meta a { color: var(--neon-cyan); }

/* Product tabs (description, reviews) */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 2rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0 0 0 2px;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(77,230,255,0.15);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(77,230,255,0.1);
    border-bottom: none;
    border-radius: 0.4rem 0.4rem 0 0;
    margin: 0;
    padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    display: block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: rgba(77,230,255,0.1);
    border-color: rgba(77,230,255,0.3);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--neon-cyan); }
.woocommerce div.product .woocommerce-tabs .panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(77,230,255,0.1);
    border-radius: 0 0.4rem 0.4rem 0.4rem;
    padding: 1.5rem 2rem;
    color: var(--muted);
    line-height: 1.8;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 0;
}

/* ── SHOP / ARCHIVE PAGE ─────────────────────────────────────────────────── */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0; padding: 0;
}
.woocommerce ul.products li.product {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(77,230,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    padding: 0;
}
.woocommerce ul.products li.product:hover {
    border-color: rgba(77,230,255,0.25);
    box-shadow: 0 12px 36px rgba(77,230,255,0.1);
    transform: translateY(-3px);
}
.woocommerce ul.products li.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
}
.woocommerce ul.products li.product .price {
    color: var(--neon-cyan) !important;
    font-weight: 700;
    padding: 0 1rem 0.5rem;
    font-size: 1rem;
    display: block;
}
.woocommerce ul.products li.product .button {
    margin: 0 1rem 1rem;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, rgba(77,230,255,0.9), rgba(194,0,255,0.9)) !important;
    color: #fff !important;
    border: none !important;
    transition: filter .2s, transform .2s;
}
.woocommerce ul.products li.product .button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Out of stock overlay on archive cards */
.woocommerce ul.products li.product.outofstock .onsale { display: none; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    margin-bottom: 1.5rem;
}
.woocommerce .woocommerce-breadcrumb a { color: rgba(255,255,255,0.55); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--neon-cyan); }

/* Notices */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--neon-cyan);
    background: rgba(77,230,255,0.06);
    color: var(--text);
}
.woocommerce-error { border-left-color: #c200ff; background: rgba(194,0,255,0.06); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.cabal-footer {
    background: rgba(3,8,25,0.96);
    border-top: 1px solid rgba(77,230,255,0.1);
    margin-top: 4rem;
    padding: 3.5rem 0 0;
}
.cabal-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cabal-footer-logo {
    text-align: center;
    margin-bottom: 3rem;
}
.cabal-footer-logo img { width: 250px; height: auto; }
.cabal-footer-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .cabal-footer-contacts { grid-template-columns: 1fr; }
}
.ft-contact-box {
    text-align: center;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(77,230,255,0.08);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    transition: border-color .2s;
}
.ft-contact-box:hover { border-color: rgba(77,230,255,0.2); }
.ft-contact-box .ft-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(77,230,255,0.08);
    border: 1px solid rgba(77,230,255,0.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: var(--neon-cyan);
    font-size: 1.3rem;
}
.ft-contact-box h6 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin: 0.5rem 0 0;
}
.ft-contact-box p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.cabal-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0;
    text-align: center;
}
.cabal-footer-nav {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cabal-footer-nav li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color .15s;
}
.cabal-footer-nav li a:hover { color: var(--neon-cyan); }
.cabal-copyright {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    margin: 1rem 0 0.75rem;
}
.cabal-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}
.cabal-footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.cabal-footer-social a:hover {
    background: linear-gradient(135deg, #4de6ff, #c200ff);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cabal-nav, .cabal-header-right { display: none !important; }
    .cabal-mob-toggle { display: flex !important; }
    .cabal-nav-row { padding: 12px 1.5rem; }
    .cabal-logo img { width: 150px; }
    .cabal-topbar .contact-links { display: none; }
}

/* ── RELATED PRODUCTS + UPSELLS ──────────────────────────────────────────── */
.woocommerce div.product section.related,
.woocommerce div.product section.upsells {
    grid-column: 1 / -1;
    margin-top: 2.5rem;
}
.woocommerce section.related ul.products,
.woocommerce section.upsells ul.products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}
/* Override WooCommerce float/width column styles */
.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}
.woocommerce section.related h2,
.woocommerce section.upsells h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

/* ── HIDE CATEGORIES WIDGET IN CONTENT AREA ──────────────────────────────── */
.widget_product_categories,
.woocommerce-widget-layered-nav,
.woocommerce-widget-layered-nav-list { display: none !important; }

/* ── CUSTOM CURSOR GLOW DOT (overlay — system arrow still visible) ───────── */
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(77,230,255,0.8);
    pointer-events: none;
    z-index: 999999;
    transform: translate3d(0,0,0) translate(-50%,-50%);
    transition: width 0.12s, height 0.12s, background 0.12s, box-shadow 0.12s;
    mix-blend-mode: screen;
    will-change: transform;
}
.cursor-dot.cur-hover {
    width: 13px; height: 13px;
    background: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(194,0,255,0.9);
}
.cursor-dot.cur-click { width: 6px; height: 6px; }
@media (pointer: coarse) {
    .cursor-dot { display: none !important; }
}

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #08132e; }
::-webkit-scrollbar-thumb { background: rgba(77,230,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(77,230,255,0.6); }
