@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #faf8f5;
    --text-color: #4a4a4a;
    --accent-color: #d49494;
    --accent-hover: #c48282;
    --card-bg: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.header {
    text-align: center;
    padding: 40px 20px 10px;
    position: relative;
}

.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #333;
    text-decoration: none;
    letter-spacing: 2px;
    line-height: 1;
}

.slogan {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    width: 100%;
    text-align: right;
    margin-top: -5px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 10px;
    flex-wrap: wrap;
}

.category-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.category-link:hover, .category-link.active {
    background: var(--accent-color);
    color: white;
}

/* Sub-filters (Sorting) */
.sub-filters {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sub-filter-link {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.sub-filter-link:hover, .sub-filter-link.active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-image-wrapper {
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-buy {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
}

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

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-switch a {
    text-decoration: none;
    color: #999;
    margin-left: 10px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.lang-switch a.active {
    color: #333;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    grid-column: 1 / -1;
    color: #999;
    font-size: 1.2rem;
    padding: 60px 0;
}

/* Product Page Layout */
.single-product {
    display: flex;
    gap: 25px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-top: 0;
}

.single-product-gallery {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.main-media-display {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #faf8f5;
    position: relative;
}

.main-media-display img, .main-media-display video {
    width: 100%;
    height: auto;
    display: block;
}

.media-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.2s;
    background: #eee;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img, .thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.mySlides img, .mySlides video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

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

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}
.prev { left: 0; border-radius: 3px 0 0 3px;}
.next { right: 0; border-radius: 3px 0 0 3px;}
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* Footer */
.footer {
    background: #faf8f5;
    padding: 60px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid #eee;
    color: #555;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

.footer-section p {
    line-height: 1.6;
    font-size: 0.95rem;
}

.single-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.single-product-title {
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.single-product-category {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-product-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .btn-buy {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .product-info {
        padding: 15px;
    }
    .category-link {
        font-size: 1rem;
        padding: 8px 16px;
    }
    .single-product {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .single-product-title {
        font-size: 2rem;
    }
}
