/* Product Card - Elegant & Minimal Design */
.product-card {
    background: white;
    border-radius: 0;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    height: 320px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.product-image-bundle {
    position: relative;
    height: 450px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.product-image-bundle img{
    width: 90%;
    height: 90%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-image img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image .product-image-bundle img {
    transform: none;
}

/* Product Badge - Like Favorite Icon Style */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    line-height: 1.2;
    min-width: auto;
    width: auto;
}

/* Yeni (New) Badge - Green Circle */
.product-badge:not(.bg-danger):not(.bg-info) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* İndirim (Sale) Badge - Red Circle */
.product-badge.bg-danger {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
}

/* Popüler (Popular) Badge - Blue Circle */
.product-badge.bg-info {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    border: 1px solid #0dcaf0 !important;
    color: #0dcaf0 !important;
}

/* Favorite Button - Mini */
.product-card .favorite-btn,
.package-card .favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.product-card .favorite-btn:hover,
.package-card .favorite-btn:hover {
    color: #ff4d4d;
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(255, 77, 77, 0.2);
}

.product-card .favorite-btn.active,
.package-card .favorite-btn.active {
    color: #ff4d4d;
    background: rgba(255, 245, 245, 0.95);
}

.product-card .favorite-btn i,
.package-card .favorite-btn i {
    font-size: 0.95rem;
}

/* Quick Actions - REMOVED (not needed) */

/* Product Info - Centered */
.product-info {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-category {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.product-title,
.product-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    min-height: 1.2rem;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #198754;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    min-height: 2rem;
}

.product-price::after {
    content: '';
}

.product-price span {
    font-weight: 600;
}

/* Add to Cart Button - Outline Style */
.product-info .d-flex,
.package-body .d-flex {
    margin-top: auto;
    width: 100%;
}

.add-to-cart,
.btn-add-to-cart {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    font-size: 0.85rem;
    width: 100%;
}

.add-to-cart:hover,
.btn-add-to-cart:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Package Card - Same Style */
.package-card {
    background: white;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    border-color: #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.package-image {
    position: relative;
    height: 380px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-image:hover .product-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-overlay a {
    z-index: 2;
}

.package-card:hover .package-image img {
    transform: none;
}

.package-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.package-badge.bg-danger {
    background: #dc3545 !important;
}

.package-card .favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-card .favorite-btn:hover {
    background: white;
    border-color: #198754;
}

.package-card .favorite-btn i {
    color: #333;
    font-size: 1rem;
}

.package-card .favorite-btn.active i {
    color: #dc3545;
}

.package-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.package-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.package-desc {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.package-items {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.package-items li {
    padding: 0.6rem 0;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.package-items li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.package-price-section {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.old-package-price {
    display: block;
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.package-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.2rem;
    display: inline-block;
}

.package-price::after {
    content: ' TL';
    font-size: 1.3rem;
}

/* Mobile Responsive - 2 products per row */
/* Extra Small Mobile (<576px) */
@media (max-width: 575.98px) {
    .product-item,
    .col-6 {
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
        padding: 0 0.25rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.5rem !important;
    }
}

/* Small Mobile (≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .product-item,
    .col-6 {
        flex: 0 0 calc(50% - 0.3rem) !important;
        max-width: calc(50% - 0.3rem) !important;
        width: calc(50% - 0.3rem) !important;
        padding: 0 0.3rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-x: 0.6rem !important;
        --bs-gutter-y: 0.6rem !important;
    }
}

/* Medium Mobile/Tablet (≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-item,
    .col-6 {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
        padding: 0 0.5rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }
}

@media (max-width: 991.98px) {
    .product-card,
    .package-card {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .product-image {
        height: 200px;
    }

    product-image-bundle {
        height: 300px;
    }

    .package-image {
        height: 300px;
    }
    
    .product-info,
    .package-body {
        padding: 1rem;
    }
    
    .product-title,
    .product-name,
    .package-title {
        font-size: 0.9rem;
        min-height: 2.5rem;
        line-height: 1.4;
    }
    
    .product-category {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .product-desc {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: #198754;
    }
    
    
    .add-to-cart,
    .btn-add-to-cart {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Quick Actions - removed */
    
    /* Favorite button - smaller on mobile */
    .product-card .favorite-btn,
    .package-card .favorite-btn {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .product-card .favorite-btn i,
    .package-card .favorite-btn i {
        font-size: 0.85rem;
    }
    
    /* Product Badge - Mobile */
    .product-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.55rem;
        top: 10px;
        left: 10px;
    }
    
    /* Product Card - Mobile optimization */
    .product-card,
    .package-card {
        margin-bottom: 0.75rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .package-image {
        height: 280px;
    }
    
    .product-info,
    .package-body {
        padding: 1rem;
    }
    
    .product-title,
    .package-title {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 1rem !important;
    }
    
    /* Package Items */
    .package-items {
        text-align: left;
        align-items: flex-start;
    }
    
    .package-items li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
        display: flex;
        align-items: center;
    }
    
    .package-items li i {
        width: 18px;
        font-size: 0.85rem;
        margin-right: 0.6rem;
    }
}

