/* Club Catalog Styles for Joomla */

/* Catalog Container */
.club-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #fff;
}

/* Header */
.catalog-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalog-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.catalog-header p {
    color: #666;
    font-size: 16px;
}

/* Filter Section */
.filter-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls label {
    font-weight: bold;
    color: #333;
}

.filter-controls select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.filter-controls select:hover {
    border-color: #999;
}

.filter-controls button {
    padding: 10px 20px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.filter-controls button:hover {
    background: #cc0000;
}

/* Item Count */
.item-count {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

/* Catalog Items */
.catalog-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.catalog-item {
    display: flex;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.catalog-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.catalog-item.hidden {
    display: none;
}

.item-image {
    flex: 0 0 300px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.item-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.item-image img:hover {
    opacity: 0.8;
}

.item-image .placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.item-image .placeholder:hover {
    opacity: 0.8;
}

.item-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header {
    margin-bottom: 15px;
}

.item-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.item-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.item-specs {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.item-specs h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.item-specs ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.item-specs li {
    margin-bottom: 5px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.item-price {
    font-size: 28px;
    font-weight: bold;
    color: #2e7d32;
}

.item-code {
    color: #999;
    font-size: 14px;
}

/* Order Form Section */
.order-section {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.order-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.order-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.order-button {
    display: inline-block;
    padding: 15px 40px;
    background: #ff0000 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.order-button:hover {
    background: #cc0000 !important;
    color: white !important;
    text-decoration: none;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

.image-modal-close:hover {
    color: #ff0000;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
    display: none;
}

.no-results.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-item {
        flex-direction: column;
    }

    .item-image {
        flex: none;
        width: 100%;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls select,
    .filter-controls button {
        width: 100%;
    }

    .item-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .catalog-header h1 {
        font-size: 2em;
    }
}
