/* =============================================================
   Single Product Page – El Gringo
   ============================================================= */

/* ── Hero banner ──────────────────────────────────────────── */
.eg-sp-hero {
    background: #1a1a1a;
    border-bottom: 3px solid #c8a141;
    padding: 18px 0;
}
.eg-sp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.eg-sp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.eg-sp-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.eg-sp-breadcrumb a:hover {
    color: #c8a141;
}
.eg-sp-breadcrumb span[aria-hidden] {
    color: rgba(255,255,255,0.3);
}
.eg-sp-breadcrumb-current {
    color: #c8a141;
    font-weight: 600;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.eg-sp-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* ── Main 2-col layout ────────────────────────────────────── */
.eg-sp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 56px;
}

/* ── Image column ─────────────────────────────────────────── */
.eg-sp-image-col {
    position: sticky;
    top: 120px;
    max-width: 420px;
    margin: 0 auto;
}
.eg-sp-main-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: block;
}

/* ── Details column ───────────────────────────────────────── */
.eg-sp-details-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eg-sp-cats {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #c8a141;
}
.eg-sp-cats a {
    color: #c8a141;
    text-decoration: none;
}
.eg-sp-cats a:hover {
    text-decoration: underline;
}

.eg-sp-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.eg-sp-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #c8a141;
}
.eg-sp-price .woocommerce-Price-amount {
    color: #c8a141;
}
.eg-sp-price del {
    color: #aaa;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 8px;
}

.eg-sp-short-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    border-left: 3px solid #c8a141;
    padding-left: 14px;
    margin: 0;
}
.eg-sp-short-desc p {
    margin: 0;
}

/* ── Add to cart area ─────────────────────────────────────── */
.eg-sp-atc-wrap {
    background: #f8f7f5;
    border-radius: 10px;
    padding: 20px 22px;
    border: 1px solid #eee;
}

/* Quantity input */
.eg-sp-atc-wrap .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}
.eg-sp-atc-wrap .qty {
    width: 64px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    background: #fff;
    color: #1a1a1a;
}
.eg-sp-atc-wrap .qty:focus {
    outline: none;
    border-color: #c8a141;
}

/* Single add to cart button */
.eg-sp-atc-wrap .single_add_to_cart_button {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.eg-sp-atc-wrap .single_add_to_cart_button:hover {
    background: #c8a141 !important;
    color: #fff !important;
}

/* Variable product select */
.eg-sp-atc-wrap .variations {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
}
.eg-sp-atc-wrap .variations td,
.eg-sp-atc-wrap .variations th {
    padding: 6px 0;
    vertical-align: middle;
}
.eg-sp-atc-wrap .variations label {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
    padding-right: 16px;
}
.eg-sp-atc-wrap .variations select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #1a1a1a;
    min-width: 160px;
}
.eg-sp-atc-wrap .variations select:focus {
    outline: none;
    border-color: #c8a141;
}
.eg-sp-atc-wrap .reset_variations {
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-top: 4px;
    text-decoration: none;
}
.eg-sp-atc-wrap .reset_variations:hover {
    color: #c8a141;
}

/* WC notices inside product form */
.eg-sp-atc-wrap .woocommerce-variation-price .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c8a141;
}

/* ── Meta (SKU, categorie) ────────────────────────────────── */
.eg-sp-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #888;
    padding-top: 4px;
    border-top: 1px solid #eee;
}
.eg-sp-meta-item strong {
    color: #555;
    margin-right: 4px;
}
.eg-sp-meta-item a {
    color: #c8a141;
    text-decoration: none;
}
.eg-sp-meta-item a:hover {
    text-decoration: underline;
}

/* ── Descriere completă ───────────────────────────────────── */
.eg-sp-description {
    border-top: 2px solid #f0f0f0;
    padding-top: 40px;
    margin-bottom: 48px;
}
.eg-sp-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eg-sp-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #c8a141;
    opacity: 0.3;
}
.eg-sp-description-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    max-width: 760px;
}
.eg-sp-description-content p {
    margin: 0 0 12px;
}

/* ── Produse corelate ─────────────────────────────────────── */
.eg-sp-related {
    border-top: 2px solid #f0f0f0;
    padding-top: 40px;
}
.eg-sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 0;
}
.eg-sp-related-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.eg-sp-related-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.eg-sp-related-img-link {
    display: block;
}
.eg-sp-related-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f7f5;
}
.eg-sp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.eg-sp-related-card:hover .eg-sp-related-img img {
    transform: scale(1.04);
}
.eg-sp-related-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.eg-sp-related-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
}
.eg-sp-related-name a {
    color: inherit;
    text-decoration: none;
}
.eg-sp-related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.eg-sp-related-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #c8a141;
    flex-shrink: 0;
}
.eg-sp-related-price .woocommerce-Price-amount {
    color: #c8a141;
}
.eg-sp-related-btn {
    display: inline-flex;
    align-items: center;
    background-color: #1a1a1a;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.eg-sp-related-btn:hover {
    background-color: #c8a141;
    color: #fff !important;
}

/* ── WC notices ───────────────────────────────────────────── */
.eg-sp-wrapper .woocommerce-message,
.eg-sp-wrapper .woocommerce-error,
.eg-sp-wrapper .woocommerce-info {
    border-top-color: #c8a141;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .eg-sp-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .eg-sp-image-col {
        position: static;
    }
    .eg-sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .eg-sp-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 520px) {
    .eg-sp-wrapper {
        padding: 28px 16px 48px;
    }
    .eg-sp-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .eg-sp-atc-wrap .single_add_to_cart_button {
        width: 100% !important;
        margin-top: 12px !important;
    }
    .eg-sp-related-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .eg-sp-related-btn {
        justify-content: center;
        width: 100%;
    }
}
