/* Styling Properties Mapping Variables */
:root {
    --primary-brand: #3d141a;
    --brand-dark: #2b0c10;
    --brand-cream: #dfcfc2;
    --text-main: #333333;
    --bg-light: #fdfbf7;
    --border-color: #eaeaea;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: #ffffff; color: var(--text-main); }

/* Layout Design rules */
.top-bar { background-color: var(--primary-brand); color: #fff; text-align: center; padding: 12px; font-size: 13px; letter-spacing: 1px; }
.top-bar a { color: #fff; text-decoration: underline; }

header { display: flex; align-items: center; justify-content: space-between; padding: 20px 4%; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.logo { font-weight: bold; font-size: 22px; color: var(--primary-brand); border: 2px dashed var(--primary-brand); padding: 5px 15px; border-radius: 20px; text-transform: uppercase; font-style: italic; }

.search-container { flex: 0 1 45%; display: flex; position: relative; }
.search-container input { width: 100%; padding: 12px 20px; border: 1px solid #e0e0e0; border-radius: 25px; background: #f9f9f9; outline: none; }
.search-btn { position: absolute; right: 5px; top: 4px; background: var(--primary-brand); border: none; width: 35px; height: 35px; border-radius: 50%; color: white; cursor: pointer; }

.nav-right { display: flex; gap: 20px; font-size: 14px; }
.cart-icon span { background: var(--primary-brand); color: white; font-size: 10px; padding: 2px 5px; border-radius: 50%; margin-left: 2px; font-weight: bold; }

.menu-bar { display: flex; justify-content: space-between; padding: 15px 4%; border-bottom: 1px solid #f0f0f0; font-size: 14px; font-weight: 500; }
.menu-left { display: flex; gap: 25px; cursor: pointer; }
.menu-right { display: flex; gap: 25px; color: #555; }

/* Image Carousel Banner */
.hero-slider { position: relative; width: 100%; height: 340px; overflow: hidden; background: var(--brand-dark); }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; }
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.35); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-content h1 { font-size: 46px; font-family: Georgia, serif; margin-bottom: 12px; }

.trust-ribbon { background-color: var(--brand-dark); color: var(--brand-cream); display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 16px 4%; font-size: 13px; font-weight: 600; }

/* Product Display Grid styles */
.main-container { display: flex; padding: 40px 4%; gap: 40px; }
.sidebar { flex: 0 0 240px; }
.filter-section { border-bottom: 1px solid var(--border-color); padding-bottom: 25px; margin-bottom: 25px; }
.filter-title { font-weight: 600; font-size: 14px; text-transform: uppercase; display: flex; justify-content: space-between; }
.filter-subtitle { font-size: 13px; color: #555; margin: 10px 0; }
.price-inputs { display: flex; flex-direction: column; gap: 12px; }
.price-field { display: flex; background: #f7f7f7; border: 1px solid #ddd; padding: 10px; border-radius: 4px; }
.price-field input { border: none; background: transparent; outline: none; margin-left: 5px; }

.catalog-section { flex: 1; }
.catalog-header { display: flex; justify-content: space-between; margin-bottom: 30px; font-size: 14px; color: #666; }
.sort-container select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 25px; }
.product-card { display: flex; flex-direction: column; text-align: center; }
.product-image-wrapper { background: var(--bg-light); border-radius: 4px; overflow: hidden; position: relative; padding-top: 100%; cursor: pointer; }
.product-image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: opacity 0.4s ease; }

/* Image Swap Hover Settings */
.product-image-wrapper img.img-hover { opacity: 0; z-index: 2; }
.product-image-wrapper:hover img.img-main { opacity: 0; }
.product-image-wrapper:hover img.img-hover { opacity: 1; }

.product-title { font-size: 15px; margin: 10px 0 5px 0; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-weight: 600; color: var(--primary-brand); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.page-btn { width: 42px; height: 42px; border: 1px solid #ddd; background: #fff; cursor: pointer; border-radius: 4px; }
.page-btn.active { background: var(--primary-brand); color: white; border-color: var(--primary-brand); font-weight: bold; }

.support-badge { position: fixed; bottom: 25px; right: 25px; background: var(--primary-brand); color: white; padding: 14px 22px; border-radius: 25px; font-size: 14px; z-index: 999; display: flex; align-items: center; gap: 8px; }
.support-dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; display: inline-block; }

/* Responsive Scale Adjustments */
@media (max-width: 992px) { .products-grid { grid-template-columns: repeat(2, 1fr); } .trust-ribbon { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 576px) { .main-container { flex-direction: column; } .products-grid { grid-template-columns: repeat(1, 1fr); } .trust-ribbon { grid-template-columns: 1fr; } }
/* Master Corporate Retail Footer Layout Styles */
.master-retail-footer {
    background-color: var(--brand-dark, #1f070a);
    color: #dfcfc2;
    padding: 60px 4% 30px 4%;
    border-top: 4px solid var(--brand-burgundy, #3d141a);
    font-size: 14px;
    line-height: 1.6;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-column h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.footer-column p {
    color: #bfaea2;
    font-size: 13px;
    margin-bottom: 15px;
}

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

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

.footer-column ul li a {
    color: #bfaea2;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 13px;
}

.footer-column ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Social link row icons element */
.social-links {
    display: flex;
    gap: 15px;
    font-size: 18px;
    margin-top: 15px;
    cursor: pointer;
}

/* Form input elements controls */
.footer-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.footer-email-form input {
    padding: 12px 15px;
    border: 1px solid #44171d;
    border-radius: 4px;
    background-color: #2b0c10;
    color: #ffffff;
    outline: none;
    font-size: 13px;
    width: 100%;
}

.footer-email-form input::placeholder {
    color: #8c7679;
}

.footer-email-form button {
    padding: 12px;
    background-color: var(--brand-burgundy, #3d141a);
    color: #ffffff;
    border: 1px solid #44171d;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: background-color 0.2s;
}

.footer-email-form button:hover {
    background-color: #521c23;
}

.footer-divider {
    border: none;
    border-top: 1px solid #2b0c10;
    margin: 40px 0 20px 0;
}

/* Bottom Ground level Ribbon section components mapping rules */
.footer-bottom-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 12px;
    color: #8c7679;
}

.payment-trust-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-trust-icons span {
    background-color: #2b0c10;
    padding: 4px 10px;
    border-radius: 4px;
    color: #bfaea2;
}

/* 📱 Responsive Mobile View Media Query Breakpoints */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-bottom-ribbon {
        flex-direction: column;
        text-align: center;
    }
    .payment-trust-icons {
        justify-content: center;
    }
}
/* --- RAEBABECO PREMIUM LEATHER STORE THEME ACCENTS --- */

/* Action channel layout buttons top bar */
.action-channel-btn {
    background-color: #2B1810;
    color: #FDFBF7;
    border: 1px solid #442a20;
    padding: 8px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.action-channel-btn:hover {
    background-color: #A05A2C;
    border-color: #A05A2C;
    color: #ffffff;
}
.active-channel {
    background-color: #A05A2C !important;
    border-color: #A05A2C !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Sidebar tracking link elements layout */
.sidebar-nav-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 15px;
    color: #2B1810;
    cursor: pointer;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 2px;
}
.sidebar-nav-link:hover {
    background-color: #FDFBF7;
    color: #A05A2C;
}
.sidebar-nav-link.active-link {
    background-color: #2B1810;
    color: #FDFBF7;
    font-weight: 600;
}

/* Sub-catalog tracking item rules */
.sidebar-sub-link {
    font-size: 13px;
    padding: 8px 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-sub-link:hover:not([style*="not-allowed"]) {
    color: #A05A2C;
    padding-left: 18px;
}

/* Overriding original button themes to adopt the custom Saddle Tan brand theme color */
.add-to-cart-btn {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #A05A2C !important;
    color: #A05A2C !important;
    padding: 8px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.add-to-cart-btn:hover {
    background: #A05A2C !important;
    color: #ffffff !important;
}

/* Adjust pagination tracking highlight nodes */
.page-btn.active {
    background: #2B1810 !important;
    border-color: #2B1810 !important;
    color: #ffffff !important;
}

/* Adjust image block container canvas background color */
.product-image-wrapper {
    background: #FDFBF7 !important;
    border: 1px solid #ebdcd0;
}

/* 📱 Universal Mobile Header Polish Overrides */
@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px 4% !important;
        align-items: stretch !important;
    }

    .header-left-brand {
        text-align: center;
    }

    .search-container {
        width: 100% !important;
    }

    /* Creates a smooth, swipeable touch-scrolling row for your header buttons on mobile */
    .nav-right {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Guarantees the buttons keep their sharp rectangular boxes and never shrink or distort */
    .action-channel-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 10px !important;
        background-color: #2B1810 !important;
        border: 1px solid #442a20 !important;
    }
    
    /* Hides the desktop sidebar on mobile so products can scale to full phone widths */
    .main-container {
        flex-direction: column !important;
    }
    .sidebar {
        width: 100% !important;
        padding-top: 20px !important;
        border-right: none !important;
    }
}
