.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer a {
    color: #fff;
    transition: color 0.3s;
    font-size: 14px;
}

.footer a:hover {
    color: var(--primary-light, #b8775a);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img,
.footer-logo-img {
    height: 48px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
    margin-top: 0;
}

.footer-logo p,
.footer-tagline {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

.footer-column {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color, #9c5a3c);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-light, #b8775a);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info li {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-info li i {
    color: var(--primary-color, #9c5a3c);
    margin-right: 10px;
    margin-top: 5px;
}

.contact-info li a:hover {
    color: var(--primary-light, #b8775a);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a,
.social-links .social-link-inactive {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background-color: var(--primary-color, #9c5a3c);
    transform: translateY(-2px);
}

.social-links .social-link-inactive {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-links .social-link-inactive:hover {
    opacity: 0.7;
}

.copyright {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.footer-bottom {
    padding: 12px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-methods {
    display: flex;
    align-items: center;
    font-size: 24px;
    line-height: 1;
    margin: 0;
}

.payment-methods i {
    margin-left: 10px;
    color: #fff;
    transition: color 0.3s;
}

.payment-methods i:hover {
    color: var(--primary-light, #b8775a);
}

.payment-methods i:first-child {
    margin-left: 0;
}

/* Sabit köşe: üstte WhatsApp, altta "yukarı çık" (DOM: önce WA, sonra scroll) */
.floating-action-stack {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.floating-action-stack > * {
    pointer-events: auto;
}

.floating-phone-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(156, 90, 60, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-phone-btn:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .floating-phone-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 22px rgba(156, 90, 60, 0.55);
    }

    .floating-phone-btn:active {
        transform: translateY(0);
    }
}

.floating-whatsapp-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp-btn:focus-visible {
    outline: 2px solid #128c7e;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .floating-whatsapp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
    }

    .floating-whatsapp-btn:active {
        transform: translateY(0);
    }
}

.scroll-to-top-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9c5a3c 0%, #2b211c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(156, 90, 60, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    display: none;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #2b211c 0%, #9c5a3c 100%);
}

@media (hover: hover) and (pointer: fine) {
    .scroll-to-top-btn:hover {
        background: linear-gradient(135deg, #2b211c 0%, #9c5a3c 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(156, 90, 60, 0.4);
    }
    
    .scroll-to-top-btn:active {
        transform: translateY(0);
    }
}

.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #9c5a3c 0%, #2b211c 100%);
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}

body.page-sepet .mobile-cart-bar,
body.page-cart .mobile-cart-bar,
body.page-odeme .mobile-cart-bar,
body.page-checkout .mobile-cart-bar,
body.page-siparis-basarili .mobile-cart-bar,
body.page-order-success .mobile-cart-bar {
    display: none !important;
}

@media (max-width: 768px) {
    body.page-sepet .footer-bottom,
    body.page-cart .footer-bottom,
    body.page-odeme .footer-bottom,
    body.page-checkout .footer-bottom,
    body.page-siparis-basarili .footer-bottom,
    body.page-order-success .footer-bottom {
        margin-bottom: 0px !important;
    }
}

.mobile-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
}

.mobile-cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mobile-cart-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart-icon i {
    font-size: 16px;
}

.mobile-cart-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-cart-text {
    color: white;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.mobile-cart-total {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.mobile-cart-button {
    background: rgba(255,255,255,0.95);
    color: #2b211c;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-cart-button:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-cart-button:active {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .mobile-cart-bar {
        display: none !important;
    }

    body.has-mobile-cart {
        padding-bottom: 0 !important;
    }

    .footer-bottom {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    body.page-sepet .floating-action-stack,
    body.page-odeme .floating-action-stack,
    body.page-siparis-basarili .floating-action-stack {
        bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    body.page-sepet .floating-action-stack,
    body.page-odeme .floating-action-stack,
    body.page-siparis-basarili .floating-action-stack {
        bottom: 15px !important;
    }
}

@media (max-width: 1024px) {
    .footer .container {
        padding: 0 15px;
    }

    .footer-content > .footer-logo,
    .footer-content > .footer-column {
        margin-bottom: 0;
    }

    .footer-content > .footer-logo {
        grid-area: footer-logo;
        text-align: left;
        align-items: flex-start;
    }

    .footer-content > .footer-column:nth-child(2) {
        grid-area: footer-cats;
        text-align: left;
        align-items: flex-start;
    }

    .footer-content > .footer-column:nth-child(3) {
        grid-area: footer-corp;
        text-align: left;
        align-items: flex-start;
    }

    .footer-content > .footer-column:nth-child(4) {
        grid-area: footer-contact;
        text-align: left;
        align-items: flex-start;
    }

    .footer-content .footer-column-title::after {
        left: 0;
        transform: none;
    }

    .footer-tagline {
        max-width: none;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        margin: 0;
    }

    .contact-info li {
        justify-content: flex-start;
        text-align: left;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
    }

    .contact-info li i {
        margin-top: 0;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "footer-logo footer-logo footer-logo"
            "footer-cats footer-corp footer-contact";
        gap: 24px 16px;
        align-items: start;
    }
}

@media (max-width: 768px) {
    .footer .container {
        padding: 0 15px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "footer-logo footer-logo"
            "footer-cats footer-corp"
            "footer-contact footer-contact";
        gap: 24px 16px;
        align-items: start;
    }
    
    .footer-logo-text {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .footer-logo p,
    .footer-tagline {
        font-size: 13px;
        line-height: 1.4;
        max-width: 100%;
    }
    
    .footer-column-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-column ul li {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin: 0 3px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin-bottom: 0;
    }

    body.has-mobile-cart {
        padding-bottom: 60px;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .copyright {
        margin-top: 0px;
        font-size: 12px;
        margin-bottom: 0;
        flex: 1;
        text-align: left;
        padding: 0 15px;
    }
    
    .payment-methods {
        margin-top: 0;
        font-size: 20px;
        flex: 0 0 auto;
        padding-right: 15px;
    }
    
    .payment-methods i:first-child {
        margin-left: 0;
    }
    
    .payment-methods i {
        margin-left: 8px;
    }
    
    .mobile-cart-bar {
        display: block !important;
    }
    
    .floating-action-stack {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-phone-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .floating-whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .scroll-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    body.has-mobile-cart .floating-action-stack {
        bottom: 85px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "footer-logo footer-logo"
            "footer-cats footer-corp"
            "footer-contact footer-contact";
        gap: 20px 12px;
    }

    .contact-info li a {
        word-break: break-word;
    }

    .floating-action-stack {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .floating-phone-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .floating-whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    body.has-mobile-cart .floating-action-stack {
        bottom: 80px;
    }
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    .footer {
        padding: 25px 0 0px;
        margin-top: 20px;
    }
    
    .footer .container {
        padding: 0 15px;
    }

    .footer-content {
        gap: 15px 12px;
        margin-bottom: 15px;
    }
    
    .footer-logo-text {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .footer-logo p,
    .footer-tagline {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .footer-column-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-column ul li {
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .social-links a {
        width: 26px;
        height: 26px;
        font-size: 11px;
        margin: 0 2px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .copyright {
        margin-top: 0px;
        font-size: 12px;
        margin-bottom: 0;
        flex: 1;
        text-align: left;
        padding: 0 15px;
    }
    
    .payment-methods {
        margin-top: 0;
        font-size: 18px;
        flex: 0 0 auto;
        padding-right: 15px;
    }
    
    .payment-methods i:first-child {
        margin-left: 0;
    }
    
    .payment-methods i {
        margin-left: 6px;
    }
    
    .mobile-cart-bar {
        height: 50px;
    }
    
    .mobile-cart-content {
        padding: 0 15px;
    }
    
    .mobile-cart-icon {
        width: 32px;
        height: 32px;
    }
    
    .mobile-cart-icon i {
        font-size: 14px;
    }
    
    .mobile-cart-text {
        font-size: 12px;
    }
    
    .mobile-cart-total {
        font-size: 14px;
    }
    
    .mobile-cart-button {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 4px;
    }
    
    body.has-mobile-cart {
        padding-bottom: 60px;
    }
} 
/* Sepet ve ödeme sayfalarında (mobil) sabit telefon / WhatsApp / yukarı çık butonları
   "Siparişi Tamamla" ve "Ödeme Adımına Geç" butonlarının üzerine binmesin diye gizlenir.
   Sınıf footer.php'de sunucu tarafında eklenir; body.page-* sınıfları yedek seçicidir. */
@media (max-width: 768px) {
    .floating-action-stack.floating-action-stack--checkout,
    body.page-sepet .floating-action-stack,
    body.page-cart .floating-action-stack,
    body.page-odeme .floating-action-stack,
    body.page-checkout .floating-action-stack {
        display: none !important;
    }
}

/* ── Ninel Moda footer: 5 sütun (Logo · Kategoriler · Kurumsal · Sözleşmeler · İletişim) ──
   Alanlar sınıf adıyla atanır; nth-child sırasına bağlı eski kurallar sütun eklenince kaymasın. */
.footer-content > .footer-logo              { grid-area: footer-logo; }
.footer-content > .footer-column.footer-col-cats    { grid-area: footer-cats; }
.footer-content > .footer-column.footer-col-corp    { grid-area: footer-corp; }
.footer-content > .footer-column.footer-col-legal   { grid-area: footer-legal; }
.footer-content > .footer-column.footer-col-contact { grid-area: footer-contact; }

.footer-content {
    grid-template-columns: 1.35fr 0.85fr 1fr 1.15fr 1.25fr;
    grid-template-areas: "footer-logo footer-cats footer-corp footer-legal footer-contact";
    gap: 30px 24px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "footer-logo footer-logo footer-logo"
            "footer-cats footer-corp footer-legal"
            "footer-contact footer-contact footer-contact";
        gap: 24px 16px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "footer-logo footer-logo"
            "footer-cats footer-corp"
            "footer-legal footer-contact";
        gap: 24px 16px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "footer-logo footer-logo"
            "footer-cats footer-corp"
            "footer-legal footer-legal"
            "footer-contact footer-contact";
        gap: 20px 12px;
    }
}
