/* ===================================
   OLMIA PRODUCT DETAIL PAGE
   =================================== */

/* Main Section */
.olmia-product-detail {
    background: white;
    padding: 3rem 0;
}

.olmia-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .olmia-product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Product Image */
.olmia-product-image {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.olmia-product-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Product Info */
.olmia-product-info {
    padding: 1rem 0;
}

.olmia-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #053A62;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.olmia-product-sku {
    font-size: 0.9rem;
    color: #999;
    margin: 0 0 1.5rem 0;
}

/* Price */
.olmia-product-price {
    margin-bottom: 0.25rem;
}

.olmia-product-price .price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff2323;
}

.olmia-product-price .price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.75rem;
}

.olmia-product-vat {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 1.5rem 0;
}

/* Features with checkmarks */
.olmia-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.olmia-product-features .feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #053A62;
    font-weight: 500;
}

.olmia-product-features .feature-item i {
    color: #2e7d32;
    font-size: 0.85rem;
}

/* Quantity & Add to Cart */
.olmia-product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
}

.quantity-input {
    width: 60px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.quantity-input:focus {
    outline: none;
    border-color: #053A62;
}

.olmia-add-to-cart {
    height: 42px;
    padding: 0 2rem;
    background: #ff2323;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.olmia-add-to-cart:hover {
    background: #e8850a;
}

.olmia-add-to-cart.success {
    background: #2e7d32;
}

.olmia-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Contact Info */
.olmia-product-contact {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.olmia-product-contact p {
    margin: 0 0 0.35rem 0;
    font-size: 0.9rem;
    color: #333;
}

.olmia-product-contact a {
    color: #053A62;
    text-decoration: none;
}

.olmia-product-contact a:hover {
    text-decoration: underline;
}

/* ===================================
   PRODUCT TABS
   =================================== */

.olmia-product-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.olmia-product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.tab-btn {
    padding: 1rem 2rem;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #053A62;
}

.tab-btn.active {
    background: #ff2323;
    color: white;
    border-bottom-color: #ff2323;
}

.olmia-tab-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #053A62;
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.olmia-description-content {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

.olmia-description-content h1,
.olmia-description-content h2,
.olmia-description-content h3,
.olmia-description-content h4 {
    color: #053A62;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.olmia-description-content h1:first-child,
.olmia-description-content h2:first-child,
.olmia-description-content h3:first-child {
    margin-top: 0;
}

.olmia-description-content p {
    margin-bottom: 1rem;
}

.olmia-description-content ul,
.olmia-description-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.olmia-description-content li {
    margin-bottom: 0.5rem;
}

.no-content {
    color: #999;
    font-style: italic;
}

/* ===================================
   RELATED PRODUCTS
   =================================== */

.olmia-related-products {
    background: #f5f5f5;
    padding: 3rem 0;
}

.olmia-related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.olmia-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #053A62;
    margin-bottom: 2rem;
    text-align: center;
}

.olmia-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .olmia-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .olmia-related-grid {
        grid-template-columns: 1fr;
    }
}

.olmia-related-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.olmia-related-card:hover {
    border-color: #053A62;
    box-shadow: 0 4px 12px rgba(5, 58, 98, 0.1);
}

.olmia-related-image {
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.olmia-related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.olmia-related-info {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
}

.olmia-related-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #053A62;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.olmia-related-info .price {
    font-size: 1rem;
    font-weight: 700;
    color: #ff2323;
}
