/*
Theme Name: LuxeJewelry
Theme URI: https://example.com/luxe-jewelry
Author: Antigravity
Author URI: https://example.com
Description: A lightweight, gold-accented jewelry catalog theme inspired by Goldsmith.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxe-jewelry
Tags: e-commerce, photography, portfolio, gold, elegant
*/

:root {
    --primary-color: #D4AF37;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 2px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

/* Mobile Menu Button - Hidden by default */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
}

.menu-toggle .hamburger-icon {
    width: 30px;
    height: 30px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        /* Show button on mobile */
    }

    .main-navigation ul {
        display: none;
        /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
        z-index: 999;
        text-align: center;
    }

    .main-navigation.toggled ul {
        display: flex;
        /* Show menu when toggled */
    }

    .header-cta {
        display: none;
        /* Optionally hide CTA on mobile to save space, or style it differently */
    }

    /* Mobile logo adjustments */
    .site-branding .custom-logo {
        height: 50px;
    }
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #b5952f;
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 150px 0;
    /* Increase padding for more elegant space */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Slider Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Slider CSS */
.cb-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.cb-slideshow li span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    animation: imageAnimation 18s linear infinite 0s;
}

.cb-slideshow li:nth-child(1) span {
    animation-delay: 0s;
}

.cb-slideshow li:nth-child(2) span {
    animation-delay: 6s;
}

.cb-slideshow li:nth-child(3) span {
    animation-delay: 12s;
}

@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
        transform: scale(1);
    }

    8% {
        opacity: 1;
        animation-timing-function: ease-out;
        transform: scale(1.05);
    }

    17% {
        opacity: 1;
        transform: scale(1.1);
    }

    25% {
        opacity: 0;
        transform: scale(1.15);
    }

    100% {
        opacity: 0;
    }
}

/* Ensure content is above slider */
.hero-content {
    position: relative;
    z-index: 2;
    /* Above overlay */
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

/* Grid Layouts */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.product-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

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

.product-title {
    font-size: 1.2rem;
    margin: 15px 0 5px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #ccc;
    /* Default color matched to footer text */
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-links a:hover .social-icon {
    fill: var(--primary-color);
    /* Gold color on hover */
    transform: translateY(-3px);
}

/* Utility */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}