/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-color: #fcb800;
    /* Martfury Yellow */
    --text-color: #333;
    --heading-color: #000;
}

/* Theme 1 (Automotivo) */
.theme1 {
    --primary-color: #ffffff;
}

.theme1 .header-main {
    background-color: #ffffff;
}

.theme1 .header-top {
    background-color: #ffffff;
}

.theme1 .main-nav {
    border-top: 1px solid #ccc;
}

.theme1 .search-form button {
    background-color: #dd2400 !important;
}

.theme1 .header-actions .badge {
    background-color: #dd2400 !important;
}

.theme1 .search-form .search-category {
    background-color: #ffffff !important;
}

.theme1 .features-info .text-warning {
    color: #dd2400 !important;
}

.theme1 .bg-warning {
    background-color: #dd2400 !important;
}

/* Theme 2 (Tecnologia) */
.theme2 {
    --primary-color: #ffffff;
}

.theme2 .header-main {
    background-color: #ffffff;
}

.theme2 .header-top {
    background-color: #ffffff;
}

.theme2 .main-nav {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.theme2 .search-form button {
    background-color: #fcb800 !important;
    color: #000 !important;
}

.theme2 .header-actions span {
    color: #000 !important;
}

.theme2 .header-actions .badge {
    background-color: #fcb800 !important;
}

.theme2 .search-form .search-category {
    background-color: #ffffff !important;
}

.theme2 .features-info .text-warning {
    color: #fcb800 !important;
}

.theme2 .bg-warning {
    background-color: #fcb800 !important;
}

/* Theme 3 (Orgânico) */
.theme3 {
    --primary-color: #ffffff;
}

.theme3 .header-main {
    background-color: #ffffff;
}

.theme3 .header-top {
    background-color: #ffffff;
}

.theme3 .main-nav {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.theme3 .search-form button {
    background-color: #fcb800 !important;
    color: #000 !important;
}

.theme3 .header-actions span {
    color: #000 !important;
}

.theme3 .header-actions .badge {
    background-color: #fcb800 !important;
}

.theme3 .search-form .search-category {
    background-color: #ffffff !important;
}

.theme3 .features-info .text-warning {
    color: #fcb800 !important;
}

.theme3 .bg-warning {
    background-color: #fcb800 !important;
}

/* Theme 4 (Moderno) */
.theme4 {
    --primary-color: #fcb800;
}

.theme4 .header-main {
    background-color: #fcb800;
}

.theme4 .header-top {
    background-color: #dba500;
}

.theme4 .main-nav {
    border-top: 1px solid #fcb800;
    border-bottom: 1px solid #fcb800;
}

.theme4 .search-form button {
    background-color: #000000 !important;
}

.theme4 .header-actions .badge {
    background-color: #000000 !important;
}

.theme4 .search-form .search-category {
    background-color: #ffffff !important;
}

.theme4 .features-info .text-warning {
    color: #fcb800 !important;
}

.theme4 .bg-warning {
    background-color: #fcb800 !important;
}

/* Theme 5 (Minimalista) */
.theme5 {
    --primary-color: #fcb800;
}

.theme5 .header-main {
    background-color: #ffffff;
}

.theme5 .header-top {
    background-color: #ffffff;
}

.theme5 .main-nav {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.theme5 .search-form button {
    background-color: #fcb800 !important;
    color: #000 !important;
}

.theme5 .header-actions .badge {
    background-color: #fcb800 !important;
}

.theme5 .header-actions span {
    color: #000 !important;
}

.theme5 .search-form .search-category {
    background-color: #ffffff !important;
}

.theme5 .features-info .text-warning {
    color: #fcb800 !important;
}

.theme5 .bg-warning {
    background-color: #fcb800 !important;
}

/* Theme 6 (Martfury) */
.theme6 {
    --primary-color: #022335;
}

.theme6 .header-main {
    background-color: #022335;
}

.theme6 .header-top {
    background-color: #022335;
}

.theme6 .header-top .header__left p {
    color: #fff !important;
}

.theme6 .header-top .header__top-links li>a {
    color: #fff !important;
}

.theme6 .header-actions a {
    color: #fff;
}

.theme6 .header-login-text {
    color: #fff;
}

.theme6 .main-nav {
    border-top: 1px solid #022335;
    border-bottom: 1px solid #022335;
}

.theme6 .main-nav .nav-link {
    color: #fff;
}

.theme6 .search-form button {
    background-color: #dd2400 !important;
}

.theme6 .header-actions .badge {
    background-color: #dd2400 !important;
}

.theme6 .search-form .search-category {
    background-color: #ffffff !important;
}

.theme6 .features-info .text-warning {
    color: #dd2400 !important;
}

.theme6 .bg-warning {
    background-color: #dd2400 !important;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header-top {
    background-color: #dba500;
    padding: 5px 0;
    font-size: 13px;
}

.header-top .header__left p {
    margin-bottom: 0;
    color: #000000;
    line-height: 35px;
}

.header-top .header__top-links {
    margin-bottom: 0;
}

.header-top .header__top-links>li {
    display: inline-block;
    margin-right: 16px;
    padding-right: 15px;
    position: relative;
    line-height: 35px;
}

.header-top .header__top-links li>a {
    color: #000;
}

.header-top .header__top-links li:after {
    border-color: #a37000;
}

.header-main {
    background-color: #fcb800;
    padding: 20px 0;
}

.header-logo img {
    max-height: 50px;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form .search-category {
    height: 42px;
    border: 2px solid #e1e1e1;
    border-right: none;
    background-color: #f5f5f5;
    padding: 0 10px;
    color: #333;
    max-width: 150px;
    border-radius: 4px 0 0 4px;
    outline: none;
    cursor: pointer;
}

.search-form input {
    width: 100%;
    border: 2px solid #e1e1e1;
    height: 42px;
    padding: 0 15px;
    border-radius: 0;
    flex-grow: 1;
}

.search-form button {
    position: static;
    height: 42px;
    width: 100px;
    background-color: #000000;
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    padding: 0 24px;
}

.header-actions a {
    color: #000;
    margin-left: 0;
    /* Reset since we use utility classes now or flex gaps */
    position: relative;
    text-decoration: none;
}

.header-actions a i {
    font-size: 32px;
    /* Thinner look, slightly larger to compensate */
    font-weight: 300;
    /* Try to ensure thinness */
    transition: color 0.3s;
}

.header-actions a:hover i {
    color: #fff;
}

.header-actions .badge {
    position: absolute;
    bottom: -5px;
    /* Adjust based on icon size */
    right: -8px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.header-login-text {
    font-size: 14px;
    color: #000;
    font-weight: 400;
}

.header-actions a:hover .header-login-text {
    color: #000 !important;
}

/* Remove utility overrides where necessary */
.main-nav {
    background-color: var(--primary-color);
    color: #000;
}

.main-nav .nav-link {
    color: #000;
    font-weight: 500;
    padding: 15px 20px;
    text-transform: uppercase;
}

/* Sticky Header */
header.header-sticky .header-top {
    display: none !important;
}

header.header-sticky .header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    animation: slideDown 0.3s ease-in-out;
}

header.header-sticky .header-logo img {
    max-height: 40px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #fff;
    padding: 60px 0;
    margin-top: 50px;
    border-top: 1px solid #e1e1e1;
}

/* =========================================
   Components (Buttons, etc.)
   ========================================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #e0a300;
    border-color: #e0a300;
    color: #000;
}

/* Breadcrumbs (Unified) */
.ps-breadcrumb {
    background-color: #f5f5f5;
    padding: 20px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb li a {
    color: #666;
}

.breadcrumb li:not(:last-child):after {
    content: '/';
    margin: 0 10px;
    color: #ccc;
}

/* Common Utilities */
.table-align-middle td {
    vertical-align: middle;
}

.text-primary {
    color: var(--heading-color) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* =========================================
   Product Card (Home & Related)
   ========================================= */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 320px;
}

.product-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    position: relative;
    overflow: hidden;
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-top: 1px solid #eee;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-actions a {
    color: #333;
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-actions a:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* =========================================
   Product Details Page
   ========================================= */
.product-thumbs .item {
    margin: 5px;
    transition: border-color 0.2s;
}

.product-thumbs .item:hover,
.product-thumbs .thumb-active {
    border-color: var(--primary-color) !important;
}

/* =========================================
   Account Sidebar
   ========================================= */
.account-sidebar .nav-link {
    color: #333;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.account-sidebar .nav-link.active,
.account-sidebar .nav-link:hover {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 500;
}

/* =========================================
   Auth Tabs (Login/Register)
   ========================================= */
.auth-tab {
    transition: color 0.3s;
}

.auth-tab:hover {
    color: #000 !important;
}

.auth-tab.active {
    color: #000;
    font-weight: 700;
    border-bottom: 3px solid #000;
    padding-bottom: 5px;
}

/* =========================================
   Quickview Modal
   ========================================= */
#quickviewModal .modal-content {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* =========================================
   Social Sharing Buttons
   ========================================= */
.social-share-buttons {
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-linkedin {
    background-color: #0077b5;
}

/* =========================================
   Nested Dropdown Menu & Mega Menu Styles
   ========================================= */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    /* Align directly below */
    padding: 0;
    min-width: 220px;
    /* Animation */
    display: block;
    /* Make it block but hidden with opacity/visibility for transition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Show Dropdown on Hover (Parent) */
.nav-item.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
    transition: all 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: #000;
    /* Contrast color */
    padding-left: 25px;
    /* Slight movement effect */
}

/* Nested Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    /* Show to the right */
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: block;
    /* Keep structure but hide visual */
}

/* Show submenu on hover */
.dropdown-submenu:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Adjust caret */
.dropdown-toggle-sub::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
    transition: border-color 0.2s;
}

.dropdown-toggle-sub:hover::after {
    border-left-color: #000;
    /* Contrast with hover bg */
}

/* =========================================
   Footer Redesign (Refined)
   ========================================= */
footer {
    background-color: #fff;
    /* Image shows white background */
    border-top: 1px solid #e1e1e1;
    margin-top: 50px;
    font-family: 'Work Sans', sans-serif;
    /* Setup font if available, else inherit */
    color: #666;
}

/* Newsletter Section */
.ps-newsletter {
    background-color: #fcfcfc;
    /* Slight off-white or white */
    padding: 40px 0;
    border-bottom: 1px solid #e1e1e1;
}

.ps-newsletter h3 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.ps-newsletter p {
    color: #666;
    margin: 0;
}

.ps-newsletter .form-group {
    display: flex;
    /* Ensure button is attached */
    max-width: 600px;
    margin-left: auto;
    /* Push to right */
}

.ps-newsletter .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    border-right: none;
    height: 46px;
    padding-left: 20px;
    border-radius: 0;
    flex-grow: 1;
}

.ps-newsletter .btn-subscribe {
    height: 46px;
    padding: 0 40px;
    background-color: #fcb800;
    /* Martfury Yellow */
    color: #000;
    border: none;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    transition: all 0.3s;
}

.ps-newsletter .btn-subscribe:hover {
    background-color: #e0a300;
}

/* Footer Widgets */
.ps-footer__widgets {
    padding: 60px 0 30px;
    border-bottom: 1px solid #e1e1e1;
}

.ps-footer__widget h4 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    text-transform: none;
    /* Martfury uses Sentence or Title case usually, image shows "Contact us" */
}

.ps-footer__widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-footer__widget ul li {
    margin-bottom: 12px;
}

.ps-footer__widget ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.ps-footer__widget ul li a:hover {
    color: #fcb800;
    /* Primary hover */
}

/* Contact Specific */
.widget_contact-us .contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.widget_contact-us h3 {
    font-size: 24px;
    color: #fcb800;
    /* Primary Yellow */
    font-weight: 700;
    margin: 15px 0;
}

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

.ps-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #f5f5f5;
    /* Default bg */
    color: #666;
    /* Default icon color */
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 14px;
}

/* Brand Colors for Socials */
.ps-social-links a:hover {
    color: #fff;
}

.ps-social-links a .fa-facebook-f {
    color: #3b5998;
}

.ps-social-links a:hover:has(.fa-facebook-f) {
    background-color: #3b5998;
    color: #fff;
}

/* :has support varies, keep simple hover for now */

.ps-social-links a:hover {
    background-color: #fcb800;
    /* Default hover */
    color: #000;
}

/* Footer Category Links */
.ps-footer__links {
    padding: 30px 0;
    background-color: #fff;
}

.ps-footer__links p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.ps-footer__links strong {
    color: #000;
    font-weight: 700;
    margin-right: 5px;
    display: inline-block;
}

.ps-footer__links a {
    color: #666;
    margin-right: 5px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.ps-footer__links a:hover {
    color: #fcb800;
}

.ps-footer__links a::after {
    content: "|";
    margin-left: 8px;
    color: #ccc;
    font-size: 12px;
}

.ps-footer__links a:last-child::after {
    content: "";
    display: none;
}

/* Footer Copyright */
.ps-footer__copyright {
    border-top: 1px solid #e1e1e1;
    padding: 30px 0;
    font-size: 14px;
    color: #333;
}

.ps-footer__copyright p {
    margin: 0;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.payment-methods span {
    margin-right: 15px;
    font-weight: 600;
}