/* Saray Pastanesi - Product Detail Page Styles */

.product-page {
    padding: 2rem 0;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.product-main {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

/* Left: Image */
.product-image-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--creme);
    cursor: pointer;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige), var(--creme));
    color: var(--gold-dark);
    font-size: 5rem;
}

/* Right: Content Column */
.product-content-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Product Header */
.product-header {
    margin-bottom: 1.5rem;
}

.product-category-badge {
    display: inline-block;
    background: var(--creme);
    color: var(--gold-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-category-badge:hover {
    background: var(--gold);
    color: white;
}

.product-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    color: var(--gruen-dunkel);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.product-price-header {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 2rem;
    color: var(--gold-dark);
    font-weight: 700;
}

.product-prep-time {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.product-prep-time i {
    color: var(--gold);
    margin-right: 0.4rem;
}

/* Compact Form */
.product-form-compact {
    background: white;
    border: 2px solid var(--beige);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-label {
    font-weight: 600;
    color: var(--gruen-dunkel);
    font-size: 0.9rem;
}

/* Variant Buttons */
.variant-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
}

.variant-btn {
    position: relative;
    cursor: pointer;
}

.variant-btn input {
    position: absolute;
    opacity: 0;
}

.variant-btn span {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 0.75rem;
    background: white;
    border: 2px solid var(--beige);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: Arial, Helvetica, sans-serif !important;
}

.variant-btn small {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: var(--gold-dark);
    margin-left: 0.35rem;
}

.variant-btn input:checked + span {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
    color: white;
}

.variant-btn input:checked + span small {
    color: rgba(255,255,255,0.9);
}

.variant-btn:hover span {
    border-color: var(--gold);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gruen-dunkel);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--beige);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--beige);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--creme);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gruen-dunkel);
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--beige);
}

.quantity-input input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.btn-add-cart {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--gruen-dunkel);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: var(--gold-dark);
}

/* Product Info */
.product-info {
    border-top: 1px solid var(--beige);
    padding-top: 1.5rem;
}

.info-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.info-item i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Related Products */
.related-section {
    background: #f5f2ec;
    padding: 4rem 2rem;
    margin: 0 -2rem;
}

.related-section h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gruen-dunkel);
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.2);
}

.related-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.related-card-content {
    padding: 1rem;
}

.related-card h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gruen-dunkel);
    margin-bottom: 0.25rem;
}

.related-card .price {
    color: var(--gold-dark);
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 25%;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .product-page {
        padding: 1rem 0;
        overflow-x: hidden;
    }

    .product-container {
        padding: 0 1rem;
        max-width: 100vw;
    }

    .product-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .product-image-column {
        position: static;
        min-width: 0;
    }

    .product-content-column {
        min-width: 0;
    }

    .product-main-image {
        border-radius: 10px;
        aspect-ratio: 4 / 3;
    }

    .product-header {
        margin-bottom: 1rem;
    }

    .product-category-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.5rem;
    }

    .product-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .product-price-header {
        font-size: 1.5rem;
    }

    .product-prep-time {
        font-size: 0.8rem;
    }

    .product-form-compact {
        padding: 1rem;
        gap: 1rem;
        border-width: 1px;
    }

    .section-label {
        font-size: 0.82rem;
    }

    .variant-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .variant-btn span {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    .variant-btn small {
        font-size: 0.7rem;
    }

    .variant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .variant-content {
        padding: 0.5rem 0.5rem;
    }

    .variant-name {
        font-size: 0.75rem;
    }

    .variant-price {
        font-size: 0.7rem;
    }

    .flavor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }

    .flavor-content {
        padding: 0.4rem 0.5rem;
        min-height: 44px;
    }

    .flavor-name {
        font-size: 0.75rem;
    }

    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }

    .extra-content {
        padding: 0.4rem 0.5rem;
        min-height: 44px;
    }

    .extra-name {
        font-size: 0.75rem;
    }

    .option-chip span {
        padding: 0.5rem;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
    }

    .quantity-input input {
        width: 50px;
        height: 36px;
        font-size: 0.9rem;
    }

    .btn-add-cart {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .notes-wrapper textarea {
        font-size: 0.85rem;
        padding: 0.65rem;
    }

    .product-info {
        padding-top: 1rem;
    }

    .info-item {
        font-size: 0.82rem;
        margin-bottom: 0.75rem;
    }

    .tabs-nav {
        flex-wrap: wrap;
        gap: 0;
        border-bottom: none;
    }

    .tab-btn {
        white-space: normal;
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        padding: 0.55rem 0.4rem;
        font-size: 0.72rem;
        line-height: 1.3;
        border-bottom: 2px solid var(--beige);
    }

    .tab-btn.active {
        border-bottom: 3px solid var(--gold);
    }

    .tabs-content {
        min-height: 120px;
    }

    /* Related Products */
    .related-section {
        padding: 2.5rem 1rem;
        margin: 0 -1rem;
        max-width: 100vw;
    }

    .related-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .related-card-image {
        height: 110px;
    }

    .related-card-content {
        padding: 0.75rem;
    }

    .related-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }

    .related-card .price {
        font-size: 0.82rem;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 90%;
    }

    .lightbox-close {
        top: -35px;
        right: 0;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .upload-btn-compact {
        padding: 1rem 1.5rem;
    }

    .upload-btn-compact i {
        font-size: 1.5rem;
    }
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--beige);
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--gold-dark);
}

.tab-btn.active {
    color: var(--gruen-dunkel);
    border-bottom: 4px solid var(--gold);
}

.tab-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
}

.tabs-content {
    min-height: 180px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Options Grid Compact */
.options-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .options-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
}

.option-chip {
    position: relative;
    cursor: pointer;
}

.option-chip input {
    position: absolute;
    opacity: 0;
}

.option-chip span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    background: white;
    border: 2px solid var(--beige);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.15s;
    text-align: center;
    min-height: 48px;
}

.option-chip small {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: var(--gold-dark);
    margin-left: 0.35rem;
}

.option-chip input:checked + span {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
    color: white;
    font-weight: 600;
}

.option-chip input:checked + span small {
    color: rgba(255, 255, 255, 0.95);
}

.option-chip:hover span {
    border-color: var(--gold);
}

/* Upload Section */
.upload-section {
    text-align: center;
    padding: 2rem 1rem;
}

.upload-btn-compact {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px dashed var(--beige);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn-compact:hover {
    border-color: var(--gold);
    background: var(--creme);
}

.upload-btn-compact i {
    font-size: 2rem;
    color: var(--gold);
}

.upload-btn-compact small {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: var(--gold-dark);
    margin-left: 0.35rem;
}

.image-preview-wrapper {
    margin-top: 1rem;
}

.image-preview-container {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 2px solid var(--beige);
}

.image-preview-container img {
    display: block;
    max-width: 220px;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.image-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.image-preview-remove:hover {
    background: rgba(180,40,40,0.85);
}

.image-preview-name {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    word-break: break-all;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.upload-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

/* Variant Grid (Radio Buttons) - kompakter */
.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.variant-option {
    position: relative;
    cursor: pointer;
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 0.75rem;
    background: white;
    border: 2px solid var(--beige);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.variant-option input[type="radio"]:checked + .variant-content {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
}

.variant-option:hover .variant-content {
    border-color: var(--gold);
}

.variant-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gruen-dunkel);
}

.variant-option input[type="radio"]:checked + .variant-content .variant-name {
    color: white;
}

.variant-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.variant-option input[type="radio"]:checked + .variant-content .variant-price {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Flavor Grid (Checkboxes) - kompakter */
.flavor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.flavor-option {
    position: relative;
    cursor: pointer;
}

.flavor-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.flavor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
    background: white;
    border: 2px solid var(--beige);
    border-radius: 6px;
    transition: all 0.15s ease;
    min-height: 52px;
    justify-content: center;
}

.flavor-option input[type="checkbox"]:checked + .flavor-content {
    background: var(--creme);
    border-color: var(--gold);
}

.flavor-option:hover .flavor-content {
    border-color: var(--gold);
}

.flavor-name {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gruen-dunkel);
    line-height: 1.2;
}

.flavor-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    color: var(--gold-dark);
    font-weight: 700;
}

/* Extras Grid - kompakter */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.extra-option {
    position: relative;
    cursor: pointer;
}

.extra-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.extra-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
    background: white;
    border: 2px solid var(--beige);
    border-radius: 6px;
    transition: all 0.15s ease;
    min-height: 52px;
    justify-content: center;
}

.extra-option input[type="checkbox"]:checked + .extra-content {
    background: var(--creme);
    border-color: var(--gold);
}

.extra-option:hover .extra-content {
    border-color: var(--gold);
}

.extra-name {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gruen-dunkel);
    line-height: 1.2;
}

.extra-price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    color: var(--gold-dark);
    font-weight: 700;
}

/* Inline Notification */
.inline-notification {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

/* Form Bottom */
.form-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--beige);
}

.form-row-compact {
    display: flex;
    gap: 1rem;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gruen-dunkel);
}

.notes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notes-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gruen-dunkel);
}

.notes-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--beige);
    border-radius: 6px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.notes-wrapper textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

/* Geschmacksrichtung erforderlich Hinweis */
.flavor-required-hint {
    background: #fff3cd;
    border-left: 3px solid var(--gold);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #856404;
}
