/*
Theme Name: PouchSnic
Theme URI: https://pouchsnic.com
Author: PouchSnic
Author URI: https://pouchsnic.com
Description: Premium dark ecommerce theme for PouchSnic nicotine pouches. Minimalist corporate design with Electric Cyan accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pouchsnic
Tags: ecommerce, dark, minimal, premium
*/

/* Base reset — Tailwind CDN handles the rest */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0A0A0A;
  color: #e5e2e1;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* Glow effect for primary CTA buttons */
.glow-cyan:hover {
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Bloom effect */
.bloom-effect:hover {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
  background: #2C2C2E;
  border-radius: 10px;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── WooCommerce global resets ── */
/* Disable WooCommerce's own stylesheet colours (we override everything via woocommerce.php) */
.woocommerce-page body,
.woocommerce body                    { background-color: #0A0A0A; }

/* Loading spinner on add-to-cart */
.woocommerce .blockOverlay           { background: rgba(10,10,10,0.7) !important; }
.woocommerce .loader                 { border-top-color: #00E5FF !important; }

/* Ensure WC images don't get white background */
.woocommerce div.product div.images img { background: #131313; border-radius: 16px; }

/* Remove WC default blue link colour */
.woocommerce a                       { color: #00E5FF; }
.woocommerce a:hover                 { color: #67eeff; }

/* ── Product card image system ────────────────────────────────────────────── */

/* Image container — dark base, padding prevents edge clipping */
.ps-img-wrap {
    height: 260px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1115;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Glow orb — brand colour injected via brand-* class below */
.ps-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 160px;
    height: 160px;
    background: rgba(0, 229, 255, 0.25); /* fallback / ZYN */
    filter: blur(70px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

/* ── Per-brand glow colours ─────────────────────────────────────────────── */
.brand-zyn      .ps-img-wrap::after { background: rgba(0,   229, 255, 0.25); }
.brand-alp      .ps-img-wrap::after { background: rgba(0,   255, 150, 0.25); }
.brand-lucy     .ps-img-wrap::after { background: rgba(140, 100, 255, 0.25); }
.brand-rogue    .ps-img-wrap::after { background: rgba(255,  80,  80, 0.25); }
.brand-breakers .ps-img-wrap::after { background: rgba(255, 170,   0, 0.25); }

/* Image — contain (no crop), default pulled back, shadow for depth */
.ps-img-wrap .ps-prod-img,
.ps-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    transform: scale(0.88);
    transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    position: relative;
    z-index: 1;
    display: block;
}

/* Hover — subtle forward pop, deeper shadow */
.ps-pcard:hover .ps-prod-img,
.ps-pcard:hover .ps-img-wrap img,
.ps-product-card:hover .ps-prod-img,
.ps-product-card:hover .ps-img-wrap img {
    transform: scale(0.96);
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.9));
}

/* Missing-image placeholder */
.ps-img-wrap .ps-no-image {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, #111111, #1a1a1a);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}
.ps-img-wrap .ps-no-image svg   { opacity: 0.18; }
.ps-img-wrap .ps-no-image span  {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* Card shell — full-height flex column so all rows align */
.ps-pcard,
.ps-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ── Product card action buttons (unified) ──────────────── */
.ps-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.ps-btn-add,
.ps-btn-buy {
    height: 44px;
    width: 100%;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}
.ps-btn-add {
    background: #00e5ff;
    color: #000 !important;
}
.ps-btn-buy {
    background: transparent;
    color: #fff !important;
    border: 1px solid #00e5ff !important;
}
.ps-btn-add:hover,
.ps-btn-buy:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 6px 20px rgba(0,229,255,.25);
}

/* ── Product card quantity selector ─────────────────────── */
.ps-card-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.ps-card-qty .ps-qty-dec,
.ps-card-qty .ps-qty-inc {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #00e5ff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .2s ease;
    font-family: 'Manrope', sans-serif;
}
.ps-card-qty .ps-qty-dec:hover,
.ps-card-qty .ps-qty-inc:hover {
    background: rgba(0,229,255,0.1);
}
.ps-card-qty .ps-qty-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    text-align: center;
    background: #0f1115;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    -moz-appearance: textfield;
}
.ps-card-qty .ps-qty-input::-webkit-outer-spin-button,
.ps-card-qty .ps-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── WooCommerce native quantity override ────────────────── */
.woocommerce .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.woocommerce .quantity input.qty {
    width: 50px;
    height: 40px;
    text-align: center;
    background: #0f1115 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

/* ── Single product — form, buttons, qty ────────────────────── */
.ps-single-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.ps-single-actions .ps-btn-add,
.ps-single-actions .ps-btn-buy {
    flex: 1;
    min-width: 140px;
    height: 52px;
    font-size: 14px;
    border-radius: 12px;
}
/* WooCommerce native class override — keep our look even if WC adds disabled */
.single_add_to_cart_button {
    background: var(--brand-color, #00e5ff) !important;
    color: #0A0A0A !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    letter-spacing: .04em !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: filter .2s, transform .2s !important;
    cursor: pointer !important;
}
.single_add_to_cart_button:hover:not(:disabled) { filter: brightness(1.12) !important; transform: translateY(-2px) !important; }
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Variations select (hidden but styled for WC JS) */
.variations select {
    background: #0f1115 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    height: 44px !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    width: 100% !important;
    appearance: none !important;
}

/* Quantity row on single product */
.ps-qty-row {
    gap: 0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    background: #0f1115;
}
.ps-qty-row .ps-qty-btn {
    width: 44px;
    height: 48px;
    background: transparent;
    border: none;
    color: #00e5ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.ps-qty-row .ps-qty-btn:hover { background: rgba(0,229,255,0.1); }
.ps-qty-row input.qty {
    width: 56px !important;
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    border-left: 1px solid rgba(255,255,255,0.1) !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    text-align: center !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    -moz-appearance: textfield !important;
    outline: none !important;
    box-shadow: none !important;
}
.ps-qty-row input.qty::-webkit-outer-spin-button,
.ps-qty-row input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Kill ALL default WooCommerce related/upsell output ─────── */
.woocommerce .related,
.woocommerce .upsells,
.woocommerce-page .related,
.woocommerce-page .upsells,
section.related,
section.upsells {
    display: none !important;
}
/* Kill default WC product list grid inside related/upsells */
.related ul.products,
.upsells ul.products,
.related ul.products li,
.upsells ul.products li {
    all: unset;
    display: none !important;
}

/* ── Related products grid sizing ───────────────────────── */
.ps-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 40px !important;
    list-style: none !important;
    padding: 0 !important;
}
@media (max-width: 768px) {
    .ps-related-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
.ps-related-grid .ps-pcard {
    min-height: 380px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #0e0e0e !important;
    border: 1px solid #1e1e1e !important;
    overflow: hidden !important;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ps-related-grid .ps-img-wrap {
    height: 220px !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0f1115 !important;
    position: relative !important;
    border-radius: 0 !important;
}
.ps-related-grid .ps-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px !important;
    transition: transform .45s cubic-bezier(.22,.68,0,1.2) !important;
    margin: 0 !important;
}
.ps-related-grid .ps-pcard:hover .ps-img-wrap img { transform: scale(1.06) !important; }

/* ── Single product conversion elements ─────────────────── */
.ps-rating-row {
    font-size: 14px;
    margin: 10px 0 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #aaa;
}
.ps-rating-row .ps-badge {
    color: #00e5ff;
    font-weight: 700;
    font-size: 12px;
}
.ps-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 14px 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.ps-trust-row div {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #e5e2e1;
    background: #0d0d0d;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.ps-trust-row div:last-child { border-right: none; }
.ps-trust-row small { display: block; font-size: 10px; color: #556; font-weight: 400; margin-top: 2px; }
.ps-stock {
    margin: 14px 0;
    font-size: 13px;
    font-weight: 700;
    color: #e5e2e1;
}
.ps-stock .dot {
    width: 8px;
    height: 8px;
    background: #F59E0B;
    display: inline-block;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.ps-stock .bar {
    height: 6px;
    background: #1e1e1e;
    margin-top: 8px;
    border-radius: 99px;
    overflow: hidden;
}
.ps-stock .bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: #F59E0B;
}
