/* --- General Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}


html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* full viewport height */
}

header {
    flex-shrink: 0;
    /* padding :15px; */
    background: #fff;
    width: 100%;
    border-bottom: 1px solid #eee;
}

main {
    flex: 1; /* takes remaining space, pushes footer down */
}






/* --- HEADER --- */

/* Top nav (hotline + language/currency) */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #003177;
    color: #fff;
    font-size: 13px;
}

.top-nav .frame {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-nav .small {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #ff8a00;
    color: #fff;
    font-size: 12px;
}

/* Mid nav (logo + menu + account/cart) */
.mid-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.mid-nav .logo {
    height: 44px;
}

/* Navigation menu */
.mid-nav .nav-links {
    display: flex;
    gap: 24px;
}

.mid-nav .nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #003177;
    transition: color 0.2s ease;
}

.mid-nav .nav-links a:hover {
    color: #ff8a00;
}

/* Account + Cart */
.mid-nav .actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mid-nav .actions .welcome {
    font-size: 12px;
    color: #666;
}

.mid-nav .actions .login {
    font-size: 14px;
    font-weight: 600;
    color: #003177;
    cursor: pointer;
}

.cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.cart:hover {
    text-decoration: none;
    color: inherit;
}

.cart-icon {
    background: #ebeef6;
    padding: 8px;
    border-radius: 50%;
    position: relative;
}

.cart-icon span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff8a00;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
}

.cart .price {
    font-weight: 700;
    color: #003177;
    font-size: 14px;
}

/* Hamburger toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #003177;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.hamburger-line.top {
    top: 8px;
}

.hamburger-line.middle {
    top: 15px;
}

.hamburger-line.bottom {
    top: 22px;
}

.menu-toggle.active .hamburger-line.top {
    transform: translateX(-50%) rotate(45deg);
    top: 15px;
}

.menu-toggle.active .hamburger-line.middle {
    opacity: 0;
}

.menu-toggle.active .hamburger-line.bottom {
    transform: translateX(-50%) rotate(-45deg);
    top: 15px;
}




/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .mid-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mid-nav .nav-links {
        gap: 16px;
        flex-wrap: wrap;
    }
}

/* Mobile cart controls */
.mobile-nav-controls {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-cart {
    text-decoration: none;
    color: inherit;
}

.mobile-cart:hover {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 600px) {
    .top-nav {
        /* flex-direction: column; */
        gap: 6px;
        text-align: center;
    }

    .top-nav .phone-numbers {
        display: none;
    }

    .mid-nav {
        padding: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav-controls {
        display: flex;
        order: 3;
    }

    .menu-toggle {
        display: block;
    }

    .mid-nav .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }

    .mid-nav .actions {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }

    .mid-nav .nav-links.active,
    .mid-nav .actions.active {
        display: flex;
    }

    /* Hide desktop cart on mobile */
    .mid-nav .actions .cart {
        display: none;
    }
}

/* //final nav starts  */
/* --- Nav Section --- */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-image: url(../images/nav-bg.png);
    background-size: cover;
    background-position: center;
}

.nav .div-search-cat {
    display: flex;
    flex: 1;
    min-width: 300px;
    align-items: stretch;
    border-radius: 25px;
    overflow: hidden;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav .div-search-cat:focus-within {
    border-color: #ff8a00;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}

.nav .input {
    flex: 1;
    padding: 12px 20px;
}

.nav .div-placeholder {
    width: 100%;
    border: none;
    background: none;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333;
    outline: none;
}

.nav .div-placeholder::placeholder {
    color: #999;
    font-weight: 400;
}

.nav .options {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
}

.nav .options:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff5500 100%);
}

.nav .frame {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav .text-wrapper {
    font-family: "Nata Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
}

.nav .vector-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
}

.nav .vector {
    width: 10px;
    height: 6px;
}

.nav .shipping-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav .link-free-shipping,
.nav .link-days-money,
.nav .link-secure {
    font-family: "Nata Sans", sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .nav .div-search-cat {
        min-width: 100%;
        flex-direction: row;
        border-radius: 20px;
    }

    .nav .input {
        padding: 8px 12px;
    }

    .nav .div-placeholder {
        font-size: 13px;
    }

    .nav .options {
        width: auto;
        padding: 8px 16px;
        border-top: none;
    }

    .nav .link-free-shipping,
    .nav .link-days-money,
    .nav .link-secure {
        font-size: 10px;
        width: auto;
        flex: 1;
        text-align: center;
    }
    
    .nav .shipping-info {
        display: flex;
        gap: 8px;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}


/* Breadcrumb section */
.solar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 1200px;
    margin: 16px auto;
}

.solar-breadcrumb-button {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.solar-breadcrumb-button:hover {
    color: var(--primary-blue);
}

.solar-breadcrumb-item {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.solar-breadcrumb-button:hover .solar-breadcrumb-item,
.solar-breadcrumb-wrapper:hover .solar-breadcrumb-item {
    color: var(--primary-blue);
}

.solar-breadcrumb-divider {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.solar-breadcrumb-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition);
}

.solar-breadcrumb-current {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--accent-orange);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}


/* footer start  */



.footer {
     flex-shrink: 0;

    background-color: #f8f9fa;
    padding: 2rem 1rem;
    font-family: 'Helventica', sans-serif;
    color: #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.company-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.company-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.company-info .hotline {
    font-size: 0.85rem;
    color: #666;
}

.company-info .phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f28c38;
}

.company-info .address {
    line-height: 1.5;
}

.company-info .email {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e1e3eb;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #d1d3db;
}

.footer-column {
    display: flex;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #005566;
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    color: #000A18;
}

.footer-column a:hover {
    color: #000A18;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.payment-methods {
    display: flex;
    gap: 1rem;
}

.payment-methods span {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .company-info,
    .footer-column {
        text-align: left;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }

    .product-columns {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .product-columns .footer-column {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 0;
    }
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    }

    .company-info {
        grid-column: span 2;
    }

    .product-columns {
        display: contents;
    }

    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        grid-column: auto / span 1;
    }

    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        grid-column: auto / span 1;
    }

    .footer-column:nth-child(6) {
        grid-column: auto / span 1;
    }
}

/* --- CART NOTIFICATION TOAST --- */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    min-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification.hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.cart-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification-icon img {
    filter: brightness(0) invert(1);
}

.cart-notification-text {
    flex: 1;
}

.cart-notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
}

.cart-notification-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.cart-notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.cart-notification-close:hover {
    color: #6b7280;
}

.cart-notification-view-cart {
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cart-notification-view-cart:hover {
    background: #2563eb;
}

/* Mobile responsiveness for cart notification */
@media (max-width: 768px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .cart-notification-content {
        padding: 12px;
        gap: 10px;
    }
    
    .cart-notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart-notification-title {
        font-size: 13px;
    }
    
    .cart-notification-subtitle {
        font-size: 11px;
    }
    
    .cart-notification-view-cart {
        padding: 6px 12px;
        font-size: 11px;
    }
}