/**
 * Custom Footer Styles
 * Black rounded footer design with modern layout
 */

/* Custom Footer Variables */
:root {
    --custom-footer-bg: #000000;
    --custom-footer-text: #ffffff;
    --custom-footer-accent: #ffcc00;
    --custom-footer-border-radius: 53px;
    --custom-footer-padding: 30px;
    --custom-footer-line-height: 35px;
    --custom-footer-social-bg: #000000;
    --custom-footer-social-radius: 30px;
    --custom-footer-transition: all 0.3s ease;
}

/* Main Footer Container */
.footer-wrapper {
    margin-top: 3rem;
    padding: 0 15px;
}

.footer-row {
    align-items: center;
    margin-bottom: 2rem;
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    transition: var(--custom-footer-transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Custom Footer Content */
.custom-footer {
    background-color: var(--custom-footer-bg);
    border-radius: var(--custom-footer-border-radius);
    padding: var(--custom-footer-padding);
    color: var(--custom-footer-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.custom-footer .row {
    position: relative;
    z-index: 2;
}

/* Footer Headings */
.custom-footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--custom-footer-text);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.custom-footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--custom-footer-accent);
    border-radius: 1px;
}

/* Footer Lists */
.custom-footer .list-unstyled {
    line-height: var(--custom-footer-line-height);
    margin: 0;
    padding: 0;
}

.custom-footer .list-unstyled li {
    margin-bottom: 0.5rem;
    transition: var(--custom-footer-transition);
}

.custom-footer .list-unstyled li:hover {
    transform: translateX(5px);
}

.custom-footer .list-unstyled a {
    color: var(--custom-footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--custom-footer-transition);
    position: relative;
    display: inline-block;
}

.custom-footer .list-unstyled a:hover {
    color: var(--custom-footer-accent);
    text-decoration: none;
}

.custom-footer .list-unstyled a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--custom-footer-accent);
    transition: width 0.3s ease;
}

.custom-footer .list-unstyled a:hover::before {
    width: 100%;
}

/* Contact Section */
.custom-footer p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.custom-footer p.fw-bold {
    color: var(--custom-footer-accent);
    font-weight: 600;
}

/* Social Icons */
.social-icons2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--custom-footer-social-bg);
    padding: 15px 10px;
    border-radius: var(--custom-footer-social-radius);
    border: 2px solid rgba(255, 204, 0, 0.2);
    transition: var(--custom-footer-transition);
}

.social-icons2:hover {
    border-color: var(--custom-footer-accent);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.social-icons2 a {
    color: var(--custom-footer-text);
    font-size: 1.2rem;
    text-align: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--custom-footer-transition);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons2 a:hover {
    color: var(--custom-footer-accent);
    background: rgba(255, 204, 0, 0.2);
    transform: scale(1.1);
    text-decoration: none;
}

.social-icons2 i {
    color: inherit;
    transition: var(--custom-footer-transition);
}

/* Copyright Section */
.custom-footer .copyright-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer .copyright-section p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Special Offer Tags (from your existing styles) */
.special-offer-tag {
    position: absolute;
    top: -20px;
    left: -50px;
    background-color: var(--custom-footer-accent);
    color: #000;
    padding: 2px 10px;
    font-weight: bold;
    font-size: 11px;
    transform: rotate(324deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.price.mt-2,
.product-info p.fw-bold {
    position: relative;
    margin-top: 20px !important;
}

.price.mt-2 del,
.product-info p.fw-bold del {
    font-size: 20px;
    color: #666;
    margin-right: 10px;
}

.price.mt-2 .text-dark.fw-bold,
.product-info p.fw-bold .text-dark.fw-bold {
    font-size: 24px !important;
    color: #000 !important;
    font-weight: bold !important;
}

.product-info {
    position: relative;
}

.product-item {
    position: relative;
}

#productList .special-offer-tag {
    position: absolute;
    top: -14px;
    left: 75px;
    background-color: var(--custom-footer-accent);
    color: #000;
    padding: 2px 10px;
    font-weight: bold;
    font-size: 6px;
    transform: rotate(324deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Product Data Styles */
.product-data h2 {
    margin-bottom: 55px !important;
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-footer > .row > div {
    animation: fadeInUp 0.6s ease-out;
}

.custom-footer > .row > div:nth-child(1) { animation-delay: 0.1s; }
.custom-footer > .row > div:nth-child(2) { animation-delay: 0.2s; }
.custom-footer > .row > div:nth-child(3) { animation-delay: 0.3s; }
.custom-footer > .row > div:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
    .custom-footer {
        border-radius: 40px;
        padding: 25px;
    }

    .footer-logo-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        margin-top: 2rem;
    }

    .custom-footer {
        border-radius: 30px;
        padding: 20px;
    }

    .custom-footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .social-icons2 {
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
        padding: 10px 15px;
        margin-top: 1rem;
    }

    .social-icons2 a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .custom-footer .list-unstyled {
        line-height: 2;
    }

    .custom-footer p {
        font-size: 0.85rem;
    }

    .custom-footer .copyright-section p {
        font-size: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .custom-footer {
        border-radius: 20px;
        padding: 15px;
    }

    .footer-logo {
        max-width: 150px;
    }

    .custom-footer h5 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .custom-footer .row > div {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .social-icons2 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .custom-footer {
        border-radius: 15px;
        padding: 12px;
    }

    .custom-footer h5 {
        font-size: 0.9rem;
    }

    .custom-footer .list-unstyled a,
    .custom-footer p {
        font-size: 0.8rem;
    }

    .social-icons2 a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .custom-footer {
        background: white !important;
        color: black !important;
        border: 1px solid #000;
    }

    .social-icons2 {
        display: none;
    }

    .special-offer-tag {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .custom-footer {
        background: #000000;
        border: 2px solid #ffffff;
    }

    .custom-footer h5::after {
        background: #ffffff;
    }

    .social-icons2 {
        border-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .custom-footer > .row > div,
    .social-icons2 a:hover,
    .footer-logo:hover,
    .custom-footer .list-unstyled li:hover {
        animation: none;
        transform: none;
    }
}

/* Focus States for Accessibility */
.custom-footer .list-unstyled a:focus,
.social-icons2 a:focus {
    outline: 2px solid var(--custom-footer-accent);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --custom-footer-bg: #1a1a1a;
        --custom-footer-text: #f5f5f5;
    }
}
