@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal zakupu */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.purchase-modal.active {
    display: flex;
}

.purchase-modal-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border: 2px solid #D8281B;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.purchase-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.purchase-modal-close:hover {
    color: #D8281B;
}

.purchase-modal h2 {
    color: #D8281B;
    margin-bottom: 20px;
    font-size: 24px;
}

.purchase-form-group {
    margin-bottom: 20px;
}

.purchase-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 14px;
}

.purchase-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #2d2d2d;
    color: #fff;
    font-size: 14px;
}

.purchase-form-group input:focus {
    outline: none;
    border-color: #D8281B;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.payment-method-btn {
    padding: 15px;
    border: 2px solid #444;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-method-btn:hover {
    border-color: #D8281B;
    background: rgba(216, 40, 27, 0.2);
}

.payment-method-btn.selected {
    border-color: #D8281B;
    background: rgba(216, 40, 27, 0.3);
}

.purchase-submit {
    width: 100%;
    padding: 15px;
    background: #D8281B;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.purchase-submit:hover {
    background: #bd2217;
}

.purchase-submit:disabled {
    background: #555;
    cursor: not-allowed;
}

.product-info {
    background: rgba(216, 40, 27, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #D8281B;
}

.product-info h3 {
    color: #fff;
    margin-bottom: 10px;
}

.product-info .price {
    color: #D8281B;
    font-size: 20px;
    font-weight: bold;
}

@keyframes pulse-status {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.card.hidden:nth-child(1) { transition-delay: 0s; }
.card.hidden:nth-child(2) { transition-delay: 0.2s; }
.card.hidden:nth-child(3) { transition-delay: 0.4s; }

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    transform: translateY(170px);
    font-family: "Titillium Web", sans-serif;
}


.card {
  background-color: #121212;
  border-radius: 35px;
  overflow: hidden;
  border: 2px solid #FC25FF;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card:nth-child(2) {
  border-color: #F2CA09;
}

.card:nth-child(3) {
  border-color: #EF302E;
}
.card h3 {
  margin-top: -10px;
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
    padding-top: 16px;
}
.card img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 16px;
    text-align: center;
}

.card-content ul.features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 12px;
}

.card-content ul.features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
    display: inline-block;
    text-align: left;
    font-size: 15px;
    color: #fff;
}

.card-content ul.features li::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -3px;
    width: 25px;
    height: 25px;
    background: url('../img/flame.webp') no-repeat center center;
    background-size: contain;
}

.card-content hr {
            border: 0;
            height: 1px;
            background: linear-gradient(to right, #161616, #535353, #161616);
            width: 80%;
            margin: 16px auto;
        }
.card-content .price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-content .price span {
    color: #FFD700;
}

.card-content .price::before {
    content: "KUP TERAZ ZA ";
    color: #fff;
    
}

.guarantee-section {
    width: 100%;
    margin-top: 300px;
    margin-bottom: 100px;
    padding: 0 20px;
}

.guarantee-header {
    max-width: 1430px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: #FFFFFF;
    font-family: "Titillium Web", sans-serif;
    padding: 0 20px;
}

.guarantee-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.guarantee-header p {
    font-size: 13px;
    color: #AEAEAE;
}

.guarantee-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 20px;
}

.guarantee-card {
    position: relative;
    z-index: 1;
    background-color: rgba(31, 31, 31, 0.5);
    padding: 30px;
    border-radius: 50px;
    font-family: "Titillium Web", sans-serif;
    overflow: hidden;
}

.guarantee-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(to top, #121212 0%, #D8281B 100%);
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
              mask-composite: exclude;
    pointer-events: none;
}


.guarantee-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: -2px;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.guarantee-card i {
    margin-top: 10px;
    font-size: 40px;
    color: #A0A0A0;
    margin-bottom: 15px;
    display: block;
}

.guarantee-card h3 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.guarantee-card p {
    color: #A0A0A0;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

@media only screen and (max-width: 800px) {
    .guarantee-section {
        margin-top: 250px;
        margin-bottom: 50px;
    }
    .guarantee-card {
        padding: 20px;
        text-align: left; 
    }
    .guarantee-card i {
        margin-bottom: 10px;
    }
    .guarantee-card h3 {
        margin-bottom: 10px;
    }
}

.reviews-section {
    width: 100%;
    padding: 50px 20px;
    margin-top: 100px;
    margin-bottom: 100px;
    font-family: "Titillium Web", sans-serif;
}

.reviews-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.reviews-title {
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
}
.reviews-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.add-review-btn {
    margin-top: -15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #DB2C19;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-review-btn:hover {
    background-color: rgba(219, 44, 25, 0.8);
}

.add-review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.add-review-modal.hidden {
  display: none;
}
.blur-background {
  filter: blur(5px);
  transition: filter 0.3s ease;
}
.modal-content {
  background: 
    url("../img/background.png"),
      linear-gradient(rgba(15, 12, 12, 1), rgba(189, 34, 23, 1));
      
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
}
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #ffffff; 
  color: #000000;
  font-size: 14px;
  box-sizing: border-box;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #DB2C19;
}


.modal-content h3 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  gap: 10px;
}

.modal-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.modal-actions button[type="submit"] {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #DB2C19;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.modal-actions button:hover[type="submit"] {
    background-color: #DB2C19;
}
.modal-actions button#close-modal {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    color: #FFFFFF;
    background-color: rgba(78, 78, 78, 0.4);
    border: 1px solid #e2e2e2;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.modal-actions button#close-modal:hover {
    background-color: #ffffff;
    color: #000000;
}
.reviews-table-container {
    width: 100%;
}

.reviews-header {
    display: grid;
    grid-template-columns: 50px 200px 1fr 150px; 
    align-items: center;
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.review-row {
    display: grid;
    grid-template-columns: 50px 200px 1fr 150px; 
    align-items: center;
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.0rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.review-cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.num-col {
    font-weight: 700;
}

.autor-col {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px; 
    margin-right: 15px;
    image-rendering: crisp-edges;
    image-rendering: pixelated; 
}
.load-more-btn {
  display: block;
  max-width: 200px;
  width: 100%;
  margin: 24px auto 0;
  padding: 10px 18px;
  background: none;
  border: 2px solid #D8281B;
  color: #fff;
  border-radius: 24px;
  font-size: 17px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 #D8281B40;
  transition: background 0.4s, color 0.4s;
  text-decoration: none;
}

.load-more-btn:hover {
  background: #D8281B;
  color: #fff;
}

@media (max-width: 1024px) {
    .reviews-header,
    .review-row {
        grid-template-columns: 40px 150px 1fr 100px; 
        padding: 15px 20px;
    }
    .autor-col {
        white-space: normal;
    }
}

@media (max-width: 650px) {
    .reviews-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .reviews-header {
        display: none;
    }
    .review-row {
        grid-template-columns: 40px 1fr; 
        grid-template-rows: auto auto;
        padding: 15px;
        height: auto;
        font-size: 0.95rem;
    }
    
    .review-row:last-child {
        margin-bottom: 0;
    }

    .num-col {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        align-self: center;
        font-size: 1.5rem;
    }

    .autor-col {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        margin-bottom: 5px;
        white-space: normal;
    }
    
    .review-author-name {
        white-space: normal; 
        text-overflow: clip;
    }

    .wiadomosc-col {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        white-space: normal; 
        text-overflow: clip;
        line-height: 1.4;
        color: #fff;
    }

    .data-col {
        display: none; 
    }
}
.main-footer {
    position: relative;
    color: #ffffff;
    padding: 70px 20px 0;
    font-family: "Titillium Web", sans-serif;
    margin-top: 150px;
    overflow: hidden;
    background: linear-gradient(to top, rgba(29, 8, 8, 0.85), rgba(128, 128, 128, 0));
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
    flex-wrap: wrap;
    border-bottom: 1px solid transparent; 
    border-image: linear-gradient(to right, 
        #1f0909 0%,
        #7a7a7a 50%,
        #1f0909 100% 
    ) 1;
}
.footer-info {
    max-width: 300px;
    margin-bottom: 30px;
}

.footer-logo-group {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    margin-bottom: 15px;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-right: 0; 
    margin-bottom: 10px;
}

.footer-info h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: -10px;
}

.footer-info p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-column {
    margin-bottom: -20px;
    min-width: 150px;
}

.footer-column h4 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #DB2C19;
}

.footer-contact p,
.footer-contact a,
.footer-about p,
.footer-about a {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: break-word;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-payments {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px; 
}

.payment-method {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #DB2C19;
    border-radius: 15px;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-method:hover {
    background-color: #ff2f20;
}

.payment-method.paypal {
    display: flex;
    align-items: center;
}

.payment-method.paypal i {
    margin-right: 8px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    color: #a0a0a0;
    font-size: 13px;
    margin-bottom: 15px; 
}

.footer-copyright img {
    height: 15px;
    margin-left: 10px;
}

@media (max-width: 1200px) {
    .footer-links-group {
        gap: 30px;
    }
}

@media (max-width: 800px) {
    .main-footer {
        margin-top: 100px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-info {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 40px;
        width: 100%;
    }

    .footer-column {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-payments {
        order: 2;
        justify-content: center;
        margin-bottom: 0;
    }

    .footer-copyright {
        order: 1;
        margin-bottom: 20px;
    }
}