/* Products page styles - replacing Tailwind classes */

/* Section container */
.products-section-container {
    padding: 0;
    padding-top: 0;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 10002;
}

@media (min-width: 769px) {
    .products-section-container {
        padding: 0;
        padding-top: 0;
        padding-bottom: 100px;
        min-height: auto;
    }
}

.products-content-wrapper {
    max-width: 100%;
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 0;
}

@media (min-width: 769px) {
    .products-content-wrapper {
        padding-top: 0;
        max-width: 100%;
    }
}

/* Desktop header */
.products-desktop-header {
    display: none;
    margin-bottom: 24px;
}

@media (min-width: 769px) {
    .products-desktop-header {
        display: block;
    }
}

.products-desktop-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #021b79 0%, #0575E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.7s ease-out;
}

.products-desktop-title.visible {
    opacity: 1;
    transform: translateX(0);
}

.products-desktop-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #666666;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.7s ease-out;
    transition-delay: 100ms;
}

.products-desktop-subtitle.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Filters and search container */
.products-filters-search-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin-bottom: 16px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10001;
    background: transparent;
    padding: 16px 0.5rem;
}

@media (min-width: 769px) {
    .products-filters-search-container {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        padding: 8px 1rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
}

@media (min-width: 769px) {
    .products-filters-search-container {
        flex-direction: row;
    }
}

/* Filters container */
.products-filters-wrapper {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-filters-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (min-width: 769px) {
    .products-filters-wrapper {
        gap: 12px;
        width: auto;
    }
}

.products-filter-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    width: 100%;
}

@media (min-width: 769px) {
    .products-filter-item {
        height: 32px;
        width: 130px;
    }
}

.products-filter-icon {
    position: absolute;
    left: 8px;
    z-index: 10;
    color: #4b5563;
    font-size: 11px;
    pointer-events: none;
}

@media (min-width: 769px) {
    .products-filter-icon {
        left: 12px;
        font-size: 10px;
    }
}

.products-filter-select {
    height: 36px;
    padding: 0 6px 0 24px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'10\' height=\'10\' viewBox=\'0 0 12 12\'%3E%3Cpath fill=\'%23333333\' d=\'M6 9L1 4h10z\'/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 8px;
    width: 100%;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
    .products-filter-select {
        height: 32px;
        padding: 0 28px 0 28px;
        font-size: 11px;
        background-position: right 0.5rem center;
        background-size: 9px;
    }
}

/* Search container */
.products-search-wrapper {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    width: 100%;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .products-search-wrapper {
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
}

@media (min-width: 769px) {
    .products-search-wrapper {
        width: auto;
    }
}

.products-search-box {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 6px 12px;
    width: 100%;
    min-width: 0;
    transition: all 0.3s;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: visible !important;
    box-sizing: border-box;
    flex: 1 1 auto;
}

@media (max-width: 768px) {
    .products-search-box {
        width: auto;
        flex: 1 1 0%;
        min-width: 150px;
        max-width: calc(100% - 200px);
    }
}

@media (min-width: 769px) {
    .products-search-box {
        max-width: 280px;
        min-width: 200px;
        height: 32px;
        padding: 6px 12px;
        flex: 0 0 auto;
        flex-shrink: 1;
    }
}

.products-search-icon {
    margin-right: 8px;
    font-size: 12px;
    color: #4b5563;
}

@media (min-width: 769px) {
    .products-search-icon {
        margin-right: 8px;
        font-size: 11px;
    }
}

.products-search-input {
    flex: 1 1 0%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    color: #111827;
    overflow: visible;
    text-overflow: ellipsis;
    box-sizing: border-box;
    padding: 0;
}

@media (min-width: 769px) {
    .products-search-input {
        font-size: 12px;
    }
}

.products-search-input::placeholder {
    color: #9ca3af;
}

.products-search-clear {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
}

.products-search-clear:hover {
    background-color: #e5e7eb;
}

.products-search-clear.visible {
    display: flex;
}

.products-search-clear-icon {
    font-size: 10px;
    color: #4b5563;
}

/* Products section */
.products-section {
    margin-bottom: 32px;
}

.products-section-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 0;
}

.products-section-inner {
    overflow: visible;
    flex: 1;
    padding: 0;
    margin: 0;
}

/* Pagination */
.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

@media (max-width: 768px) {
    .products-pagination {
        margin-top: 0;
        gap: 8px;
        align-items: center;
        height: 36px;
        flex-shrink: 0;
    }
    
    /* Ukryj paginację dla nieaktywnej sekcji w mobile */
    .products-pagination[data-active="false"] {
        display: none !important;
    }
    
    .products-pagination[data-active="true"] {
        display: flex !important;
    }
}

.products-pagination-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    transition: background 0.3s;
    cursor: pointer;
    font-size: 11px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    box-sizing: border-box;
    position: relative;
    max-width: 36px;
    max-height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
}

.products-pagination-button *,
.products-pagination-button *::before,
.products-pagination-button *::after {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-width: 100%;
    max-height: 100%;
}

.products-pagination-button i {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    font-size: inherit;
}

.products-pagination-button:hover:not(:disabled) {
    background: #f9fafb;
}

.products-pagination-button:active:not(:disabled) {
    transform: scale(0.95);
}

.products-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

.products-pagination-button:disabled:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
    .products-pagination-button {
        width: 32px;
        height: 32px;
        font-size: 10px;
        max-width: 32px;
        max-height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

.products-pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 12px;
    height: 36px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    min-width: fit-content;
    max-width: fit-content;
    width: auto;
}

.products-pagination-info .pagination-current,
.products-pagination-info .pagination-total,
.products-pagination-info .pagination-separator {
    color: #111827 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.products-pagination .pagination-current,
.products-pagination .pagination-total,
.products-pagination .pagination-separator {
    color: #111827 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

@media (min-width: 769px) {
    .products-pagination-info {
        font-size: 12px;
        gap: 4px;
        height: 32px;
        padding: 6px 12px;
    }
    
    .products-pagination-info .pagination-current,
    .products-pagination-info .pagination-total,
    .products-pagination-info .pagination-separator {
        font-size: 12px !important;
    }
    
    .products-pagination .pagination-current,
    .products-pagination .pagination-total,
    .products-pagination .pagination-separator {
        font-size: 12px !important;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

@media (min-width: 769px) {
    .md\:hidden {
        display: none !important;
    }
    
    .md\:block {
        display: block !important;
    }
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.translate-x-0 {
    transform: translateX(0);
}

.-translate-x-100 {
    transform: translateX(-100px);
}

.translate-x-100 {
    transform: translateX(100px);
}

