/* ==========================================================================
   Earrings Collection Page - earrings.css
   ========================================================================== */

.earrings-main {
    background: var(--white);
}

/* ---- Collection Banner ---- */
.ec-banner {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.ec-banner-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.ec-banner-image {
    position: absolute;
    inset: 0;
}

.ec-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.ec-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 60%, transparent 100%);
}

.ec-banner-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 48px;
}

.ec-banner-title {
    font-family: var(--font-serif);
    font-size: 64px;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 600;
}

.ec-banner-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    line-height: 1.7;
}

.ec-banner-content .eyebrow {
    color: var(--primary-teal);
}

/* ---- Mobile Controls ---- */
.ec-mobile-controls {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.ec-mobile-controls-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.ec-mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--primary-teal);
    color: var(--primary-teal);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: #fff;
    flex-shrink: 0;
}

.ec-mobile-filter-btn:hover {
    background: var(--primary-teal);
    color: #fff;
}

/* ---- Sort Select ---- */
.ec-sort-wrapper {
    position: relative;
}

.ec-sort-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--border-light);
    background: #fff;
    border-radius: 50px;
    padding: 9px 36px 9px 16px;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--text-dark);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.ec-sort-select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* ---- Mobile Filter Drawer ---- */
.ec-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ec-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ec-filter-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(340px, 90vw);
    height: 100vh;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ec-filter-drawer.open {
    left: 0;
}

.ec-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.ec-drawer-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.ec-drawer-close {
    font-size: 20px;
    color: var(--text-gray);
    background: none;
    border: none;
}

.ec-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 0 16px;
}

.ec-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
}

.ec-drawer-footer .btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
}

/* ---- Main Layout ---- */
.ec-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 48px;
    align-items: start;
}

/* ---- Sidebar ---- */
.ec-sidebar {
    position: sticky;
    top: 90px;
}

.ec-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ec-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-sidebar-clear {
    font-size: 12px;
    color: var(--primary-teal);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.ec-sidebar-clear:hover {
    text-decoration: underline;
}

/* ---- Filter Groups ---- */
.ec-filter-group {
    border-bottom: 1px solid var(--border-light);
}

.ec-filter-group-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: none;
    border: none;
    cursor: pointer;
}

.ec-filter-group-title i {
    font-size: 11px;
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.ec-filter-group-title.open i {
    transform: rotate(180deg);
}

.ec-filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
}

.ec-filter-options.open {
    max-height: 300px;
    padding-bottom: 14px;
    overflow-y: auto;
}

.ec-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px 0;
    line-height: 1.4;
}

.ec-checkbox input[type="checkbox"],
.ec-checkbox input[type="radio"] {
    accent-color: var(--primary-teal);
    width: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    vertical-align: middle;
}

.ec-checkbox:hover {
    color: var(--primary-teal);
}

/* ---- Color swatches ---- */
.ec-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}

.ec-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2.5px solid #00000030;
    transition: all 0.2s ease;
}

.ec-color-swatch:hover,
.ec-color-swatch.active {
    border-color: var(--primary-teal);
    transform: scale(1.15);
}

/* ---- Top Bar ---- */
.ec-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ec-results-count {
    font-size: 14px;
    color: var(--text-gray);
}

.ec-sort-desktop {
    display: flex;
}

/* ---- Active Filter Tags ---- */
.ec-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 0;
}

.ec-filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(4, 168, 177, 0.1);
    color: var(--primary-teal);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

.ec-filter-tag button {
    background: none;
    border: none;
    color: var(--primary-teal);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-top: 1px;
}

/* ---- Product Grid ---- */
.ec-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

/* ---- Product Card ---- */
.ec-product-card {
    background: transparent;
    transition: var(--transition-normal);
}

.ec-product-card:hover {
    /* No heavy shadow or transform as requested */
}

.ec-product-img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fdfdfd;
}

.ec-product-img-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.ec-product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.ec-product-card:hover .ec-product-img-box img {
    transform: scale(1.06);
}

/* Badges */
.ec-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 50px;
}

.ec-badge-bestseller {
    background: var(--primary-teal);
    color: #fff;
}

.ec-badge-new {
    background: var(--text-dark);
    color: #fff;
}

.ec-badge-trending {
    background: var(--gold-accent);
    color: #fff;
}

/* Wishlist */
.ec-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.2s ease;
}

.ec-product-card:hover .ec-wishlist-btn {
    opacity: 1;
}

.ec-wishlist-btn:hover {
    color: #e74c3c;
}

/* Card Hover Actions */
.ec-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ec-product-card:hover .ec-card-actions {
    transform: translateY(0);
}

.ec-add-cart-btn {
    width: 100%;
    font-size: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Product Info */
.ec-product-info {
    padding: 16px 0 8px;
    text-align: left;
}

.ec-product-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.ec-rating .fa-star {
    color: #F5A623;
    font-size: 11px;
}

.ec-rating span:first-of-type {
    font-weight: 600;
    color: var(--text-dark);
}

.ec-review-count {
    color: var(--text-gray);
}

.ec-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ec-current-price {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.ec-original-price {
    font-size: 12px;
    color: var(--text-gray);
    text-decoration: line-through;
}

.ec-discount {
    font-size: 11px;
    font-weight: 600;
    color: #27ae60;
}

/* ---- No Results ---- */
.ec-no-results {
    text-align: center;
    padding: 60px 20px;
}

.ec-no-results i {
    font-size: 48px;
    color: var(--border-light);
    margin-bottom: 16px;
}

.ec-no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.ec-no-results p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* ---- SEO Section ---- */
.ec-seo-section {
    background: var(--cream-bg);
    padding: 64px 0;
}

.ec-seo-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ec-seo-header {
    text-align: center;
    margin-bottom: 48px;
}

.ec-seo-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text-dark);
    margin-top: 8px;
}

.ec-seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.ec-seo-block {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.ec-seo-icon {
    width: 48px;
    height: 48px;
    background: rgba(4, 168, 177, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary-teal);
    font-size: 20px;
}

.ec-seo-block h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ec-seo-block p {
    font-size: 13.5px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ---- FAQ ---- */
.ec-faq-title {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 24px;
}

.ec-faq-item {
    border-bottom: 1px solid var(--border-light);
}

.ec-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    gap: 16px;
}

.ec-faq-q i {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-gray);
    transition: transform 0.3s ease;
}

.ec-faq-item.open .ec-faq-q {
    color: var(--primary-teal);
}

.ec-faq-item.open .ec-faq-q i {
    transform: rotate(180deg);
}

.ec-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.ec-faq-item.open .ec-faq-a {
    max-height: 200px;
}

.ec-faq-a p {
    font-size: 13.5px;
    color: var(--text-gray);
    line-height: 1.7;
    padding-bottom: 18px;
}

/* ---- Clear button ---- */
.ec-clear-btn {
    background: transparent;
}

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

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

@media (max-width: 960px) {
    .ec-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ec-layout {
        grid-template-columns: 1fr;
    }

    .ec-sidebar {
        display: none;
    }

    .ec-wishlist-btn {
        opacity: 1 !important;
    }

    .ec-card-actions {
        transform: translateY(0) !important;
        opacity: 1 !important;
        position: absolute !important;
        bottom: 0;
    }

    .ec-product-img-box {
        aspect-ratio: 4 / 5;
    }

    .ec-mobile-controls {
        display: flex;
    }

    .ec-sort-desktop {
        display: none;
    }

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

    .ec-banner-title {
        font-size: 44px;
    }
}

@media (max-width: 600px) {
    .ec-banner {
        height: 260px;
    }

    .ec-banner-title {
        font-size: 32px;
    }

    .ec-banner-desc {
        font-size: 14px;
    }

    .ec-banner-content {
        padding: 0 20px;
    }

    .ec-wishlist-btn {
        opacity: 1 !important;
    }

    .ec-card-actions {
        transform: translateY(0) !important;
        opacity: 1 !important;
        position: absolute !important;
        bottom: 0;
    }

    .ec-product-img-box {
        aspect-ratio: 4 / 5;
    }

    .ec-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ec-seo-grid {
        grid-template-columns: 1fr;
    }

    .ec-seo-title {
        font-size: 26px;
    }

    .ec-seo-section {
        padding: 40px 0;
    }

    .ec-layout {
        padding-top: 20px;
    }
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Category Tabs (Topbar) ---- */
.ec-category-tabs::-webkit-scrollbar {
    display: none;
}

.ec-category-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 0;
}

.ec-cat-tab {
    cursor: pointer;
}

.ec-cat-tab span {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-gray);
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fff;
}

.ec-cat-tab:hover span {
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.ec-cat-tab input[type=radio]:checked+span {
    color: #fff;
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    font-weight: 600;
}