/* ─── WooCommerce – Single Product – Grand Plaza ─────────────────────────── */

/* ─── Ascunde breadcrumbs ──────────────────────────────────────────────────── */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* ─── Wrapper pagină produs ─────────────────────────────────────────────────── */
.woocommerce .gp-product,
.woocommerce-page .gp-product {
    background-color: #fdf9f4;
    padding: 60px 20px 80px;
    min-height: calc(100vh - 90px);
}

.gp-product__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 450px) auto;
    gap: 40px;
    align-items: flex-start;
    justify-content: start;
}

/* ─── Galerie ───────────────────────────────────────────────────────────────── */
.gp-product__gallery .woocommerce-product-gallery {
    width: 100%;
    max-width: 450px;
    position: sticky;
    top: 20px;
    opacity: 1 !important;
}

.gp-product__gallery .woocommerce-product-gallery {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.gp-product__gallery .woocommerce-product-gallery__wrapper {
    /* Lasă Flexslider să seteze lățimea — nu forța 100% */
    margin: 0;
    padding: 0;
}

.gp-product__gallery .woocommerce-product-gallery__image a {
    display: block;
}

.gp-product__gallery .woocommerce-product-gallery__image img,
.gp-product__gallery .woocommerce-product-gallery__image a img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.gp-product__gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.gp-product__gallery .flex-control-thumbs li img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.gp-product__gallery .flex-control-thumbs li img.flex-active {
    border-color: #c8a97e;
}

/* ─── Summary ───────────────────────────────────────────────────────────────── */
.gp-product__summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Titlu */
.gp-product__summary .product_title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #1a1400;
    margin: 0 0 16px;
    line-height: 1.25;
}

/* Rating */
.gp-product__summary .woocommerce-product-rating {
    margin-bottom: 16px;
}

.gp-product__summary .star-rating {
    color: #c8a97e;
    font-size: 14px;
}

/* Preț */
.gp-product__summary .price {
    font-size: 28px;
    font-weight: 700;
    color: #3a2e00;
    margin: 0 0 20px;
    display: block;
}

.gp-product__summary .price del {
    color: #999;
    font-size: 20px;
    font-weight: 400;
    margin-right: 8px;
}

.gp-product__summary .price ins {
    text-decoration: none;
    color: #c8540a;
}

/* Descriere scurtă */
.gp-product__summary .woocommerce-product-details__short-description {
    font-size: 15px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 24px;
}

/* ─── Buton Add to Cart ─────────────────────────────────────────────────────── */
.gp-product__summary .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gp-product__summary .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4a017 0%, #c8860a 100%) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 28px;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(200, 134, 10, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: antialiased;
    -webkit-text-fill-color: #fff !important;
}

.gp-product__summary .single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: linear-gradient(135deg, #e0b020 0%, #d4950c 100%) !important;
    box-shadow: 0 5px 18px rgba(200, 134, 10, 0.5);
    transform: translateY(-1px);
    color: #fff !important;
}

.gp-product__summary .single_add_to_cart_button:active,
.woocommerce .single_add_to_cart_button:active,
.woocommerce button.button.alt:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(200, 134, 10, 0.3);
}

/* ─── Meta (categorie, SKU) ─────────────────────────────────────────────────── */
.gp-product__summary .product_meta {
    font-size: 13px;
    color: #888;
    border-top: 1px solid #ede5d5;
    padding-top: 16px;
    margin-top: 8px;
}

.gp-product__summary .product_meta a {
    color: #c8a97e;
    text-decoration: none;
}

.gp-product__summary .product_meta a:hover {
    text-decoration: underline;
}

/* Ascunde doar SKU-ul */
.gp-product__summary .product_meta .sku_wrapper {
    display: none;
}

/* ─── Tab-uri (descriere completă) ─────────────────────────────────────────── */
.gp-product__tabs {
    max-width: 1100px;
    margin: 48px auto 0;
}

.gp-product__tabs .woocommerce-tabs {
    border-top: 2px solid #e0d4c0;
    padding-top: 40px;
}

.gp-product__tabs .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0 0 0;
    padding: 0;
    border-bottom: 2px solid #e0d4c0;
}

.gp-product__tabs .woocommerce-tabs ul.tabs::before {
    display: none;
}

.gp-product__tabs .woocommerce-tabs ul.tabs li {
    border: none;
    background: none;
    margin: 0;
    padding: 0;
}

.gp-product__tabs .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.gp-product__tabs .woocommerce-tabs ul.tabs li.active a,
.gp-product__tabs .woocommerce-tabs ul.tabs li a:hover {
    color: #3a2e00;
    border-bottom-color: #c8a97e;
}

.gp-product__tabs .woocommerce-tabs .panel {
    padding: 32px 24px;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    border: 2px solid #e0d4c0;
}

.gp-product__tabs .woocommerce-tabs .panel h2 {
    display: none;
}

/* ─── Produse conexe (up-sells / related) ───────────────────────────────────── */
.gp-product__tabs .related,
.gp-product__tabs .upsells {
    margin-top: 60px;
    border-top: 2px solid #e0d4c0;
    padding-top: 40px;
}

.gp-product__tabs .related > h2,
.gp-product__tabs .upsells > h2 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #c8a97e;
    text-transform: uppercase;
    margin: 0 0 24px;
}

/* ─── Notificări WooCommerce ────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-top-color: #c8a97e;
    background: #fdf9f4;
    color: #3a2e00;
    padding: 14px 20px 14px 3.5em;
    margin-bottom: 20px;
    font-size: 14px;
}

.woocommerce-message::before {
    color: #c8a97e;
}

/* ─── Selector cantitate cu +/- ────────────────────────────────────────────── */
.gp-product__summary .cart .quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(200, 169, 126, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.gp-product__summary .cart .quantity .gp-qty-btn {
    width: 26px;
    height: 30px;
    background: #f5ede0;
    border: none;
    font-size: 14px;
    font-weight: 400;
    color: #3a2e00;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.gp-product__summary .cart .quantity .gp-qty-btn:hover {
    background: #e8d9c0;
}

.gp-product__summary .cart .quantity .qty {
    width: 34px;
    height: 30px;
    border: none;
    border-left: 1px solid rgba(200, 169, 126, 0.4);
    border-right: 1px solid rgba(200, 169, 126, 0.4);
    border-radius: 0;
    font-size: 12px;
    text-align: center;
    background: #fff;
    color: #2e2e2e;
    padding: 0;
    -moz-appearance: textfield;
}

.gp-product__summary .cart .quantity .qty::-webkit-outer-spin-button,
.gp-product__summary .cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ─── Variații produs – layout tabel → block/flex ──────────────────────────── */
.variations,
.variations tbody {
    display: block !important;
    width: 100%;
    border: none;
}

.variations tr {
    display: block;
    margin-bottom: 16px;
}

.variations td.label {
    display: block;
    padding: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.variations td.label label {
    margin: 0;
    font-weight: inherit;
}

.variations td.value {
    display: block;
    padding: 0;
}

.variations .gp-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    align-items: center;
}

.variations .gp-swatch-group .gp-swatch {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #d0c8b8;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, font-weight 0.1s;
    user-select: none;
}

.variations .gp-swatch-group .gp-swatch:hover {
    border-color: #c8a97e;
    color: #3a2e00;
}

.variations .gp-swatch-group .gp-swatch.selected {
    border: 2px solid #c8a97e;
    color: #3a2e00;
    font-weight: 700;
    background: #fff;
    padding: 4px 9px; /* compensare border 2px */
}

/* Ascunde select-ul original */
.variations select {
    display: none !important;
}

/* ─── Buton Șterge selecția ──────────────────────────────────────────────────── */
.reset_variations {
    display: none !important;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    font-size: 12px;
    font-weight: 400;
    color: #666 !important;
    text-decoration: none !important;
    border: 1px solid #d0c8b8;
    border-radius: 4px;
    padding: 5px 10px;
    background: #fff !important;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    visibility: visible !important;
    line-height: 1;
}

.reset_variations.gp-visible {
    display: inline-flex !important;
}

.reset_variations:hover {
    color: #c0392b !important;
    border-color: #c0392b;
}

/* ─── Butoane distribuire (share) ───────────────────────────────────────────── */
.gp-share {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0d4c0;
}

.gp-share__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.gp-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border-radius: 4px;
    transition: opacity 0.2s;
    color: #fff !important;
}

.gp-share__btn:hover {
    opacity: 0.85;
}

.gp-share__btn--facebook { background: #1877f2; }
.gp-share__btn--twitter  { background: #000; }
.gp-share__btn--pinterest{ background: #e60023; }
.gp-share__btn--email    { background: #6c757d; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gp-product__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gp-product__gallery .woocommerce-product-gallery {
        position: static;
    }
}
