@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&family=Crimson+Text:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

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

/* Header */
.header {
    background-color: #000000;
    color: #fff;
    padding: 1.15rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.tagline {
    font-size: 0.65rem;
    color: #006039;
    letter-spacing: 3px;
    margin-top: 4px;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2.5rem);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    font-weight: 400;
    display: inline-block;
    line-height: 1.2;
}

.nav a:hover {
    color: #006039;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Hero Section */
.hero {
    color: #fff;
    padding: 0 20px;
    min-height: 25vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background,
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Mobile: avoid background-attachment fixed for performance and compatibility */
@media (max-width: 768px) {

    .hero-background,
    .hero-background-overlay {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: opacity, background-image;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h2 {
        font-size: min(var(--hero-title-font-size, 4rem), 2.5rem);
        letter-spacing: 4px;
    }
}

.hero-background {
    background-image: url('https://storage.googleapis.com/chronotimear.firebasestorage.app/hero/openback1.png');
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-background-overlay {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-background::after,
.hero-background-overlay::after {
    content: '';
    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));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

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

.hero h2 {
    font-size: var(--hero-title-font-size, 4rem);
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #ffffff;
}

.hero p {
    font-size: var(--hero-subtitle-font-size, 1rem);
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Hero Carousel Controls */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.hero-carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-carousel-btn.prev {
    left: 20px;
}

.hero-carousel-btn.next {
    right: 20px;
}

/* Hero Carousel Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-indicator.active {
    background-color: #ffffff;
}

/* Filters */
.filters {
    background-color: #f8f8f8;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-and-sort {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    padding: 0.85rem 1.4rem;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    width: 240px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    letter-spacing: 1px;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: #006039;
    box-shadow: 0 0 0 1px #006039;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.9rem 2rem;
    border: 1px solid #333333;
    background-color: transparent;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.filter-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.filter-btn.active {
    background-color: #006039;
    color: #ffffff;
    border-color: #006039;
}

.filter-select {
    padding: 0.9rem 2.5rem 0.9rem 2rem;
    border: 1px solid #333333;
    background-color: transparent;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%231a1a1a' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 8px 10px;
}

.filter-select:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
}

.filter-select.active {
    background-color: #006039;
    color: #ffffff;
    border-color: #006039;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
}

.filter-select option {
    background-color: #ffffff;
    color: #1a1a1a;
    text-transform: uppercase;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 2px;
}

/* On Sale Section */
.on-sale-section {
    padding: 5rem 0 3rem 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-bottom: 1px solid #e8e8e8;
}

.on-sale-section .section-title {
    color: #d4af37;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--sale-color, #ff6b6b);
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.sold-badge {
    /* This class now only overrides the background color. */
    /* It inherits size, position, and font styles from .sale-badge. */
    background: var(--sold-color, #6ba4ff) !important;
}


.btn-favorite {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #999;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 20;
    opacity: 1 !important;
}

.btn-favorite:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #ff6b6b;
    transform: scale(1.1);
}

.btn-favorite.active {
    background-color: rgba(255, 255, 255, 1);
    color: #ff6b6b;
}

.btn-favorite i {
    pointer-events: none;
}

.btn-view-all-sales {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #d4af37 0%, #c9a336 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-view-all-sales:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c9a336 0%, #b89330 100%);
}


/* Watch Grid */
.watches {
    padding: 3rem 0;
    background-color: #ffffff;
    flex-grow: 1;
}

/* On the news page, the filter section is separate, so remove top padding from the watches section */
.news-page .watches {
    padding: 0;
}

.favorites-section {
    background-color: #f9f9f9;
    border-top: 1px solid #e8e8e8;
}

.item-grid, .watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.item-card, .watch-card {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.5s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.item-card:hover, .watch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.item-image, .watch-image {
    width: 100%;
    height: 272px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.item-image::before, .watch-image::before {
    content: '📦';
    font-size: 6rem;
    opacity: 0.15;
    color: #006039;
}

/* Image Watermark */
.image-watermark::after {
    content: var(--watermark-text, 'CHRONOTRADER');
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    letter-spacing: 1px;
    z-index: 15;
    pointer-events: none;
    text-transform: uppercase;
}

/* Hide watermark when disabled */
.image-watermark.watermark-hidden::after {
    display: none;
}

/* Carousel Styles */
.item-carousel, .watch-carousel {
    width: 100%;
    height: 255px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}


.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Video carousel styling */
.carousel-video {
    background: #000;
}

/* Hide controls on card carousel videos (not modal) */
.item-card .carousel-video::-webkit-media-controls,
.watch-card .carousel-video::-webkit-media-controls {
    display: none !important;
}

.item-card .carousel-video::-webkit-media-controls-enclosure,
.watch-card .carousel-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Card carousel videos should allow clicks to pass through to open modal */
.item-card .carousel-video,
.watch-card .carousel-video {
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--carousel-control-color, rgba(26, 26, 26, 0.7));
    color: #fff;
    border: none;
    font-size: 2.2rem;
    width: 30px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--carousel-control-color, rgba(26, 26, 26, 0.9));
    width: 35px;
}

.carousel-prev {
    left: 0;
    border-radius: 0 40px 40px 0;
    padding-right: 5px;
}

.carousel-next {
    right: 0;
    border-radius: 40px 0 0 40px;
    padding-left: 5px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators .indicator.active {
    background-color: var(--carousel-control-color, #d4af37);
}

.carousel-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.item-info, .watch-info {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-brand, .watch-brand {
    color: #006039;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.item-name, .watch-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.item-description, .watch-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-weight: 300;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 0 0 auto;
}

.item-details, .watch-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.item-actions, .watch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.item-price, .watch-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.item-year, .watch-year {
    color: #999999;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-consultar {
    background-color: var(--button-color, #25D366);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.btn-consultar i {
    color: white;
}

.btn-consultar:hover {
    opacity: 0.8;
}

.btn-share {
    background-color: var(--accent-color, #006039);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.btn-share i {
    color: white;
}

.btn-share:hover {
    opacity: 0.8;
}

.btn-email {
    background-color: var(--accent-color, #007bff);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.btn-email i {
    color: white;
}

.btn-email:hover {
    opacity: 0.8;
}

.item-card.hidden, .watch-card.hidden {
    display: none;
}

/* About Section */
.about {
    background-color: #f8f8f8;
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.about p {
    max-width: 750px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 2;
    color: #555555;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    font-weight: 400;
}

.footer-section h4 {
    color: var(--accent-color, #006039);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #808080;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav {
        padding-top: 8px;
    }

    .nav ul {
        gap: 0.85rem;
    }

    .nav a {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .logo h1 {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    .filter-bar {
        gap: 1.5rem;
    }

    .search-box input {
        width: 280px;
    }

    .filter-btn {
        width: 140px;
    }
}

/* Mobile Styles */
/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        align-items: center;
    }

    .logo a {
        align-items: center;
    }

    .logo h1 {
        font-size: 1.25rem;
        letter-spacing: 2.5px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #000000;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav.active {
        right: 0;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav li {
        border-bottom: 1px solid #333;
    }

    .nav a {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 0.9rem;
    }

    .nav a:hover {
        background-color: #1a1a1a;
    }

    .hero {
        padding: 4rem 0;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: min(var(--hero-title-font-size, 4rem), 2.5rem);
        letter-spacing: 4px;
    }

    .hero p {
        font-size: min(var(--hero-subtitle-font-size, 1rem), 1rem);
        letter-spacing: 4px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .search-box input {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .filter-buttons {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        width: auto;
        min-width: 120px;
        max-width: 150px;
        flex: 1;
        font-size: 0.7rem;
        padding: 0.8rem 1rem;
        letter-spacing: 1px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .item-description, .watch-description {
        font-size: 1.3rem;
    }

    .item-grid, .watch-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about h2 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .about p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .about p:last-child {
        margin-bottom: 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation-name: animatemodal;
    animation-duration: 0.4s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: default;
}

@keyframes animatemodal {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close-button {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
    padding-bottom: 4px;
    /* Optical alignment for × */
}

.close-button:hover,
.close-button:focus {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.item-modal-carousel, .watch-modal-carousel {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 480px;
    /* Increased height for better image visibility */
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-modal-carousel .carousel-container,
.watch-modal-carousel .carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.item-modal-carousel .carousel-image,
.watch-modal-carousel .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain for full image visibility */
}

.item-modal-carousel .carousel-btn,
.watch-modal-carousel .carousel-btn {
    background-color: var(--carousel-control-color, rgba(0, 0, 0, 0.5));
}

.item-modal-carousel .carousel-btn:hover,
.watch-modal-carousel .carousel-btn:hover {
    background-color: var(--carousel-control-color, rgba(0, 0, 0, 0.8));
}

.item-modal-carousel .carousel-indicators,
.watch-modal-carousel .carousel-indicators {
    bottom: 10px;
}

.item-modal-info, .watch-modal-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-modal-info h3, .watch-modal-info h3 {
    font-size: 1.5rem;
    color: #006039;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.3rem;
}

.item-modal-info h2, .watch-modal-info h2 {
    font-size: 3.125rem;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.item-modal-info p, .watch-modal-info p {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.item-modal-details, .watch-modal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
    /* Pushes details to the bottom */
}

.item-modal-details span, .watch-modal-details span {
    font-size: 1.15rem;
    color: #333;
}

.modal-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

#modalItemStore {
    width: 100%;
    margin-bottom: 4px;
}

.modal-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.item-modal-details .item-price-and-actions,
.watch-modal-details .watch-price-and-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.item-modal-details span:first-child,
.watch-modal-details span:first-child {
    font-weight: 600;
    font-size: 1.75rem;
    color: #1a1a1a;
}

/* Removed .modal-footer as back button moved to top row */

.btn-back-to-collection {
    padding: 0 20px;
    background-color: var(--carousel-control-color, rgba(26, 26, 26, 0.7));
    border: none;
    color: #ffffff;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    height: 44px;
    /* Maintain height to match action buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.btn-back-to-collection:hover {
    background-color: var(--carousel-control-color, rgba(26, 26, 26, 0.9));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-back-to-collection i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}


/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 40px);
        padding: 15px;
        border-radius: 12px;
        gap: 15px;
        overflow-y: auto;
        margin: auto;
    }

    .close-button {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 28px;
        background-color: rgba(0, 0, 0, 0.75);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .item-modal-carousel, .watch-modal-carousel {
        height: 45vh;
        /* Responsive height based on viewport */
        min-width: 100%;
    }

    .item-modal-info h3, .watch-modal-info h3 {
        font-size: 1.1rem;
        letter-spacing: 2px;
        margin-bottom: 0.25rem;
    }

    .item-modal-info h2, .watch-modal-info h2 {
        font-size: 2rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .item-modal-info p, .watch-modal-info p {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .item-modal-details, .watch-modal-details {
        padding-top: 1rem;
        gap: 8px;
    }

    .item-modal-details span, .watch-modal-details span {
        font-size: 1.1rem;
    }

    .item-modal-details span:first-child, .watch-modal-details span:first-child {
        font-size: 1.5rem;
    }

    .modal-actions-row {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .modal-meta-info {
        gap: 3px;
        margin-bottom: 5px;
    }

    .modal-details-top-row {
        align-items: center;
        /* Better alignment on mobile */
    }

    /* Prevent close button overlap with badges on very small screens */
    .item-modal-carousel .sale-badge,
    .watch-modal-carousel .sale-badge {
        top: 15px;
        /* Added margin to align with close button top */
        right: 65px;
        /* Clear the 44px close button + gap */
        left: auto;
    }
}

/* Fullscreen Image Viewer */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.fullscreen-viewer.active {
    display: flex;
}

.fullscreen-media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95vw;
    height: 95vh;
    max-width: 95%;
    max-height: 95%;
}

.fullscreen-viewer img,
.fullscreen-viewer video {
    max-width: 95vw;
    max-height: 95vh;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Specific styling for fullscreen videos to maintain aspect ratio */
.fullscreen-viewer video {
    display: block;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
    padding-bottom: 4px;
    /* Optical alignment for × */
}

.fullscreen-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.8);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 3rem;
    width: 40px;
    height: 80px;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    width: 50px;
}

.fullscreen-prev {
    left: 0;
    border-radius: 0 50px 50px 0;
    padding-right: 5px;
}

.fullscreen-next {
    right: 0;
    border-radius: 50px 0 0 50px;
    padding-left: 5px;
}

/* Double-tap hint for modal images */
.item-modal-carousel .carousel-image,
.watch-modal-carousel .carousel-image {
    cursor: zoom-in;
}

/* Larger watermark for fullscreen viewer */
.fullscreen-viewer.image-watermark::after {
    font-size: 1rem;
    padding: 8px 16px;
    bottom: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .fullscreen-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .fullscreen-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    .fullscreen-viewer.image-watermark::after {
        font-size: 0.7rem;
        padding: 4px 8px;
        bottom: 15px;
        right: 15px;
    }
}

/* About Page Content Styling */
.about-us-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-us-content h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
    letter-spacing: 1px;
}

.about-us-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 400;
}

.about-us-content p:last-child {
    margin-bottom: 0;
}

/* Service Title Styling */
.about-us-content .service-title {
    font-size: 1.3rem;
    color: #000000;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-us-content .service-title:first-of-type {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-us-content {
        padding: 1.5rem 0;
    }

    .about-us-content h2 {
        font-size: 2rem;
    }

    .about-us-content p {
        font-size: 1.15rem;
        text-align: left;
    }

    .about-us-content .service-title {
        font-size: 1.15rem;
        margin-top: 1.5rem;
    }
}

/* Footer social, WhatsApp, and email links should match surrounding text appearance */
#footer-email a,
#footer-whatsapp a,
#footer-social a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

#footer-email a:hover,
#footer-email a:focus,
#footer-whatsapp a:hover,
#footer-whatsapp a:focus,
#footer-social a:hover,
#footer-social a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.search-and-sort #sortButton {
    padding: 0.65rem;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.sort-box {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 0.85rem 2.2rem 0.85rem 1rem;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%231a1a1a' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    height: 100%;
}

.sort-select:focus,
.sort-select:hover {
    outline: none;
    border-color: #006039;
}

.sort-select option {
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 0.85rem;
}

.sort-btn {
    padding: 0.65rem;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.2rem;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sort-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.sort-btn i {
    /* Ensure Font Awesome font and correct weight are used for solid icons */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    /* Required for solid icons in FA6 */
}

@media (max-width: 768px) {
    .search-and-sort {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-box {
        width: 100%;
        flex-grow: 1;
    }

    .search-box input {
        width: 100%;
        box-sizing: border-box;
    }

    .sort-btn {
        flex-shrink: 0;
    }

    .sort-box {
        width: 100%;
    }

    .sort-select {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Loading Indicator */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
    display: none;
}

.loading-indicator.active {
    display: block;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #006039;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.load-more-btn {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto 0;
    display: none;
    border-radius: 4px;
}

.load-more-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.loading-indicator.paused .loading-spinner,
.loading-indicator.paused .loading-text,
.loading-indicator.paused p {
    display: none;
}

.loading-indicator.paused .load-more-btn {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gating class to prevent flash of global branding on store load */
body {
    transition: opacity 0.15s ease-in-out;
}
.store-loading body {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Page fade transition for SPA routing */
#main-content {
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
#main-content.fade-out {
    opacity: 0 !important;
}

/* Store Front Tier Badges & Tooltips */
.store-tier-badge-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.store-tier-badge-container svg {
    width: 22px;
    height: 29px;
    transition: transform 0.2s ease-in-out;
}

.store-tier-badge-container:hover svg {
    transform: scale(1.15);
}

.header-tier-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.store-tier-badge-container.header-badge {
    margin-left: 0;
    margin-right: 0;
}

.store-tier-badge-container.header-badge svg {
    width: 36px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.store-tier-badge-container.header-badge:hover svg {
    transform: scale(1.08);
}

.store-tier-tooltip {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #ffffff;
    text-align: center;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.store-tier-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
}

.store-tier-badge-container:hover .store-tier-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

/* Item Card & Modal Vendor Store Navigation Links */
.item-store-link {
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.85;
    background-color: rgba(128, 128, 128, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.item-store-link:hover {
    background-color: var(--accent-color);
    color: #000000 !important;
    opacity: 1;
    border-color: var(--accent-color);
}

.item-store-link-modal:hover {
    filter: brightness(1.2);
    text-decoration: none !important;
}

/* Inline Tier badge scaling inside navigation button */
.item-store-link svg,
.item-store-link-modal svg {
    width: 14px;
    height: 18px;
    vertical-align: middle;
}

.item-store-link .store-tier-badge-container,
.item-store-link-modal .store-tier-badge-container {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
}

.item-store-link .store-tier-tooltip,
.item-store-link-modal .store-tier-tooltip {
    display: none !important;
}

/* Marketplace Return Bar (displayed on Store pages) */
.marketplace-return-bar {
    background: #0f172a;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1002;
    padding: 0.45rem 0;
}

.return-to-marketplace-link {
    color: #d4af37 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.return-to-marketplace-link:hover {
    color: #ffffff !important;
    background: rgba(212, 175, 55, 0.2);
}

.marketplace-store-indicator {
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.marketplace-store-indicator strong {
    color: #ffffff;
}