/* ================================
   PRODUCT PAGE — product.css
   Se include DUPĂ styles.css
================================ */

/* ================================
   BREADCRUMB BAR
================================ */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--border); font-size: 15px; }
.bc-current { color: var(--dark); font-weight: 500; }

/* ================================
   PRODUCT MAIN LAYOUT
================================ */
.product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 32px;
    padding-bottom: 60px;
}

@media (min-width: 900px) {
    .product-main {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        align-items: start;
    }
}

/* ================================
   GALLERY
================================ */
.product-gallery {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 899px) {
    .product-gallery { position: static; }
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.gallery-main:hover img { transform: scale(1.03); }

.gallery-zoom {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.gallery-zoom:hover { background: #fff; }

/* ================================
   PRODUCT INFO PANEL
================================ */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pip-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pip-wish {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.pip-wish:hover, .pip-wish.active {
    border-color: var(--accent);
    color: var(--accent);
}

.pip-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.5px;
    color: var(--dark);
}
.pip-title em {
    font-style: italic;
    color: var(--accent);
}

.pip-collection-note {
    font-size: 13px;
    color: var(--muted);
}
.pip-collection-note a {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pip-collection-note a:hover { color: var(--charcoal); }

/* Price */
.pip-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pip-price {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.pip-price-info {
    font-size: 12.5px;
    color: var(--muted);
}

.pip-price-old {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: line-through;
}

/* CTA row */
.pip-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pip-buy {
    flex: 1;
    text-align: center;
    font-size: 15px;
    padding: 13px 20px;
    min-width: 160px;
}

.pip-wish-icon {
    width: 44px; height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: none;
    font-size: 18px;
    color: var(--muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.pip-wish-icon:hover, .pip-wish-icon.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201,98,47,0.06);
}

.pip-external-note {
    font-size: 12.5px;
    color: var(--muted);
    background: var(--cream);
    border-radius: 10px;
    padding: 10px 14px;
    line-height: 1.5;
}

/* Delivery */
.pip-delivery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.di-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.delivery-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-item strong {
    font-size: 14px;
    color: var(--dark);
}

.delivery-item span {
    font-size: 13px;
    color: var(--muted);
}

/* Artisan card */
.artisan-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}

.artisan-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-strong);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.artisan-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.artisan-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.artisan-info strong {
    font-size: 14px;
    color: var(--dark);
}

.artisan-meta {
    font-size: 12px;
    color: var(--muted);
}

.artisan-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.2s;
}
.artisan-link:hover { color: var(--charcoal); }

/* ================================
   TABS
================================ */
.product-tabs-section {
    padding-bottom: 60px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-text h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.tab-text p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ================================
   RELATED PRODUCTS
================================ */
.related-section {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 52px 0 60px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.see-all-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
}
.see-all-link:hover { color: var(--charcoal); }

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (min-width: 769px) {
    .related-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* ================================
   STICKY CTA (mobile)
================================ */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    z-index: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}

.sticky-cta.visible { transform: translateY(0); }

@media (min-width: 900px) {
    .sticky-cta { display: none; }
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-info strong {
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
}

.sticky-info span {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.sticky-cta .btn-primary {
    flex-shrink: 0;
    font-size: 14px;
    padding: 11px 22px;
}

/* ================================
   LIGHTBOX
================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 8, 0.93);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px; right: 24px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }

/* ================================
   FOOTER SPACING (for sticky CTA)
================================ */
@media (max-width: 899px) {
    footer { padding-bottom: 80px; }
}
