/* 
 * Custom CSS styles for the project
 * Note: We're using Bootstrap as the main styling framework,
 * so this file only contains additional/custom styles.
 */

/* Common styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Push footer to the bottom */
.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Custom card styles */
.card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Custom animation for buttons */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-animated:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Custom form styling */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-info-rgb), 0.25);
}

/* Product Grid Styling */
.product-grid {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-grid:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Product New Label and Other Tags */
.catalogItems {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.newPro {
    background-color: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.flex {
    display: flex;
}

.absolute {
    position: absolute;
    z-index: 10;
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    transition: all 0.5s ease;
    border-radius: 3px;
}

.product-grid:hover .product-image img {
    transform: scale(1.08);
}

/* Product Content */
.product-content {
    padding: 15px;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #f3f3f3;
}

.title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.title a:hover {
    color: #e91e63;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #e91e63;
    color: #fff;
    padding: 2px 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    text-transform: uppercase;
    border-radius: 0;
}

/* Price Styling */
.product-price-area {
    margin-top: 10px;
    position: relative;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.current-price {
    font-weight: bold;
    color: #e91e63;
    font-size: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    font-weight: normal;
}

/* Ürün Detay Sayfası Stilleri - Miray Modeli */
.product-title-price {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.product-title-price h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.product-price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.price-container {
    display: flex;
    align-items: center;
}

.discounted-price {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-right: 10px;
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #999;
}

.discount-badge-miray {
    background-color: #ba211c;
    color: white;
    padding: 3px 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Nova Koltuk Takımı Stili - Tam Eşleşen */
.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
}

.price-area {
    display: flex;
    flex-direction: column;
}

.new-price {
    font-size: 30px;
    font-weight: 500;
    color: #00d7c3;
    line-height: 1.2;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-top: 5px;
}

.discount-tag {
    background-color: #00d7c3;
    color: white;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 0;
}

/* Nova Görsel Tasarım - Kesin Eşleşme */
.nova-fiyat-kutusu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin: 15px 0 25px 0;
}

.nova-fiyat-alani {
    display: flex;
    flex-direction: column;
}

.nova-yeni-fiyat {
    font-size: 30px;
    font-weight: 500;
    color: #00d7c3;
    line-height: 1;
}

.nova-eski-fiyat {
    font-size: 16px;
    color: #777;
    text-decoration: line-through;
    margin-top: 5px;
}

.nova-indirim-etiketi {
    background-color: #00d7c3;
    color: white;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
}

.whatsapp-order-block {
    margin: 20px 0;
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white !important;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-order-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.whatsapp-order-btn i {
    font-size: 22px;
    margin-right: 10px;
}

/* Eski Ürün Detay Stilleri */
.product-action-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(to right, #f5f5f5, #ffffff);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #e91e63;
}

.product-price-area {
    flex: 1;
    padding-right: 20px;
}

.product-price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 5px;
}

.price-old {
    font-size: 20px;
    text-decoration: line-through;
    color: #999;
    margin-bottom: 5px;
}

.discount-label {
    display: inline-block;
    background-color: #e91e63;
    color: #fff;
    font-weight: 600;
    padding: 5px 12px;
    font-size: 14px;
    border-radius: 20px;
    margin-top: 5px;
}

.whatsapp-action {
    text-align: right;
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white !important;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    min-width: 200px;
}

.whatsapp-order-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-order-btn i {
    font-size: 26px;
    margin-right: 10px;
}

.whatsapp-order-btn span {
    font-size: 16px;
}

@media (max-width: 767px) {
    .product-action-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-price-area {
        margin-bottom: 20px;
        padding-right: 0;
        width: 100%;
    }
    
    .whatsapp-action {
        width: 100%;
        text-align: center;
    }
    
    .whatsapp-order-btn {
        width: 100%;
    }
}

/* Animation Classes */
.wow {
    visibility: hidden;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
  
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        animation-timing-function: ease-in;
    }
  
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }
  
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
  
    to {
        transform: perspective(400px);
    }
}

/* Custom responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}
/* Kompakt Ürün Kutusu Stili - Mobil Uyumlu */
.kompakt-urun-kutusu {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #eaeaea;
    background-color: #fff;
    margin-bottom: 15px;
}

.urun-bilgisi {
    width: 100%;
}

.urun-basligi {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #444;
    line-height: 1.3;
}

.fiyat-bolumu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.fiyat-detaylari {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.yeni-fiyat {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

.eski-fiyat {
    font-size: 14px;
    color: #777;
    text-decoration: line-through;
    line-height: 1.2;
}

.indirim-etiketi {
    padding: 3px 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-block;
}

/* Mobil uyumluluk için ekstra stiller */
@media (max-width: 767px) {
    .indirim-etiketi {
        margin-top: 5px;
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .fiyat-bolumu {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .fiyat-detaylari {
        margin-right: 5px;
    }
}

/* Daha küçük ekranlar için */
@media (max-width: 400px) {
    .fiyat-bolumu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .indirim-etiketi {
        margin-top: 5px;
        align-self: flex-start;
    }
}

/* Ürün Parçaları Stilleri */
.product-parts-section {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.parts-title {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.part-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.part-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.part-inner {
    background-color: #fff;
    border-radius: 7px;
    height: 100%;
}

.part-image {
    flex-shrink: 0;
}

.part-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.part-type {
    font-size: 14px;
    color: #666;
}

.part-price {
    font-size: 17px;
    font-weight: 700;
    color: #e74c3c;
}