/* Products pages shared styles */
.page-hero {
    margin-top: var(--header-h);
    padding: 80px 0 60px;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(248, 196, 0, 0.18) 0%, transparent 70%),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: auto, 60px 60px, 60px 60px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--slate-light);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--slate-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--slate);
}

body.en .breadcrumb i.fa-chevron-left { transform: rotate(180deg); }

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-hero h1 .icon-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(248, 196, 0, 0.35);
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--slate-light);
    max-width: 620px;
    line-height: 1.8;
}

/* Products gallery */
.products-page {
    padding: 80px 0 100px;
    background: var(--off-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.product-tile {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1 / 1;
    position: relative;
}

.product-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.product-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-tile:hover img { transform: scale(1.08); }

.product-tile::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(12, 26, 46, 0.5);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    transition: var(--transition);
}

.product-tile:hover::after { opacity: 1; }

.gallery-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate);
    font-size: 1rem;
}

.gallery-loading i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 14px;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--slate);
}

.gallery-empty i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}

.gallery-empty h3 {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(12, 26, 46, 0.92);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

body.en .lightbox-close { right: auto; left: 24px; }

.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .page-hero { padding: 60px 0 40px; }
    .page-hero h1 .icon-badge { width: 44px; height: 44px; font-size: 1.1rem; }
    .products-page { padding: 50px 0 70px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .lightbox { padding: 20px; }
    .lightbox-close, .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
