@import url("https://fonts.googleapis.com/css?family=Lato:400,700");

:root {
    --primary: #2b3a42;        /* deep steel blue - dominant */
    --primary-light: #3e4f58;  /* lighter shade for hover */
    --accent: #6cae75;         /* muted olive green for buttons/accents */
    --accent-light: #a8c686;   /* soft lime for highlights or hovers */
    --text-light: #f4f4f4;     /* for dark backgrounds */
    --text-dark: #1e1e1e;      /* for light backgrounds */
    --bg-light: #ffffff;       /* site background */
    --bg-white: #ffffff;       /* white panels/cards */
    --border: #d1d1d1;         /* subtle borders */
    --success: #4CAF50;        /* green success */
    --error: #E53935;          /* red error */

    --radius: 6px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease-in-out;
    }

* {
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* ========= Main Content ========= */
.middle {
  padding: 0 0 1.5rem 0; /* keep only bottom padding */
}

#content {
  background-color: var(--bg-light);
  padding-top: 1rem; /* Or whatever you prefer for top/bottom */
  padding-bottom: 1rem;
  padding-left: 0rem;
  padding-right: 0rem;
  border-radius: var(--radius);
  box-shadow: none;
}





/* --- General Header Styles --- */
#site-header {
    background-color: #fff; /* Or your desired header background */
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* For mobile search overlay positioning */
}

.header-top-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px; /* Adjust as needed */
    padding: 5px 0;
}

.logo-area .brand {
    font-size: 1.8em; /* Zappos-like size */
    font-weight: bold;
    color: #000;
}

/* --- Desktop Specific Styles --- */
.mobile-triggers,
#mobile-search-overlay,
#mobile-nav-panel {
    display: none; /* Hidden on desktop by default */
}

.search-area-desktop {
    flex-grow: 1; /* Allows search to take up space */
    margin: 0 20px; /* Spacing */
    max-width: 500px; /* Or your preferred max width */
}
/* Style your search_box content (form, input, button) here */
.search-area-desktop form { display: flex; }
.search-area-desktop input[type="search"] { flex-grow: 1; padding: 8px; border: 1px solid #ccc; }
.search-area-desktop button { padding: 8px 15px; background: #555; color: white; border: none; }


.actions-area-desktop {
    display: flex;
    align-items: center;
}
.actions-area-desktop > * {
    margin-left: 15px; /* Spacing between account and cart */
}
.actions-area-desktop .account-icon svg { /* Style your SVG icon */
    width: 24px; height: 24px; fill: #333;
}
/* cart_box styling (see previous answer, adapt for desktop/mobile if needed) */
.cart-box-desktop .cart-link { /* Example for cart styling */
    position: relative;
    /* Style for bag icon, badge */
}
.cart-box-desktop .cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: blue;
    color: white;
    border-radius: 50%;
    font-size: 0.7em;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
}


/* --- Cart Icon and Badge Styles --- */
.cart-icon-link {
    position: relative; /* Crucial for absolute positioning of the badge */
    display: inline-flex; /* Use flex to easily center the icon if needed, or inline-block */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333; /* Default color for the icon stroke/fill */
    /* Add padding if you want more clickable area around the icon */
    /* padding: 8px; */
}

.cart-icon-link:hover,
.cart-icon-link:focus {
    color: #0056b3; /* Change icon color on hover/focus, adjust to your brand */
}

.cart-svg-icon {
    width: 28px;  /* Adjust size as needed */
    height: 28px; /* Adjust size as needed */
    stroke-width: 1.5; /* Default for Heroicons, adjust if using a different SVG */
    /* fill: none; (already in SVG) */
    /* stroke: currentColor; (already in SVG, so it inherits from .cart-icon-link) */
}

.cart-item-count-badge {
    display: inline-block; /* Or flex for centering text */
    background-color: #007bff; /* Zappos-like blue, or your brand's primary color */
    color: white;
    font-size: 0.7rem;    /* Smaller font for the badge */
    font-weight: bold;
    border-radius: 50%;   /* Makes it a circle */
    
    min-width: 18px;      /* Minimum width to maintain circle for single digits */
    height: 18px;
    line-height: 18px;    /* Vertically center the number in the badge */
    text-align: center;
    
    position: absolute;
    top: -5px;            /* Adjust to position badge correctly relative to the icon */
    right: -7px;          /* Adjust to position badge correctly relative to the icon */
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Optional subtle shadow */
    padding: 0 3px;       /* A little horizontal padding if a number like '10' makes it too tight */
    box-sizing: border-box; /* Ensures padding doesn't increase overall size beyond height/width */
}


/* --- CASCADING CATEGORY MENU STYLES (FINAL, SIMPLIFIED) --- */

.cascading-nav-container {
    position: relative;
    width: 100%;
    background-color: #fff;
    overflow: hidden; /* This is crucial for the slide animation */
}

/* Panel Wrapper and Animation Control */
.cascading-nav-panels-wrapper {
    position: relative;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

/* Individual Panel Styling */
.cascading-nav-panel {
    width: 100%;
    background-color: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* NEW Panel Header Styling */
.panel-header {
    display: flex;
    align-items: center;
    padding: 0 10px; /* Adjust padding */
    border-bottom: 1px dotted var(--border-color, #d1d1d1);
    min-height: 48px;
    box-sizing: border-box;
    
}

.nav-panel-back {
    background: none;
    border: none;
    padding: 10px;
    margin-right: 10px;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%; /* Make the hover effect a circle */
    transition: background-color 0.2s ease;
}

.nav-panel-back:hover {
    background-color: #e9e9e9; /* A subtle background on hover */
}

.nav-panel-back svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
    stroke-width: 2;
    display:block;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

/* The rest of the list and item styles are the same */
.panel-list-container {
    max-height: calc(100vh - 200px); 
    overflow-y: auto;
}
.panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-category-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}
.nav-category-item:last-child {
    border-bottom: none;
}
.nav-category-item .nav-category-link,
.nav-category-item .nav-category-label {
    flex-grow: 1;
    padding: 14px 15px;
    text-decoration: none;
    color: var(--text-dark);
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}
.nav-category-item .nav-category-link:hover {
    background-color: #f8f9fa;
}
.nav-panel-trigger {
    padding: 14px 15px;
    color: #b0b0b0;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0; 
    transition: color 0.2s ease;
}

.nav-panel-trigger:hover {
    color: var(--primary-color);
}

.nav-panel-trigger svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    display: block;
}



















/* --- General Icon Button Styling --- */
.icon-button {
    background: none;
    border: none;
    padding: 8px; /* Add some padding to make them easier to tap */
    cursor: pointer;
    display: inline-flex; /* Helps align the SVG inside */
    align-items: center;
    justify-content: center;
    color: #333; /* Default color for the icon stroke */
    line-height: 1; /* Prevent extra space if button has text accidentally */
}

.icon-button:hover,
.icon-button:focus {
    color: #0056b3; /* Highlight color on hover/focus - adjust to your brand */
    /* background-color: #f0f0f0; /* Optional: slight background on hover */
}

.icon-button .icon-svg {
    width: 24px;  /* Adjust default icon size */
    height: 24px; /* Adjust default icon size */
    /* stroke-width: 1.5; /* Can be set here or left on individual SVGs */
    /* stroke: currentColor; /* SVG will inherit color from .icon-button */
}



/* Example: if you want the search trigger icon slightly larger */
/*
#mobile-search-trigger .icon-svg {
    width: 26px;
    height: 26px;
}
*/

/* Styling for close buttons if they are part of different containers */
#close-mobile-search .icon-svg,
#close-mobile-nav .icon-svg {
    width: 22px; /* Close icons can sometimes be slightly smaller */
    height: 22px;
}






.header-main-nav {
    background-color: #f8f8f8; /* Lighter bg for nav row */
    border-top: 1px solid #e0e0e0;
}
.header-main-nav .container {
    display: flex;
    justify-content: space-between; /* If you add Help & Support link */
    align-items: center;
}
.header-main-nav .category-links {
    display: flex;
    padding: 10px 0;
}
.header-main-nav .category-links li {
    margin-right: 20px;
}
.header-main-nav .category-links a {
    color: #333;
    font-weight: 500;
}
.header-main-nav .category-links a:hover,
.header-main-nav .category-links li.active a {
    color: #007bff; /* Or your brand color */
}
.help-support-link { color: #555; font-weight: 500;}


/* --- Mobile Specific Styles (use a media query) --- */
@media (max-width: 991px) { /* Adjust breakpoint as needed (e.g., 768px) */
    .search-area-desktop,
    .actions-area-desktop,
    #header-main-nav-desktop {
        display: none; /* Hide desktop elements */
    }

    .mobile-triggers {
        display: flex;
        align-items: center;
    }
    .mobile-triggers > * {
        margin-left: 15px; /* Spacing between mobile icons */
        background: none;
        border: none;
        cursor: pointer;
    }
     .cart-box-mobile .cart-link { /* Example for cart styling */
        position: relative;
        font-size: 1em; /* Adjust if icon is used */
        /* Style for bag icon, badge */
    }
    .cart-box-mobile .cart-badge { /* Same as desktop or adjust */
        position: absolute;
        top: -5px;
        right: -8px;
        background-color: blue;
        color: white;
        border-radius: 50%;
        font-size: 0.7em;
        padding: 2px 5px;
        min-width: 18px;
        text-align: center;
    }


    /* Mobile Search Overlay */
    #mobile-search-overlay {
        /* display: none; Initially hidden by JS, then set to flex/block */
        position: absolute; /* Or fixed if you want it full screen */
        top: 0; /* Or after header-top-row height */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px 0;
        z-index: 1000;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    #mobile-search-overlay.active {
        display: block; /* Or flex if its content needs it */
    }
    #mobile-search-overlay .container { display: flex; align-items: center; }
    #mobile-search-overlay form { flex-grow: 1; display: flex; }
    #mobile-search-overlay input[type="search"] { flex-grow: 1; padding: 8px; border: 1px solid #ccc; }
    
   

    #close-mobile-search {
        background: none; border: none; font-size: 1.5em; margin-left: 10px;
    }


    /* Mobile Nav Panel */
    #mobile-nav-panel {
        /* display: none; Initially hidden by JS, then set to block */
        position: fixed;
        top: 0;
        right: -300px; /* Start off-screen */
        width: 300px; /* Or your desired width */
        max-width: 80%;
        height: 100vh;
        background-color: #fff;
        z-index: 1001;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        padding: 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    #mobile-nav-panel.active {
        right: 0; /* Slide in */
        display: block;
    }
    #close-mobile-nav {
        background: none; 
        border: none;
        font-size: 1.5em;
        position: absolute; top: 10px; right: 10px;
        cursor: pointer;
        z-index:10;
        
    }
    .mobile-nav-section { margin-bottom: 20px; }
    .mobile-nav-section h3 { font-size: 1.1em; margin-bottom: 10px; color: #555; }
    .mobile-nav-content ul { list-style: none; padding-left: 0; }
    .mobile-nav-content li a,
    .mobile-nav-content .logout-button-linkstyle {
        display: block;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-nav-content .logout-button-linkstyle {
        width: 100%; text-align: left; background: none; border: none; font-size: inherit;
    }
    .mobile-nav-content li:last-child a { border-bottom: none; }
}

/* Optional: Body class when mobile menu is open to prevent scrolling */
body.mobile-nav-open {
    overflow: hidden;
}
/* Optional: Overlay for when mobile menu is open */
#site-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000; /* Below nav panel but above content */
}
#site-overlay.active {
    display: block;
}

















/* Checkout app designs */
fieldset.checkout {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

fieldset.checkout legend {
    font-weight: bold;
    color: Black;
    margin-left: 10px;
    font-size: 1.1em;
}

fieldset.checkout table {
    border-collapse: collapse;
    width: 100%;
}

fieldset.checkout table th {
    text-align: right;
    width: 150px;
    font-weight: normal;
    padding: 5px;
    font-size: 0.9em;
}

fieldset.checkout input {
    font-family: Courier;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
}

table#receipt {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

/* Accounts app template designs */
table#register {
    width: 100%;
    font-size: 0.9em;
}

table#register th, td {
    vertical-align: top;
    padding: 5px;
}

fieldset.my_account {
    padding: 8px;
}

fieldset.my_account legend {
    font-weight: bold;
    font-size: 1.1em;
}

fieldset.my_account ul {
    list-style: none;
    padding-left: 0;
}

fieldset.my_account ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

















/* ===== ADD TO CART FORM ===== */
.add-to-cart-form {
    margin: 30px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: #e08c40;
    transform: translateY(-2px);
}

   


/* ===== RELATED PRODUCTS ===== */
.related-products {
    margin: 50px 0;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.related-products h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.no-related {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--dark-gray);
}



  /* ===== REVIEWS SECTION ===== */
  .reviews-section {
    margin: 50px 0;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.reviews-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.review-toggle-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.review-toggle-btn:hover {
    background: #1a252f;
}

#review-form-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

#review-form {
    display: grid;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.submit-review-btn {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.cancel-review-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.review-login-prompt {
    margin-top: 15px;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}























/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-container {
        font-size: 1.1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-container {
    animation: fadeIn 0.5s ease-out;
}





/*=============ANGLE VIEWS========*/
.side-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding: 5px;
}

.side-images img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background-color: #f9f9f9;
}

















/* Responsive Media Queries */
@media screen and (min-width: 576px) {
    
    .navigation ul li {
        margin: 5px 15px;
    }
    
    .middle {
        padding: 20px;
    }
    
   
    
    .cart-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cart-header {
        display: contents;
    }
}

@media screen and (min-width: 768px) {
    .middle {
        flex-direction: row;
    }
    
    .sidebar {
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .product-container {
        flex-direction: row;
    }
    
    .main-image {
        width: 60%;
    }
    
   
    
    .cart-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
   
}

@media screen and (min-width: 992px) {
   
    
    .navigation ul li {
        margin-right: 25px;
    }
    
    .middle {
        padding: 25px;
    }
    
    .product-image {
        max-width: 500px;
    }
    
 
}

@media screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
}



/* ===================================================================== */
/* === PROFESSIONAL TOAST NOTIFICATION STYLES ========================== */
/* ===================================================================== */

/* --- The container that holds all toasts --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050; /* High z-index to appear over everything */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 350px;
}

/* --- The individual toast message --- */
.toast-notification {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-left: 5px solid #6c757d; /* Default border color */
    opacity: 0; /* Start hidden for animation */
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
    transition: opacity 0.5s, transform 0.5s;
}

/* --- Content inside the toast --- */
.toast-icon {
    flex-shrink: 0;
    margin-right: 12px;
}
.toast-icon svg {
    width: 24px;
    height: 24px;
}
.toast-message {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}
.toast-close-btn {
    flex-shrink: 0;
    margin-left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.toast-close-btn:hover {
    color: #333;
}

/* --- Status Variants (colors and icons) --- */
.toast-success { border-left-color: #28a745; }
.toast-success .toast-icon { color: #28a745; }

.toast-error { border-left-color: #dc3545; }
.toast-error .toast-icon { color: #dc3545; }

.toast-info { border-left-color: #17a2b8; }
.toast-info .toast-icon { color: #17a2b8; }

.toast-warning { border-left-color: #ffc107; }
.toast-warning .toast-icon { color: #ffc107; }

/* --- Animations --- */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add this class via JS to trigger the fade-out */
.toast-notification.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}



