/**
 * Collection Details Page Styles - Consolidated
 * Combines collection-page.css and collection-modern.css
 * Clean, organized, and optimized
 */

:root {
    --collection-color: #212529;
    --collection-color-rgb: 33, 37, 41;
    --hydrate-accent: #212529;
    --text-align: left;

    --collection-primary: #212529;
    --collection-secondary: #212529;
    --collection-gradient: linear-gradient(135deg, #212529 0%, #212529 100%);
    --collection-gradient-reverse: linear-gradient(135deg, #212529 0%, #212529 100%);

    --collection-accent: #212529;
    --collection-light: #ffffff;
    --collection-dark: #000000;
    --collection-text: #212529;
    --collection-text-light: #495057;
    --collection-white: #ffffff;
    --collection-black: #000000;
    --collection-gray-100: #f7fafc;
    --collection-gray-200: #edf2f7;
    --collection-gray-300: #e2e8f0;

    --collection-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --collection-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --collection-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --collection-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.25);
    --collection-shadow-purple: 0 2px 8px rgba(0, 0, 0, 0.08);

    --collection-radius: 0;
    --collection-radius-lg: 0;
    --collection-radius-xl: 0;

    --collection-transition: all 0.3s ease;
    --collection-transition-slow: all 0.5s ease;
}

.collection-page-wrapper {
    min-height: 100vh;
    background: transparent;
    overflow-x: hidden;
}

.full-width-visual-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ========================================
   COLLECTION BANNER SECTION
   ======================================== */

.collection-banner {
    width: 100%;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    margin-bottom: 10px;
    margin-top: 0;
    padding: 100px 0;
    min-height: 600px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-banner::before {
    display: none;
}

.collection-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.collection-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
}

.collection-banner-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.collection-banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.collection-banner-breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
    display: none;
}

.collection-banner .separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
}

.collection-banner a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.collection-banner a:hover {
    color: white;
}

/* Responsive styles for collection banner */
@media (max-width: 768px) {
    .collection-banner {
        min-height: 400px;
        padding: 80px 0;
        background-size: cover;
        background-position: center center;
    }

    .collection-banner-content {
        padding: 0 20px;
    }

    .collection-banner-title {
        font-size: 32px;
    }

    .collection-banner-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .collection-banner {
        min-height: 350px;
        padding: 60px 0;
        background-size: cover;
        background-position: center center;
    }

    .collection-banner-content {
        padding: 0 15px;
    }

    .collection-banner-title {
        font-size: 28px;
    }

    .collection-banner-subtitle {
        font-size: 14px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--collection-primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--collection-text);
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

[dir="rtl"] .section-title {
    text-align: center;
}

.section-underline {
    display: none;
    justify-content: center;
    margin-top: 20px;
}

.section-underline span {
    width: 80px;
    height: 4px;
    background: var(--collection-gradient);
    border-radius: 0;
    position: relative;
}

.section-underline span::before,
.section-underline span::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 20px;
    background: var(--collection-gradient);
    border-radius: 0;
    top: 0;
}

.section-underline span::before {
    left: -30px;
    opacity: 0.6;
}

.section-underline span::after {
    right: -30px;
    opacity: 0.6;
}

.best-sellers-section {
    padding: 15px 0;
    background: transparent;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-items: center;
}

.best-sellers-grid .product-card-ultimate {
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.best-sellers-slider {
    position: relative;
    padding: 0 60px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--collection-white);
    border-radius: 50%;
    box-shadow: var(--collection-shadow-md);
    transition: var(--collection-transition);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 24px;
    height: 24px;
    fill: var(--collection-primary);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--collection-gradient);
    transform: scale(1.1);
}

.swiper-button-prev:hover svg,
.swiper-button-next:hover svg {
    fill: var(--collection-white);
}

.swiper-pagination {
    position: relative;
    margin-top: 40px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--collection-gray-300);
    opacity: 1;
    transition: var(--collection-transition);
}

.swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 0;
    background: var(--collection-gradient);
}

.description-section {
    padding: 15px 0;
    background: #ffffff;
}

.description-box {
    background: #f8f9fa;
    padding: 40px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.description-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.02em;
    color: #212529;
    margin-bottom: 25px;
    text-align: left;
}

[dir="rtl"] .description-title {
    text-align: right;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    text-align: left;
}

[dir="rtl"] .description-content {
    text-align: right;
}

.description-content p {
    margin: 0 0 15px 0;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.all-products-section {
    padding: 15px 0;
    background: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-items: center;
}

.products-grid .product-card-ultimate {
    width: 280px;
    max-width: 100%;
}

.product-card {
    text-align: left;
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: none;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card .product-image-container {
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    width: 100%;
    height: 450px;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.15);
}

.product-card-ultimate {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card-ultimate .card-image-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-card-ultimate .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-ultimate:hover .card-image {
    transform: scale(1.15);
}

.product-card-ultimate .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-ultimate .card-category {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-card-ultimate .card-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.5;
}

.product-card-ultimate .card-title a {
    color: #212529;
    text-decoration: none;
}

.product-card-ultimate .card-title a:hover {
    color: #212529;
    text-decoration: none;
}

.product-card-ultimate .card-price-section {
    margin: 8px 0;
}

.product-card-ultimate .price-current {
    font-weight: bold;
    color: #000;
    font-size: 1.1rem;
}

.product-card-ultimate .price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-weight: normal;
    margin-left: 8px;
}

.product-card-ultimate .card-action {
    margin-top: auto;
}

.product-card-ultimate .add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #000;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    line-height: 20px;
}

.product-card-ultimate .add-to-cart-btn:hover {
    background: #000;
    color: white;
}

.product-card-ultimate .add-to-cart-btn:disabled {
    background: #6c757d;
    border-color: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

.product-card-ultimate .card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.product-card-ultimate .badge {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-ultimate .badge-sale {
    background: #dc3545;
}

.product-card-ultimate .badge-new {
    background: #28a745;
}

.product-card-ultimate .badge-featured {
    background: #007bff;
}

.product-card-ultimate .quick-actions {
    display: none;
}

.no-products-found {
    padding: 80px 0;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: var(--collection-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-svg {
    width: 60px;
    height: 60px;
    fill: var(--collection-white);
}

.empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--collection-text);
    margin-bottom: 15px;
}

.empty-state-description {
    font-size: 18px;
    color: var(--collection-text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-action {
    margin-top: 30px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

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

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--collection-white);
    color: var(--collection-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--collection-transition);
    box-shadow: var(--collection-shadow-sm);
}

.pagination .page-link:hover {
    background: var(--collection-gradient);
    color: var(--collection-white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--collection-gradient);
    color: var(--collection-white);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.other-collections-section {
    padding: 15px 0;
    background: #f8f9fa;
}

.other-collections-slider {
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    transition-timing-function: linear;
}

.collection-slide {
    display: flex;
    gap: 15px;
}

.other-collection-card {
    background: white;
    border: 1px solid #eee;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.other-collection-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.other-collection-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.other-collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-collection-card:hover .other-collection-image img {
    transform: scale(1.1);
}

.other-collection-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.other-collection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.other-collection-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.other-collection-link {
    color: var(--collection-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.other-collection-link:hover {
    color: var(--collection-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

body[dir="rtl"] .collection-page-wrapper {
    direction: rtl;
}

body[dir="rtl"] .animated-btn svg {
    transform: rotate(180deg);
}

body[dir="rtl"] .animated-btn:hover svg {
    transform: rotate(180deg) translateX(-5px);
}

body[dir="rtl"] .swiper-button-prev {
    left: auto;
    right: 10px;
}

body[dir="rtl"] .swiper-button-next {
    right: auto;
    left: 10px;
}

[dir="rtl"] .product-card-ultimate {
    direction: rtl;
}

[dir="rtl"] .product-card-ultimate .card-category {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .product-card-ultimate .card-category a {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .product-card-ultimate .card-title {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .product-card-ultimate .card-title a {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .product-card-ultimate .card-price-section {
    text-align: right;
}


.collection-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--collection-gray-300);
    border-top-color: var(--collection-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 1024px) {
    .best-sellers-slider {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .animated-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        justify-items: center;
    }

    .products-grid .product-card-ultimate {
        width: 220px;
        max-width: 100%;
    }

    .best-sellers-slider {
        padding: 0;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .description-section,
    .best-sellers-section,
    .all-products-section,
    .other-collections-section {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        width: 100%;
        justify-items: center;
    }

    .products-grid .product-card-ultimate {
        width: 100%;
        max-width: 200px;
    }

    .description-section,
    .best-sellers-section,
    .all-products-section,
    .other-collections-section {
        padding: 8px 0;
    }
}
