/* Shop Pages Specific Styles */

/* Shop Hero Section */
.shop-hero {
    background: var(--isabelline);
    padding: 60px 50px;
    text-align: center;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-title .title-line {
    width: 200px;
    height: 1px;
    background: var(--text-dark);
}

.hero-title h1 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0;
}

.hero-gems {
    margin: 40px auto;
    max-width: 400px;
}

.gems-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
}

.hero-description p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Gemstone Search Section */
.gemstone-search {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
}

.gemstone-search h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.search-section {
    margin-bottom: 60px;
}

.section-divider {
    text-align: center;
    position: relative;
    margin: 40px 0 30px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

.section-divider span {
    background: white;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* Gemstone Types Grid */
.gemstone-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gem-type-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.gem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.gem-type-item:hover .gem-icon {
    border-color: var(--gold);
}

.gem-type-item.active .gem-icon {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 152, 95, 0.2);
}

.gem-type-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Jewellery Categories */
.jewellery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-item {
    text-align: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.category-item.active {
    border-color: var(--gold);
    background: rgba(184, 152, 95, 0.1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.category-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--border-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.category-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

/* Filter Section */
.filter-section {
    background: var(--isabelline);
    padding: 40px;
    border-radius: 8px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.price-filter,
.carat-filter,
.metal-filter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-filter.full-width {
    grid-column: 1 / -1;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.range-inputs span {
    color: var(--text-gray);
}

.range-slider {
    position: relative;
    height: 5px;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
}

input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.metal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metal-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
}

.metal-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.more-options-btn {
    text-align: center;
}

/* Your Choice Section */
.your-choice {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 50px;
}

.choice-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 40px 0;
}

.results-info {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-gray);
}

.results-count {
    font-size: 13px;
    color: var(--text-dark);
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sort-options label {
    font-size: 12px;
    color: var(--text-gray);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--isabelline);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--text-gray), var(--space-cadet));
    border-radius: 50%;
    opacity: 0.3;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.product-type {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.product-details {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 15px;
    min-height: 36px;
}

.product-price {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .choice-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-row,
    .filter-controls {
        grid-template-columns: 1fr;
    }

    .gemstone-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-title {
        gap: 20px;
    }

    .hero-title .title-line {
        width: 100px;
    }

    .hero-title h1 {
        font-size: 20px;
    }

    .gemstone-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .category-tabs {
        flex-direction: column;
    }

    .category-tab {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .shop-hero {
        padding: 40px 30px;
    }

    .hero-title .title-line {
        width: 50px;
    }

    .gemstone-search,
    .your-choice {
        padding: 0 30px;
    }

    .filter-section {
        padding: 20px;
    }

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

    .gem-icon {
        width: 60px;
        height: 60px;
    }
}
