/**
 * Shared Shop by Category Component Styles
 * Can be used on main site without loading full jewelry CSS
 */

/* Import Nunito Sans font */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

/* Categories Section */
.jewelry-categories.shared-jewelry-component {
    padding: 80px 0;
    --jewelry-primary: #86614a;
    --jewelry-text: #614535;
    --jewelry-text-light: #666666;
    --jewelry-bg-light: #fcf7f1;
    --jewelry-white: #ffffff;
    --jewelry-dark: #614535;
    --jewelry-border: #E5E5E5;
    --jewelry-accent: #C9A96E;
    --jewelry-font-primary: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --jewelry-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jewelry-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: var(--jewelry-font-primary);
}

.jewelry-categories.shared-jewelry-component .jewelry-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.jewelry-categories.shared-jewelry-component .jewelry-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.jewelry-categories.shared-jewelry-component .jewelry-section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #4f6073;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.jewelry-categories.shared-jewelry-component .jewelry-section-header p {
    font-size: 18px;
    color: var(--jewelry-text-light);
    margin: 0;
    line-height: 1.6;
    display: none;
}

/* Category Grid */
.shared-jewelry-component .jewelry-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

/* Category Card */
.shared-jewelry-component .jewelry-category-card {
    text-decoration: none;
    display: block;
    border-radius: 0px;
    overflow: hidden;
    transition: var(--jewelry-transition);
}

@media (hover: hover) and (pointer: fine) {
    .shared-jewelry-component .jewelry-category-card:hover {
        transform: translateY(-4px);
        box-shadow: unset;
    }
}

/* Category Image */
.shared-jewelry-component .jewelry-category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--jewelry-bg-light);
    border: 1px solid #25426438;
    border-radius: 10px;
}

.shared-jewelry-component .jewelry-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--jewelry-transition);
}

@media (hover: hover) and (pointer: fine) {
    .shared-jewelry-component .jewelry-category-card:hover .jewelry-category-image img {
        transform: scale(1.05);
    }
}

/* Category Overlay */
.shared-jewelry-component .jewelry-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--jewelry-dark), transparent);
    padding: 24px;
    opacity: 0;
    transition: var(--jewelry-transition);
    height: 40px;
    display: flex;
    align-items: flex-end;
}

@media (hover: hover) and (pointer: fine) {
    .shared-jewelry-component .jewelry-category-card:hover .jewelry-category-overlay {
        opacity: 1;
    }
}

.shared-jewelry-component .jewelry-category-cta {
    color: var(--jewelry-white);
    font-weight: 500;
}

/* Category Info */
.shared-jewelry-component .jewelry-category-info {
    padding: 16px;
    text-align: center;
}

.shared-jewelry-component .jewelry-category-name {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #4f6073;
}

.shared-jewelry-component .jewelry-category-count {
    font-size: 14px;
    color: var(--jewelry-text-light);
    margin: 0;
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .shared-jewelry-component .jewelry-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .jewelry-categories.shared-jewelry-component {
        padding: 56px 0;
    }

    .jewelry-categories.shared-jewelry-component .jewelry-section-header {
        margin-bottom: 32px;
    }

    .jewelry-categories.shared-jewelry-component .jewelry-section-header h2 {
        font-size: 28px;
    }

    .jewelry-categories.shared-jewelry-component .jewelry-section-header p {
        font-size: 15px;
    }

    .shared-jewelry-component .jewelry-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .shared-jewelry-component .jewelry-category-count {
        display: none;
    }

    .shared-jewelry-component .jewelry-category-card {
        min-height: auto;
    }

    .shared-jewelry-component .jewelry-category-image {
        height: 140px;
        aspect-ratio: unset;
    }

    .shared-jewelry-component .jewelry-category-name {
        font-size: 14px;
    }

    .shared-jewelry-component .jewelry-category-info {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .shared-jewelry-component .jewelry-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shared-jewelry-component .jewelry-category-image {
        height: 110px;
        border-radius: 5px;
    }

    .shared-jewelry-component .jewelry-category-name {
        font-size: 12px;
    }

    .shared-jewelry-component .jewelry-category-info {
        padding: 10px;
    }
}

