/**
 * ---------------------------------------------------------------
 * Proprietary Software – Bullion Trading Platform
 * ---------------------------------------------------------------
 *
 * Copyright (c) 2026
 * Bogdan Anton Business & Tech Solutions – Switzerland
 * All rights reserved.
 *
 * This software and its source code are the exclusive property of
 * Bogdan Anton Business & Tech Solutions.
 *
 * The software is licensed, not sold.
 *
 * Unauthorized copying, redistribution, modification, reverse
 * engineering, or resale of this software or any of its components
 * is strictly prohibited without written permission from the
 * copyright holder.
 *
 * This installation is licensed exclusively for the
 * Joan's Collection platform.
 *
 * For licensing inquiries:
 * contact@bogdananton.ch
 * https://bogdananton.ch
 *
 * License terms available in:
 * /LICENSE.txt
 * ---------------------------------------------------------------
 */

/* ===========================
   OUTFIT — LOCAL SELF HOSTED
=========================== */

@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit/outfit-v15-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit/outfit-v15-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit/outfit-v15-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit/outfit-v15-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit/outfit-v15-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ===========================
   GLOBAL BRANDING
=========================== */

:root {
    --gold: #D4AF37;
    --gold-light: #D4AF37;
    --cream-gold: #e5d8b6;
    --cream-soft: #c8c1a5;
    --dark-green: #0d221a;
    --dark-bg: #000000;
    --header-height: 120px;
}

/* Global font + GENERAL BACKGROUND */
html {
    background-color: #000000;
}

body {
    font-family: 'Outfit', sans-serif !important;
    color: var(--cream-gold);
    background: radial-gradient(
        circle at 30% 50%,
        var(--dark-green),
        var(--dark-bg)
    );
    min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--cream-gold);
}

/* ===========================
   HERO SECTION (NO BACKGROUND)
=========================== */

.hero-luxury {
    color: var(--cream-gold);
    padding-top: 160px; /* compensare header */
    padding-bottom: 60px;
    min-height: 90vh;
}

.hero-title {
    font-weight: 600;
    font-size: 5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--cream-gold);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--cream-soft);
    max-width: 450px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}


/* ===========================
   BUTTON — OUTLINE LUXURY
=========================== */

.btn-outline-luxury {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--cream-gold);
    font-size: 1.1rem;
    transition: 0.3s ease;
}

.btn-outline-luxury:hover {
    background: var(--gold);
    color: #000;
}

/* ===========================
   BUTTON — OUTLINE DANGER
=========================== */

.btn-outline-danger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px solid #dc2626;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: 0.3s ease;
    background: #dc2626;
}

.btn-outline-danger:hover {
    background: #dc2626; /* red-600 */
    border-color: #ffffff;
    color: #ffffff;
}

/* ===========================
   BUTTON — OUTLINE WHITE
=========================== */

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: 0.3s ease;
    background: transparent;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #000000;
}

/* ===========================
   BUTTON — LUXURY WITH ICON
   (SAFE EXTENSION)
=========================== */

.btn-outline-luxury.has-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* normalizare SVG / Lucide */
.btn-outline-luxury.has-icon svg {
    display: block;
}




/* ===========================
   HEADER — NORMAL (NOT ABSOLUTE)
=========================== */

.header-luxury {
    width: 100%;
    background: transparent;
    padding: 20px 0;
    position: relative; /* NORMAL, nu suprapus */
    z-index: 20;
}



/* ===========================
   LOGO — CERC AURIU PREMIUM
=========================== */

.logo-circle {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle a {
    font-size: 2.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
}



/* ===========================
   NAVIGATION LINKS (LUXURY)
=========================== */

.nav-luxury {
    color: var(--cream-gold);
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    padding: 0 14px;
}

.nav-luxury:hover {
    color: var(--gold-light);
}



/* ===========================
   SEARCH BAR (TAVEX STYLE)
=========================== */

.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.search-bar {
    height: 48px;
    width: 520px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 0 60px 0 20px;
    font-size: 1rem;
    color: #333;
}

.search-bar::placeholder {
    color: #888;
}

.search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ===========================
   RIGHT ICONS (GRAFICE / CONT / COȘ)
=========================== */

.icon-label {
    color: var(--cream-gold);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s ease;
}

.icon-label:hover {
    color: var(--gold-light);
}



/* ===========================
   FOOTER — NORMAL (NOT ABSOLUTE)
=========================== */

.footer-luxury {
    width: 100%;
    background: transparent !important;
    padding-top: 60px;
    padding-bottom: 30px;
    position: relative; /* NORMAL, nu suprapus */
    z-index: 10;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--gold-light);
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.footer-links li a {
    font-size: 0.95rem;
    opacity: 0.85;
    transition: 0.3s ease;
}

.footer-links li a:hover {
    opacity: 1;
    color: var(--gold-light);
    padding-left: 4px;
}

/* SOCIAL */
.social-icon i {
    width: 26px;
    height: 26px;
    color: var(--gold);
    transition: 0.3s ease;
}

.social-icon:hover i {
    color: var(--gold-light);
    transform: translateY(-3px);
}

#successModal.show {
    opacity: 1;
    pointer-events: auto;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke-width: 3;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    fill: none;
    animation: scale-in 0.3s ease-out forwards;
}

@keyframes scale-in {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circle 0.5s ease-in-out forwards;
}

@keyframes circle {
    to { stroke-dashoffset: 0; }
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: check 0.3s ease-out 0.5s forwards;
}

@keyframes check {
    to { stroke-dashoffset: 0; }
}


/* poziționare bulină */
.status-dot {
    position: absolute;
    top: -4px;
    right: -10px;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
}

/* icon pentru pending & verified (în loc de bulină) */
.status-icon {
    position: absolute;
    top: -6px;
    right: -12px;
    width: 14px;
    height: 14px;
}

/* puls premium */
.badge-pulse {
    animation: pulse 1.3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* puls lent pt. clepsidră (mai elegant) */
.animate-pulse-slow {
    animation: pulseSlow 1.6s infinite ease-in-out;
}

@keyframes pulseSlow {
    0% { opacity: .7; }
    50% { opacity: 1; }
    100% { opacity: .7; }
}

.editor-wrapper {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 5;
}

.editor-toolbar button {
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #e5d8b6;
    font-size: 12px;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: var(--gold);
    color: #000;
}

.editor-toolbar .separator {
    width: 1px;
    margin: 0 6px;
    background: rgba(255,255,255,0.15);
}

.editor-content {
    min-height: 220px;
    padding: 14px;
    color: #e5d8b6;
    font-size: 14px;
    line-height: 1.7;
    outline: none;
}

.editor-content ul,
.editor-content ol {
    padding-left: 1.4rem;
}

.editor-content a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.editor-content u {
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(229,216,182,0.6);
}

.editor-content ul {
    list-style-type: disc !important;
    margin-left: 1.4rem;
    padding-left: 0;
}

.editor-content ol {
    list-style-type: decimal !important;
    margin-left: 1.4rem;
    padding-left: 0;
}

.editor-content li {
    margin: 4px 0;
}

#linkModal input::placeholder {
    opacity: 0.4;
}

.editor-toolbar button.active {
    background: var(--gold);
    color: #000;
}

.editor-output div {
    margin-bottom: 0.75rem;
}

.editor-output ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.editor-output ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.editor-output li {
    margin-bottom: 0.4rem;
}

.editor-output a {
    color: var(--gold);
    text-decoration: underline;
}

.editor-output b,
.editor-output strong {
    font-weight: 600;
}

.editor-output div { margin-bottom: .75rem; }
.editor-output ul { list-style: disc; padding-left: 1.5rem; }
.editor-output ol { list-style: decimal; padding-left: 1.5rem; }
.editor-output li { margin-bottom: .4rem; }
.editor-output a { color: var(--gold); text-decoration: underline; }
.editor-output b,
.editor-output strong { font-weight: 600; }

/* ===========================
   PRODUCT TABS — LUXURY
=========================== */

.tabs-boxed {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
}

/* TAB BUTTONS */
.tabs-boxed .tab {
    color: rgba(229,216,182,0.55); /* vizibil dar soft */
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 9999px;
    padding: 10px 22px;
    transition: all .25s ease;
    margin: 5px 10px 5px 5px;
}

/* HOVER (inactive) */
.tabs-boxed .tab:hover {
    color: var(--cream-gold);
    background: rgba(255,255,255,0.06);
}

/* ACTIVE TAB — premium look */
.tabs-boxed .tab:checked {
    background: linear-gradient(
        135deg,
        rgba(212,175,55,0.25),
        rgba(212,175,55,0.08)
    );
    color: var(--gold);
    border: 1px solid rgba(212,175,55,0.45);
    box-shadow:
        inset 0 0 0 1px rgba(212,175,55,0.25),
        0 8px 30px rgba(0,0,0,0.35);
}

/* TAB CONTENT */
.tabs-boxed .tab-content {
    background: rgba(0,0,0,0.25);
    border-radius: 18px;
    margin: 15px;
    margin-top: 20px;
}

/* ===========================
   QUANTITY — LUXURY COMPACT
=========================== */

.qty-luxury {
    display: flex;
    align-items: center;
    height: 56px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

.qty-luxury-btn {
    width: 48px;
    height: 100%;
    font-size: 22px;
    color: var(--cream-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.qty-luxury-btn:hover {
    background: rgba(255,255,255,0.12);
}

.qty-luxury-value {
    min-width: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--cream-gold);
}

/* ===========================
   SECONDARY SOFT ACTIONS
=========================== */

.action-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    color: var(--cream-gold);
    font-size: 0.9rem;
    transition: 0.25s ease;
}

.action-soft:hover {
    background: rgba(255,255,255,0.12);
    color: var(--gold-light);
}

/* ===========================
   PRICE INFO TOOLTIP — LUXURY (FIXED)
=========================== */

.price-info {
    position: relative;
    display: inline-flex;
    align-items: center;

    /* CRUCIAL */
    isolation: isolate;
}

/* icon "i" */
.info-icon {
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    border: 1px solid rgba(212,175,55,0.5);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all .2s ease;
    background: rgba(255,255,255,0.03);
}

.price-info:hover .info-icon {
    background: var(--gold);
    color: #000;
}

/* tooltip bubble */
.price-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);

    width: 280px;
    padding: 14px 16px;

    /* FUNDAL 100% SOLID */
    background-color: #000000 !important;
    color: #e5d8b6;

    font-size: 13px;
    line-height: 1.55;

    border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.35);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.85),
        inset 0 0 0 1px rgba(212,175,55,0.12);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 999;
}

/* arrow */
.price-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #000000 transparent transparent transparent;
}

/* hover */
.price-info:hover .price-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: 9999px;
    background: var(--gold);
    color: #000;

    font-size: 11px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 0 2px #000;
}


@keyframes scaleIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}
.animate-scale-in {
    animation: scaleIn .6s ease-out forwards;
}

/* Wishlist badge animation */
@keyframes badge-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    60% {
        transform: scale(1.25);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.cart-badge.badge-animate {
    animation: badge-pop 0.35s ease-out;
}

/* Wishlist toast */
#wishlist-toast {
    transform: translateY(10px);
}

#wishlist-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Wishlist – Grid vs List (FINAL)
================================ */

/* implicit: GRID */
.wishlist-row {
    display: none;
}

/* container list */
.wishlist-grid.list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* card */
.wishlist-grid.list .wishlist-card {
    padding: 1rem 1.25rem;
}

/* ascunde layout-ul grid */
.wishlist-grid.list .wishlist-card > :not(.wishlist-row) {
    display: none;
}

/* row layout (table-like) */
.wishlist-grid.list .wishlist-row {
    display: grid;
    grid-template-columns:
        80px
        1.8fr
        100px
        140px
        140px
        160px;
    align-items: center;
    gap: 1rem;
}

/* columns */
.wishlist-col.center {
    text-align: center;
}

.wishlist-col.price {
    font-weight: 600;
    color: var(--gold);
}

.wishlist-col.actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.filter-pill span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all .2s ease;
  font-size: 0.9rem;
}

.filter-pill input:checked + span {
  background: var(--gold);
  color: transparent;
  border-color: var(--gold);
}

.filter-pill span:hover {
  border-color: var(--gold);
}

.shop-loading #product-grid {
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity .25s ease, filter .25s ease;
}

.header-luxury,
.header-luxury * {
    pointer-events: auto;
}

.header-luxury::before,
.header-luxury::after {
    pointer-events: none;
}

.mega-link {
  display: inline-block;
  color: rgba(255,255,255,.8);
  transition: color .2s ease, transform .2s ease;
}
.mega-link:hover {
  color: var(--gold);
  transform: translateX(2px);
}


@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.4s ease-out forwards;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 4s linear infinite;
}

/* ===============================
   MOBILE PERFORMANCE OPTIMIZATION
   =============================== */

@media (max-width: 768px) {

  /* Disable backdrop blur on mobile */
  [class*="backdrop-blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Disable heavy infinite animations */
  .animate-ping,
  .animate-pulse,
  .animate-bounce {
    animation: none !important;
  }

}

