@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: var(--site-font, '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: var(--site-font, '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);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header .container {
    max-width: 1400px;
}

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

.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-family: var(--site-font, inherit);
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: 400;
    color: var(--header-title-color, #ffffff);
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.tagline {
    font-family: var(--site-font, inherit);
    font-size: 0.65rem;
    color: var(--header-subtitle-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;
}

/* Marketplace Header Logo Icon */
.header-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marketplace-header-logo-img {
    height: 88px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo a:hover .marketplace-header-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.4));
}

@media (max-width: 768px) {
    .marketplace-header-logo-img {
        height: 72px;
        max-width: 84px;
    }
}

/* Storefront Header Logo */
.header-store-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-store-logo-img {
    height: 88px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo a:hover .header-store-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.35));
}

@media (max-width: 768px) {
    .header-store-logo-img {
        height: 72px;
        max-width: 140px;
    }
}

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

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

.nav a {
    color: var(--header-title-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: var(--header-title-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;
    background-color: var(--primary-color, #000000);
    margin-top: -1px;
}

.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 {
    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.8), rgba(0, 0, 0, 1));
    opacity: var(--hero-overlay-opacity, 0.5);
}

.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.6) 100%);
    opacity: var(--hero-overlay-opacity, 0.5);
    z-index: 1;
}

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

.hero-content.hero-custom-words-per-line {
    max-width: 96vw;
    width: 96vw;
}

.hero-line {
    display: inline-block;
    white-space: nowrap;
}

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

.hero p {
    font-family: var(--site-font, inherit);
    font-size: var(--hero-subtitle-font-size, 1rem);
    color: var(--hero-subtitle-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;
}

/* Luxury Department Switcher */
.department-switch-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dept-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.dept-btn:hover {
    color: #111827;
    border-color: #9ca3af;
    background: #ffffff;
}

.dept-btn.active {
    background: var(--accent-color, #006039);
    color: #ffffff;
    border-color: var(--accent-color, #006039);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dept-btn-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.dept-btn-title {
    line-height: 1;
}

/* Adaptive Jewelry Facet Group */
.jewelry-facet-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 calc((3 * ((100% - 40px) / 5)) + 20px);
    max-width: calc((3 * ((100% - 40px) / 5)) + 20px);
    box-sizing: border-box;
    animation: fadeInFacet 0.3s ease;
}

.jewelry-facet-group .sort-box {
    flex: 1 1 0;
    max-width: none;
    width: auto;
    min-width: 0;
}

@keyframes fadeInFacet {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Jewelry Chips on Item Card */
.jewelry-meta-chips {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 6px;
}

.jewelry-chip {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.material-chip {
    background: #f7f3eb;
    color: #6b5536;
    border: 1px solid #ebd9bf;
}

.gemstones-chip {
    background: #f0f7f5;
    color: #1e5e49;
    border: 1px solid #c2e2d8;
}

.carats-chip {
    background: #f5f5f7;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* ==================== STANDALONE STORE DIRECTORY BANNER ==================== */
.store-directory-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 1.1rem 1.6rem;
    margin: 1.5rem 0 1.5rem 0;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.store-directory-banner:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.store-directory-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    flex: 1;
    min-width: 250px;
}

.store-directory-icon-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.store-directory-banner:hover .store-directory-icon-pill,
.store-directory-banner:focus-within .store-directory-icon-pill,
.store-directory-icon-pill:hover {
    background: var(--accent-color, #006039);
    color: #ffffff;
    border-color: var(--accent-color, #006039);
}

.store-directory-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: right;
}

.store-directory-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0f172a;
    font-family: inherit;
}

.store-directory-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    letter-spacing: 0.2px;
}

.store-directory-search-wrap {
    flex: 0 0 360px;
    max-width: 100%;
    position: relative;
}

.store-directory-search-wrap .search-box input {
    width: 100%;
    padding: 0.85rem 1.2rem 0.85rem 2.5rem;
    font-size: 0.85rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.store-directory-search-wrap .search-box input:focus {
    background: #ffffff;
    border-color: var(--accent-color, #006039);
    box-shadow: 0 0 0 1px var(--accent-color, #006039);
}

.store-directory-search-wrap .store-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 868px) {
    .store-directory-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.1rem;
        gap: 1rem;
    }

    .store-directory-header {
        justify-content: space-between;
    }

    .store-directory-info {
        text-align: left;
    }

    .store-directory-search-wrap {
        flex: 1 1 100%;
        width: 100%;
    }
}

.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;
    flex-wrap: wrap;
    width: 100%;
}

.search-box.item-search-box {
    flex: 0 0 calc((100% - (4 * 10px)) / 5);
    max-width: calc((100% - (4 * 10px)) / 5);
    width: calc((100% - (4 * 10px)) / 5);
    flex-shrink: 0;
    box-sizing: border-box;
}

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

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

.search-and-sort .sort-box {
    flex: 0 0 calc((100% - (4 * 10px)) / 5);
    max-width: calc((100% - (4 * 10px)) / 5);
    width: calc((100% - (4 * 10px)) / 5);
    flex-shrink: 0;
    box-sizing: border-box;
}

.search-and-sort .jewelry-facet-group .sort-box {
    flex: 1 1 0;
    max-width: none;
    width: calc((100% - (2 * 10px)) / 3);
    min-width: 0;
    box-sizing: border-box;
}

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

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

.filter-btn {
    padding: 0.9rem 1rem;
    border: 1px solid #333333;
    background-color: transparent;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    flex: 0 0 calc((100% - (4 * 0.8rem)) / 5);
    max-width: calc((100% - (4 * 0.8rem)) / 5);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.filter-btn.active {
    background-color: var(--accent-color, #006039);
    color: #ffffff;
    border-color: var(--accent-color, #006039);
}

.filter-select {
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border: 1px solid #333333;
    background-color: transparent;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    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;
    flex: 0 0 calc((100% - (4 * 0.8rem)) / 5);
    max-width: calc((100% - (4 * 0.8rem)) / 5);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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: var(--accent-color, #006039);
    color: #ffffff;
    border-color: var(--accent-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;
}

/* Badge Quick Filter Chips */
.badge-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.badge-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-right: 0.25rem;
}

.badge-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.badge-chip-btn i {
    font-size: 0.7rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.badge-chip-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.badge-chip-btn.active {
    background: var(--accent-color, #006039);
    color: #ffffff;
    border-color: var(--accent-color, #006039);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.badge-chip-btn.active i {
    color: #ffffff;
}

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

#collection .section-title {
    display: none;
}

/* 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;
}

.badges-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    z-index: 20;
    pointer-events: none;
}

.badges-container .sale-badge {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin: 0;
    pointer-events: auto;
}

.vintage-badge {
    background-color: #8b5a2b !important;
    color: #ffffff !important;
}

.condition-badge {
    color: #ffffff !important;
}

.condition-badge.condition-new {
    background-color: #2e7d32 !important;
}

.condition-badge.condition-used {
    background-color: #546e7a !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,
.btn-favorite svg {
    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;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.favorites-dept-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fav-dept-btn {
    padding: 0.45rem 1.1rem;
    border: 1px solid #d1d5db;
    background: transparent;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fav-dept-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.fav-dept-btn.active {
    background: var(--accent-color, #006039);
    color: #ffffff;
    border-color: var(--accent-color, #006039);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.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, 'CHRONOTIMEMARKET');
    position: absolute;
    bottom: 30px;
    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;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.item-price-and-year, .watch-price-and-year {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.item-price-and-year:empty, .watch-price-and-year:empty {
    display: none;
}

.item-actions, .watch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

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

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

.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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-consultar i,
.btn-consultar svg {
    color: white;
    fill: currentColor;
}

.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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-share i,
.btn-share svg {
    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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-email i,
.btn-email svg {
    color: white;
}

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

.btn-direct-purchase {
    background: linear-gradient(135deg, #d4af37 0%, #b58d1e 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.btn-direct-purchase i,
.btn-direct-purchase svg {
    color: white;
}

.btn-direct-purchase:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.45);
}

.icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.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 {
    color: var(--header-title-color, #ffffff);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    font-weight: 400;
}

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

.footer-section p {
    color: var(--header-subtitle-color, #006039);
    line-height: 1.8;
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-section p.footer-tagline {
    color: var(--header-subtitle-color, #006039);
}

.footer-title-logo-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: fit-content;
}

.footer-title-logo-group h3,
.footer-title-logo-group #footerSiteTitle {
    text-align: center;
    width: 100%;
    margin-bottom: 0.35rem;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.35rem 0 0.85rem 0;
    text-align: center;
}

.footer-market-logo-img {
    height: 96px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-market-logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.45));
}

@media (max-width: 768px) {
    .footer-market-logo-img {
        height: 72px;
        max-width: 100px;
    }
}

.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: 0;
    }

    .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.item-search-box {
        flex: 0 0 calc((100% - (4 * 10px)) / 5);
        max-width: calc((100% - (4 * 10px)) / 5);
        width: calc((100% - (4 * 10px)) / 5);
    }

    .search-box.item-search-box input,
    .search-box input {
        width: 100%;
    }

    .search-and-sort .sort-box {
        flex: 0 0 calc((100% - (4 * 10px)) / 5);
        max-width: calc((100% - (4 * 10px)) / 5);
        width: calc((100% - (4 * 10px)) / 5);
    }

    .search-and-sort .jewelry-facet-group .sort-box {
        flex: 1 1 0;
        max-width: none;
        width: calc((100% - (2 * 10px)) / 3);
        min-width: 0;
    }

    .filter-btn,
    .filter-select {
        flex: 0 0 calc((100% - (4 * 0.8rem)) / 5);
        max-width: calc((100% - (4 * 0.8rem)) / 5);
    }
}

/* 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;
        min-width: 44px;
        min-height: 44px;
        padding: 10px 8px;
        justify-content: center;
        align-items: center;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background-color: #000000;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    }

    .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;
    }

    .department-switch-bar {
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .dept-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .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, #modalItemDescription {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 8px;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color, #c5a059) #f5f5f5;
}

.item-modal-info p::-webkit-scrollbar,
.watch-modal-info p::-webkit-scrollbar,
#modalItemDescription::-webkit-scrollbar {
    width: 6px;
}

.item-modal-info p::-webkit-scrollbar-track,
.watch-modal-info p::-webkit-scrollbar-track,
#modalItemDescription::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.item-modal-info p::-webkit-scrollbar-thumb,
.watch-modal-info p::-webkit-scrollbar-thumb,
#modalItemDescription::-webkit-scrollbar-thumb {
    background: var(--accent-color, #c5a059);
    border-radius: 4px;
}

.item-modal-info p::-webkit-scrollbar-thumb:hover,
.watch-modal-info p::-webkit-scrollbar-thumb:hover,
#modalItemDescription::-webkit-scrollbar-thumb:hover {
    background: #a37c35;
}

.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,
.btn-back-to-collection svg {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-back-to-collection:hover i,
.btn-back-to-collection:hover svg {
    transform: translateX(-3px);
}


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

    .modal-content {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        padding: 15px;
        border-radius: 12px;
        gap: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        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 {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        height: 45vh;
        height: 45dvh;
        min-height: 260px;
        /* Responsive height based on viewport; flex: 0 0 auto prevents flex-basis: 0% collapse in column layout */
    }

    .item-modal-info, .watch-modal-info {
        flex: 0 0 auto;
        width: 100%;
        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, #modalItemDescription {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        max-height: 140px;
    }

    .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;
    }

    .item-modal-carousel .badges-container,
    .watch-modal-carousel .badges-container {
        top: 15px;
        right: 65px;
        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, email, support email, and address links should match surrounding text appearance */
#footer-email a,
#footer-support-email a,
#footer-whatsapp a,
#footer-address a,
#footer-social a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

#footer-email a:hover,
#footer-email a:focus,
#footer-support-email a:hover,
#footer-support-email a:focus,
#footer-whatsapp a:hover,
#footer-whatsapp a:focus,
#footer-address a:hover,
#footer-address 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;
    }

    .jewelry-facet-group {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-and-sort .jewelry-facet-group .sort-box,
    .jewelry-facet-group .sort-box {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .search-box.item-search-box,
    .search-box {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .search-box input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        min-height: 44px;
    }

    .sort-btn {
        flex-shrink: 0;
        min-height: 44px;
        min-width: 44px;
    }

    .search-and-sort .sort-box,
    .sort-box {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .sort-select,
    .filter-select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        min-height: 44px;
    }

    .carousel-btn {
        width: 40px;
        min-height: 44px;
    }
}

/* 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;
}

@media (max-width: 768px) {
    .marketplace-return-bar {
        padding: 0.5rem 0;
        padding-top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
    }

    .return-to-marketplace-link {
        min-height: 44px;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ==================== CERTIFICATION BUTTON & PAGE STYLING ==================== */

/* Marketplace Hero Certification Button */
.hero-cert-action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    z-index: 2;
    position: relative;
}

.hero-cert-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-cert-badge-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.35);
    color: #ffffff !important;
}

.hero-cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000000;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.hero-cert-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.hero-cert-text strong {
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    color: #f8fafc;
}

.hero-cert-text small {
    font-size: 0.72rem;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    font-family: system-ui, -apple-system, sans-serif;
}

.hero-cert-arrow {
    font-size: 0.8rem;
    color: #d4af37;
    transition: transform 0.25s ease;
    margin-left: 0.25rem;
}

.hero-cert-badge-btn:hover .hero-cert-arrow {
    transform: translateX(4px);
}

/* Certification Page Intro Block */
.cert-intro-block {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 3.5rem;
}

.cert-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-main-heading {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cert-lead-text {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cert-philosophy-card {
    display: flex;
    gap: 1.5rem;
    background: #0f172a;
    color: #f8fafc;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cert-philosophy-icon {
    font-size: 2rem;
    color: #d4af37;
    opacity: 0.8;
    flex-shrink: 0;
}

.cert-philosophy-content h4 {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.cert-philosophy-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.cert-revalidation-note {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    border-left: 3px solid #d4af37;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-revalidation-note strong {
    color: #f1f5f9;
}

/* Tiers Grid & Cards */
.cert-tiers-container {
    margin-bottom: 4.5rem;
}

.cert-section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.cert-section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.cert-tier-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-tier-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.cert-tier-card.bronze-tier {
    border-top: 5px solid #b86c35;
}

.cert-tier-card.silver-tier {
    border-top: 5px solid #94a3b8;
}

.cert-tier-card.gold-tier {
    border-top: 5px solid #d4af37;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.cert-featured-ribbon {
    position: absolute;
    top: 15px;
    right: -32px;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 35px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-family: system-ui, -apple-system, sans-serif;
    z-index: 10;
}

.cert-tier-header {
    padding: 2rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.cert-tier-badge-wrap {
    width: 80px;
    height: 105px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.25s ease;
}

.cert-tier-card:hover .cert-tier-badge-wrap {
    transform: scale(1.08);
}

.cert-tier-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cert-tier-title-box h4 {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0.25rem 0;
}

.cert-tier-level-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
    font-family: system-ui, -apple-system, sans-serif;
    display: inline-block;
}

.cert-tier-level-tag.gold-tag {
    background: rgba(212, 175, 55, 0.2);
    color: #855d0a;
}

.cert-tier-denomination {
    font-size: 0.95rem;
    font-style: italic;
    color: #64748b;
    display: block;
}

.cert-tier-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-official-quote {
    background: #f1f5f9;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #64748b;
    margin-bottom: 1.5rem;
    position: relative;
}

.bronze-tier .cert-official-quote { border-left-color: #b86c35; }
.silver-tier .cert-official-quote { border-left-color: #94a3b8; }
.gold-tier .cert-official-quote { border-left-color: #d4af37; background: #fffdf5; }

.cert-official-quote p {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-quote-icon {
    display: none;
}

.cert-criteria-list h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-criteria-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cert-criteria-list li {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-criteria-list li i {
    color: #10b981;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cert-tier-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    text-align: center;
}

.cert-footer-badge {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: system-ui, -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cert-footer-badge.gold-badge {
    color: #855d0a;
}

/* Matrix Table Styling */
.cert-matrix-section {
    margin-bottom: 4.5rem;
}

.cert-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cert-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-matrix-table th,
.cert-matrix-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
}

.cert-matrix-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.matrix-feature-col {
    text-align: left;
    width: 40%;
    font-size: 0.95rem;
}

.table-tier-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.table-tier-header .tier-icon {
    font-size: 1.3rem;
}

.table-tier-header small {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-matrix-table tbody tr:hover {
    background: #f8fafc;
}

.matrix-feature-name {
    text-align: left;
    font-size: 0.95rem;
    color: #1e293b;
}

.matrix-check {
    font-size: 1.1rem;
}

.text-green {
    color: #10b981;
}

.matrix-dash {
    color: #94a3b8;
    font-weight: bold;
    font-size: 1.1rem;
}

.matrix-text-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.matrix-text-val.highlight-val {
    color: #855d0a;
    background: rgba(212, 175, 55, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Where Badges Appear Guide */
.cert-placements-section {
    margin-bottom: 4.5rem;
}

.cert-placements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cert-placement-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cert-placement-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

/* Certification Placement UI Samples */
.cert-placement-sample {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    user-select: none;
}

.sample-storefront-header {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
}

.sample-header-brand {
    display: flex;
    flex-direction: column;
}

.sample-header-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0f172a;
    line-height: 1.1;
}

.sample-header-tagline {
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 0.02em;
}

.sample-item-card-snippet {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sample-store-btn {
    pointer-events: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: #1e293b;
    background-color: rgba(15, 23, 42, 0.06);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sample-modal-store-snippet {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.sample-modal-label {
    color: #64748b;
    font-weight: 600;
}

.sample-modal-link {
    color: var(--accent-color, #c5a059);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: underline;
    pointer-events: none;
}

.sample-autocomplete-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 180px;
    text-align: left;
}

.sample-autocomplete-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sample-autocomplete-text {
    line-height: 1.2;
}

.sample-autocomplete-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
}

.sample-autocomplete-slug {
    font-size: 0.68rem;
    color: #64748b;
}

.cert-placement-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0f172a;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

.cert-placement-card h4 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cert-placement-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Dealer CTA Box */
.cert-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 3rem 2rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cert-cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.cert-cta-content h3 {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.cert-cta-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.cert-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cert-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #000000 !important;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cert-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

.cert-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.cert-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Media Queries for Certification */
@media (max-width: 992px) {
    .cert-tiers-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .cert-placements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cert-main-heading {
        font-size: 2rem;
    }

    .cert-lead-text {
        font-size: 1.1rem;
    }

    .cert-philosophy-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cert-placements-grid {
        grid-template-columns: 1fr;
    }

    .cert-cta-box {
        padding: 2rem 1.25rem;
    }

    .cert-cta-content h3 {
        font-size: 1.6rem;
    }

    .cert-cta-actions {
        flex-direction: column;
    }

    .cert-btn-primary,
    .cert-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Watch Sourcing Requests (Encargos de Búsqueda)
   ========================================================================== */

.nav a.nav-request-btn {
    border: 1px solid var(--header-title-color, rgba(255, 255, 255, 0.4));
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a.nav-request-btn:hover {
    border-color: var(--accent-color, #c5a059);
    color: var(--accent-color, #c5a059);
    background-color: rgba(197, 160, 89, 0.1);
}

.no-items-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    text-align: center;
    width: 100%;
}

.sourcing-cta-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    max-width: 600px;
    width: 100%;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--accent-color, #c5a059);
}

.sourcing-cta-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sourcing-cta-card h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sourcing-cta-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.sourcing-cta-card .open-sourcing-modal-btn {
    background-color: var(--accent-color, #c5a059);
    color: #111;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.sourcing-cta-card .open-sourcing-modal-btn:hover {
    background-color: #d8b46e;
    transform: translateY(-1px);
}

.item-request-modal-content {
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    background: #181818;
    color: #eee;
    border: 1px solid #333;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.item-request-modal-content .close-button {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.item-request-modal-content .close-button:hover {
    color: #fff;
}

.request-modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 1rem;
}

.request-modal-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 500;
}

.request-modal-header p {
    font-size: 0.88rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color, #c5a059);
    font-weight: 600;
    border-bottom: 1px solid #282828;
    padding-bottom: 4px;
    margin-top: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group.flex-1 {
    flex: 1 1 200px;
}

.form-group label {
    font-size: 0.82rem;
    color: #ccc;
    font-weight: 500;
}

.required-star {
    color: #e57373;
}

.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="tel"],
.request-form input[type="number"],
.request-form textarea {
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.request-form input:focus,
.request-form textarea:focus {
    border-color: var(--accent-color, #c5a059);
    outline: none;
}

.budget-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.budget-input-group input {
    flex: 1;
}

.currency-toggle {
    display: flex;
    gap: 0.5rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
}

.radio-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 4px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #bbb;
    cursor: pointer;
}

.radio-label input, .checkbox-label input {
    cursor: pointer;
    accent-color: var(--accent-color, #c5a059);
}

.checkbox-group-container {
    justify-content: flex-end;
    padding-bottom: 8px;
}

.form-error-msg {
    background: rgba(229, 115, 115, 0.15);
    border: 1px solid #e57373;
    color: #ffb4b4;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.request-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.request-form-actions button {
    background-color: var(--accent-color, #c5a059);
    color: #111;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 11px 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.request-form-actions button:hover {
    background-color: #d8b46e;
}

.request-form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.request-success-container {
    text-align: center;
    padding: 2.5rem 1rem;
}

.request-success-container .success-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.request-success-container h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.request-success-container p {
    color: #aaa;
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0.5rem auto;
    line-height: 1.5;
}

/* ============================================================
   Editorial Partner Cards (Luxury In-Grid Advertisements)
   ============================================================ */
.editorial-ad-card {
    background-color: #161616 !important;
    background: #161616 !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.editorial-ad-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(197, 160, 89, 0.25);
    border-color: var(--accent-color, #c5a059);
}

.editorial-ad-card .item-image-container,
.editorial-ad-card .item-image {
    width: 100%;
    height: 272px;
    background-color: #161616 !important;
    background: #161616 !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none !important;
    margin-bottom: -1px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.editorial-ad-card .item-image::before,
.editorial-ad-card .item-image-container::before {
    display: none !important;
    content: none !important;
}

.editorial-ad-card .item-image img,
.editorial-ad-card .item-image-container img,
.editorial-ad-card .editorial-ad-img {
    width: 100%;
    height: calc(100% + 1px);
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.editorial-ad-card:hover .item-image img,
.editorial-ad-card:hover .item-image-container img,
.editorial-ad-card:hover .editorial-ad-img {
    transform: scale(1.04) translateZ(0);
}

.editorial-ad-card .item-carousel,
.editorial-ad-card .ad-carousel {
    width: 100%;
    height: 272px;
    background-color: #161616 !important;
    background: #161616 !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
    border-bottom: none !important;
    margin-bottom: -1px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.editorial-ad-card .item-carousel::before,
.editorial-ad-card .ad-carousel::before {
    display: none !important;
    content: none !important;
}

.editorial-ad-card .carousel-image {
    width: 100%;
    height: calc(100% + 1px);
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity, transform;
}

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

.editorial-ad-card:hover .carousel-image.active {
    transform: scale(1.04) translateZ(0);
}

.editorial-ad-card .ad-carousel .carousel-btn {
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    opacity: 0.85;
    transition: opacity 0.25s ease, background-color 0.25s ease, width 0.25s ease;
    z-index: 5;
}

.editorial-ad-card .ad-carousel .carousel-btn:hover {
    background-color: rgba(197, 160, 89, 0.85);
    color: #000;
    opacity: 1;
    border-color: var(--accent-color, #c5a059);
}

.editorial-ad-card .ad-carousel .carousel-indicators {
    bottom: 12px;
    z-index: 5;
}

.editorial-ad-card .ad-carousel .carousel-indicators .indicator {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.editorial-ad-card .ad-carousel .carousel-indicators .indicator.active {
    background-color: var(--accent-color, #c5a059);
    width: 14px;
    border-radius: 5px;
}

.editorial-ad-card .badges-container {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sale-badge.editorial-badge,
.editorial-badge {
    border: 1px solid var(--accent-color, #c5a059);
    color: var(--accent-color, #c5a059);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.editorial-ad-card .item-content,
.editorial-ad-card .editorial-content {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #161616;
    position: relative;
    z-index: 1;
    border-top: none;
}

.editorial-title {
    color: #ffffff;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.3px;
}

.editorial-subtitle {
    color: #bbbbbb;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.editorial-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
}

.editorial-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    border: 1px solid var(--accent-color, #c5a059);
    background: transparent;
    color: var(--accent-color, #c5a059);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.editorial-cta-btn:hover {
    background: var(--accent-color, #c5a059);
    color: #111111;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
    text-decoration: none;
}

/* ==================== DISCLAIMER / TERMS MODAL ==================== */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
    box-sizing: border-box;
}

.disclaimer-modal.active {
    display: flex !important;
}

.disclaimer-modal-content {
    background: #ffffff;
    max-width: 840px;
    width: 100%;
    max-height: 88vh;
    border-radius: 4px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid #d4af37;
    animation: fadeInModal 0.3s ease;
}

.disclaimer-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem 1.25rem 2rem;
    background: #fdfbf7;
    border-bottom: 1px solid #eedcbf;
    position: relative;
}

.disclaimer-header-badge {
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 1px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.disclaimer-header-titles {
    flex: 1;
}

.disclaimer-header-titles h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    font-family: inherit;
    text-transform: uppercase;
}

.disclaimer-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.82rem;
    color: #8a6d3b;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.disclaimer-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.disclaimer-close-btn:hover {
    color: #1a1a1a;
}

.disclaimer-modal-body {
    padding: 1.75rem 2.25rem;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #2c251e;
    background: #ffffff;
    flex: 1;
}

.disclaimer-notice-box {
    background: #fdfaf3;
    border-left: 3px solid #d4af37;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.86rem;
    color: #5a421b;
}

.disclaimer-notice-box p {
    margin: 0;
    line-height: 1.5;
}

.disclaimer-text-content p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.disclaimer-text-content strong {
    color: #111827;
    font-weight: 700;
}

.disclaimer-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 1rem;
}

.btn-accept-disclaimer {
    background-color: var(--accent-color, #006039);
    color: #ffffff;
    border: 1px solid var(--accent-color, #006039);
    padding: 0.85rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-accept-disclaimer:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-legal {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.footer-disclaimer-link {
    color: inherit;
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-disclaimer-link:hover {
    opacity: 1;
    color: var(--accent-color, #d4af37);
}

@media (max-width: 768px) {
    .disclaimer-modal {
        padding: 0.75rem;
    }

    .disclaimer-modal-content {
        max-height: 94vh;
    }

    .disclaimer-modal-header {
        padding: 1.1rem 1.25rem;
        gap: 0.85rem;
    }

    .disclaimer-header-badge {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .disclaimer-header-titles h2 {
        font-size: 1.05rem;
        letter-spacing: 0.8px;
    }

    .disclaimer-modal-body {
        padding: 1.25rem;
        font-size: 0.84rem;
    }

    .disclaimer-modal-footer {
        padding: 1rem 1.25rem;
        justify-content: stretch;
    }

    .btn-accept-disclaimer {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
    }
}

/* ==================== HOME-SCREEN APP SHORTCUT (PWA / WEB CLIP) ==================== */
.nav-install-app-item {
    display: inline-flex;
    align-items: center;
}

.nav-install-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(212, 175, 55, 0.12);
    color: var(--header-title-color, #ffffff);
    border: 1px solid var(--accent-color, #d4af37);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-family: var(--site-font, inherit);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-install-app-btn:hover,
.nav-install-app-btn:focus {
    background: var(--accent-color, #d4af37);
    color: #0c0e12;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
    outline: none;
}

.footer-install-app-wrap {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-install-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--header-title-color, #ffffff);
    border: 1px solid var(--accent-color, #d4af37);
    border-radius: 4px;
    padding: 0.55rem 1rem;
    min-height: 44px;
    font-family: var(--site-font, inherit);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.footer-install-app-btn:hover,
.footer-install-app-btn:focus {
    background: var(--accent-color, #d4af37);
    color: #0c0e12;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
    outline: none;
}

.app-shortcut-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 10, 14, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3200;
    padding: 1.25rem;
    box-sizing: border-box;
}

.app-shortcut-modal.active {
    display: flex !important;
}

.app-shortcut-modal-content {
    background: #12151c;
    color: #f3f4f6;
    max-width: 540px;
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65);
    padding: 1.75rem;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.app-shortcut-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-shortcut-modal-header {
    padding-right: 2.5rem;
}

.app-shortcut-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 0.25rem;
}

.app-shortcut-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.app-shortcut-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.45;
}

.app-shortcut-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0c0e12;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
}

.app-shortcut-preview-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    background: #0c0e12;
}

.app-shortcut-preview-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-shortcut-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.app-shortcut-preview-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #d4af37;
}

.app-shortcut-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-shortcut-preview-url {
    font-size: 0.8rem;
    color: #9ca3af;
    font-family: monospace;
}

.app-shortcut-webview-alert {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.app-shortcut-webview-alert-text strong {
    display: block;
    color: #fde68a;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.app-shortcut-webview-alert-text p {
    margin: 0;
    font-size: 0.82rem;
    color: #e5e7eb;
    line-height: 1.45;
}

.app-shortcut-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.5rem;
}

.app-shortcut-tab-btn {
    flex: 1;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #d1d5db;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.45rem 0.6rem;
}

.app-shortcut-tab-btn.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #0c0e12;
}

.app-shortcut-panel {
    display: none;
}

.app-shortcut-panel.active {
    display: block;
}

.app-shortcut-native-cta {
    margin-bottom: 0.9rem;
}

.app-shortcut-install-now-btn {
    width: 100%;
    min-height: 46px;
    background: linear-gradient(135deg, #d4af37 0%, #b68d2c 100%);
    color: #0c0e12;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.7rem 1rem;
}

.app-shortcut-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-shortcut-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.app-shortcut-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-shortcut-dots-glyph {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.app-shortcut-step-body strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.app-shortcut-step-body p {
    margin: 0;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.app-shortcut-qr-layout {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.app-shortcut-qr-box {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-shortcut-qr-box svg {
    display: block;
    width: 148px;
    height: 148px;
}

.app-shortcut-qr-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-shortcut-qr-info strong {
    font-size: 0.95rem;
    color: #ffffff;
}

.app-shortcut-qr-info p {
    margin: 0;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.app-shortcut-copy-btn {
    min-height: 44px;
    padding: 0.55rem 1rem;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid #d4af37;
    border-radius: 6px;
    color: #f3f4f6;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.app-shortcut-copy-btn:hover,
.app-shortcut-copy-btn.copied {
    background: #d4af37;
    color: #0c0e12;
}

@media (max-width: 768px) {
    .nav-install-app-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
    }

    .footer-install-app-wrap {
        justify-content: center;
    }

    .footer-install-app-btn {
        width: 100%;
        max-width: 320px;
        min-height: 44px;
    }

    .app-shortcut-modal {
        padding: 0.75rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    }

    .app-shortcut-modal-content {
        padding: 1.25rem;
        max-height: calc(100dvh - 24px);
    }

    .app-shortcut-qr-layout {
        flex-direction: column;
        text-align: center;
    }

    .app-shortcut-copy-btn {
        align-self: stretch;
        width: 100%;
    }
}

