/*
Theme Name: Ftesa Per Dasma
Theme URI: https://ftesaperdasma.com
Author: Ftesa
Author URI: https://ftesaperdasma.com
Description: A one-page WordPress theme for wedding invitation services with product galleries.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ftesa-dasma
Tags: one-column, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
    --font-heading: 'Playfair Display', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header */
.site-header {
    text-align: center;
    padding: 60px 20px 30px;
    background-color: #fff;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #222;
    margin-bottom: 10px;
}

.site-address {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Navigation */
.section-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    flex-wrap: wrap;
}

.section-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.section-nav a:hover {
    color: #999;
}

/* Gallery Section */
.gallery-section {
    padding: 40px 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    color: #444;
    letter-spacing: 1px;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Product Card */
.product-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.product-card .product-card-image {
    width: 100%;
    height: 100%;
}

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

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

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    max-width: 70%;
}

.product-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.product-card.placeholder {
    cursor: default;
}

.product-card.placeholder .product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9e9e9;
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
}

.product-card.placeholder:hover .product-card-image img {
    transform: none;
}

/* Single Product Page */
.product-single {
    min-height: 100vh;
    padding: 40px 20px;
}

.product-single-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #333;
}

.product-single-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.product-single-image {
    flex: 1;
    min-width: 0;
}

.product-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-single-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

.product-single-details {
    flex: 1;
    min-width: 0;
    padding-top: 20px;
}

.product-single-section {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-single-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-single-code {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.product-single-price {
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 25px;
}

.product-single-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Product Slider */
.product-slider {
    position: relative;
    width: 100%;
}

.product-slider-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-slider-prev,
.product-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.product-slider-prev:hover,
.product-slider-next:hover {
    background: #fff;
}

.product-slider-prev {
    left: 12px;
}

.product-slider-next {
    right: 12px;
}

.product-slider-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.product-slider-thumb {
    flex: 0 0 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.product-slider-thumb:hover {
    opacity: 0.8;
}

.product-slider-thumb.active {
    border-color: #333;
    opacity: 1;
}

.product-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.contact-details {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    min-width: 150px;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1rem;
    color: #333;
}

a.contact-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a.contact-link:hover {
    color: #666;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .section-nav {
        gap: 25px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-single-content {
        flex-direction: column;
        gap: 30px;
    }

    .product-single-title {
        font-size: 1.6rem;
    }

    .product-single-price {
        font-size: 1.5rem;
    }

    .product-slider-prev,
    .product-slider-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .product-slider-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.6rem;
    }

    .section-nav {
        gap: 15px;
    }

    .section-nav a {
        font-size: 0.9rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card-name {
        font-size: 0.75rem;
    }

    .product-card-price {
        font-size: 0.8rem;
    }

    .product-single-title {
        font-size: 1.4rem;
    }

    .product-slider-thumb {
        flex: 0 0 50px;
        height: 50px;
    }
}
