/* Product Lightbox Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: none; /* Will be changed to flex by JS */
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    margin: auto; /* Fallback for older browsers */
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        height: 600px;
    }
}

.modal-img-container {
    flex: 1.5;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-container img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
    cursor: grab;
}

.modal-img-container img:active {
    cursor: grabbing;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: 'Playfair Display', serif;
    color: #c5a059;
    margin-bottom: 20px;
    text-align: left;
}

.modal-info p {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.close-modal:hover {
    color: #c5a059;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 30px;
    z-index: 10;
}

.zoom-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    transition: 0.2s;
}

.zoom-controls button:hover {
    color: #c5a059;
}

/* Hover Effect for Product Cards */
.product-card, .frag-item, .service-item, .cat-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* New Sections Styling */
.process-grid, .stats-grid, .cert-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.process-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.process-item .step-num {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.stats-section {
    background: var(--primary);
    color: white;
    padding: 60px 5%;
    text-align: center;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.cert-section {
    padding: 40px 5%;
    background: #fff;
    text-align: center;
    border-top: 1px solid #eee;
}

.cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: center;
    opacity: 0.7;
}

.cert-item img {
    max-width: 100px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.cert-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.trend-card {
    background: #fff;
    border-left: 4px solid var(--accent);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 15px;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--accent);
    color: white;
}
