:root {
    --color-primary: #09637E;
    --color-secondary: #088395;
    --color-accent: #7AB2B2;
    --color-light: #EBF4F6;
}

.product-container {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0;
    transition: background 0.3s;
    float: left;
    position: relative;
    z-index: 10;
}

.back-button:hover {
    background: var(--color-secondary);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 2cm;
    margin-bottom: 0;
    width: 100%;
    max-width: 1100px;
    direction: ltr;
    align-items: start;
}
.product-layout .product-gallery { direction: rtl; }
.product-right-col {
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .product-layout { grid-template-columns: 1fr; direction: rtl; margin-top: 1cm; }
}

.product-gallery {
    display: block;
    background: #ffffff;
    padding: 4mm;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: zoom-in;
    display: block;
}

.main-image--no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #7f8c8d;
    font-size: 1.2em;
    cursor: default;
}

@media (max-width: 768px) {
    .main-image { height: 300px; }
    .price-table { font-size: 0.9em; }
    .price-table th, .price-table td { padding: 10px 8px; }
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 0;
    width: 100%;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: var(--color-primary);
}

.thumbnail:hover {
    border-color: var(--color-secondary);
}

.product-info {
    padding: 20px;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-light);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.category-tag:hover {
    background: var(--color-accent);
    color: white;
}

.product-title {
    margin: 0 0 20px 0;
    font-size: 1.28em;
    color: var(--color-primary);
    font-weight: 700;
}

.product-description {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--color-light);
    border-right: 4px solid var(--color-accent);
    border-radius: 6px;
    line-height: 1.8;
}

.price-table {
    border-collapse: collapse;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: fit-content;
    margin: 0 auto 4mm auto;
}

.price-table thead {
    background: #d1e5d1;
}
.price-table th {
    padding: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
}
.price-table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.price-value {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.3em;
}

.branding-value {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.1em;
}

.notice-box {
    background: #fff9e634;
    border: 1px solid #ffd700;
    padding: 6px 6px;
    margin: 0 auto 0px auto;
    border-radius: 6px;
    text-align: center;
    width: fit-content;
}
.notice-title {
    margin: 0 0 3px 0;
    color: #856404;
    font-size: 0.85em;
    font-weight: 600;
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #856404;
}
.notice-list li {
    padding: 0;
    line-height: 0.7;
}


.notice-qty-hint {
    margin: 2px 0 0 0;
    color: #856404;
    font-size: 0.85em;
    line-height: 1.4;
}
.notice-qty-hint + .notice-qty-hint {
    margin-top: 1px;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-image {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quote-form-outer {
    width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.quote-form-inner {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quote-form-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-field-block {
    margin-bottom: 10px;
}

.field-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9em;
}

.field-label--sm {
    font-size: 0.95em;
    margin-bottom: 5px;
}

input[name="quantity"] {
    width: 80px;
}

input[type="number"] {
    width: 90px;
}

input[name="delivery_date"] {
    width: 130px !important;
    max-width: 130px;
    padding: 8px 8px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    background: white;
}

.form-grid-2 .field-input,
.form-grid-3 .field-input {
    width: 100%;
    box-sizing: border-box;
}

.field-input {
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    direction: rtl;
    text-align: right;
}

.field-hint {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 5px;
    display: block;
}

.field-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    direction: rtl;
    text-align: right;
    font-family: 'Heebo', Arial, sans-serif;
    resize: both;
    min-height: 38px;
}

.field-file {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 0.5fr;
    gap: 15px;
}

.branding-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

.branding-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.branding-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.branding-label-sub {
    font-size: 0.85rem;
}

.branding-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed var(--color-accent);
    border-radius: 8px;
}

.branding-section--hidden {
    display: none;
}

.form-divider {
    margin: 12px 0;
    border: 0;
    border-top: 2px solid var(--color-light);
}

.form-section-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.consent-box {
    margin: 10px 0;
    padding: 10px;
    background: var(--color-light);
    border-radius: 8px;
    border: 2px solid var(--color-accent);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.consent-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    margin: 0;
}

.consent-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-text {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95em;
}

.consent-hint {
    display: block;
    margin-top: 4px;
    margin-right: 34px;
    color: #7f8c8d;
    font-size: 0.8em;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-submit {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-family: 'Heebo', Arial, sans-serif;
}

.btn-cancel {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background: #95a5a6;
    color: white;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section {
    padding: 14px;
    background: var(--color-light);
    border-radius: 10px;
    text-align: center;
}

.contact-section-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 8px 0;
}

.contact-section-text {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.contact-section-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.contact-btn--whatsapp { background: #25D366; color: white; }
.contact-btn--phone    { background: #e74c3c; color: white; }
.contact-btn--email    { background: #3498db; color: white; }
