/* Store Layout Customization CSS */

/* Header Customization */
.store-navbar {
    transition: all 0.3s ease;
}

.store-navbar.sticky-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.store-navbar.fixed-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header Logo Positioning */
.navbar-brand.logo-left {
    margin-right: auto;
}

.navbar-brand.logo-center {
    margin: 0 auto;
}

.navbar-brand.logo-right {
    margin-left: auto;
}

/* Menu Alignment */
.navbar-nav.menu-left {
    margin-right: auto;
}

.navbar-nav.menu-center {
    margin: 0 auto;
}

.navbar-nav.menu-right {
    margin-left: auto;
}

/* Search Bar Positioning */
.search-form.search-left {
    order: -1;
}

.search-form.search-center {
    order: 0;
}

.search-form.search-right {
    order: 1;
}

/* Announcement Bar */
.announcement-bar {
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-bar.hidden {
    display: none;
}

/* Footer Customization */
.store-footer {
    margin-top: auto;
}

.footer-logo {
    filter: brightness(0.9);
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-signup {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.newsletter-signup .form-control {
    border-radius: 25px;
    border: none;
    padding: 0.75rem 1.25rem;
}

.newsletter-signup .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    white-space: nowrap;
}

/* Footer Columns Responsive */
@media (max-width: 768px) {
    .store-footer .row > div {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-signup {
        text-align: center;
    }
    
    .newsletter-signup .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* RTL Support for Custom Elements */
[dir="rtl"] .social-links a {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .social-links a:last-child {
    margin-right: 0;
}

/* Custom Color Variables Override */
.store-navbar a.nav-link {
    color: inherit !important;
}

.store-navbar a.nav-link:hover {
    opacity: 0.8;
}

.store-footer a {
    color: inherit;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.store-footer a:hover {
    opacity: 1;
}

/* Header Sticky Animation */
.store-navbar.sticky-top,
.store-navbar.fixed-top {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom Logo Sizing */
.store-logo-nav {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

/* Fix Icon Visibility Issues */
.store-navbar .btn,
.store-navbar .btn-outline-primary {
    color: inherit !important;
    border-color: currentColor;
}

.store-navbar .btn:hover,
.store-navbar .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: currentColor;
}

/* Ensure Icons are Visible */
.store-navbar .fas,
.store-navbar .fab {
    color: inherit !important;
}

/* Force Icon Colors */
.store-navbar i.fas,
.store-navbar i.fab {
    color: currentColor !important;
}

/* Icon Container Styling */
.wishlist-icon,
.cart-icon,
.search-form {
    display: flex;
    align-items: center;
}

.wishlist-icon a,
.cart-icon a {
    color: inherit !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wishlist-icon a:hover,
.cart-icon a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Ensure all icons in navbar are visible */
.navbar-nav .nav-link i,
.navbar-brand i,
.store-navbar i {
    color: inherit !important;
    opacity: 1 !important;
}

/* Cart Icon Styling */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Form Styling */
.search-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form .btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
}

.search-form .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Additional Icon Fixes */
.store-navbar * {
    box-sizing: border-box;
}

.store-navbar .navbar-nav .nav-link i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force Font Awesome Icons */
.fas, .fab, .far, .fal {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

.fab {
    font-weight: 400 !important;
}

/* Ensure icon containers are properly sized */
.wishlist-icon,
.cart-icon {
    min-width: 24px;
    min-height: 24px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Store Layout Customization - Footer Section */

/* Footer Layout Variables */
.store-footer {
    --footer-layout-type: var(--footer-layout-type, 'standard');
    --footer-alignment: var(--footer-alignment, 'left');
    --footer-spacing: var(--footer-spacing, 'normal');
    --footer-width: var(--footer-width, 'container');
    --footer-position: var(--footer-position, 'relative');
}

/* Footer Layout Types */
.store-footer[data-layout="standard"] {
    display: block;
    width: 100%;
}

.store-footer[data-layout="centered"] {
    text-align: center;
}

.store-footer[data-layout="minimal"] {
    padding: 1rem 0;
}

.store-footer[data-layout="extended"] {
    padding: 3rem 0;
}

.store-footer[data-layout="compact"] {
    padding: 1.5rem 0;
}

/* Footer Alignment Options */
.store-footer[data-alignment="left"] {
    text-align: left;
}

.store-footer[data-alignment="center"] {
    text-align: center;
}

.store-footer[data-alignment="right"] {
    text-align: right;
}

.store-footer[data-alignment="justify"] {
    text-align: justify;
}

/* Footer Spacing Options */
.store-footer[data-spacing="tight"] {
    --footer-padding-y: 1rem;
    --footer-padding-x: 0;
    --footer-column-padding: 0 0.5rem;
    --footer-column-margin: 0.5rem;
}

.store-footer[data-spacing="normal"] {
    --footer-padding-y: 2rem;
    --footer-padding-x: 0;
    --footer-column-padding: 0 1rem;
    --footer-column-margin: 1rem;
}

.store-footer[data-spacing="loose"] {
    --footer-padding-y: 3rem;
    --footer-padding-x: 0;
    --footer-column-padding: 0 1.5rem;
    --footer-column-margin: 1.5rem;
}

.store-footer[data-spacing="extra-loose"] {
    --footer-padding-y: 4rem;
    --footer-padding-x: 0;
    --footer-column-padding: 0 2rem;
    --footer-column-margin: 2rem;
}

/* Footer Width Options */
.store-footer[data-width="container"] {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.store-footer[data-width="full"] {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.store-footer[data-width="narrow"] {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.store-footer[data-width="wide"] {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Position Options */
.store-footer[data-position="relative"] {
    position: relative;
}

.store-footer[data-position="absolute"] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.store-footer[data-position="fixed"] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.store-footer[data-position="sticky"] {
    position: sticky;
    bottom: 0;
    z-index: 100;
}

/* Footer Grid System */
.store-footer[data-grid="auto"] .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.store-footer[data-grid="manual"] .row {
    display: flex;
    flex-wrap: wrap;
}

.store-footer[data-grid="css-grid"] .row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

/* Footer Column Sizing */
.store-footer[data-column-size="equal"] .row > div {
    flex: 1;
    min-width: 0;
}

.store-footer[data-column-size="auto"] .row > div {
    flex: 0 0 auto;
    min-width: 0;
}

.store-footer[data-column-size="fixed"] .row > div {
    flex: 0 0 250px;
    min-width: 250px;
}

/* Footer Responsive Behavior */
.store-footer[data-responsive="stack"] .row > div {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.store-footer[data-responsive="collapse"] .row > div {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.store-footer[data-responsive="maintain"] .row > div {
    /* Maintain original sizing */
}

/* Footer Mobile Layout */
@media (max-width: 768px) {
    .store-footer[data-mobile-layout="stack"] .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .store-footer[data-mobile-layout="grid"] .row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .store-footer[data-mobile-layout="compact"] {
        padding: 1rem 0 !important;
    }
}

@media (max-width: 576px) {
    .store-footer[data-mobile-layout="grid"] .row {
        grid-template-columns: 1fr !important;
    }
    
    .store-footer[data-mobile-layout="single"] .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
}

/* Footer Print Layout */
@media print {
    .store-footer {
        position: relative !important;
        page-break-inside: avoid !important;
    }
    
    .store-footer .row {
        display: block !important;
    }
    
    .store-footer .row > div {
        width: 100% !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid !important;
    }
}

/* Footer Accessibility */
.store-footer[data-accessibility="high-contrast"] {
    border: 2px solid currentColor !important;
    background: white !important;
    color: black !important;
}

.store-footer[data-accessibility="large-text"] {
    --footer-heading-size: 1.3rem;
    --footer-text-size: 1.1rem;
    --footer-link-size: 1rem;
}

.store-footer[data-accessibility="reduced-motion"] * {
    transition: none !important;
    animation: none !important;
}
