/* Közös komponensek (notification, modal, dropdown, rainbow text, balance, cart visibility, footer) már a common-components.css-ben vannak */

/* Kategória menü CSS már a category_menu.css-ben van definiálva */

/* Header stílusok már a header.css-ben vannak definiálva */

/* Product styles */
.price-filter, .platform-filter, .type-filter {
    margin-bottom: 20px;
}

#productContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 0;
}

.product {
    flex: 0 0 calc(30% - 20px);
    box-sizing: border-box;
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(240, 240, 240, 0.8);
    z-index: 1;
    min-height: 520px;
}

.product:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.product-img {
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.product-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.product-img img {
    height: 85%;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

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

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 20px 25px;
    background: #fff;
    position: relative;
    border-radius: 0 0 20px 20px;
    transition: border-radius 0.3s ease;
}

.product-category {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.8;
}

.product-name {
    word-wrap: break-word;
    white-space: normal;
    margin-bottom: 12px;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.product-name a:hover {
    color: #667eea;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.product-price::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.product-old-price {
    font-size: 14px;
    color: #adb5bd;
    margin-left: 10px;
    position: relative;
}

.product-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.add-to-wishlist, .quick-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 5;
}

.add-to-wishlist i, .quick-view i {
    font-size: 16px;
    color: white !important;
}

.add-to-wishlist:hover, .quick-view:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.add-to-cart {
    padding: 0 20px 20px;
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 15;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    display: block !important;
    z-index: 10;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.add-to-cart-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* Admin view button */
.btn-admin-view {
    width: 100%;
    margin-top: 8px;
    display: inline-flex !important;
    justify-content: center;
}

.btn-admin-view:hover {
    background: #5a6268 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Tooltip stílusok */
.tooltipp {
    visibility: hidden;
    width: auto;
    min-width: 180px;
    max-width: 220px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px 15px;
    position: absolute;
    z-index: 1000;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.tooltipp::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.add-to-wishlist:hover .tooltipp,
.quick-view:hover .tooltipp {
    visibility: visible;
    opacity: 1;
    bottom: 65px;
}

/* Responsive tooltip kisebb képernyőkön */
@media (max-width: 768px) {
    .tooltipp {
        /* Kisebb képernyőkön jobbra igazítjuk, hogy ne lógjon ki bal oldalról */
        left: auto !important;
        right: 0;
        transform: none !important;
        /* Szöveg tördelése kisebb képernyőkön */
        white-space: normal !important;
        word-wrap: break-word;
        /* Kisebb max-width */
        max-width: 150px !important;
        min-width: 120px;
        /* Kisebb padding */
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .tooltipp::after {
        /* Arrow pozíció módosítása jobbra igazításhoz */
        left: auto;
        right: 20px;
        margin-left: 0;
    }
}

/* Extra kis képernyőkön még kisebb tooltip */
@media (max-width: 480px) {
    .tooltipp {
        max-width: 120px !important;
        min-width: 100px;
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* Modernebb kiegészítők */
.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.product:hover::before {
    transform: scaleX(1);
}

@media (max-width: 992px) {
    .product {
        flex: 0 0 calc(45% - 20px);
    }
    
    .add-to-cart-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* Alapértelmezett kosár gomb stílus */
.add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: all 0.4s ease;
}

@media (min-width: 769px) {
    /* Desktop hover effekt - gomb a termék alatt jelenik meg */
    .product .add-to-cart {
        opacity: 0;
        bottom: -80px;
        pointer-events: none;
    }
    
    .product:hover .add-to-cart {
        opacity: 1;
        bottom: -1px;
        pointer-events: auto;
    }
    
    .product:hover .add-to-cart-btn {
        box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
    }
    
    /* Hover-re eltávolítjuk a product-body lekerekítést */
    .product:hover .product-body {
        border-radius: 0 0 0 0;
    }
}

@media (max-width: 768px) {
    .product {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    #productContainer {
        gap: 20px;
    }
    
    .product-img {
        height: 240px;
    }
    
    /* Mobilon narancssárga kosár gomb - mindig látható */
    .product .add-to-cart {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        position: relative !important;
        bottom: auto !important;
        padding: 0 20px 20px !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        border-top: none !important;
    }
    
    /* Mobilon a product-body megtartja a lekerekítést */
    .product .product-body {
        border-radius: 0 0 20px 20px !important;
    }
    
    .product .add-to-cart-btn {
        background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%) !important;
        box-shadow: 0 6px 20px rgba(253, 126, 20, 0.3) !important;
        color: white !important;
        display: block !important;
    }
    
    .product .add-to-cart-btn:hover {
        box-shadow: 0 12px 30px rgba(253, 126, 20, 0.4) !important;
        transform: translateY(-2px) !important;
    }
}

@media (max-width: 480px) {
    .product-img {
        height: 220px;
    }
    
    .product-body {
        padding: 20px 15px 15px;
    }
    
    .add-to-cart {
        padding: 0 15px 15px;
    }
    
    .product-btns {
        margin-bottom: 12px;
    }
}

/* Responsive cart styles */
@media only screen and (min-width: 991px) {
    #responsive-nav .cart-menu-item {
        display: none !important;
    }
}

/* Header cart visibility styles - már a header.css-ben vannak definiálva */

/* Rainbow text animation */
.rainbow-text a {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-animation 10s linear infinite;
}

@keyframes rainbow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.icon-container {
    margin-bottom: 20px;
}

.modal-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

#modalMessage {
    color: #34495e;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Footer payment styles */
.footer-payments {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-payments li {
    margin: 0 10px;
}

.footer-payments li a img {
    width: 80px;
    height: 50px;
    object-fit: contain;
    display: block;
} 