/**
 * OneHira Catalog - Enhanced Product Card Styles
 * Based on Breakdance Global Settings
 */

/* Product Card Container */
.ek-oh-product-card,
.ek-product-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 0.0625rem solid #F0F2F8;
    transition: all 0.3s ease;
}

.ek-oh-product-card:hover,
.ek-product-card:hover {
    border-color: #022D6B;
    box-shadow: 0 0.25rem 0.75rem rgba(2, 45, 107, 0.1);
}

/* Product Link */
.ek-oh-product-link,
.ek-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.ek-oh-product-image,
.ek-product-image {
    margin-bottom: 1rem;
    width: 100%;
    height: 15rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ek-oh-product-image img,
.ek-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain!important;
    object-position: center;
}

/* Product Content */
.ek-oh-product-content,
.ek-product-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Brand Badge - Using Text XS preset */
.ek-oh-product-card .ek-oh-product-brand,
.ek-product-card .ek-product-brand {
    font-family: 'Readex Pro', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #FA7315 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03125rem !important;
    display: inline-block !important;
}

/* Product Title - Using heading-quaternary preset */
.ek-oh-product-card .ek-oh-product-title,
.ek-product-card .ek-product-title {
    font-family: 'Readex Pro', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: #022D6B !important;
    margin: 0 !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.ek-oh-product-link:hover .ek-oh-product-title,
.ek-product-link:hover .ek-product-title {
    color: #FA7315 !important;
}

/* Product Category - Using Small Text preset */
.ek-oh-product-card .ek-oh-product-category,
.ek-product-card .ek-product-category {
    font-family: 'Readex Pro', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* Product Description */
.ek-oh-product-card .ek-oh-product-description,
.ek-product-card .ek-product-description {
    font-family: 'Readex Pro', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    color: #000000 !important;
    margin-top: 0.25rem !important;
}

/* ===================================
   CATEGORY ACCORDION STYLES
   Neutral, inherits site colors
   =================================== */

/* Accordion Container */
.ek-oh-category-accordion {
    font-family: inherit;
    max-width: 100%;
    margin: 0 auto;
}

/* Accordion Item */
.ek-oh-accordion-item {
    border-bottom: 1px solid currentColor;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.ek-oh-accordion-item:first-child {
    border-top: 1px solid currentColor;
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Accordion Header (Button) */
.ek-oh-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    color: inherit;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.ek-oh-accordion-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.ek-oh-accordion-header:focus {
    outline: 2px solid currentColor;
    outline-color: rgba(0, 0, 0, 0.3);
    outline-offset: -2px;
}

.ek-oh-accordion-header.active {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

/* Accordion Title */
.ek-oh-accordion-title {
    flex: 1;
    text-align: left;
}

/* Product Count Badge */
.ek-oh-accordion-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    margin-left: 0.5rem;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    opacity: 0.7;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ek-oh-accordion-header.active .ek-oh-accordion-count,
.ek-oh-accordion-header:hover .ek-oh-accordion-count {
    background: rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* Chevron Icon */
.ek-oh-accordion-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ek-oh-accordion-header:hover .ek-oh-accordion-icon {
    opacity: 0.8;
}

.ek-oh-accordion-header.active .ek-oh-accordion-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Accordion Content */
.ek-oh-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    background: transparent;
}

.ek-oh-accordion-content.active {
    max-height: 2000px;
    opacity: 1;
}

/* Accordion Body */
.ek-oh-accordion-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

/* Product List */
.ek-oh-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.ek-oh-product-list li {
    margin: 0;
    padding: 0;
}

/* Product Links */
.ek-oh-product-link {
    display: block;
    padding: 0.75rem 1rem;
    background: transparent;
    border-radius: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ek-oh-product-link:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.ek-oh-product-link:focus {
    outline: 2px solid currentColor;
    outline-color: rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

/* Empty Message */
.ek-oh-empty-message {
    color: inherit;
    opacity: 0.6;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
    padding: 0.75rem 0;
}

/* Admin Notice (shown only to admins) */
.ek-oh-admin-notice {
    display: none;
}

body.logged-in .ek-oh-admin-notice {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ek-oh-accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .ek-oh-accordion-body {
        padding: 0 1rem 1rem 1rem;
    }
    
    .ek-oh-product-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   VARIANTS TABLE STYLES
   Professional and responsive table
   =================================== */

/* Variants Container */
.onehira-variants {
    margin: 2rem 0;
}

.onehira-variants h3 {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #022D6B;
    margin-bottom: 1.25rem;
}

/* Table Wrapper - Enables horizontal scrolling on mobile */
.onehira-variants-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table Base Styles */
.onehira-variants-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    min-width: 600px; /* Ensures table doesn't get too cramped */
}

/* Table Header */
.onehira-variants-table thead {
    background: #022D6B;
    color: #FFFFFF;
}

.onehira-variants-table thead th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 2px solid #FA7315;
    white-space: nowrap;
}

/* Table Body */
.onehira-variants-table tbody tr {
    border-bottom: 1px solid #F0F2F8;
    transition: background-color 0.2s ease;
}

.onehira-variants-table tbody tr:last-child {
    border-bottom: none;
}

.onehira-variants-table tbody tr:hover {
    background-color: #F9FAFB;
}

.onehira-variants-table tbody td {
    padding: 0.875rem 0.75rem;
    color: #333333;
    vertical-align: middle;
}

/* Zebra Striping (optional, alternate row colors) */
.onehira-variants-table tbody tr:nth-child(even) {
    background-color: #FAFBFC;
}

.onehira-variants-table tbody tr:nth-child(even):hover {
    background-color: #F3F4F6;
}

/* Responsive Table Styles */
@media (max-width: 768px) {
    .onehira-variants-table-wrapper {
        margin: 1rem -1rem; /* Extend to edges on mobile */
        border-radius: 0;
    }
    
    .onehira-variants-table {
        font-size: 0.8125rem;
        min-width: 500px;
    }
    
    .onehira-variants-table thead th,
    .onehira-variants-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .onehira-variants h3 {
        font-size: 1.25rem;
    }
}

/* Variants List (default bullet list) */
.onehira-variants ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.onehira-variants ul li {
    padding: 0.375rem 0;
    color: #333333;
    line-height: 1.6;
}

/* ===================================
   PRODUCTS SLIDER STYLES
   Modern slider with navigation
   =================================== */

/* Slider Container */
.ek-oh-products-slider-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    padding: 0 3rem; /* Space for navigation buttons */
}

.ek-oh-products-slider {
    overflow: hidden;
}

/* Swiper Slide */
.ek-oh-products-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    width: var(--slide-width-mobile, 100%) !important;
}

@media (min-width: 768px) {
    .ek-oh-products-slider .swiper-slide {
        width: var(--slide-width-tablet, 48%) !important;
    }
}

@media (min-width: 1024px) {
    .ek-oh-products-slider .swiper-slide {
        width: var(--slide-width-desktop, 23%) !important;
    }
}

.ek-oh-products-slider .swiper-slide > * {
    width: 100%;
}

/* Navigation Buttons */
.ek-oh-products-slider .swiper-button-next,
.ek-oh-products-slider .swiper-button-prev {
    width: 2.5rem;
    height: 2.5rem;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.ek-oh-products-slider .swiper-button-next:after,
.ek-oh-products-slider .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: 700;
    color: #022D6B;
}

.ek-oh-products-slider .swiper-button-next:hover,
.ek-oh-products-slider .swiper-button-prev:hover {
    background: #022D6B;
    transform: scale(1.1);
}

.ek-oh-products-slider .swiper-button-next:hover:after,
.ek-oh-products-slider .swiper-button-prev:hover:after {
    color: #FFFFFF;
}

.ek-oh-products-slider .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ek-oh-products-slider .swiper-button-disabled:hover {
    transform: none;
    background: #FFFFFF;
}

/* Pagination */
.ek-oh-products-slider .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: auto;
}

.ek-oh-products-slider .swiper-pagination-bullet {
    width: 0.625rem;
    height: 0.625rem;
    background: #D1D5DB;
    opacity: 1;
    transition: all 0.3s ease;
}

.ek-oh-products-slider .swiper-pagination-bullet-active {
    width: 1.5rem;
    border-radius: 0.3125rem;
    background: #FA7315;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ek-oh-products-slider-container {
        padding: 0 2rem;
    }
    
    .ek-oh-products-slider .swiper-button-next,
    .ek-oh-products-slider .swiper-button-prev {
        width: 2rem;
        height: 2rem;
    }
    
    .ek-oh-products-slider .swiper-button-next:after,
    .ek-oh-products-slider .swiper-button-prev:after {
        font-size: 0.875rem;
    }
    
    .ek-oh-products-slider .swiper-pagination {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ek-oh-products-slider-container {
        padding: 0;
    }
    
    /* Position buttons over the slider on very small screens */
    .ek-oh-products-slider .swiper-button-next,
    .ek-oh-products-slider .swiper-button-prev {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* ===================================
   CATEGORY GRID STYLES
   Cards for displaying product categories
   =================================== */

/* Category Grid Container */
.ek-oh-categories-grid {
    display: grid;
    gap: 1.25rem;
}

/* Category Card */
.ek-oh-category-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    border: 0.0625rem solid #F0F2F8;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.ek-oh-category-card:hover {
    border-color: #022D6B;
    box-shadow: 0 0.5rem 1.5rem rgba(2, 45, 107, 0.12);
    transform: translateY(-4px);
}

/* Category Link */
.ek-oh-category-card .ek-oh-category-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Category Image */
.ek-oh-category-card .ek-oh-category-image {
    width: 100%;
    height: 12rem;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ek-oh-category-card .ek-oh-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.ek-oh-category-card:hover .ek-oh-category-image img {
    transform: scale(1.05);
}

/* Category Content */
.ek-oh-category-card .ek-oh-category-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    text-align: left;
    align-items: flex-start;
}

/* Category Title */
.ek-oh-category-card .ek-oh-category-title {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #022D6B;
    margin: 0;
    transition: color 0.2s ease;
}

.ek-oh-category-card:hover .ek-oh-category-title {
    color: #FA7315;
}

/* Category Count Badge */
.ek-oh-category-card .ek-oh-category-count {
    display: inline-block;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    width: fit-content;
}

/* Category Description */
.ek-oh-category-card .ek-oh-category-description {
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
    flex-grow: 1;
}

/* View Products Link */
.ek-oh-category-card .ek-oh-category-view-link {
    display: inline-block;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FA7315;
    margin-top: auto;
    padding-top: 0.5rem;
    transition: all 0.2s ease;
}

.ek-oh-category-card:hover .ek-oh-category-view-link {
    color: #022D6B;
    transform: translateX(4px);
}

/* No Image Card Style */
.ek-oh-category-card.no-image .ek-oh-category-content {
    padding: 1.5rem;
}

.ek-oh-category-card.no-image .ek-oh-category-title {
    font-size: 1.375rem;
}

/* No Categories Message */
.ek-oh-no-categories {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B7280;
    font-size: 1rem;
    font-style: italic;
}

/* Responsive Category Cards */
@media (max-width: 768px) {
    .ek-oh-category-card .ek-oh-category-image {
        height: 10rem;
    }
    
    .ek-oh-category-card .ek-oh-category-title {
        font-size: 1.125rem;
    }
    
    .ek-oh-category-card .ek-oh-category-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .ek-oh-category-card .ek-oh-category-image {
        height: 8rem;
    }
    
    .ek-oh-category-card:hover {
        transform: none; /* Disable lift effect on mobile */
    }
}

/* ===================================
   APPLICATION BADGE STYLES
   Small badges displayed on product cards
   =================================== */

/* Application Badges Container */
.ek-oh-product-applications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

/* Individual Application Badge */
.ek-oh-product-app-badge {
    display: inline-block;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.1875rem 0.5rem;
    border-radius: 1rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ek-oh-product-app-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ===================================
   APPLICATION GRID STYLES
   Cards for displaying product applications
   =================================== */

/* Application Grid Container */
.ek-oh-applications-grid {
    display: grid;
    gap: 1.25rem;
}

/* Application Card */
.ek-oh-application-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    border: 0.0625rem solid #F0F2F8;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.ek-oh-application-card:hover {
    border-color: #10B981;
    box-shadow: 0 0.5rem 1.5rem rgba(16, 185, 129, 0.12);
    transform: translateY(-4px);
}

/* Application Link */
.ek-oh-application-card .ek-oh-application-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Application Image */
.ek-oh-application-card .ek-oh-application-image {
    width: 100%;
    height: 12rem;
    overflow: hidden;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ek-oh-application-card .ek-oh-application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.ek-oh-application-card:hover .ek-oh-application-image img {
    transform: scale(1.05);
}

/* Application Content */
.ek-oh-application-card .ek-oh-application-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    text-align: left;
    align-items: flex-start;
}

/* Application Title */
.ek-oh-application-card .ek-oh-application-title {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #022D6B;
    margin: 0;
    transition: color 0.2s ease;
}

.ek-oh-application-card:hover .ek-oh-application-title {
    color: #10B981;
}

/* Application Count Badge */
.ek-oh-application-card .ek-oh-application-count {
    display: inline-block;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    width: fit-content;
}

/* Application Description */
.ek-oh-application-card .ek-oh-application-description {
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
    flex-grow: 1;
}

/* View Products Link */
.ek-oh-application-card .ek-oh-application-view-link {
    display: inline-block;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #10B981;
    margin-top: auto;
    padding-top: 0.5rem;
    transition: all 0.2s ease;
}

.ek-oh-application-card:hover .ek-oh-application-view-link {
    color: #022D6B;
    transform: translateX(4px);
}

/* No Image Card Style */
.ek-oh-application-card.no-image .ek-oh-application-content {
    padding: 1.5rem;
}

.ek-oh-application-card.no-image .ek-oh-application-title {
    font-size: 1.375rem;
}

/* No Applications Message */
.ek-oh-no-applications {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B7280;
    font-size: 1rem;
    font-style: italic;
}

/* Responsive Application Cards */
@media (max-width: 768px) {
    .ek-oh-application-card .ek-oh-application-image {
        height: 10rem;
    }
    
    .ek-oh-application-card .ek-oh-application-title {
        font-size: 1.125rem;
    }
    
    .ek-oh-application-card .ek-oh-application-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .ek-oh-application-card .ek-oh-application-image {
        height: 8rem;
    }
    
    .ek-oh-application-card:hover {
        transform: none; /* Disable lift effect on mobile */
    }
}

/* ===================================
   PRODUCT FILES DOWNLOAD LIST
   Styled download links for attachments
   =================================== */

/* Files Container */
.onehira-product-files {
    margin: 2rem 0;
}

.onehira-product-files h3 {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #022D6B;
    margin-bottom: 1.25rem;
}

/* File List */
.onehira-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* File Item */
.onehira-file-item {
    margin: 0;
    padding: 0;
}

.onehira-file-item a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.onehira-file-item a:hover {
    background: #F9FAFB;
    border-color: #022D6B;
    box-shadow: 0 2px 8px rgba(2, 45, 107, 0.08);
}

/* File Icon */
.onehira-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

.onehira-file-icon.file-icon-pdf {
    background: #FEE2E2;
    color: #DC2626;
}

.onehira-file-icon.file-icon-image {
    background: #D1FAE5;
    color: #059669;
}

.onehira-file-icon.file-icon-doc {
    background: #DBEAFE;
    color: #2563EB;
}

.onehira-file-icon.file-icon-xls {
    background: #D1FAE5;
    color: #047857;
}

.onehira-file-icon.file-icon-generic {
    background: #F3F4F6;
    color: #6B7280;
}

/* File Info */
.onehira-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.onehira-file-name {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #022D6B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.onehira-file-item a:hover .onehira-file-name {
    color: #FA7315;
}

.onehira-file-type {
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6B7280;
}

/* File Size */
.onehira-file-size {
    font-family: 'Readex Pro', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9CA3AF;
    flex-shrink: 0;
    padding-left: 1rem;
}

/* Download Arrow Icon (optional - add via CSS) */
.onehira-file-item a::after {
    content: '↓';
    font-size: 1.125rem;
    color: #9CA3AF;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.onehira-file-item a:hover::after {
    opacity: 1;
    transform: translateY(0);
    color: #FA7315;
}

/* Responsive Files */
@media (max-width: 768px) {
    .onehira-product-files h3 {
        font-size: 1.25rem;
    }
    
    .onehira-file-item a {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .onehira-file-icon {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.625rem;
    }
    
    .onehira-file-name {
        font-size: 0.9375rem;
    }
    
    .onehira-file-size {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .onehira-file-item a {
        flex-wrap: wrap;
    }
    
    .onehira-file-info {
        flex-basis: calc(100% - 3.25rem);
    }
    
    .onehira-file-size {
        width: 100%;
        padding-left: 3.25rem;
        padding-top: 0.25rem;
    }
    
    .onehira-file-item a::after {
        display: none;
    }
}

/* ===================================
   EXTERNAL LINK INDICATOR
   Icon shown on product cards that link externally
   =================================== */

/* Product Card - Position relative for icon positioning */
.ek-oh-product-card {
    position: relative;
}

/* External Link Icon */
.ek-oh-external-link-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(2, 45, 107, 0.9);
    border-radius: 0.375rem;
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.ek-oh-external-link-icon svg {
    width: 1rem;
    height: 1rem;
}

/* Hover state */
.ek-oh-product-card:hover .ek-oh-external-link-icon {
    background: #FA7315;
    transform: scale(1.1);
}

/* External link class on the anchor */
.ek-oh-product-link.ek-oh-external-link {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ek-oh-external-link-icon {
        width: 1.5rem;
        height: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .ek-oh-external-link-icon svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}