/*
Theme Name: DT Art Shop
Theme URI:
Author: DT
Description: Marketplace de arta cu vanzare crypto
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dt-art-shop
Tags: woocommerce, shop, art, crypto, e-commerce
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

/* ─── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #f7f5f2;
    --bg-dark:   #111111;
    --text:      #111111;
    --text-inv:  #f7f5f2;
    --muted:     #888888;
    --accent:    #c8a06e;
    --border:    #e0dbd4;
    --wall:      #c9b99a;
    --floor:     #a0906f;
    --max:       1280px;
    --font:      'Cormorant Garamond', 'Georgia', serif;
    --font-ui:   -apple-system, 'Helvetica Neue', sans-serif;
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Header ────────────────────────────────────────────────── */
#masthead {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(247, 245, 242, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 60px;
    display: flex;
    align-items: center;
}

#masthead .header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
}

.header-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.header-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--text); }

/* ─── Homepage Split ────────────────────────────────────────── */
.homepage-split {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.split-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: flex 0.6s var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.split-panel:hover { flex: 1.15; }
.split-panel:hover + .split-divider + .split-panel { flex: 0.85; }

.split-panel.sculpturi {
    background: var(--bg-dark);
    color: var(--text-inv);
}

.split-panel.tablouri {
    background: var(--bg);
    color: var(--text);
}

.split-panel.tablouri .split-cta {
    color: var(--text);
}

.split-panel-bg {
    display: none;
}

/* Subtle vignette */
.split-panel.sculpturi::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.split-panel.tablouri::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(240,235,226,0) 40%, rgba(190,175,155,0.2) 100%);
    pointer-events: none;
}

.split-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px;
}

.split-label {
    font-family: var(--font);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 20px;
}

.split-count {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 36px;
    font-family: var(--font-ui);
}

.split-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-ui);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s 0.08s, transform 0.35s 0.08s;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.split-cta::after {
    content: '→';
    font-size: 0.9rem;
}

.split-panel:hover .split-cta {
    opacity: 0.8;
    transform: translateY(0);
}

.split-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
    z-index: 1;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    color: rgba(120, 110, 100, 0.7);
    text-shadow: 0 0 12px rgba(255,255,255,0.6), 0 0 12px rgba(255,255,255,0.6);
}

.scroll-hint svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(6px); opacity: 1; }
}

/* ─── Homepage Collection ───────────────────────────────────── */
.hp-collection {
    background: var(--bg);
    padding: 96px 0 120px;
}

.hp-collection-head {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px 56px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    margin-bottom: 56px;
}

.hp-collection-title {
    font-family: var(--font);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text);
}

.hp-collection-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hp-collection-count {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hp-view-all {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color 0.2s;
}
.hp-view-all:hover { color: var(--accent); }

.hp-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
}

/* Featured first item: full width */
.hp-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.hp-card-featured .hp-card-img {
    aspect-ratio: 4/3;
    background: #111;
}

.hp-card-featured .hp-card-img img {
    object-fit: cover;
    padding: 0;
    width: 100%;
    height: 100%;
}

.hp-card-featured .hp-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    background: var(--bg-dark);
    color: var(--text-inv);
}

.hp-card-featured .hp-card-cat {
    color: rgba(255,255,255,0.4);
}

.hp-card-featured .hp-card-title {
    font-size: 2rem;
    color: var(--text-inv);
}

.hp-card-featured .hp-card-price {
    color: var(--accent);
}

.hp-card-featured .hp-card-detail {
    color: rgba(255,255,255,0.45);
    border-top-color: rgba(255,255,255,0.1);
}

/* Regular cards */
.hp-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: #fff;
}

.hp-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #111;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.hp-card:hover .hp-card-img img,
.hp-card-featured:hover .hp-card-img img {
    transform: scale(1.06);
    padding: 4px;
}

.hp-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-card-cat {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.hp-card-title {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hp-card-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

.hp-card-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.hp-card-arrow {
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.hp-card:hover .hp-card-arrow,
.hp-card-featured:hover .hp-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .hp-grid { grid-template-columns: repeat(2, 1fr); padding: 0 32px; gap: 32px; }
    .hp-card-featured { grid-template-columns: 1fr; }
    .hp-card-featured .hp-card-img { aspect-ratio: 16/9; }
    .hp-collection-head { padding: 0 32px 48px; }
}

@media (max-width: 640px) {
    .hp-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .hp-collection-head { padding: 0 20px 40px; flex-direction: column; align-items: flex-start; gap: 16px; }
    .hp-collection { padding: 64px 0 80px; }
}

/* ─── Archive (Gallery) ─────────────────────────────────────── */
.archive-header {
    padding: 110px 48px 48px;
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
}

.archive-title {
    font-family: var(--font);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1;
}

.archive-count {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-ui);
    margin-bottom: 6px;
}

.products-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
}

.product-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s var(--ease);
}

.product-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    z-index: 1;
}

.product-card a { display: block; }

.product-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-cat-badge {
    display: none;
}

.product-info {
    padding: 16px 20px 20px;
}

.product-title {
    font-family: var(--font);
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* ─── Single Product ─────────────────────────────────────────── */
.product-page {
    margin-top: 60px;
    height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: 1fr 420px;
}

/* Admin bar — pozitionam header-ul sub bara WP si compensam inaltime */
.admin-bar #masthead { top: 32px; }

@media screen and (max-width: 782px) {
    .admin-bar #masthead { top: 46px; }
}

.admin-bar .product-page {
    margin-top: 92px;
    height: calc(100vh - 92px);
}
@media screen and (max-width: 782px) {
    .admin-bar .product-page {
        margin-top: 106px;
        height: calc(100vh - 106px);
    }
}

.viewer-col {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

.viewer-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.view-tab {
    flex: 1;
    padding: 16px 8px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.view-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 32px;
    height: 1px;
    background: var(--accent);
    transition: transform 0.3s var(--ease);
}

.view-tab.active,
.view-tab:hover {
    color: rgba(255,255,255,0.9);
}

.view-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

.view-panel {
    flex: 1;
    min-height: 0;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}

.view-panel.active { display: flex; }

/* Foto panel — sculpturi: negru, edge-to-edge */
.photo-sculpture {
    background: #111111 !important;
    padding: 0;
}

.photo-sculpture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Foto panel — tablouri: negru ca la sculpturi */
.photo-painting {
    background: #111111 !important;
    padding: 0;
}

.photo-painting img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tabs: adaptat per tip */
.viewer-painting .viewer-tabs {
    background: #1e1a16;
    border-bottom-color: rgba(255,255,255,0.08);
}

/* Video panel */
.video-panel {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    color: rgba(255,255,255,0.3);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Room panel — baza comuna */
.room-scene {
    width: 100%;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* ── Tablou: galerie tip Sotheby's ── */
.room-painting {
    background:
        radial-gradient(ellipse 44% 72% at 50% -4%,
            rgba(255,238,190,0.38) 0%,
            rgba(255,220,140,0.14) 42%,
            transparent 68%),
        linear-gradient(to right,
            rgba(0,0,0,0.12) 0%, transparent 18%,
            transparent 82%, rgba(0,0,0,0.12) 100%),
        linear-gradient(to bottom,
            #e3ddd4 0%,
            #e3ddd4 59%,
            #c2a87a 59%, #c2a87a 61.5%,
            #6b5132 61.5%, #6b5132 100%);
    align-items: flex-start;
    padding-top: 6%;
}

/* Rama via layout (padding+border) + box-shadow redus — tabloul incape mereu */
.room-painting .room-artwork-wrap {
    position: relative;
    max-width: 52%;
    background: #f7f2ea;
    padding: 12px;
    border: 2px solid #b8934a;
    box-shadow:
        0 0 0 14px #2e1f0e,
        0 0 0 15px rgba(200,160,80,0.2),
        0 40px 70px rgba(0,0,0,0.55),
        0  5px 18px rgba(0,0,0,0.28);
}

.room-painting .room-artwork-wrap img {
    display: block;
    width: 100%;
    height: auto;
    /* Limiteaza inaltimea ca tablourile portrait sa nu depaseasca camera */
    max-height: min(46vh, 370px);
    object-fit: contain;
}

/* Reflexie pe podea */
.room-painting .room-artwork-wrap::after {
    content: '';
    position: absolute;
    top: calc(100% + 15px);
    left: 5%;
    right: 5%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 100%);
    filter: blur(4px);
    opacity: 0.45;
    transform: scaleY(-1);
}

/* ── Sculptura: galerie high-end cu spotlight ── */
.room-sculpture {
    background:
        /* Spotlight conic din tavan */
        radial-gradient(ellipse 38% 75% at 50% -2%,
            rgba(255, 220, 160, 0.22) 0%,
            rgba(255, 200, 120, 0.06) 45%,
            transparent 70%),
        /* Reflexie subtila pe podea */
        radial-gradient(ellipse 30% 20% at 50% 100%,
            rgba(255, 200, 120, 0.07) 0%,
            transparent 60%),
        /* Pereti + podea */
        linear-gradient(to bottom,
            #232018 0%,
            #232018 54%,
            #141008 54%, #141008 57%,
            #1c1508 57%, #1c1508 100%);
    align-items: flex-end;
}

.room-sculpture .room-artwork-wrap {
    position: relative;
    width: 46%;
    transform: translateY(-40%);
    z-index: 2;
}

/* Piedestal din marmura */
.room-sculpture .room-artwork-wrap::before {
    content: '';
    position: absolute;
    bottom: -16%;
    left: 50%;
    transform: translateX(-50%);
    width: 52%;
    height: 16%;
    background: linear-gradient(160deg, #e8e2d8 0%, #c9bfb0 60%, #b8ac9c 100%);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 8px 24px rgba(0,0,0,0.6);
    z-index: 1;
}

.room-sculpture .room-artwork-wrap img {
    width: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter:
        drop-shadow(0 40px 30px rgba(0,0,0,0.75))
        drop-shadow(0  8px 12px rgba(0,0,0,0.50))
        drop-shadow(0  0  60px rgba(255,200,100,0.10));
}

/* Umbra eliptica pe podea */
.room-sculpture .room-artwork-wrap::after {
    content: '';
    position: absolute;
    bottom: -22%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 28px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.65) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 0;
}

/* Right col – product info */
.info-col {
    padding: 48px 40px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.info-col::-webkit-scrollbar { width: 3px; }
.info-col::-webkit-scrollbar-track { background: transparent; }
.info-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.product-cat-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.product-name {
    font-family: var(--font);
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: 0.01em;
}

.product-crypto-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.product-fiat-price {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 32px;
}

.product-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 24px;
}

.detail-item {}

.detail-label {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text);
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 32px;
    flex: 1;
}

.btn-crypto {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--bg-dark);
    color: var(--text-inv);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.btn-crypto:hover { background: #333; }

.btn-crypto-note {
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.05em;
}

/* ─── Footer ─────────────────────────────────────────────────── */
#colophon {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 24px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .product-page {
        grid-template-columns: 1fr;
    }

    .viewer-col {
        position: relative;
        top: auto;
        height: min(90vw, 70vh);
        min-height: 320px;
    }

    .info-col {
        padding: 32px 24px;
    }

    /* Room scene patrat pe mobile — da mai multa inaltime */
    .room-scene { aspect-ratio: 1/1; }

    /* Tablou mai mare pe mobil, imagine mai mica */
    .room-painting .room-artwork-wrap { max-width: 65%; }
    .room-painting .room-artwork-wrap img { max-height: min(28vh, 200px); }

    /* Sculptura ajustata pe mobil */
    .room-sculpture .room-artwork-wrap {
        width: 50%;
        transform: translateY(-38%);
    }
}

@media (max-width: 640px) {
    /* Header nav incape pe ecran mic */
    .header-inner { padding: 0 16px; }
    .header-nav { gap: 16px; }
    .header-nav a { font-size: 0.65rem; letter-spacing: 0.04em; }
    .site-title a { font-size: 0.65rem; letter-spacing: 0.1em; }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        padding: 0 16px 60px;
        gap: 1px;
    }

    .split-label { font-size: 2rem; }

    .archive-header { padding: 88px 16px 32px; }
}
