/* Basic frontend styles for GMS Simple Shop */

.gms-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gms-shop-item {
    background: radial-gradient(circle at top, rgba(15,23,42,0.96), #020617 60%);
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gms-shop-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gms-shop-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gms-shop-thumb-placeholder {
    color: #64748b;
    font-size: 0.9rem;
}

.gms-shop-content {
    padding: 1rem 1.1rem 1.2rem;
}

.gms-shop-title {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
}

.gms-shop-title a {
    color: #e5e7eb;
    text-decoration: none;
}

.gms-shop-title a:hover {
    text-decoration: underline;
}

.gms-shop-price {
    margin: 0.2rem 0 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gms-shop-price-amount {
    font-weight: 600;
    color: #fbbf24;
}

.gms-shop-price-vat {
    font-size: 0.8rem;
    color: #9ca3af;
}

.gms-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    color: #e5e7eb;
    font-size: 0.9rem;
    text-decoration: none;
    background: linear-gradient(to right, rgba(15,118,110,0.4), rgba(8,47,73,0.7));
}

.gms-shop-btn:hover {
    border-color: #fbbf24;
}

/* Single product */

.gms-product-details {
    margin-top: 2rem;
}

.gms-product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gms-product-image {
    flex: 1 1 260px;
    max-width: 420px;
}

.gms-product-image-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.gms-product-info {
    flex: 2 1 280px;
}

.gms-product-price {
    margin: 0.5rem 0 1rem;
}

.gms-product-price-main {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fbbf24;
    display: block;
}

.gms-product-price-sub {
    font-size: 0.85rem;
    color: #9ca3af;
}

.gms-product-meta {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.gms-product-meta strong {
    margin-right: 0.35rem;
    color: #cbd5f5;
}

.gms-product-options {
    margin-top: 1rem;
}

.gms-product-options h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.gms-product-options ul {
    margin: 0;
    padding-left: 1.1rem;
}

.gms-product-options li {
    margin-bottom: 0.2rem;
}

.gms-product-note {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .gms-shop-grid {
        grid-template-columns: 1fr;
    }
}


/* previous back link block removed for update */
.gms-cart-note {
    font-size: 0.85rem;
    color: #9ca3af;
}


/* Cart link next to back link */
.gms-product-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.gms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #9ca3af;
}
.gms-back-link:hover {
    color: #e5e7eb;
}
.gms-cart-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #fbbf24;
}
.gms-cart-link:hover {
    color: #fde68a;
}
.gms-product-out-of-stock {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #fca5a5;
}


/* Back & cart links on product page */
.gms-product-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.gms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #9ca3af;
}
.gms-back-link:hover {
    color: #e5e7eb;
}
.gms-cart-link,
.gms-cart-toggle-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #fbbf24;
}
.gms-cart-link:hover,
.gms-cart-toggle-link:hover {
    color: #fde68a;
}

/* Add-to-cart button – dezenter Outline-Button */
.gms-product-cart-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.gms-product-cart-actions input[type="number"] {
    width: 80px;
}
.gms-cart-add-btn {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(148,163,184,0.8);
    background: transparent;
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
}
.gms-cart-add-btn:hover {
    border-color: #e5e7eb;
    background: rgba(15,23,42,0.7);
}

/* Out of stock message */
.gms-product-out-of-stock {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #fca5a5;
}

/* Shop header row with cart link */
.gms-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.gms-shop-title-main {
    font-size: 1.15rem;
    color: #e5e7eb;
    margin: 0;
}

/* Cart overlay */
.gms-cart-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}
.gms-cart-overlay.is-open {
    display: block;
}
.gms-cart-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.7);
}
.gms-cart-overlay-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100%;
    background: #020617;
    border-left: 1px solid rgba(148,163,184,0.3);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    padding: 1rem 1.25rem;
    overflow-y: auto;
}
.gms-cart-overlay-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.4rem;
    cursor: pointer;
}
.gms-cart-overlay-close:hover {
    color: #e5e7eb;
}
body.gms-cart-overlay-open {
    overflow: hidden;
}


/* Cart form controls */
.gms-cart-form {
    margin-top: 0.75rem;
}
.gms-cart-table .gms-cart-qty-input {
    width: 70px;
}
.gms-cart-remove-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
}
.gms-cart-remove-btn:hover {
    color: #fca5a5;
}
.gms-cart-actions-row {
    margin-top: 0.75rem;
    text-align: right;
}
.gms-cart-update-btn {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(148,163,184,0.8);
    background: transparent;
    color: #e5e7eb;
    font-size: 0.85rem;
    cursor: pointer;
}
.gms-cart-update-btn:hover {
    border-color: #e5e7eb;
    background: rgba(15,23,42,0.7);
}

/* Preorder button for out-of-stock products */
.gms-preorder-btn {
    display: inline-flex;
    margin-top: 0.5rem;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(250,204,21,0.7);
    background: rgba(30,64,175,0.4);
    color: #facc15;
    font-size: 0.9rem;
    text-decoration: none;
}
.gms-preorder-btn:hover {
    border-color: #fde68a;
    background: rgba(30,64,175,0.7);
    color: #fef3c7;
}


/* Vorbestellformular – volle Breite + theme-kompatibles Design */
.gms-preorder-form input[type="text"],
.gms-checkout-form input[type="text"],
.gms-preorder-form input[type="email"],
.gms-checkout-form input[type="email"],
.gms-preorder-form input[type="number"],
.gms-checkout-form input[type="number"],
.gms-preorder-form textarea,
.gms-checkout-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

.gms-preorder-form label,
.gms-checkout-form label {
    font-weight: 500;
    margin-bottom: 4px;
    display: inline-block;
    color: #e5e7eb;
}

.gms-preorder-form p,
.gms-checkout-form p {
    margin-bottom: 18px;
}

.gms-preorder-form input[type="checkbox"],
.gms-checkout-form input[type="checkbox"] {
    margin-right: 6px;
}

.gms-preorder-submit,
.gms-checkout-submit-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    transition: 0.25s all ease;
}

.gms-preorder-submit:hover,
.gms-checkout-submit-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


.gms-cart-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(56,189,248,0.9);
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #f9fafb;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15,23,42,0.7);
    transition: 0.2s all ease;
}
.gms-cart-checkout-btn:hover {
    border-color: rgba(248,250,252,0.95);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.9);
}

