*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{margin: 0;}
html {font-size: 62.5%;}
:root {
    --color-primy: #7d58ac;
    --color-primy-light: #b993cc;
    --color-primy-dark: #02155a;
    --color-sec: #02155a;
    --color-sec-light: #bec7ea;
    --color-sec-dark: #0e0b2f;
    --color-acc-grn: #00ffd1;
    --color-acc-red: #ff0000;
    --color-grey:#4b474e;
    --color-grey-light:#807487;
    --radius: 5px;
    --box-shadow: 0 4px 11px rgba(0, 0, 0, 0.20);
}


/*---- TYPOGRAPHY ----*/
h1 {font-size: 3.8rem;}
h2 {font-size: 3.2rem;}
h3 {font-size: 2.6rem;}
h4 {font-size: 2rem;}
h5 {font-size: 1.8rem;}
h6 {font-size: 1.6rem;}
p {
    font-size: 1.1rem;
    line-height: 1.65rem;
}
hr {
    margin: 0 120px;
    color: var(--color-grey);
}
/* font */
.fnt-roboto {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 750; /*100-900*/
    font-style: normal;
    font-variation-settings: "wdth" 100;
    letter-spacing: 0.08rem;
}
.fnt-open-sans {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;   /*300-800*/
    font-style: normal;
    font-variation-settings: "wdth" 100;
    letter-spacing: 0.02rem;
}
.fnt-montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 450; /*100-900*/
    font-style: normal;
}
.hint {
  font-size: 0.9rem;
  color: var(--color-grey-light);
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  letter-spacing: -0.3px;
}
/* colour */
.c-w {color: white;}
.c-b {color: #000;}
.c-p {color: var(--color-primy);}
.c-pd {color: var(--color-primy-dark);}
.c-g {color: var(--color-grey);}
.c-gl {color: var(--color-grey-light);}
.c-err {color: var(--color-acc-red);}
/* desing */
.no-style {text-decoration: none;}
.align-c{text-align: center;}
.align-l{text-align: left;}
.align-j{text-align: justify;}
.uppercase {text-transform: uppercase;}
.txt-thin   {font-weight: 300;}
.txt-normal {font-weight: 500;}
.txt-med    {font-weight: 600;}
.txt-heavy  {font-weight: 800;}
.txt-small {font-size: 100%;}
.txt-lrg {font-size: 300%;}
.txt-trunc { /*to create the dot dot dot to shorten a long paragraph*/
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Change this number to show more/less lines */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}


/*---- RESONSIVENESS ----*/
.mob--show{visibility: visible;}
.mob--here{display: inherit;}
.mob--hide{visibility: hidden;}
.mob--gone{display: none;}
/*grids*/
.grid {display: grid;}
.grid1x2 {grid-template-columns: auto auto;}
.grid2-resp {grid-template-columns: 50% 50%;}
.grid2-mini-resp {grid-template-columns: 50% 50%;}
.flex {display: flex;}
.flex-y-center{align-items: center;}
.flex-center{
  justify-content: center;
  align-items: center;
}
.justify-c{justify-content: center;}
.flex-wrap{flex-wrap: wrap;}
.flex-col{flex-direction: column;}
.flex-row{flex-direction: row;}
.flex-start{
  align-items: flex-start;
  align-content: flex-start;
}
@media screen and (min-width: 820px) {
    .mob--show{visibility: hidden;}
    .mob--here{display: none;}
    .mob--hide{visibility: visible;}
    .mob--gone{display: inherit;}
}
@media screen and (max-width: 620px) {
  .grid2-resp {
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 950px) {
  .grid2-mini-resp {
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
  }
}

/*---- BUTTONS ----*/
.btn {
    margin: 10px 20px;
    padding: 8px 16px;
    letter-spacing: 0.05rem;
    font-size: 1.2rem;
    border-radius: var(--radius);
}
button:hover {cursor: pointer;}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primy);
}
.btn-outline:hover {
    background-color: var(--color-primy-light);
    border: 2px solid var(--color-primy-light);
    color: #543181;
}
.btn-white {
    background-color: white;
    border: none;
}
.btn-white:hover{background-color: #e0e7ff;}
.btn-basic {background-color: var(--color-primy);}
.btn-basic:hover {background-color: #543181;}
.btn-pill-a {
  background-color: var(--color-acc-red);
}
.btn-pill{
  background-color: var(--color-primy);
}
.btn-pill, .btn-pill-a {
  margin: 2px;
  padding: 5px 10px;
  border-radius: 50px;
}
.btn-pill:hover {background-color: #543181;}

/*---- FORMS----*/
input,textarea, select{
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

input, textarea, select {
  font-family: "Open Sans", sans-serif;
  padding: 12px;
  font-size: 1rem;

}
#admin input,#admin textarea {padding: 4px 10px;}
input::placeholder, textarea::placeholder {
  color: var(--color-grey-light);
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300; /*100-900*/
  letter-spacing: 0.06rem;
  font-style: normal;
}
button {border: none;}
textarea {resize: none;}
.dropdown-search {width: 100%;}
.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
.dropdown-options div {
  padding: 8px;
  cursor: pointer;
}
.dropdown-options div:hover {background: #f0f0f0;}
label {padding: 5px 0 8px 0;}

/*---- NAVBAR ----*/
nav, .dms-navbar {
  background-color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 999;
}
nav img, .dms-navbar img, .dms-logo-link img {
  width: auto;
  height: 28px;
  margin: 0;
  display: block;
}
.dms-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dms-nav-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primy);
  font-size: 20px;
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}
.dms-nav-action-btn:hover {
  color: #543181;
  background-color: rgba(125, 88, 172, 0.08);
  transform: scale(1.08);
}
.dms-cart-badge {
  position: absolute;
  top: 0px;
  right: -2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  pointer-events: none;
}
.dms-account-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  border: 2px solid #ffffff;
  pointer-events: none;
}
/* mobile modal */
.modal {
  display: none;
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fefefe;
    width: 200px;
    height: 100vh;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
}
.modal-content img {padding: 40px 0 30px 18px;}
.close {
    color: var(--color-primy);
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: 5px 18px 5px 5px;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}  
/* add animation */
@-webkit-keyframes slideIn {
  from {left: -300px; opacity: 0} 
  to {left: 0; opacity: 1}
}
@keyframes slideIn {
  from {left: -300px; opacity: 0}
  to {left: 0; opacity: 1}
}
@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}
@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}
/* search container */
.search {padding: 0px 10px 5px 10px;}
.search-container {max-width: 200px;}
.search-container input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--color-grey-light);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    font-size: 12px;
}
.search-container button {
    padding: 5px 8px;
    border: none;
    background-color:var(--color-primy);
    font-size: 9px;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background-color 0.3s ease;
}
.search-container button:hover {background-color: #260d45;}
/* category list */
#categories {
    overflow-y: scroll;
    max-height: 55vh;
    padding: 0 10px 0 18px;
    display: block;
}
#categories ul, .sidebar ul {
    list-style: none;
    padding-left: 10px;
}
#categories ul li {padding: 2px 0;}
#categories ul li:hover, #categories a:hover {color: var(--color-primy-dark);}
.modal-content .cart {margin-left: 8px;}

/*---- FOOTER ----*/
footer {
  background-color: #1f2937; /* dark gray */
  padding: 40px;
}
.footer-container {
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.footer-section {
  flex: 1 1 250px;
  min-width: 250px;
  height: auto;
}
.footer-section h3 {
  margin-bottom: 16px;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 8px;
}
.footer-links a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  transition: color 0.3s ease;
}
.footer-links a:hover {color: var(--color-acc-grn);}
.footer-map {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
  height: 180px;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #94a3b8;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-map {height: 200px;}
}

/*---- IMAGE SLIDER ----*/
.slider-container {
    height: 80vh;
    position: relative;
    overflow: hidden !important;
    width: 100%;
}
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    touch-action: pan-y !important;
    scroll-behavior: auto;
    user-select: none;
    -webkit-user-select: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}
.arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0.5rem 1rem;
    z-index: 2;
    cursor: pointer;
    transition: background 0.2s ease;
}
.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}
.arrow-left {left: 0px;}
.arrow-right {right: 0px;}

/*---- PRODUCT GRID ----*/
.product-grid {
    gap: 22px;
    margin: 10px 20px 50px 20px;
}
.product-card {
    background-color: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
    flex: 1 1 calc(25% - 20px); /* 4 per row on large screens */
    max-width: calc(25% - 20px);
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
.product-image {
    height: 190px;
    width: 100%;
    object-fit: contain !important;
    background-color: #ffffff;
    padding: 10px;
    box-sizing: border-box;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}
.product-card img {
    object-fit: contain !important;
}
.product-info {padding: 15px;}
.product-info h3 {
  margin: 10px 0;
  font-size: 1.1rem;
}
@media (max-width: 992px) {
  .product-card {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
}
@media (max-width: 768px) {
  .product-card {
    flex: 1 1 calc(50% - 20px); /* 2 per row on tablets and mobile */
    max-width: calc(50% - 20px);
  }
}
@media (max-width: 350px) {
  .product-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/*---- REVIEWS  ----*/
.review-grid {
    gap: 20px;
    max-width: 100vw;
    margin: 25px 30px;
}
.review-card {
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    padding: 20px 10px 10px 15px;
    width: calc(50% - 20px); /* 2 cards per row on small screens */
    box-sizing: border-box;
}
.review-card p {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1rem;
    line-height: 1.3rem;
}
@media (min-width: 768px) { .review-card {width: calc(25% - 20px);}} /* 4 cards per row on desktop */

/* CTA */
.cta-section {padding: 60px 20px;}
.cta-card {
    background: linear-gradient(135deg, var(--color-primy), var(--color-primy-dark));
    padding: 40px 30px;
    border-radius: var(--radius);
    max-width: 600px;
    animation: fadeInUp 1.2s ease-out both;
}
.cta-card h2 {margin: 0 0 10px;}
.cta-card p {margin-bottom: 25px;}
@media (max-width: 600px) {.cta-card h2 {font-size: 2rem;}}

/*---- CATEGORIES ----*/
.cat-intro{padding: 40px;}
.category-container {
    gap: 20px;
    padding: 20px;
    max-width: 100vw;
    margin: auto;
}
.sidebar {
    flex: 1 1 150px;
    padding: 0 20px 15px 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}
.sidebar button { margin: 5px;}
.sidebar h5 {margin-bottom: 12px;}
.sidebar ul li {margin: 10px 0;}
.refine-search {margin-top: 30px;}
.button-section {gap: 0;}
.main-content {flex: 3 1 600px;}
@media (max-width: 768px) {
  .category-container {flex-direction: column;}
  .sidebar {padding: 0;}
  .sidebar, .main-content {width: 100%;}
  .sidebar h5{text-align: center;}
}

/*---- CONTACT US ----*/
.contact-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}
/* Contact Form */
.contact-section {
  gap: 40px;
  margin-bottom: 60px;
}
.contact-form {
  flex: 1 1 400px;
  padding: 24px;
}
/* Company Info */
.company-info {
  flex: 1 1 300px;
  padding: 24px;
}
.company-info p {margin-bottom: 12px;}
.map {
  height: 250px;
  margin-top: 20px;
}
/* Employee Cards */
.employee-section {text-align: center;}
.employees {
  gap: 24px;
  margin-top: 20px;
}
.employee-card {
  padding: 20px 16px;
  width: 220px;
  background-color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.employee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.employee-card img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #eef2ff;
}
.faq-container {
  max-width: 800px;
  margin: auto;
  padding-bottom: 20px;
}
.accordion-item {border-bottom: 1px solid #e5e7eb;}
.accordion-header {
  padding: 16px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.accordion-header:hover {background-color: #f3f4f6;}
.accordion-header::after {
  content: '+';
  position: absolute;
  right: 24px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.accordion-header.active::after {transform: rotate(45deg);}
.accordion-content {
  max-height: 0;
  padding: 0 24px;
  background-color: #f9fafb;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-content.open {padding: 26px 24px;}

@media (max-width: 768px) {
    .contact-section {flex-direction: column;}
    .accordion-header {font-size: 1rem;}
    .faq-container {max-width: 80vw;}
    .accordion-content {font-size: 0.95rem;}
}

/*---- ABOUT US ----*/
#timeline h2 {
    margin: 10px 40px 0 40px;
    border-bottom: 3px solid var(--color-primy-dark);
    border-radius: var(--radius);
}
#year{color: var(--color-sec-light);}
.timeline {
    max-width: 900px;
    padding: 100px 10px 0 10px;
    background-image: linear-gradient(135deg, var(--color-primy), var(--color-primy-dark));
}
.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--color-primy-dark);
}
.timeline-item {
    width: 50%;
    padding: 20px 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}
.timeline-item.left  {left: 0;}
.timeline-item.right {left: 50%;}
.timeline-item .content {
    background: white;
    padding: 20px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--color-primy-dark);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 5px 3px rgba(228, 168, 255, 0.6); /* 💡 Glow Effect */
}
.timeline-item.left::before {right: -10px;}
.timeline-item.right::before {left: -10px;}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
/* admin */
#timeline-container > div{
  border: 1px solid var(--color-sec-light);
  padding: 5px 12px;
  margin: 8px 0;
}
@media (max-width: 768px) {
    .timeline::after {left: 20px;}
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 30px;
        text-align: left !important;
    }
    .timeline-item.right::before,
    .timeline-item.left::before {left: 0;}
}

/*---- PRODUCT PAGE ----*/
.product-header {
  gap: 40px;
  max-width: 1200px;
  padding: 20px 20px;
  align-items: flex-start;
}
.product--image {
  flex: 1 1 400px;
  gap: 16px;
}
.main-image img {
  height: auto;
  max-height: 500px;
  transition: 0.3s ease;
}
.thumbnail-gallery {gap: 10px;}
.thumbnail-gallery img {
  width: 70px;
  height: 70px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
}
.thumbnail-gallery img.active,
.thumbnail-gallery img:hover {
  border-color: var(--color-acc-grn);
  transform: scale(1.05);
}
.product-details {flex: 1 1 400px;}
.product-details h1 {
  margin-bottom: 10px;
  color: var(--color-sec-dark);
}
@media (max-width: 768px) {
  .product-header {flex-direction: column;}
  .thumbnail-gallery {justify-content: center;}
}
.breadcrumbs {margin-top: 20px;}
.breadcrumbs li{
  display: inline-block;
  cursor: pointer;
  padding: 2px 2px 2px 4px;
}
.breadcrumbs li:hover a {color: var(--color-sec-dark);}
.breadcrumbs li::before{
  content: "> ";
  color: var(--color-primy);
}
.tabs {
    margin: 2rem auto;
    padding: 15px 0;
}
.tab-labels {
    list-style: none;
    justify-content: space-around;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid var(--color-grey-light);
}
.tab-labels li label {
    padding: 0.5rem 1rem 0.5px 1rem;
    cursor: pointer;
    border-bottom: 1.5px solid transparent;
    transition: all 0.3s ease;
}
input[type="radio"] {display: none;}
#tab1:checked ~ .tab-labels li:nth-child(1) label,
#tab2:checked ~ .tab-labels li:nth-child(2) label,
#tab3:checked ~ .tab-labels li:nth-child(3) label,
#tab4:checked ~ .tab-labels li:nth-child(4) label {
    color: #000;
    border-bottom: 1.5px solid var(--color-acc-grn);
}
.tab-content {padding: 10px 25px;}
.tab-content h6{margin: 15px 0 5px 0;}
.tab-content #intro{line-height: 1.6rem;}
.tab-content p {
    margin-bottom: 25px;
    letter-spacing: 0.01px;
    line-height: 1.4rem;
}
.tab-content section {display: none;}
#tab1:checked ~ .tab-content section:nth-child(1),
#tab2:checked ~ .tab-content section:nth-child(2),
#tab3:checked ~ .tab-content section:nth-child(3),
#tab4:checked ~ .tab-content section:nth-child(4) {display: block;}
table {border-collapse: collapse;}
th {
    border-bottom: 1.8px solid var(--color-grey);
    padding: 5px 8px 0px 8px;
}
td {
    border: 1px solid var(--color-primy);
    padding: 4px 8px;
}
ul#download>li>a {
    font-size: 12px;
    padding: 5px 5px;
    margin: 10px 0;
    display: block;
}
#prod-video > iframe {min-height: calc(100vw/2);}
/* =================================================================== */
/*---- ADMIN ----*/
#nav--admin {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  grid-template-columns: 200px calc(100vw - 200px);
  grid-template-rows: 100vh;
}
#nav--admin #nav {
  padding: 35px 0 15px 10px;
  box-shadow: 0px 0.5px 8px rgba(0, 0, 0, 0.269);
}
#nav--admin img.logo{padding: 0 20px 30px 15px;}
#admin #main {
  padding: 40px;
  /* align-items: flex-start; */
  justify-content: space-between;
  align-content: flex-start;
  row-gap: 28px;
  column-gap: 28px;
}
#admin #main > div {
  padding: 12px 18px 15px 18px;
  /* min-height: 210px; */
}
#admin #main > div.tabs {max-height: 75vh;}
#admin #main > div.half {width: calc(50% - 14px);}
.fb-100 {flex-basis: 100%;}
.text-block {
  border: 1px solid var(--color-primy-dark);
  padding: 5px 8px;
}
#admin .tabs {margin: 0;}
#admin .tab-content {padding: 0;}
#admin .tab-content p {margin: 0;}
#admin .tab-content p.hint {letter-spacing: -0.3px;}
#admin .tab-labels {margin: 0;}
#admin .tab-content button {margin: 10px 0;}
#admin ul{padding-left: 15px;}
#admin ul > li{line-height: 1.1rem;}
#admin .search-container {max-width: none;}

/* Employee Accordion */
.accordion {
  cursor: pointer;
  padding: 5px;
  border: none;
  background-color: #f7f0ff;
  font-size: 16px;
  margin-bottom: 5px;
  transition: background-color 0.2s ease;
  width: 100%;
}
.accordion:hover {background-color: #eae9ea;}
.accordion img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 1rem;
}
.panel {
  display: none;
  padding: 1rem;
  border: 1px solid var(--color-sec-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 1rem;
}
.panel input {
  display: block;
  margin: 0.5rem 0;
  width: 100%;
  padding: 0.5rem;
  font-size: 14px;
}
/* Analytics */
.pie-chart {
  width: 150px;
  height: 150px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-primy) 0% 25%,
    var(--color-sec-dark) 25% 100%
  );
}
/* Home Page */
.form-container {
  margin: 5px;
  padding: 5px 8px;
}
.preview img{height: calc(100vw / 4);}
.preview .button{
  left: 5px;
  bottom: 0;
}
#admin .btn-pill-a{ right: 10px;}

/* Modern Admin Modal */
#admin .modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0;
}
#admin .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
#admin .modal-content {
  background-color: #ffffff;
  margin: auto;
  padding: 24px;
  width: min(920px, 95%);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  position: relative;
}

/* =================================================================== */
/*---- ADMIN REUSABLE TOOLBAR, SEARCH, TABLES & PAGINATION ----*/
/* =================================================================== */
.admin-toolbar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 18px 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}
.admin-toolbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-toolbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-count-badge {
    background: #f1f5f9;
    color: #02155a;
    border: 1px solid #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}
.btn-add-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px !important;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(125, 88, 172, 0.25);
    cursor: pointer;
    border: none;
}
.btn-add-toolbar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 88, 172, 0.35);
}
.admin-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-search-wrapper {
    flex: 1;
    min-width: 260px;
    position: relative;
}
.admin-search-wrapper i.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}
.admin-search-input {
    width: 100%;
    padding: 10px 38px 10px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: 'Open Sans', sans-serif;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.admin-search-input:focus {
    outline: none;
    border-color: #7d58ac;
    box-shadow: 0 0 0 3px rgba(125, 88, 172, 0.15);
}
.admin-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    display: none;
    line-height: 1;
}
.admin-search-clear:hover {
    color: #ef4444;
}
.admin-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 120;
    display: none;
}
.admin-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}
.admin-drop-item:last-child {
    border-bottom: none;
}
.admin-drop-item:hover, .admin-drop-item.selected {
    background: #f8fafc;
}
.admin-drop-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.admin-drop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}
.admin-drop-thumb i {
    font-size: 1.1rem;
    color: #7d58ac;
}
.admin-drop-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-drop-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #02155a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-drop-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
}
.admin-drop-code {
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
}
.admin-drop-status {
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.admin-drop-status.active {
    background: #dcfce7;
    color: #166534;
}
.admin-drop-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}
.admin-toolbar-select {
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    outline: none;
    height: 40px;
}
.admin-toolbar-select:focus {
    border-color: #7d58ac;
}
.admin-toolbar-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.pagination-info {
    font-size: 0.86rem;
    color: #64748b;
    font-family: 'Open Sans', sans-serif;
}
.pagination-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}
.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #02155a;
    border-color: #94a3b8;
}
.pagination-btn.active {
    background: #7d58ac;
    color: #ffffff;
    border-color: #7d58ac;
}
.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Modern Admin Tables */
.admin-table-container {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}
.product-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
}
.product-table th, .admin-table th {
    background: #f8fafc;
    color: #1e293b;
    padding: 12px 14px;
    text-align: left;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}
.product-table td, .admin-table td {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
    vertical-align: middle;
}
.product-table tr:hover td, .admin-table tr:hover td {
    background: #f8fafc;
}
.admin-table-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-table-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d58ac;
    font-size: 1.2rem;
}

/* Category & Status Badges */
.badge-main-cat {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}
.badge-sub-cat {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}
.badge-brand {
    background: #fdf4ff;
    color: #86198f;
    border: 1px solid #f5d0fe;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}
.status-active { color: #166534; font-weight: 700; }
.status-inactive { color: #991b1b; font-weight: 700; }

/* Sortable Headers */
th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    position: relative;
}
th.sortable:hover {
    background-color: #f1f5f9;
}
.sort-icon {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
    vertical-align: middle;
}
th.sort-active .sort-icon {
    color: #7d58ac;
    font-weight: 700;
}

/*---- DESIGN/DISPLAY ----*/ 
/*always lats to execute over everything else*/
.no-pad {padding: 0;}
.no-marg{margin: 0;}
.marg-auto {margin: auto;}
.marg-thin {margin: 25px;}
.img-cover {object-fit: cover;}
.img-contain {object-fit: contain;}
.w-100 {width: 100%;}
.w-90 {width: 90%;}
.w-75 {width: 75%;}
.w-50 {width: 50%;}
.w-33 {width: 33.3%;}
.w-25 {width: 25%;}
.w-15 {width: 15%;}
.h-100 {height: 100%;}
.h-95 {height: 95%;}
.no-overflow {overflow: hidden;}
.relative {position: relative;}
.absolute {position: absolute;}
.shadow {box-shadow: var(--box-shadow);}
.rounded{border-radius: var(--radius);}
iframe {border: none;}
.scroll-y {overflow-y: scroll;}
.content-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Product Description & Editor Typography (Enforces website styles & fonts) */
.product-description-content, .editor {
    font-family: "Open Sans", sans-serif;
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.65rem;
}
.product-description-content h1, .product-description-content h2, .product-description-content h3,
.product-description-content h4, .product-description-content h5, .product-description-content h6,
.editor h1, .editor h2, .editor h3, .editor h4, .editor h5, .editor h6 {
    font-family: "Roboto", sans-serif;
    color: var(--color-primy-dark);
    font-weight: 700;
    margin: 16px 0 8px 0;
    line-height: 1.35;
}
.product-description-content h1, .editor h1 { font-size: 2.8rem; }
.product-description-content h2, .editor h2 { font-size: 2.3rem; }
.product-description-content h3, .editor h3 { font-size: 1.9rem; }
.product-description-content h4, .editor h4 { font-size: 1.6rem; }
.product-description-content h5, .editor h5 { font-size: 1.35rem; }
.product-description-content h6, .editor h6 { font-size: 1.2rem; }
.product-description-content p, .editor p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.65rem;
    margin-bottom: 12px;
    color: #334155;
}
.product-description-content ul, .product-description-content ol,
.editor ul, .editor ol {
    margin: 10px 0 12px 24px;
    padding-left: 8px;
}
.product-description-content li, .editor li {
    font-family: "Open Sans", sans-serif;
    font-size: 1.1rem;
    line-height: 1.6rem;
    margin-bottom: 5px;
    color: #334155;
}
.product-description-content a, .editor a {
    color: var(--color-primy);
    text-decoration: underline;
}