/* Labels Page Styles */
:root {
    --primary-mint: #A3D7C9;
    --primary-blue: #82b2d9;
    --primary-orange: #edad61;
    --primary-purple: #a1a5e6;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
}

/* Modal açıkken body scroll'u engelle */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.label-modal__close {
    position: absolute;
    top: 15px;
    font-size: 45px;
}
.labels-page {
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    background-color: #F2F2F2;
    padding-bottom: 40px;
}

/* Hero Section */
.labels-hero {
    padding: 50px 20px 30px;
    text-align: center;
}

.labels-hero__title {
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.labels-hero__description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Labels Grid Section */
.labels-grid-section {
    padding: 0px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.labels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.label-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

/* remove static load animation delays; handled via reveal system */

.label-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    cursor:pointer;
}

.label-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.label-card:hover .label-card__icon {
    transform: scale(1.1);
}

.label-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 80px;
    max-height: 80px;
}

.label-card__icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.label-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1px;
    line-height: 1.3;
}

.label-card__description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 8px 0;
    text-align: center;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
}

.label-card__count {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.no-labels {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

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

/* Responsive */
@media (max-width: 968px) {
    .labels-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0px 1px;
        grid-template-columns: repeat(auto-fit, minmax(130px, 2fr));
    }
    
    .labels-hero {
        padding: 60px 20px 40px;
    }

    .labels-grid-section {
        padding: 0px 0px;
    }
}

@media (max-width: 640px) {


    .labels-hero {
        padding: 20px 0px 0px;
    }

    .labels-hero__title {
        font-size: 26px;
    }

    .label-card {
        padding: 15px 0px;
    }
    
    .label-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .label-card__icon svg {
        width: 30px;
        height: 30px;
    }

    .label-card__title {
        font-size: 14px;
    }
}

/* Modal Styles */
.label-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.label-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.label-modal__content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 1400px;
    max-height: 95vh;
    min-width: 800px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal responsive - mobilde min-width kaldır */
@media (max-width: 768px) {
    .label-modal__content {
        width: 98%;
        min-width: unset;
        max-height: 98vh;
        border-radius: 15px;
    }
    
    .label-modal__body {
        padding: 20px 15px;
        max-height: calc(98vh - 40px);
    }
    
    .label-modal__content-wrapper {
        gap: 15px;
        min-height: auto;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.label-modal__header {
    align-items: center;
    padding: 0px 22px;
    border-bottom: none;
    background: none;
    display: flex;
    justify-content: flex-end;
}

.label-modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.label-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.label-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

.label-modal__body {
    padding: 30px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* Modal Content Wrapper - 4:2 Layout */
.label-modal__content-wrapper {
    display: flex;
    gap: 30px;
    height: 100%;
    min-height: 500px;
}

/* Sol taraf: Etiket açıklaması (1/3) */
.label-modal__left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Sağ taraf: Ürünler (2/3) */
.label-modal__right {
    flex: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.label-modal__loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Description - Sol Panel */
.label-modal__description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 0;
    margin: 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.description-header {
    background: linear-gradient(135deg, var(--primary-mint) 0%, #a3d7c9 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.description-icon {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.description-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Beyaz yap */
}

.description-icon i {
    font-size: 48px;
    color: white;
    line-height: 1;
}

.description-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.description-content {
    padding: 25px;
    flex: 1;
    display: flex;
    align-items: unset;
    justify-content: center;
    background: #fdfdfd;
}

.label-modal__description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* Products Header - Sağ Panel */
.products-header {
    margin-bottom: 0px;
    text-align: center;
}

.products-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    padding: 15px 20px;
}

/* Slick Slider Styles */
.label-modal__products .products-slick {
    position: relative;
}

.label-modal__products .products-slick .slick-slide {
    padding: 0 8px;
    height: auto;
}

.label-modal__products .products-slick .slick-track {
    display: flex;
    align-items: stretch;
}

.label-modal__products .products-slick .slick-list {
    margin: 0 -8px;
    overflow: hidden;
}

/* Slick slider ürün slide stilleri */
.label-modal__products .products-slick .product-slide {
    padding: 0 10px;
}

.label-modal__products .products-slick .product-slide .productBoxMain {
    margin-bottom: 0;
    width: 100%;
    padding: 0;
}

/* Mobilde centerMode için özel stiller */
@media (max-width: 768px) {
    .label-modal__products .products-slick .slick-slide {
        width: 280px !important; /* Bir ürünün genişliği */
    }
    
    .label-modal__products .products-slick .slick-center .productBoxMain {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
}

/* Modal içindeki ürünler için özel stiller */
.label-modal__products .productBoxMain {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Slick slide içeriği */
.label-modal__products .slick-slide > div {
    height: 100%;
}

/* Slick Navigation */
.label-modal__products .slick-prev,
.label-modal__products .slick-next {
    width: 40px;
    height: 40px;
    background: var(--primary-mint) !important;
    border-radius: 50%;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.label-modal__products .slick-prev {
    left: -20px;
}

.label-modal__products .slick-next {
    right: -20px;
}

.label-modal__products .slick-prev:before,
.label-modal__products .slick-next:before {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.label-modal__products .slick-dots {
    bottom: -30px;
    text-align: center;
}

.label-modal__products .slick-dots li button:before {
    font-size: 10px;
    color: var(--primary-mint);
}

.label-modal__products .slick-dots li.slick-active button:before {
    color: var(--primary-blue);
}

/* ProductBox partial'ı modal içinde daha büyük görünsün */
.label-modal__products .product-box {
    margin-bottom: 0;
    width: 100%;
    min-height: 350px;
    height: 100%;
}

.label-modal__products .product-cart-wrap {
    width: 100%;
    min-height: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.label-modal__products .product-item {
    width: 100%;
    min-width: 280px;
    margin: 0;
    height: 100%;
}

/* Modal responsive */
@media (max-width: 992px) {
    .label-modal__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .label-modal__left {
        flex: none;
        height: auto;
        order: 1; /* Açıklama yukarıda */
    }
    
    .label-modal__right {
        flex: none;
        height: auto;
        order: 2; /* Ürünler altta */
    }
    
    .label-modal__products .products-slick .slick-slide {
        padding: 0 8px;
    }
    
    .label-modal__products .slick-prev {
        left: -15px;
    }
    
    .label-modal__products .slick-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .label-modal__content {
        width: 98%;
        min-width: unset;
        max-height: 98vh;
        border-radius: 15px;
    }
    
    .label-modal__body {
        padding: 20px 15px;
        max-height: calc(98vh - 40px);
    }
    
    .label-modal__content-wrapper {
        gap: 15px;
        min-height: auto;
    }
    
    .label-modal__products .products-slick .slick-slide {
        padding: 0 5px;
    }
    
    .label-modal__products .slick-prev {
        left: -10px;
        width: 35px;
        height: 35px;
    }
    
    .label-modal__products .slick-next {
        right: -10px;
        width: 35px;
        height: 35px;
    }
    
    .label-card__count {
        font-size: 13px;
        color: var(--text-light);
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    .label-modal__products .products-slick .slick-slide {
        padding: 0 5px;
    }
    
    .label-modal__products .slick-prev {
        left: -10px;
        width: 35px;
        height: 35px;
    }
    
    .label-modal__products .slick-next {
        right: -10px;
        width: 35px;
        height: 35px;
    }
    
    .label-card__count {
        font-size: 13px;
        color: var(--text-light);
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .label-modal__content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .label-modal__body {
        padding: 15px 10px;
        max-height: calc(100vh - 30px);
    }
    
    .label-modal__content-wrapper {
        gap: 10px;
    }
    
    .label-modal__products .products-slick .slick-slide {
        padding: 0 3px;
    }
    
    .label-modal__products .slick-prev {
        left: -5px;
        width: 30px;
        height: 30px;
    }
    
    .label-modal__products .slick-next {
        right: -5px;
        width: 30px;
        height: 30px;
    }
    
    .label-modal__products .slick-prev:before,
    .label-modal__products .slick-next:before {
        font-size: 12px;
    }
    
    .label-modal__products .product-item {
        min-width: 100%;
    }
    
    .description-header {
        padding: 15px;
    }
    
    .description-icon img {
        width: 50px;
        height: 50px;
    }
    
    .description-icon i {
        font-size: 40px;
    }
    
    .description-title {
        font-size: 1.1rem;
    }
    
    .products-title {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

.label-modal__products .product-box__image {
    height: 200px;
}

.label-modal__products .product-box__content {
    padding: 15px;
}

.label-modal__products .product-box__title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.label-modal__products .product-box__price {
    font-size: 1rem;
    margin-bottom: 10px;
}

.label-modal__products .product-box__actions {
    margin-top: 10px;
}

.label-modal__products .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .label-modal__content {
        width: 95%;
        max-height: 95vh;
    }

    .label-modal__header {
        padding: 8px;
        position: absolute;
        right: 0;
        top: -11px;
        right: -15px;
        z-index:99;
    }
    
    .label-modal__title {
        font-size: 1.5rem;
    }
    .label-modal__close {
        font-size: 53px;
        position: absolute;
        right: 15px;
        top: 14px;
    }
    .label-modal__body {
        padding: 8px;
        padding-top: 46px;
    }
    
    .label-modal__products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}
