/* ─── WooCommerce – Shop / Arhivă – Grand Plaza ──────────────────────────── */

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.gp-shop__hero {
    background-color: #2e2e2e;
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
}

.gp-shop__hero::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c8a97e;
    margin: 20px auto 0;
}

.gp-shop__hero-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.gp-shop__hero-desc {
    margin-top: 14px;
    color: #bbb;
    font-size: 0.95rem;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.7;
}

/* ─── Container ──────────────────────────────────────────────────────────── */
.gp-shop__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Content area ───────────────────────────────────────────────────────── */
.gp-shop__content {
    background-color: #fdf9f4;
    padding: 50px 0 80px;
}

/* ─── Toolbar (result count + ordering) ─────────────────────────────────── */
.gp-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.gp-shop__toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-result-count {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ─── Search form în toolbar ─────────────────────────────────────────────── */
.gp-shop__search {
    display: flex;
    align-items: center;
    align-self: center;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.gp-shop__search-input {
    width: 220px;
    padding: 0 38px 0 14px;
    border: 1px solid #e0d4c0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #2e2e2e;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    height: 38px;
    box-sizing: border-box;
    margin: 0;
    line-height: normal;
    /* ascunde iconița nativă de clear din browser */
    -webkit-appearance: none;
}
.gp-shop__search-input::-webkit-search-decoration,
.gp-shop__search-input::-webkit-search-cancel-button,
.gp-shop__search-input::-webkit-search-results-button,
.gp-shop__search-input::-webkit-search-results-decoration {
    display: none;
}

.gp-shop__search-input:focus {
    border-color: #c8a97e;
}

.gp-shop__search-input::placeholder {
    color: #aaa;
}

/* Iconița lupă – decorativă, mereu vizibilă când nu e butonul de clear */
.gp-shop__search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #c8a97e;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Butonul X – apare când utilizatorul a scris ceva */
.gp-shop__search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 38px;
    background: none;
    border: none;
    cursor: pointer;
    color: #c8a97e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.gp-shop__search-btn:hover {
    color: #b8936a;
}

/* Mesaj niciun produs găsit */
.gp-shop__no-results {
    text-align: center;
    padding: 48px 0;
    color: #888;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.gp-shop__toolbar-right .woocommerce-ordering,
.woocommerce-ordering {
    margin: 0 !important;
    padding: 0 !important;
    height: 38px;
    display: flex;
    align-items: center;
    align-self: center;
    line-height: 1;
    vertical-align: middle;
}

.gp-shop__toolbar-right .woocommerce-ordering select,
.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #e0d4c0;
    border-radius: 4px;
    padding: 0 36px 0 14px;
    font-size: 0.85rem;
    color: #2e2e2e;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8a97e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
    min-width: 200px;
    height: 38px;
    box-sizing: border-box;
    vertical-align: middle !important;
    margin: 0 !important;
}

.gp-shop__toolbar-right .woocommerce-ordering select:focus,
.woocommerce-ordering select:focus {
    outline: none;
    border-color: #c8a97e;
}

/* ─── Product grid ───────────────────────────────────────────────────────── */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    float: none !important;
}

@media (max-width: 1100px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ─── Product card ───────────────────────────────────────────────────────── */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #fff;
    border: 1px solid #e0d4c0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* ─── Product image ──────────────────────────────────────────────────────── */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    display: block;
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0;
    transition: transform 0.35s ease;
}

.woocommerce ul.products li.product:hover a img,
.woocommerce-page ul.products li.product:hover a img {
    transform: scale(1.04);
}

/* Image wrapper overflow clip */
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce-page ul.products li.product a.woocommerce-loop-product__link {
    display: block;
    overflow: hidden;
}

/* ─── Card body ──────────────────────────────────────────────────────────── */
.woocommerce ul.products li.product .gp-card-body,
.woocommerce-page ul.products li.product .gp-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fallback: WooCommerce injects title/price after the link, no .gp-card-body wrapper */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: #2e2e2e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 20px 6px;
    padding: 0;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #c8a97e;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 20px 16px;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 400;
    margin-right: 6px;
}

/* ─── Star rating ────────────────────────────────────────────────────────── */
.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
    margin: 0 20px 10px;
    color: #c8a97e;
    font-size: 0.8rem;
}

/* ─── Sale badge ─────────────────────────────────────────────────────────── */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
    background: #c8a97e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    top: 12px;
    left: 12px;
    min-height: unset;
    min-width: unset;
    margin: 0;
    line-height: 1.4;
}

/* ─── Add to cart button ─────────────────────────────────────────────────── */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    display: block;
    margin: auto 20px 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #c8a97e;
    color: #c8a97e;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.woocommerce ul.products li.product .button.added,
.woocommerce-page ul.products li.product .button.added {
    background: #c8a97e;
    color: #fff;
    text-decoration: none;
}

.woocommerce ul.products li.product .button:focus,
.woocommerce-page ul.products li.product .button:focus {
    outline: 2px solid #c8a97e;
    outline-offset: 2px;
}

/* ─── Out of stock badge ─────────────────────────────────────────────────── */
.gp-shop__out-of-stock {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: #f5f0ea;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    text-align: center;
    margin-top: 12px;
    box-sizing: border-box;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.gp-shop__pagination {
    margin-top: 48px;
}

.woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e0d4c0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    background: #fff;
}

.woocommerce-pagination ul li a:hover {
    border-color: #c8a97e;
    color: #c8a97e;
    background: #fff;
}

.woocommerce-pagination ul li span.current {
    background: #c8a97e;
    border-color: #c8a97e;
    color: #fff;
}

/* ─── No products found ──────────────────────────────────────────────────── */
.woocommerce-info {
    border-top: 3px solid #c8a97e;
    background: #fff;
    border-radius: 0 0 6px 6px;
    padding: 20px 24px;
    color: #444;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-info::before {
    color: #c8a97e;
    font-size: 1.1rem;
}

/* ─── Reset WooCommerce float layout ─────────────────────────────────────── */
.woocommerce .products::before,
.woocommerce .products::after,
.woocommerce-page .products::before,
.woocommerce-page .products::after {
    display: none !important;
    content: none !important;
}

/* ─── Breadcrumb (hidden via functions.php, dar fallback) ────────────────── */
.woocommerce-breadcrumb {
    display: none !important;
}

/* ─── Category archive — category header ────────────────────────────────── */
.woocommerce-products-header {
    display: none; /* folosim propriul hero */
}

/* ─── Pop-up variații produs (magazin) ──────────────────────────────────── */
.gp-modal[hidden] { display: none; }

.gp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.gp-modal__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.gp-modal__close:hover { background: #f0f0f0; color: #333; }

.gp-modal__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding-right: 28px;
    line-height: 1.3;
}

.gp-modal__attr-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    margin-bottom: 8px;
}

.gp-modal__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-modal__option {
    padding: 7px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.gp-modal__option:hover {
    border-color: #d4a017;
    background: #fffbf0;
}
.gp-modal__option.is-selected {
    border-color: #d4a017;
    background: #d4a017;
    color: #fff;
}

.gp-modal__price {
    font-size: 18px;
    font-weight: 700;
    color: #c8860a;
    margin: 0;
    min-height: 24px;
}

.gp-modal__add {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4a017 0%, #c8860a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: opacity 0.15s;
}
.gp-modal__add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.gp-modal__add:not(:disabled):hover { opacity: 0.88; }

.gp-modal__qty-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-modal__qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.gp-modal__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gp-modal__qty-btn {
    background: #fafafa;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-modal__qty-btn:hover { background: #f0f0f0; color: #333; }

.gp-modal__qty-input {
    width: 42px;
    height: 36px;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    -moz-appearance: textfield;
}
.gp-modal__qty-input::-webkit-inner-spin-button,
.gp-modal__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
