/* =================================== */
/* === GLOBAL & BASE STYLES === */
/* =================================== */
* {
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box;
}

html, body {
    background-color: #000000;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    color: white;
}

.return_container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  color: white;
}


/* BOX WYMIANY */
.exchange_box {
  padding: 20px;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #181818;
}

/* Nagłówki (Twój styl) */
.return_steps h1,
.exchange_box h1 {
  margin-bottom: 10px;
  font-size: 20px;
  color: white;
}

.return_steps h2 {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 17px;
}

/* Teksty (Twój styl) */
.return_steps p,
.exchange_box p {
  margin: 5px 0 15px 0;
}

/* Lista danych */
.return_steps ul {
  list-style-type: none;
  padding-left: 0;
}

.return_steps li {
  margin-bottom: 5px;
}



/* =================================== */
/* === LAYOUT CONTAINERS === */
/* =================================== */
.main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100svh;
    width: 100%;
}

.terms {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.product_details::after{
    content: '';
    display: block;
}

/* =================================== */
/* === NAVIGATION === */
/* =================================== */
.navbar_desktop {
    position: absolute;
    padding-top: 60px;
    top: 0;
    left: 30px;
    z-index: 999;
}

.logotype {
    margin-left: -10px;
    margin-top: -10px;
    width: 140px;
}

.navbar_links {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
    max-width: 400px;
}

.navbar_links li {
    margin-bottom: 10px;
    font-size: 20px;
}

/* =================================== */
/* === ZMODYFIKOWANA NAWIGACJA (HOVER) === */
/* =================================== */

.navbar_links li a:not(.close-menu-btn) {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    /* Płynne przejście koloru zamiast skoku */
    transition: color 0.2s ease-in-out;
}

/* KASUJEMY STARE PODKREŚLENIE */
/* Ustawiamy display: none, żeby stary pasek zniknął na zawsze */
.navbar_links li a::after {
    display: none !important; 
}

/* NOWY EFEKT: ZMIANA KOLORU NA ZIELONY */
.navbar_links li a:hover {
    color: #2ed600; /* Twój neonowy zielony */
}

.close-menu-btn {
    display: none;
}


.icon {
    width: 25px;
    margin-top: -3px;
    margin-left: 15px;
    margin-right: 15px;
}

.navbar {
    display: none;
}

/* =================================== */
/* === PAGE SECTIONS & COMPONENTS === */
/* =================================== */
/* =================================== */
/* === PAGE SECTIONS & COMPONENTS === */
/* =================================== */

/* --- 1. NOWA STRUKTURA GRIDU (To wklejasz nowe) --- */
.product-grid {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    width: 100%;
    max-width: 1300px;     
    margin: 0 auto;        
    column-gap: 40px;
    row-gap: 0px;            
    padding: 60px 20px;
}

.product-row {
    display: none; /* To wyłącza stary układ rzędowy */
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    /* Matematyka: 33.33% minus marginesy = 3 produkty w rzędzie na PC */
    width: calc(33.33% - 40px); 
    min-width: 300px;
}

.grid-item .product_img, .product_img {
    max-width: 100%;
    /* Opcjonalnie: dodaj height i object-fit, jeśli zdjęcia są różnej wysokości */
    height: auto; 
}

/* --- 2. STYL CENY (To jest Twój stary kod ze zdjęcia - ZOSTAW GO) --- */
.grid-item .main_price, .main_price {
    font-weight: bold;
    font-size: 22px;
    margin-top: 0px; /* Zmieniłem z 0px na 10px, żeby cena nie kleiła się do zdjęcia */
}

/* ... reszta kodu (product_details itd.) ... */

.product_details {
    display: flex;
    align-items: center;
    position: absolute;
    width: 1000px;
    gap: 3%;
}

.save-info {
    display: inline-block;
    background-color: rgba(46, 214, 0, 0.15);
    color: #2ed600;
    font-size: 20px;
    font-weight: bold;
    padding: 4px 8px;
    border: 1px solid #2ed600;
    
    /* ZMIANA MARGINESÓW: */
    margin-top: -15px;    /* Odstęp od zdjęcia (żeby nie było przyklejone) */
    margin-bottom: 32px;  /* Mały odstęp od ceny pod spodem */
    
    text-transform: uppercase;
    letter-spacing: 1px;
}


.product_img_section {
    width: 57%;
    align-items: center;
}

.product_img_section img {
    max-width: 100%;
    margin-top: 20px;
}

.product_info {
    width: 50%;
    display: inline-flex;
    flex-direction: column;
}

/* Styl dla tekstowego tytułu produktu */
.product-title {
    font-size: 48px;         /* Wielkość czcionki */
    font-weight: bold;         /* Pogrubienie */
    color: #ffffff;            /* Kolor biały */
    margin-top: 0;             /* Reset marginesu górnego */
    margin-bottom: 15px;       /* Odstęp pod napisem */
    text-transform: uppercase; /* Opcjonalnie: wielkie litery, jak w obrazku */
}

.product_info .product_name {
    margin: 0 !important;
}

.product_info p {
    font-size: 18px;
}

.other_products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px 8px;
    margin-top: 8px;
    margin-bottom: 20px
}

.other_products img {
    width: 150px;
}

.thumbnail {
    cursor: pointer;
}

.terms_wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 700px;
    padding: 40px 0 80px 0;
}

.terms_wrapper h1 { font-size: 55px; }
.terms_wrapper h2 { font-size: 30px; }
.terms_wrapper p, .terms_wrapper li { font-size: 20px; }

/* =================================== */
/* === SHOPIFY & CART STYLES === */
/* =================================== */
.header-cart {
    position: relative;
}

.cart-close-btn-top {
    position: absolute;
    top: 0px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

label {
    margin-bottom: 5px;
    font-size: 20px;
}

select {
    width: 80px;
    font-weight: bold;
    font-size: 18px;
}

.shopify-buy__btn {
    margin: 20px 0;
    width: 240px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 10px; /* Dodano padding dla lepszego wyglądu */

    /* --- Stan Domyślny --- */
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #2ed600;

    /* --- Animacja --- */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.shopify-buy__btn:hover {
    /* --- Stan po Najechaniu --- */
    background-color: #2ed600;
    color: #000000;
}

.shopify-buy__select-icon,
.shopify-buy__option-select__label,
.shopify-buy__product__title,
.shopify-buy__product__variant-img,
.shopify-buy-frame--toggle,
.shopify-buy__btn--seamless span {
    display: none !important;
}

.shopify-buy-cart-wrapper {
    max-width: 50% !important;
    background: #000 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.233);
}

.shopify-buy__cart {
    padding: 20px 50px;
    background-color: #000 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}



/* Sprawia, że środkowa sekcja z produktami jest rozciągliwa i przewijalna */
.shopify-buy__cart-scroll {
    flex-grow: 1; /* Pozwala tej sekcji zająć całe wolne miejsce */
    overflow-y: auto; /* Dodaje pionowy pasek przewijania, GDY jest potrzebny */
}

/* Gwarantuje, że nagłówek i stopka nie będą się rozciągać */
.header-cart, .cart-footer {
    flex-shrink: 0;
}
.header-cart {
    margin-bottom: 40px;
}

.shopify-buy__cart-item {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.shopify-buy__cart-item__image {
    width: 50px;
    height: 50px;
    background-size: cover;
}

.shopify-buy__cart-items li {
    margin-left: -40px;
}

.shopify-buy__cart-items {
    padding-bottom: 20px;
    border-bottom: 1px solid white;
}

.shopify-buy__quantity-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shopify-buy__quantity-container button {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
}

.shopify-buy__quantity-container button svg {
    fill: white;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.shopify-buy__cart-item__quantity-input {
    width: 30px;
}

.cart-price {
    font-size: 20px;
    font-weight: bold;
}

.cart-footer {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.btn-flex {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.close-btn {
    background: transparent !important;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* Nowe style do wyrównania ikony w nagłówku koszyka */
.shopify-buy__cart .header-cart h2 {
    display: flex;
    align-items: center; /* Wyrównuje tekst i ikonę w pionie */
}

.shopify-buy__cart .header-cart .icon {
    margin-left: 20px; /* Dodaje mały odstęp od tekstu */
    margin-top: 0; /* Resetuje stary margines */
}

.cart-close-btn-top:focus {
    outline: none;
    box-shadow: none;
}

/* =================================== */
/* === MODAL & ANIMATIONS === */
/* =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    z-index: 1002;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.fade {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.fade.out {
    opacity: 0;
}

/* =================================== */
/* === OVERRIDE: ALLEKURIER (FULL CONTROL) === */
/* =================================== */

/* 1. Ustawienia głównego kontenera (Ramka i marginesy) */
body div[id^="ak_returns_banner"] .akc-banner {
    border: 10px solid #333 !important; /* Zmieniłem na 1px, bo 10px to trochę "cegła", ale jak wolisz grubą to daj 10px */
    margin-top: 120px  !important; /* Margines góra/dół */
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* 2. NUCLEAR OPTION: Wymuś Segoe UI i kolor na WSZYSTKIM w środku */
/* Gwiazdka (*) oznacza: każdy element, który jest dzieckiem tego diva */
body div[id^="ak_returns_banner"] * {
    font-family: 'Segoe UI', sans-serif !important;
}

/* 3. Nadpisanie wielkości tekstów (opcjonalne, jeśli domyślne są za małe) */
body div[id^="ak_returns_banner"] p,
body div[id^="ak_returns_banner"] li,
body div[id^="ak_returns_banner"] span,
body div[id^="ak_returns_banner"] div {
    font-size: 18px !important;
    line-height: 1.5 !important;
}

/* 4. Nagłówki */
body div[id^="ak_returns_banner"] h1,
body div[id^="ak_returns_banner"] h2,
body div[id^="ak_returns_banner"] h3,
body div[id^="ak_returns_banner"] .akc-banner-header {
    font-family: 'Segoe UI', sans-serif !important;
    font-weight: bold !important;
    text-transform: none !important; /* Opcjonalnie: resetuje wielkie litery jeśli są wymuszone */
}

body div[id^="ak_returns_banner"] a {
    color: black !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}




body div[id^="ak_returns_banner"] {
    /* Nadpisujemy ich definicję koloru głównego. */
    /* Teraz wszędzie, gdzie oni użyli var(--akc-main-color), pojawi się Twój błękit */
    --akc-main-color: #ff6817 !important;
}

/* =================================== */
/* === RESPONSIVE MEDIA QUERIES === */
/* =================================== */
@media only screen and (max-width: 1500px) {
    .shopify-buy__cart-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 1380px) {
   .product_details {
        flex-direction: column;
        gap: 50px;
   }
}

@media only screen and (max-width: 1000px) {
    .terms_wrapper {
        width: 90%;
    }
    .navbar_links {
        max-width: 200px;
    }
}

@media only screen and (max-width: 800px) {


    /* --- Main Layout --- */
    .main {
        padding-top: 85px;
        justify-content: flex-start;
        min-height: 100vh;
        height: auto;
    }

    /* --- Mobile Navigation --- */
    .desktop { display: none; }
    
    .navbar_desktop {
        top: 0;
        left: 0;
        width: 100%;
        position: fixed;
        transform: none;
        padding: 0;
    }
    
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px;
        padding-top: 45px;
    }
    
    .navbar .logotype { width: 70px; margin: 0; }
    
    .navbar_links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: -20px;
        left: 0;
        height: 150vh;
        width: 85%;
        max-width: 320px;
        background-color: #000;
        padding: 100px 40px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.2s ease-in-out;
    }

    .navbar_links.active {
        transform: translateX(0);
        border-right: 1px solid rgba(255, 255, 255, 0.233);
    }
    
    /* OSTATECZNA POPRAWKA: Pokaż "X" na mobilnym widoku */
    .close-menu-btn {
        display: block !important; /* Użyj !important, aby zagwarantować nadpisanie */
        position: absolute;
        top: 43px;
        left: 34px;
        font-size: 30px;
        font-weight: bold;
        color: white;
        text-decoration: none;
        z-index: 1001;
        line-height: 1;
    }


    .save-info {
        /* Mniejsza czcionka na telefon */
        font-size: 13px !important;      
        padding: 2px 5px !important;
        
        /* Proporcjonalne marginesy dla małych ekranów */
        /* Musimy zmniejszyć -66px, bo zdjęcie na telefonie jest 2x mniejsze */
        margin-top: -35px !important;   
        margin-bottom: 16px !important;  
        
        border-width: 1px !important;
    }

    /* --- Page Content Layouts --- */
    /* =================================== */
/* === NOWA STRATEGIA MOBILE (2 KOLUMNY) === */
/* =================================== */

    /* Znajdź ten fragment wewnątrz @media (max-width: 800px) i podmień go */

    .product-grid {
        padding: 10px 5px; /* Mniejsze marginesy boczne, żeby zyskać miejsce */
        gap: 10px;         /* Mniejszy odstęp między produktami na telefonie */
    }

    .grid-item {
        /* Matematyka: 50% szerokości minus połowa odstępu (gap) = idealne 2 kolumny */
        width: calc(50% - 10px); 
        min-width: 0;       /* Resetujemy min-width z desktopu */
        max-width: none;    /* Usuwamy stare ograniczenia */
        margin-bottom: 15px;
    }

    .grid-item .main_price {
        font-size: 16px;    /* Nieco mniejsza cena, żeby nie łamała linii */
        margin-top: 5px;
    }
    
    /* Ukrywamy stary układ rzędowy, jeśli gdzieś został */
    .product-row {
        display: none;
    }
    
    .product_details {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        margin-top: 0;
    }
    
    .product_info, .product_img_section {
        width: 100%;
    }

    .terms_wrapper {
        padding-top: 0;
        margin-top: 100px;
    }

    /* --- Mobile Cart --- */
    .shopify-buy-cart-wrapper {
        max-width: 80% !important;
    }

      
    .other_products img {
    width: 50px;
    margin-bottom: -45px;
    }

    .product_details::after{
    content: '';
    display: block;   

}
    /* =================================== */
/* === POPRAWKA UKŁADU KOSZYKA NA TELEFONIE === */
/* =================================== */
.shopify-buy__cart-item {
    display: flex;
    flex-direction: row; /* Upewniamy się, że układ jest poziomy */
    align-items: center;
    gap: 15px; /* Odstęp między zdjęciem a tekstem */
}

/* Ten kod wypycha licznik na prawą stronę kontenera */
.shopify-buy__quantity-container {
    margin-left: auto;
}


}
/* =================================== */
/* === PASEK INFORMACYJNY (TICKER) === */
/* =================================== */

#ticker-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #000;
    padding: 7px 0;
    z-index: 999;
    overflow: hidden;
    font-weight: bold;
    display: flex; /* WAŻNE */
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
}

.ticker-text {
    padding-right: 50px; /* Odstęp między powtórzeniami tekstu */
}

/* Przesunięcie reszty strony w dół (bez zmian) */
body {
    padding-top: 20px;
}


/* =================================== */
/* === STYLE DLA SWIPER.JS === */
/* =================================== */

.product_img_section {
    max-width: 550px; /* Dopasuj szerokość do swojego layoutu */
}

/* Ustawienia głównego slidera */
.swiper-main {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.swiper-main .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ustawienia strzałek */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    padding: 20px;
    height: 30px !important;
    width: 30px !important;
    border-radius: 50%;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Ustawienia slidera z miniaturkami */
.swiper-thumbs {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}

.swiper-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================== */
/* === FOOTER (STOPKA) === */
/* =================================== */

.site-footer {
    width: 100%;
    padding: 30px 20px;
    margin-top: 60px;
    
    /* Nowe style Flexbox */
    display: flex;
    justify-content: center; /* Wyśrodkowanie w poziomie */
    align-items: center;   /* Wyśrodkowanie w pionie */
    gap: 25px;             /* Odstęp między elementami */
    flex-wrap: wrap;       /* Zezwalaj na zawijanie na małych ekranach */
}

.site-footer span {
    color: #888;
    font-size: 14px;
}

.site-footer a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* =================================== */
/* === LICZNIK KOSZYKA (GOAL BAR) === */
/* =================================== */
.cart-goal-wrapper {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
}

.cart-goal-text {
    font-size: 18px;
    margin-bottom: 8px;
    color: #cccccc;
    font-weight: bold;
}

.cart-goal-text span {
    color: #fff;
}

.cart-goal-bar-bg {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.cart-goal-fill {
    height: 100%;
    width: 0%;
    background-color: #2ed600; /* Twój zielony akcent */
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(46, 214, 0, 0.5);
}

/* Animacja pulsowania, gdy cel osiągnięty */
.cart-goal-fill.completed {
    background-color: #2ed600;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #2ed600; }
    to { box-shadow: 0 0 20px #2ed600; }
}
