/**
 * RSA Shop Styles
 * Styling for archive-rsa_product, taxonomy-rsa_product_cat, single-rsa_product templates
 */

/* ========================================
   Hide default theme pheader on product pages
   ======================================== */
.single-rsa_product .page-header,
.single-rsa_product .pheader,
.single-rsa_product #pheader {
    display: none !important;
}

/* Remove entry-content padding on shop pages */
.single-rsa_product .entry-content,
.post-type-archive-rsa_product .entry-content,
.tax-rsa_product_cat .entry-content {
    padding-top: 0 !important;
}

/* ========================================
   Wrapper
   ======================================== */
.rsa-shop-content-area {
    background: #F8F9FB;
    position: relative;
    overflow: hidden;
}
.rsa-shop-content-area::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect x='1' y='1' width='58' height='58' fill='none' stroke='%23141D38' stroke-width='0.5' opacity='0.06'/%3E%3Crect x='15' y='15' width='30' height='30' fill='none' stroke='%23141D38' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}
.rsa-shop-content-area > .rsa-shop-wrap {
    position: relative;
    z-index: 1;
}

/* ========================================
   Wrapper
   ======================================== */
.rsa-shop-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================
   Breadcrumbs (dark bar - archive/taxonomy)
   ======================================== */
.rsa-shop-breadcrumbs {
    background: #262051;
    padding: 18px 0;
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

.rsa-shop-breadcrumbs a,
.rsa-shop-breadcrumbs a:visited {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rsa-shop-breadcrumbs a:hover {
    color: #43BAFF;
}

.rsa-shop-breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

.rsa-shop-breadcrumbs span.current {
    color: #ffffff;
}

/* Inline breadcrumbs (single product - inside hero) */
.rsa-shop-breadcrumbs--inline {
    background: transparent;
    padding: 0 0 30px 0;
}

.rsa-shop-breadcrumbs--inline a,
.rsa-shop-breadcrumbs--inline a:visited {
    color: #6c757d !important;
    text-decoration: none !important;
}

.rsa-shop-breadcrumbs--inline a:hover {
    color: #43BAFF;
}

.rsa-shop-breadcrumbs--inline .sep {
    color: #adb5bd;
}

.rsa-shop-breadcrumbs--inline span.current {
    color: #1B1D21;
}

/* ========================================
   Page Titles & Intro
   ======================================== */
.rsa-shop-page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #1B1D21;
    margin-bottom: 16px;
    line-height: 1.2;
}

.rsa-shop-intro {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 800px;
}

.rsa-shop-cat-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 800px;
}

/* ========================================
   Category Grid (archive page)
   ======================================== */
.rsa-shop-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rsa-shop-category-card {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsa-shop-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rsa-shop-category-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #1B1D21;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rsa-shop-category-card .count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #6c757d;
}

/* ========================================
   Product Grid (category + related)
   ======================================== */
.rsa-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rsa-shop-product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsa-shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rsa-shop-card-image-link {
    display: block;
    text-decoration: none;
}

.rsa-shop-product-card img.rsa-shop-card-img,
.rsa-shop-product-card .rsa-shop-card-image-link img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.rsa-shop-card-body {
    padding: 16px;
}

.rsa-shop-card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.rsa-shop-card-body h3 a {
    color: #1B1D21;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rsa-shop-card-body h3 a:hover {
    color: #43BAFF;
}

/* ========================================
   Stock Badges
   ======================================== */
.rsa-shop-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    line-height: 1.5;
}

.rsa-shop-stock-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rsa-shop-stock-badge--in-stock {
    color: #28a745;
}

.rsa-shop-stock-badge--in-stock::before {
    background: #28a745;
}

.rsa-shop-stock-badge--out-of-stock {
    color: #dc3545;
}

.rsa-shop-stock-badge--out-of-stock::before {
    background: #dc3545;
}

/* ========================================
   No Image Placeholder
   ======================================== */
.rsa-shop-no-image {
    background: #e9ecef;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.rsa-shop-no-image--large {
    border-radius: 8px;
    font-size: 16px;
}

/* ========================================
   Single Product - Hero Section
   ======================================== */
.rsa-shop-product-hero {
    background: #F8F9FB;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect x='1' y='1' width='58' height='58' fill='none' stroke='%23141D38' stroke-width='0.5' opacity='0.06'/%3E%3Crect x='15' y='15' width='30' height='30' fill='none' stroke='%23141D38' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
    padding: 40px 0 60px;
}

.rsa-shop-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.rsa-shop-product-image .rsa-shop-main-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.rsa-shop-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.rsa-shop-gallery-img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

.rsa-shop-gallery-img:hover {
    opacity: 0.8;
}

.rsa-shop-gallery-img--active {
    border-color: #43BAFF;
    opacity: 1;
}

.rsa-shop-product-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #1B1D21;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.rsa-shop-sku {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 16px 0;
}

.rsa-shop-product-content .rsa-shop-stock-badge {
    margin-bottom: 24px;
}

.rsa-shop-product-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-top: 24px;
}

.rsa-shop-product-desc p {
    margin-bottom: 16px;
}

/* ========================================
   Single Product - CTA Section
   ======================================== */
.rsa-shop-product-cta {
    background: #1c1842;
    padding: 60px 0;
    text-align: center;
}

.rsa-shop-cta-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #43BAFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.rsa-shop-product-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.rsa-shop-cta-info {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rsa-shop-cta-info strong {
    color: #ffffff;
}

/* Google Reviews Badge */
.rsa-shop-cta-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rsa-shop-cta-reviews-brand {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.rsa-shop-cta-reviews-rating {
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
}

.rsa-shop-cta-reviews-stars {
    display: inline-flex;
    gap: 1px;
}

.rsa-shop-cta-reviews-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.2s ease;
}

.rsa-shop-cta-reviews-link:hover {
    color: #43BAFF !important;
}

/* CTA Buttons */
.rsa-shop-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rsa-shop-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.rsa-shop-cta-btn--call {
    background: #43BAFF;
    color: #ffffff !important;
}

.rsa-shop-cta-btn--call:hover {
    background: #3aa8e6;
    color: #ffffff !important;
}

.rsa-shop-cta-btn--visit {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.rsa-shop-cta-btn--visit:hover {
    border-color: #43BAFF;
    color: #43BAFF !important;
}

/* ========================================
   Related Products
   ======================================== */
.rsa-shop-related {
    padding: 60px 0;
    background: #ffffff;
}

.rsa-shop-related h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #1B1D21;
    margin: 0 0 30px 0;
}

/* ========================================
   Pagination
   ======================================== */
.rsa-shop-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.rsa-shop-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #1B1D21;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rsa-shop-pagination .page-numbers:hover {
    border-color: #43BAFF;
    color: #43BAFF;
}

.rsa-shop-pagination .page-numbers.current {
    background: #43BAFF;
    color: #ffffff;
    border-color: #43BAFF;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .rsa-shop-categories {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .rsa-shop-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .rsa-shop-product-content h1 {
        font-size: 26px;
    }

    .rsa-shop-page-title {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .rsa-shop-categories {
        grid-template-columns: 1fr;
    }

    .rsa-shop-grid {
        grid-template-columns: 1fr;
    }

    .rsa-shop-hero-grid {
        grid-template-columns: 1fr;
    }

    .rsa-shop-product-content h1 {
        font-size: 24px;
    }

    .rsa-shop-page-title {
        font-size: 26px;
    }

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

    .rsa-shop-product-cta {
        padding: 40px 0;
    }

    .rsa-shop-product-cta h2 {
        font-size: 22px;
    }

    .rsa-shop-related {
        padding: 40px 0;
    }

    .rsa-shop-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
