/* ===== CHRONOSCRAFT.PH STYLES ===== */
/* Color Palette: #5E3023 (main), #895737, #C08552, #F3E9DC */

:root {
    --primary-dark: #5E3023;
    --primary-medium: #895737;
    --primary-light: #C08552;
    --background: #F3E9DC;
    --text-dark: #2C1810;
    --text-light: #6F4E37;
    --white: #FFFFFF;
    --success: #3A7D34;
    --sold: #8B4513;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .brand-name {
    font-family: 'Granjon', 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(94, 48, 35, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(94, 48, 35, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(94, 48, 35, 0.2);
    color: white !important;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(94, 48, 35, 0.85), rgba(94, 48, 35, 0.7)), url('https://kibblewatches.co.uk/cdn/shop/files/DSC01332_1296x.jpg?v=1744880123');
    background-size: cover;
    background-position: center 30%;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroZoom 20s infinite alternate;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Global Badge */
.global-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    margin: 1.5rem auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    max-width: fit-content;
}

.global-badge i {
    color: var(--primary-light);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255,255,255,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-dark);
}

/* ===== MAIN CONTENT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== FILTERS SECTION ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.filters {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(94, 48, 35, 0.05);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(94, 48, 35, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(192, 133, 82, 0.1);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(94, 48, 35, 0.1);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    min-width: 150px;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(94, 48, 35, 0.1);
    background: var(--white);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.filter-btn:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(94, 48, 35, 0.05);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-family: 'Granjon', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== INVENTORY GRID ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.item-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(94, 48, 35, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(94, 48, 35, 0.15);
}

/* ===== IMAGE GALLERY ===== */
.item-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.main-image-container:hover .main-image {
    opacity: 0.9;
}

.main-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

/* Navigation buttons */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(94, 48, 35, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-dark);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 10;
}

/* Thumbnails */
.thumbnail-container {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    background: rgba(94, 48, 35, 0.05);
    border-top: 1px solid rgba(94, 48, 35, 0.1);
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background-color: var(--success);
    color: white;
}

.status-sold {
    background-color: var(--sold);
    color: white;
}

.item-info {
    padding: 1.5rem;
}

.item-title {
    font-family: 'Granjon', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.item-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0.5rem;
}

.item-price .currency-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: normal;
    display: block;
    margin-top: 0.25rem;
}

.item-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-inquire {
    flex: 1;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-inquire:hover {
    background: var(--primary-medium);
}

.btn-details {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-details:hover {
    background: var(--primary-dark);
    color: white;
}

/* ===== LOADING & NO RESULTS ===== */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
}

.loading-spinner {
    border: 4px solid rgba(94, 48, 35, 0.1);
    border-top: 4px solid var(--primary-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    color: rgba(94, 48, 35, 0.2);
    margin-bottom: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--white);
    padding: 4rem;
    border-radius: 12px;
    margin: 4rem 0;
    box-shadow: 0 4px 6px rgba(94, 48, 35, 0.05);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

/* ===== HERO ANIMATION ===== */
@keyframes heroZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 110%;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.update-notice {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--primary-dark);
}

/* Shipping Info Modal */
.shipping-info {
    margin: 1.5rem 0;
}

.shipping-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(94, 48, 35, 0.05);
    border-radius: 8px;
}

.shipping-feature i {
    font-size: 1.5rem;
    color: var(--primary-light);
    min-width: 40px;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #405DE6, #833AB4, #E1306C);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
}

#lightboxTitle {
    font-family: 'Granjon', serif;
    font-size: 1.3rem;
}

#lightboxCounter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .hero-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-select, .filter-btn {
        width: 100%;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Lightbox mobile adjustments */
    .lightbox-prev, .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}