/* Modern Color Palette & Typography */
:root {
  /* Colors */
  --bodybgc1: #f3f4f6;
  /* Cool gray 100 */
  --fontc1: #1f2937;
  /* Cool gray 800 */

  --primary: #2563eb;
  /* Blue 600 */
  --secondary: #4b5563;
  /* Gray 600 */

  --headc1: #111827;
  /* Gray 900 */
  --head2c1: #374151;
  /* Gray 700 */

  --errorc1: #ef4444;
  /* Red 500 */
  --successc1: #10b981;
  /* Emerald 500 */

  --linkc1: #2563eb;
  --linkhoverc1: #1d4ed8;

  --buttonbgc1: #e5e7eb;
  --buttontext: #1f2937;

  /* Icon Colors */
  --icon-deal: #e11d48;
  /* Rose 600 */
  --icon-diy: #0284c7;
  /* Sky 600 */
  --icon-reviews: #eab308;
  /* Yellow 500 */
  --icon-stores: #6366f1;
  /* Indigo 500 */
  --icon-best: #f59e0b;
  /* Amber 500 */

  --star-size: 1em;
  --star-color: #d1d5db;
  --star-background: #f59e0b;
}

/* Typography */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fontc1);
  background-color: var(--bodybgc1);
  min-height: 90vh;
  line-height: 1.5;
}

body a {
  color: var(--linkc1);
  transition: color 0.15s;
}

body a:hover {
  color: var(--linkhoverc1);
  text-decoration: none;
}

/* Form Elements */
input,
textarea,
select {
  font-family: inherit;
  display: inline-block;
  margin: auto;
  background: white;
  color: var(--fontc1);
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  /* 6px */
  padding: 0.5em 0.75em;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="submit"],
button {
  padding: 0.5em 1em;
  border-radius: 0.375rem;
  background-color: white;
  border: 1px solid #d1d5db;
  color: var(--buttontext);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}

input[type="submit"]:hover,
button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* Icon Utilities */
.icon-deal {
  color: var(--icon-deal);
}

.icon-diy {
  color: var(--icon-diy);
}

.icon-reviews {
  color: var(--icon-reviews);
}

.icon-stores {
  color: var(--icon-stores);
}

.icon-best {
  color: var(--icon-best);
}

/*  common    site_head */
.site_head {
  text-align: center;
  font-size: 1.5em;
  width: fit-content;
  margin: 0.5em auto;
  color: var(--headc1);
  font-weight: 800;
  padding: 0px 1em;
}

.site_head .title {
  width: 80%;
  margin: 0.5em auto;
  padding: 0px;
  display: inline-block;
}

.site_head .link {
  width: fit-content;
  display: inline-block;
  font-size: 0.6em;
  vertical-align: middle;
  text-decoration: underline;
}

.site_head .link.add {
  color: lightgreen;
  font-size: 1em;
  text-decoration: none;
}

.head2 {
  font-size: 1.5em;
  font-weight: 500;
  color: var(--head2c1);
}


div.text1 {
  color: var(--fontc1);
  margin: 1em auto;
}

label {
  color: var(--fontc1);
}

.sort_by {
  color: var(--headc1);
}

.footer {
  background: #999;
  color: white;
  margin: 1em auto;
  padding: 0 1em;
  width: 98%;
  font-size: 0.6em;
}


/* --------------- auth forms --------------*/

.auth_container .info_table {
  border: solid 1px var(--fontc1);
}

.auth_container .info_table tr td {
  border: solid 1px var(--fontc1);
  padding: 0.5em 1em;
  width: max-content;
}

.login_form {
  margin: 2em auto 1em auto;
}

.login_form table tr td {
  padding: 0.5em;
}


.login_form input {
  width: 15em;
}

.login_form a {
  display: block;
  width: fit-content;
  margin: 1em auto;
}

.submit_success {
  color: var(--successc1);
  display: block;
  width: fit-content;
  margin: 1em auto;
}

.auth_container {
  color: var(--fontc1);
  display: block;
  width: fit-content;
  margin: 1em auto;
}

.warning_msg {
  width: fit-content;
  color: var(--fontc1);
  font-size: 1.5em;
  margin: 1em auto 1em auto;
}

.error_msg {
  width: fit-content;
  color: var(--errorc1);
  margin: 1em auto 1em auto;
}

.aspect-box {
  position: relative;
}

.aspect-box::before {
  display: block;
  content: "";
  width: 100%;
  padding-bottom: calc(100% / var(--aspect-ratio, calc(16/9)));
  /* padding-bottom: calc(100% / var(--aspect-ratio, "16/9") );  not working, 16/9 or "16/9", has to use calc(16/9) */
}

.aspect-box> :first-child {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}


/*  ===== about === */
.about_container {
  width: 100%;
  min-height: 92vh;
  padding: 0 5%;
  background: var(--bodybgc1);
  border: solid 1px var(--bodybgc1);
  /* odd: 0px will show more white_gap */
}


.privacy_container {
  width: 100%;
  background: var(--bodybgc1);
  border: solid 1px var(--bodybgc1);
}

.privacy_container div.privacy_text {
  width: 90%;
  margin: 20px auto;
}

.privacy_container div.privacy_text div {
  color: var(--fontc1);
  margin: 10px 0px;
}

/*  contact */
.contact_container {
  width: fit-content;
  margin: 20px auto;
}

.contact_form {
  width: 90%;
  margin: 2em auto 1em auto;
}

.contact_form input {
  margin-bottom: 0.5em;
}

.contact_form textarea {
  margin-bottom: 0.5em;
  min-height: 20em;
  color: var(--fontc1);
  border: 1px solid var(--fontc1);
}

.goto_sugguestions {
  margin: 1em;
}

.goto_sugguestions a {
  margin: 1em;
}

/* ############ paging ##############*/
.paging .paging_label {
  display: inline-block;
  width: fit-content;
  color: black;

}

.paging a,
.paging span {
  text-align: center;
  display: inline-block;
  width: 1.2em;
  margin: 0em 0.5em;
}

.paging a {
  color: blue;
}

.paging span {
  font-weight: bold;
}

/* ############ product ##############*/

.product_container {
  width: 95%;
  margin: 0.5em auto;
  min-height: 92vh;
}

.product_container .product {
  background: #e0dede;
  padding: 1em;
  border-radius: 2.3em;
  height: 100%;
}

@media only screen and (max-width: 420px) {

  .product_container .cat_tabs {
    display: flex;
    overflow-x: auto;
  }
}


.product_container .cat_tab {
  background-color: #cfd2e8;
  color: black;
  border-radius: 2.3em;
  width: fit-content;
  margin: 0.2em 0.1em;
  padding: 0.2em;
  display: inline-block;
  border: solid 1px green;
}

.product_container .product a {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.product img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 1em;
}

.product_container .product .product_name {
  font-size: 1em;
  height: 2.8em;
  max-width: 15em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
.product_container .product .product_name:hover {
  position: relative;
  height: fit-content;
  opacity: 1;
  z-index: 10;
}
*/
.product_container .product .price {
  color: #B12704 !important;
  display: inline-block;
  width: fit-content;
  margin: 0 1em 0 0;
}

.product_container .product .list_price {
  color: #0c0c0c !important;
  text-decoration: line-through;
  width: fit-content;
  margin: 0 1em 0 0;
}

.product_container .product .rating_cnt {
  color: #5625ac;
}

/*  stores  */
.store_container {
  margin: 0.5em;
  min-height: 90vh;
}

.store_container .store_group_head {
  font-size: 2em;
  background: lightyellow;
  margin-top: 1em;
  padding-left: 1em;
}

.store_container .store_group_menu a {
  display: inline-block;
  width: fit-content;
  margin: 0.2em 0.1em;
  padding: 0.2em;
  border: solid 1px green;
  color: var(--fontc1);
  background-color: #cfd2e8;
  border-radius: 2.3em;
}

.store_container .store img {
  display: block;
  max-width: 100%;
  margin: 0.2em auto;
  border-radius: 1.3em;
}

.store_container .store a {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ============= blog  =============*/

.blog_container {
  width: 100%;
  min-height: 92vh;
  padding: 0 5%;
  background: var(--bodybgc1);
  border: solid 1px var(--bodybgc1);
  /* odd: 0px will show more white_gap */
}

/* ============= review  =============*/

.review_search {
  margin-left: auto;
  margin-right: 0;
  display: block;
  width: fit-content;

}

.review_search input {
  background: lightyellow;
  padding: 0.2em;
  border-radius: 1em;
}

.review_search button {
  background: rgb(185, 239, 185);
  padding: 0.2em;
  border-radius: 0.5em;
}

.reviews .review {
  margin: 1em;
  background: #e3e3d6;
  padding: 1em;
}

.reviews .review_sep {
  clear: both;
}

.reviews .review .title {
  color: blue;
  font-size: 1.5em;

}

.reviews .review img {
  float: left;
  margin: 1em;
}

.post_m_body img {
  float: left;
  margin: 1em;
}

/* ============= article  =============*/
article {
  width: 90%;
  background: var(--black1);
  color: var(--fontc1);
  margin: 0.5em auto 0.5em auto;
}

article header {
  width: 100%;
  color: rgb(32, 85, 218);
  font-size: 1.8em;
  font-weight: 800;
}

article label {
  width: 100%;
  padding: 0.5em 1em;
  background-color: rgb(154, 224, 154);
}

article .post_body {
  width: 100%;
  padding: 0.5em 1em;
}

article .post_body h1 {
  font-size: 1.2em;
  padding-top: 1.5em;
  clear: both;
}

article .post_body h1.product {
  color: black;
}

article .post_body h1.head1 {
  color: rgb(52, 162, 52);
}

article .post_body ul {
  list-style-type: circle;
  margin: 1.5em;
  clear: both;

}

article .post_body table {
  border: solid 1px #ceb6b6;
  margin: 1em;
}

article .post_body table td,
article .post_body table th {
  border: solid 1px #ceb6b6;
  padding: 0.1em 1em;
}

article .post_body .product img {
  float: left;
}

article header {
  display: flex;
  font-size: 1em;
}

article header div.title {
  flex-shrink: 0;
  flex-grow: 6;
  padding-left: 1em;
}

article header div.web_path {
  flex-grow: 1;
  color: green;
}

article header div.len {
  flex-grow: 1;
}

article header div.username {
  flex-grow: 3;
  color: green;
}

article header div.link {
  flex-grow: 1;

}

div.deleted_at {
  color: red;
}
/* nav menu for mobile/desktop  ============       */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fontc1);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--bodybgc1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 60px;
}

/* Logo */
.logo_text {
    display: flex;
    align-items: center;
    color: var(--fontc1);
    font-size: 1.5em;
    /* Adjusted size */
    font-weight: 800;
}

/* Nav menu */
.nav {
    display: none;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 60px;
    /* Match header height */
    left: 0;
    z-index: 99;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.menu a,
.menu p {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    cursor: pointer;
}

.menu span {
    margin-right: 5px;
    font-size: 1.2em;
}

.menu a:hover,
.menu p:hover {
    background-color: #f8f9fa;
    color: #2563EB;
}

/* Menu Icon */
.hamb {
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamb_line {
    background: var(--fontc1);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

.hamb_line::before,
.hamb_line::after {
    background: var(--fontc1);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb_line::before {
    top: 5px;
}

.hamb_line::after {
    top: -5px;
}


.side_menu {
    display: none;
}

/* Toggle menu icon */

/* Toggle menu icon */

.side_menu:checked~nav {
    display: block;
}

.side_menu:checked~.hamb .hamb_line {
    background: transparent;
}

.side_menu:checked~.hamb .hamb_line::before {
    transform: rotate(-45deg);
    top: 0;
}

.side_menu:checked~.hamb .hamb_line::after {
    transform: rotate(45deg);
    top: 0;
}

/* subnav */
.subnav {
    position: relative;
}

.subnav_content {
    background-color: #f9fafb;
    width: 100%;
    z-index: 1;
    padding: 0;
    display: none;
    position: relative;
    left: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.subnav_content a {
    padding-left: 50px;
    /* Indent sub-items */
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.subnav.open .subnav_content {
    display: block;
}

.subnav_content a {
    color: var(--fontc1);
    text-decoration: none;
    padding: 0.1em 0.6em;
    text-align: left;
}

.subnav:hover .subnav_content {
    display: block;
}

/* Responsiveness */
@media (min-width: 960px) {
    .logo_long_text {
        display: inline-block;
    }

    .logo_short_text {
        display: none;
    }

    .header {
        height: 3em;
    }

    .nav {
        display: block;
        height: 100%;
        /* 100% of  header if in desktop */
        top: 0;
        float: right;
        width: fit-content;
        background-color: transparent;
        position: static;
        box-shadow: none;
        overflow: visible;
        /* Allow submenus to show */
    }

    .menu li {
        float: left;
    }

    .menu a:hover {
        background-color: transparent;
        color: var(--linkhoverc1);

    }

    .menu a,
    .menu p {
        display: block;
        padding: 0.7em 0.4em;
        color: var(--fontc1);
        margin: 0em 0em 0em 0em;
    }

    .hamb {
        display: none;
    }

    /* subnav */
    .subnav_content {
        padding: 5px 5px;
        margin: 0px 0px;
        display: none;
        position: absolute;
        width: fit-content;

        left: 0;
    }

    .subnav_user {
        right: 0;
        left: auto;
    }

    .subnav_about {
        left: auto;
        right: 0;
    }

    .subnav_content a {
        width: max-content;
        padding: 0.7em 0.6em;
    }
}
/* DIY Component Styles */

.diy-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.diy-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.diy-category-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    /* Smaller font */
    white-space: nowrap;
    transition: all 0.2s;
}

.sub-content {
    display: flex;
    height: calc(100vh - 140px);
    gap: 20px;
}

.diy-sidebar {
    width: 250px;
    min-width: 250px;
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.diy-main {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.diy-sidebar-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle-icon {
    display: none;
}

.diy-topic-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.diy-topic-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 14px;
    transition: background 0.1s;
}

.diy-topic-item:hover {
    background: #f3f4f6;
}

/* Welcome Section */
.diy-welcome-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #bae6fd;
    text-align: center;
    color: #374151;
    margin-top: 20px;
}

.diy-welcome-title {
    font-size: 2em;
    font-weight: 800;
    color: #0369a1;
    margin-bottom: 10px;
}

.diy-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.diy-step-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .diy-container {
        padding: 10px;
    }

    .sub-content {
        flex-direction: column;
        height: auto;
        /* Allow content to grow */
    }

    .diy-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        /* max-height removed to allow expansion */
    }

    .diy-sidebar-header {
        cursor: pointer;
        user-select: none;
    }

    .mobile-toggle-icon {
        display: inline-block;
        transition: transform 0.3s;
    }

    .mobile-toggle-icon.rotate {
        transform: rotate(180deg);
    }

    .diy-topic-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        padding: 0;
        /* Hide padding when collapsed */
    }

    .diy-topic-list.expanded {
        max-height: 400px;
        /* Arbitrary large height */
        opacity: 1;
        overflow-y: auto;
        padding: 5px;
    }

    .diy-main {
        overflow-y: visible;
        /* Let typical scroll handle it on mobile */
        height: auto;
    }

    .diy-welcome-hero {
        padding: 20px !important;
    }

    .diy-welcome-hero h2 {
        font-size: 1.5em !important;
    }

    .diy-steps-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Review Component Styles */

.review-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    background: #f3f4f6;
}

.review-category-tabs {
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 10px;
    scrollbar-width: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.review-category-tabs::-webkit-scrollbar {
    display: none;
}

.review-category-btn {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.review-category-btn.active {
    background: #e11d48;
    color: white;
    font-weight: bold;
    border-color: #e11d48;
}

.sub-content {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.review-sidebar {
    width: 250px;
    min-width: 250px;
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.review-topic-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    transition: all 0.3s ease-in-out;
}

.review-topic-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: background 0.1s;
    border-left: 3px solid transparent;
    color: #374151;
}

.review-topic-item:hover {
    background: #f9fafb;
}

.review-topic-item.active {
    background: #fff1f2;
    border-left: 3px solid #e11d48;
    color: #be123c;
    font-weight: 600;
}

.review-main {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-toggle-icon {
    display: none;
    transition: transform 0.3s;
}

.mobile-toggle-icon.rotate {
    transform: rotate(180deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .review-container {
        padding: 0;
    }

    .sub-content {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        overflow: visible;
        height: auto;
    }

    .review-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .mobile-toggle-icon {
        display: inline-block;
    }

    .review-topic-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
    }

    .review-topic-list.expanded {
        max-height: 400px;
        opacity: 1;
        padding: 5px;
        overflow-y: auto;
    }

    .review-main {
        padding: 20px;
        overflow: visible;
        height: auto;
    }
}
/* Sales Component Styles */

.sales-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    background: #f3f4f6;
}

.sales-category-tabs {
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 10px;
    scrollbar-width: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.sales-category-tabs::-webkit-scrollbar {
    display: none;
}

.sales-category-btn {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.sales-category-btn:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.sales-category-btn.active {
    background: #2563eb;
    color: white;
    font-weight: bold;
    border-color: #2563eb;
}

.sub-content {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.sales-sidebar {
    width: 250px;
    min-width: 250px;
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sales-sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.sales-topic-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    transition: all 0.3s ease-in-out;
}

.sales-topic-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: background 0.1s;
    border-left: 3px solid transparent;
    color: #374151;
    display: block;
    text-decoration: none;
}

.sales-topic-item:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #2563eb;
}

.sales-topic-item.active {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    color: #1d4ed8;
    font-weight: 600;
}

.sales-main {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-toggle-icon {
    display: none;
    transition: transform 0.3s;
}

.mobile-toggle-icon.rotate {
    transform: rotate(180deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sales-container {
        padding: 0;
    }

    .sub-content {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        overflow: visible;
        height: auto;
    }

    .sales-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .mobile-toggle-icon {
        display: inline-block;
    }

    .sales-topic-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
    }

    .sales-topic-list.expanded {
        max-height: 400px;
        opacity: 1;
        padding: 5px;
        overflow-y: auto;
    }

    .sales-main {
        padding: 20px;
        overflow: visible;
        height: auto;
    }
}
/* Store Component Styles */

.store_container {
    padding: 20px;
    background: #f3f4f6;
    min-height: calc(100vh - 60px);
}

.site_head {
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: #111827;
    margin: 10px auto 10px;
    /* Reduced margin */
    padding: 10px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: fit-content;
    display: block;
    /* Ensure it takes space */
}

.store_group_menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    /* Reduced from 30px */
    padding: 5px 10px;
    /* Reduced top/bottom padding */
}

/* ... existing menu a styles ... */

.store_group_head {
    font-size: 1.5em;
    font-weight: 700;
    color: #1f2937;
    background: transparent;
    /* Removed lightyellow */
    padding: 5px 0;
    /* Reduced padding */
    margin-top: 5px;
    /* Reduced from 20px */
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

/* Store Cards */
.store {
    background: white;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.store:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.store img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    /* Limit logo height */
    object-fit: contain;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site_head {
        font-size: 1.5em;
        /* Slightly smaller on mobile */
        width: 100%;
        /* Full width on mobile */
        border-radius: 8px;
    }

    .store_container {
        padding: 10px;
    }

    .store_group_menu {
        gap: 8px;
    }

    .store_group_menu a {
        padding: 6px 12px;
        font-size: 13px;
    }
}
