/* Custom CSS for Eşo Tulum Peyniri website */

/* Cart Button Animation */
.add-to-cart {
    position: relative;
    overflow: hidden;
    background: #ff7200 !important;
    border-color: #ff7200 !important;
}

.add-to-cart i {
    color: #ffffff !important;
}

.add-to-cart:hover {
    background: #e56700 !important;
    border-color: #e56700 !important;
}

.add-to-cart.added::after {
    content: '✓';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(127, 203, 17, 0.8);
    color: white;
    font-weight: bold;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Logo Responsive Settings */
.header__logo img, .footer__about__logo img, .humberger__menu__logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    padding: 5px 0;
}

.header__logo {
    display: flex;
    justify-content: center;
    padding-right: 0;
    align-items: center;
}

.footer__about__logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.footer__about__logo img {
    max-height: 130px;
}

.humberger__menu__logo {
    display: flex;
    justify-content: center;
}

/* Mobile Logo Settings */
@media (max-width: 768px) {
    .header__logo img, .footer__about__logo img, .humberger__menu__logo img {
        max-height: 80px;
    }
    
    .header__logo {
        margin-bottom: 15px;
        justify-content: center;
        padding-right: 0;
    }
}

/* Tablet Logo Settings */
@media (min-width: 769px) and (max-width: 991px) {
    .header__logo {
        justify-content: center;
        padding-right: 0;
    }
    
    .header__logo img {
        max-height: 100px;
    }
}

/* Product Icons */
.product__item__pic__hover li:first-child {
    margin-left: 10px;
}

.product__item__pic__hover li a i {
    font-size: 18px;
}

.product__item__pic__hover li a:hover {
    background: #7fad39;
    border-color: #7fad39;
}

.product__item__pic__hover li a:hover i {
    color: #ffffff;
    transform: rotate(360deg);
}

/* WhatsApp Button */
.whatsapp-order {
    background: #25D366 !important;
    border-color: #25D366 !important;
}

.whatsapp-order i {
    color: #ffffff !important;
}

.whatsapp-order:hover {
    background: #128C7E !important;
    border-color: #128C7E !important;
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.whatsapp-order-btn {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.whatsapp-order-btn i {
    font-size: 20px;
    margin-right: 8px;
}

.whatsapp-order-btn:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
}

/* Shop Now Button */
.shop-now-btn {
    background: #25D366 !important;
    border-color: #25D366 !important;
}

.shop-now-btn i {
    color: #ffffff !important;
}

.shop-now-btn:hover {
    background: #128C7E !important;
    border-color: #128C7E !important;
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Header Menu Layout */
.header .row {
    display: flex;
    align-items: center;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
}

.header__menu {
    text-align: center;
}

.header__menu ul {
    display: inline-block;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .header .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
        display: flex;
        justify-content: center;
    }
    
    .header .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
        justify-content: center;
    }
}

.header__menu ul li {
    display: inline-block;
    margin-right: 45px;
    position: relative;
}

.header__menu ul li:last-child {
    margin-right: 0;
}

.header__menu ul li a {
    font-size: 16px;
    color: #1c1c1c;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    transition: all 0.3s;
}

.header__menu ul li a:hover {
    color: #7fad39;
}

.header__menu ul li.active a {
    color: #7fad39;
}

/* Product Display Styles */
/* Yeni Ürünler ve En Çok Satanlar bölümü için stil */
.latest-product__item__pic {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.latest-product__item__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ürünlerimiz bölümü için stil */
.product__item__pic {
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product__item__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stokta olmayan ürünler için stiller */
.product-out-of-stock {
    opacity: 0.7;
    position: relative;
}

.stock-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 2;
}

.mini-stock-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
}

.disabled-btn {
    cursor: not-allowed !important;
    opacity: 0.5;
    background-color: #aaa !important;
    border-color: #999 !important;
}

/* Yatay buton düzeni */
.horizontal-buttons {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.horizontal-buttons li {
    display: inline-block;
    margin: 0 3px !important;
    float: none !important;
    transform: none !important;
}

.product__item:hover .horizontal-buttons {
    opacity: 1;
    visibility: visible;
}

.horizontal-buttons li a {
    transform: none !important;
} 