:root {
    --primary-color: #0c969c;
    --secondary-color: #0a7075;
    --secondary-dark-color: #032f30;

    --white-color: #ffffff;
    --light-bg-color: #f2f3f5;
    --light-text-color: #7c899a;
    --border-color: #e5e8ec;
    --dark-color: #031716;

    --font-small: 13px;
    --font-smaller: 11px;

    --percent100: 100%;
    --percent50: 50%;

    --fw3: 300;
    --fw5: 500;
    --fw6: 600;
    --fw7: 700;
    --fw8: 800;

    --trans-background-color: background-color .3s, color .3s;
    --trans-background: background-color .3s;
    --trans-color: color .3s;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--dark-color);
    background-color: var(--white-color);
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
    padding: 5px;
}

img {
    max-width: var(--percent100);
    vertical-align: middle;
}

strong {
    font-weight: var(--fw8);
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input::placeholder {
    font-size: inherit; /* Fixed: Changed from 'font: inherit' to avoid broad resets */
}

h1, h2, h3, h4 {
    font-family: sans-serif;
}

h1 {
    font-size: calc(1.3em + 1vw);
    font-weight: var(--fw8);
    line-height: 1;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.2em;
    font-weight: var(--fw7);
}

h4 {
    font-size: 1em;
    font-weight: var(--fw6);
}

textarea{
    resize: none;
}

/* ```````
  *REUSABLE SELECTOR
  *------------*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.938em;
}

.column {
    margin-left: -0.938em;
    margin-right: -0.938em;
}

.column .row {
    padding: 0 0.938em;
}

.flexwrap {
    display: flex;
    flex-wrap: wrap;
}

.flexcenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flexitem {
    display: flex;
    align-items: center;
}

.flexcol {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.main-links a:hover {
    color: var(--secondary-color);
}

.second-links a:hover {
    color: var(--light-text-color);
}

.icon-small, .icon-large {
    display: flex;
    align-items: center;
    padding: 0.25em;
    font-weight: normal;
}

.icon-small {
    font-size: 1.25em;
    margin-left: auto;
}

.icon-large {
    font-size: 1.75em;
    padding: 0 0.75em 0 0;
}

.mobile-hide {
    display: none;
}

.object-cover img {
    position: absolute;
    object-fit: cover;
    width: var(--percent100);
    height: var(--percent100);
    display: block;
}

.products .media {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.primary-button, .secondary-button, .light-button {
    font-size: var(--font-small);
    padding: 0.9em 2em;
    height: auto;
    width: fit-content;
    border-radius: 2em;
    transition: var(--trans-background-color); /* Fixed: Changed from transform to transition */
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-button:hover {
    background-color: var(--dark-color);
}

.secondary-button {
    background-color: var(--secondary-dark-color);
    color: var(--white-color);
}

.secondary-button:hover {
    background-color: var(--light-bg-color);
    color: var(--secondary-dark-color);
}

.light-button {
    background-color: var(--light-bg-color);
}

.light-button:hover {
    background-color: var(--secondary-dark-color);
    color: var(--white-color);
}

.view-all {
    font-size: var(--font-small);
    display: flex;
    gap: 1em;
    transition: var(--trans-color);
}

.mini-text {
    font-size: var(--font-smaller);
    color: var(--light-text-color);
}

/* Form Elements */
select.variant-size, 
select.variant-color {
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
}

select:focus {
    border-color: 1px solid #2d5bda !important;
}



/* ```````
  *HEADER STYLES
  *------------*/
/* Hide sub-menu by default */
.main-links ul.sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0 0 20px 0;
    z-index: 100;
}
.stars .ri-star-fill {
    color: #ffb900; /* Gold/Yellow */
}
.stars .ri-star-line {
    color: #ccc; /* Grey */
}

/* Show on hover */
.has-child:hover ul.sub-menu {
    display: block;
}


.sub-menu li.current a { color: #007bff; font-weight: bold; }
.sub-menu a { color: #333; text-decoration: none; }


/* ```````
  *SWEETALERT TOAST STYLES
  *------------*/
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease forwards;
}

.toast.success { border-left: 4px solid #28a745; }
.toast.info { border-left: 4px solid #007bff; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}







/* ```````
  *HEADER STYLES
  *------------*/

:where(.off-canvas, header) li > a {
    display: flex;
    position: relative;
    line-height: inherit;
    transition: var(--trans-color);
}

/* ```````
  *HEADER TOP STYLES
  *------------*/
.header-top .wrapper {
    font-size: var(--font-small);
    font-weight: var(--fw3);
    justify-content: space-between;
    line-height: 42px;
}

.header-top .wrapper ul {
    gap: 2em;
}

.header-top li {
    position: relative;
}

.header-top ul ul {
    position: absolute;
    left: -1em;
    line-height: 2em;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    z-index: 1;
    display: none;
}

:where(.header-top, .thetop-nav) .right ul ul li a {
     padding: 0.25em 1em;
}

:where(.header-top, .thetop-nav) .right ul ul li.current a {
    background-color: var(--border-color);
}

.header-top li:hover ul {
    display: block;
}

/* --- HEADER NAV STYLES --- */

.header-nav {
    padding: 0.5em 0;
    margin-bottom: 1.5em;
    border-bottom: 1px solid var(--border-color);
}

.trigger {
    font-size: 1.5em;
    display: flex;
    padding: 0.25em;
    margin-top: 0.5em;
}

.logo a {
    font-family: sans-serif;
    font-size: 1.75em;
    position: relative;
    font-weight: var(--fw8);
    display: flex;
    padding-left: 0.75em;
    margin-right: 2em;
}

.circle {
    position: absolute;
    top: -15px;
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--percent50);
    background-color: var(--light-bg-color);
    z-index: -1;
}

.circle::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: var(--percent50);
    background-color: var(--secondary-color);
    bottom: 5px;
    right: 5px;
    opacity: 0; /* Fixed: Changed from -1 to 0 (fully transparent) */
}

.header-nav nav > ul {
    line-height: 100px;
    gap: 2em;
}

.fly-item {
    position: absolute;
    height: 16px;
    font-size: var(--font-smaller); /* Fixed: Changed from font-weight to font-size */
    padding: 3px;
    text-align: center;
    line-height: 16px;
    color: var(--white-color);
}

nav .fly-item, 
.header-nav .mini-cart .price .fly-item {
    top: 45px;
    margin-top: -24px;
    width: fit-content;
    border-radius: 3px;
    right: -27px;
    background-color: var(--primary-color);
}

.header-nav .right {
    position: relative;
    margin-left: auto;
}

.header-nav .right .icon-large {
    position: relative;
}

.header-nav .right .fly-item {
    top: 0;
    right: 16px;
    width: 16px;
    background-color: var(--secondary-dark-color);
    border-radius: var(--percent50);
}

.mega .flexcol {
    flex: 1;
    min-width: 100px;
    padding-right: 2em;
    margin-bottom: 1.5em;
    z-index: 1;
}

/* --- HEADER MAIN & DEPARTMENTS --- */

.header-main {
    background-color: var(--secondary-dark-color);
    padding: 1.5em;
    margin-bottom: 2em;
    margin-left: -30px;
    margin-right: -30px;
}  

.dpt-cat {
    position: relative;
    z-index: 10;
}

.dpt-cat .dpt-head {
    position: relative;
    width: 254px;
    padding: 0.75em 1.5em;
    background-color: var(--primary-color);
    border-radius: 7px 7px 0 0;
    color: var(--white-color);
    margin-bottom: -2.15em;
}

.dpt-cat .dpt-head .mini-text {
    color: var(--light-bg-color);
}

.dpt-cat .dpt-trigger {
    position: absolute;
    right: 0;
    top: 0;
    padding: 1.3em;
    height: 66px;
    width: 20px;
}

/* Merged duplicate selectors for dpt-menu links */
.dpt-menu > ul > li > a {
    display: flex; /* Added display flex so align-items works properly */
    font-size: var(--font-small);
    height: 46px;
    align-items: center;
    font-weight: var(--fw5);
    padding: 0 1.5em;
    border-bottom: 1px solid var(--border-color);
}
.dpt-menu .has-child li a:hover{
    text-decoration: underline;
}
.dpt-menu {
    position: absolute;
    top: var(--percent100);
    width: 300px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-top: 0;
    border-bottom: 0;
}

/* --- HEADER SEARCH FORM --- */

.header-main .right {
    flex: 1;
}

form {
    position: relative;
}

form.search input {
    line-height: 3.25em;
    padding: 0 7em 0 4.5em;
    border: 0;
    outline: 0;
    width: var(--percent100);
    border-radius: 7px;
    font-size: 0.9em;
    font-weight: var(--fw3);
}

form.search :where(span, button) {
    position: absolute;
    top: 0;
    padding: 0.55px 1.5em;
    font-size: 1em;
    color: var(--light-text-color);
    height: var(--percent100);
}

form.search button {
    right: 0;
    border: 0;
    outline: none;
    font-size: 0.75em;
    font-weight: var(--fw6);
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 0 7px 7px 0;
    cursor: pointer;
    transition: var(--trans-background);
}

form.search button:hover {
    background-color: var(--dark-color);
}


/* ```````
  *HEADER------------
   Responsive MENU - OFF Canvas
  *------------*/
.site-off{
    position: fixed;
    width: 320px;
    height: var(--percent100);
    background-color: var(--white-color);
    overflow: auto;
    z-index: 1000;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .4s, visibility .4s;
    will-change:  transform, visibility;
}
.showmenu .site-off {
    transform: translateX(0);
    visibility: visible;
    transform: transform .4s 0s, visibility 0s 0s;
}

.off-canvas{
    width: auto;
    height: var(--percent100);
    touch-action: auto;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.off-canvas .canvas-head{
    color: var(--white-color);
    justify-content: space-between;
    padding: 1.5em;
    margin: -1.5em -1.5em 1.5em;
    background-color: var(--secondary-dark-color);
    border-bottom-right-radius: 160px 25px;
}

.off-canvas .canvas-head .logo{
    z-index: 10;
    position: relative;
}

.off-canvas .canvas-head .logo .circle{
    opacity: .75;
}

.t-close {
    font-size: 1em;
    width: 24px;
    height: 24px;
    border-radius: var(--percent50);
    background-color: var(--secondary-dark-color);
    color: var(--white-color);
    transition: var(--trans-background-color);
}

.t-close:hover {
    background-color: var(--white-color);
    color: var(--secondary-dark-color);
    opacity: .75;
}


.off-canvas .dpt-head{
    font-size: var(--font-small);
    padding: 1em;
    margin-bottom: 1em;
    text-align: center;
    background-color: var(--light-bg-color);
    border-radius: 7px 7px 0 0;
}
.off-canvas .dpt-cat{
    width: auto;
    margin-left: -15px;
}

.off-canvas .has-child > :where(ul, .mega) {
    font-size: var(--font-small);
    font-weight: var(--fw3);
    line-height: 28px;
    padding-left: 3em;

    height: auto;
    max-height: 0;
    overflow: hidden;
    transition:  max-height .3s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.off-canvas .expand > :where(ul, .mega) {
    max-height: 2000px;
}

.off-canvas .dpt-menu,
.off-canvas .has-child > :where(ul, .mega) {
    position: relative !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}


.off-canvas .thetop-nav ul, .off-canvas nav > ul{
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--font-small);
    line-height: 36px;
    padding-top: 1.25em;
    margin: 1.25em 0;
    border-top: 1px solid var(--border-color);
}

.off-canvas nav .mega{
    padding: 0;
}

.off-canvas nav .mega .products{
    display: none;
}

.off-canvas .has-child .icon-small{
    padding: 0.5em;
    line-height: initial;
}

.off-canvas .dpt-menu .icon-small i{
    transform: rotate(90deg);
}

.off-canvas .has-child{
    width: var(--percent100);
}

.off-canvas .thetop-nav .right > ul > :where(:nth-child(4), li:nth-child(5)) > a {
    display: none; 
}

.off-canvas .thetop-nav .right ul ul {
    display: flex;
    flex-direction: row;
}

.off-canvas .thetop-nav .right ul ul li a {
    padding: 0.5em;
    border: 1px solid var(--border-color);
    line-height: 16px;
    margin: 0 0.5em 0.5em 0;
}


/* ```````
  *SLIDER STYLES
  *------------*/
.slider > div > .wrapper{
    width: calc(100% - (300px + 2em));
    margin-left: auto;
}

.slider .item {
    position: relative;
    height: 474px;

}
.slider .item::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 450px;
    height: 300px;
    background-color: var(--white-color); 
    z-index: 1; 
    filter: blur(50px);
    opacity: .8;
}

.slider .text-content{
    position: relative;
    height: var(--percent100);
    justify-content: flex-end;
    padding: 0 0 10% 10%;
    z-index: 1;
}
.slider h4{
    font-size: var(--font-small);
    font-weight: var(--fw7);
    width: fit-content;
    padding: 4px 10px;
    background-color: var(--dark-color);
    color: var(--white-color);
    border-radius: 4px;
}
.text-content :where(h2,h3) span:first-child {
    font-weight: var(--fw3);
    color: var(--light-text-color);

}
.text-content :where(h2,h3) span:last-child {
    color: var(--secondary-dark-color);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--secondary-dark-color);
}

/* ```````
  *BRANDS STYLES
  *------------*/
.brands .wrapper{
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 2em 0;
}
.brands .item img{
    opacity: .25;
    transition: opacity .3s;
}
.brands .item a:hover img{
    opacity: 1;
}


/*----------------------
  PRODUCT BLOCK STYLES
  ----------------------*/
.trending .flexwrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    gap: 20px; 
    width: 56%; /**/             
}

.sectop {
    display: flex; /* Added to make justify-content work */
    justify-content: space-between;
    padding-bottom: 0.5em;
    margin-bottom: 2em;
    border-bottom: 1px solid var(--border-color);
}

.sectop h2 {
    position: relative;
    font-size: 1.5em;
    font-weight: var(--fw7);
}

.sectop h2 span:not(.circle) {
    padding: 0 0 0 2em;
}

.sectop h2 .circle {
    top: -5px;
}


/*----------------------
  GLOBAL PRODUCT STYLES
  ----------------------*/

/* Outer container grid 
.flexwrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}*/

/* Default Mobile View (Stacked) */
.row.products.big,
.mini-products-wrapper {
    flex: 1 1 100%;
}
.mini-products-wrapper {
    flex: 0 0 100%; /* Takes full width of the screen */
    display: flex;
    flex-direction: column; 
    gap: 15px; 
}
.row.products.mini {
    /* calc(50% - 7.5px) makes them exactly half width while accounting for the 15px gap */
    flex: 0 0 calc(50% - 7.5px); 
    display: flex;
    flex-direction: column; /* Keeps items inside stacking vertically */
    gap: 15px; 
}

.products .offer {
    text-align: center;
    margin-bottom: 1.5em;
}

.products .offer p {
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.products .offer ul {
    display: flex; /* Added to keep timer horizontally aligned */
    gap: 1em;
}

.products .offer ul li {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0.5em;
    line-height: initial;
    color: var(--secondary-dark-color);
    background-color: var(--light-bg-color);
    border-radius: 5px;
}

.products .offer ul li:not(:last-child)::before {
    content: ":";
    position: absolute;
    right: -0.6em;
    color: var(--light-text-color);
}

/* Fixed the spelling of :where */
.products :where(.image, .thumbnail) img {
    transition: transform .3s;
}

.products :where(.image, .thumbnail):hover img {
    transform: scale(1.1);
}

.products .hoverable {
    position: absolute;
    top: 10px; /* Shifted from 0 for cleaner UI */
    right: 10px;
    z-index: 10; /* Keeps hover above image */
}

.products .hoverable li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Slightly increased so icons fit */
    height: 30px;
    padding: 0.25em;
    margin: 0.25em;
    border-radius: var(--percent50);
    line-height: 1;
    background-color: var(--white-color);
    opacity: .5;
    transition: var(--trans-background-color, background-color .3s), opacity .3s;
}

.products .item:hover .hoverable li a {
    opacity: 1;
}

.products .hoverable li a:hover {
    color: var(--white-color);
    background-color: var(--dark-color);
}

.products .hoverable li.active a:hover {
    background-color: var(--primary-color);
}

.products .hoverable li:not(.active) {
    transform: translateX(100%);
    opacity: 0;
    transition: transform .3s, opacity .2s;
} 

.products .item:hover .hoverable li {
    transform: translateX(0);
    opacity: 1;
}

.products .hoverable li:last-child {
    transition-delay: .1s;
}

.products .discount {
    position: absolute; /* Added to pin on media */
    top: auto;
    right: 0;
    left: auto;
    bottom: 0;
    background-color: transparent;
    z-index: 1;
}

.products .discount::before {
    background-color: var(--dark-color);
}

.products .discount span {
    position: relative;
    font-size: var(--font-smaller);
    font-weight: var(--fw5);
    color: var(--white-color);
}

.products .content {
    display: flex;
    flex-direction: column;
}

.products:where(.big,.main, .one).big .content {
    gap: 1em;
    margin-top: 1.25em;
}

.products .rating {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Swapped broken URI with standard yellow star SVG icons */
.products .rating .stars {
    width: 80px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" viewBox="0 0 24 24" fill="%23f59e0b"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z""")/>></svg>');
    background-position: left;
    background-repeat: repeat-x;
    background-size: 16px 16px;
}
/*STARS WIDTH*/
.products .items:where(:nth-child(3)) .stars{
    width: 64px;
}
.products h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1em;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.products h3 a:hover {
    text-decoration: underline;
}

.products .price .current {
    font-size: calc(1em + 1vw);
    color: var(--primary-color);
    margin-right: 0.25em;
}

.products .price .normal {
    color: var(--light-text-color);
    text-decoration: line-through;
}

.products .stock .qty {
    display: flex;
    justify-content: space-between;
}

.products .stock .bar {
    height: 3px;
    margin-top: 1em;
    background-color: var(--border-color);
    overflow: hidden;
}

.products .stock .available {
    height: 3px;
    width: 21px; /* Static width from your clip; handle with dynamic JS */
    background-color: var(--secondary-color);
}

.products .item {
    display: flex;
    position: relative;
}

/*----------------------
  BIG PRODUCTS STYLES
  ----------------------*/
.products.big .item {
    flex-direction: column;
    padding: 2.5em;
    border: 2px solid var(--secondary-dark-color);
    border-radius: 7px;
    width: 80%; /* Removed max-width to allow clean stretching side-by-side */
}

/*----------------------
  MINI PRODUCTS
  ----------------------*/
.products.mini .item {
    margin-bottom: 2em;
    padding: 0.5em; 
}

.products.mini .media {
    width: 130px;
    height: 200px;
    margin-right: 1.25em;
}

.products.mini .content {
    margin: 0;
    gap: 0.75em;
}

.products.mini h3 {
    font-weight: 0.85em;
    word-break: break-word; /* Forces long words to break instead of stretching the box */
    overflow: hidden;
}

.products.mini .media:where(.image, .thumbnail) img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps the mini product image looking clean and proportional */
}


.flexwrap .row{
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 2em;
}

.flexcenter span{
    background-color: var(--light-text-color);
    padding: 7px;
    border-radius: 27px;
    margin: 80px;
}



/* ```````
  *MAIN PRODUCTS STYLES
  *------------*/
.main, .products-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.products.main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    
}


/* Initially hide items after the 8th product via CSS to prevent UI flash */
.products.main .item:nth-child(n+9) {
    display: none;
}

.products.main .item {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    padding: 0 0.938em;
    padding-bottom: 2em;
}

.products.main .media {
    height: 390px;
}

.products .footer{
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 1em 1em;
    border-radius: 7px;
    z-index: 1;
    background:  linear-gradient(0deg, var(--light-bg-color) 0%, var(--white-color) 100%);
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
    transition: all .2s ease-in-out;
}
.products.main .item:hover .footer{
    opacity: 1;
    visibility: visible;
}

.products.main .footer ul{
    list-style: disc;
    padding : 1.25em 0 01.25em;
    line-height: 1.1.8;
    border: 1px solid var(--border-color)  ;
    margin-top: 145px;
}
.products.main .item:hover .content> *:not(.footer){
    z-index: 3;
}

/*----------------------
  BANNER STYLES
  ----------------------*/

/* Outer container controls */
.banners .flexwrap {
    display: flex;
    flex-wrap: wrap; /* Stacks vertically on mobile */
    gap: 20px;
    width: 100%;
}

.banners .item {
    position: relative;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Prevents absolutely positioned elements from overflowing */
}

/* Banner specific styles */
.banner .row {
    flex: 1 1 100%; /* Stacks vertically on mobile */
}
.banner .row h4{
    font-size: var(--font-small);
    font-weight: var(--fw7);
    width: fit-content;
    padding: 4px 10px;
    background-color: var(--dark-color);
    color: var(--white-color);
    border-radius: 4px;
}

.banner .image {
    text-align: right;
    height: 400px; /* Gives the container a height so it doesn't collapse */
}

.banner .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents the banner photo from stretching */
}

.banner .get-grey {
    background-color: var(--border-color);
}

/* Forces text and invisible click overlay to perfectly cover the image */
.banner :where(.text-content, .over-link) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.banner .text-content {
    padding: 1.5em 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers banner text vertically */
    align-items: flex-start; /* Aligns text and button to the left */
}

.banner h3 {
    font-size: 1.5em;
    font-weight: var(--fw3);
    color: var(--dark-color);
}

.banner h3 span {
    color: var(--primary-color);
    font-weight: var(--fw7);
    font-size: 80%;
}

.banner .primary-button {
    z-index: 3;
    margin-top: 1em;
}

/* Invisible full card click behavior */
.banner .over-link {
    z-index: 2;
}

/*----------------------
  PRODUCT CATEGORIES STYLES
  ----------------------*/

.product-categories {
    margin-top: 30px;
}

.product-categories .row {
    flex: 1 1 100%; /* Stacks on mobile */
}

.product-categories .item {
    padding: 1.5em;
    gap: 15px; /* Adds space between image and the lists */
}

.product-categories .image {
    max-width: 150px;
    flex-shrink: 0; /* Keeps image container from squeezing */
}

.product-categories .image img {
    width: 100%;
    border-radius: 5px;
}

.mini-links h4 {
    font-size: 1.1em;
    color: var(--dark-color);
}

.mini-links ul {
    font-size: var(--font-small);
    color: var(--light-text-color);
    margin-top: 1em;
}

.mini-links li a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.product-categories .second-links {
    margin-top: auto; /* Pushes 'View All' to the bottom of the list */
    display: flex;
    align-items: center;
    gap: 5px;
}

/*----------------------
  FOOTER STYLES
  ----------------------*/
.newsletter {
    padding: 2.5em 0;
    background-color: var(--dark-color);
    color: var(--white-color);
    width: 100%;
    overflow: hidden; /* Safety net to prevent children from spilling out */
}

/* Force the internal wrapper to stay within the screen and stack safely on mobile */
.newsletter .wrapper {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.newsletter h3 {
    font-size: 1.5em;
    font-weight: var(--fw7);
}

.newsletter p {
    font-weight: var(--fw3);
    color: var(--border-color);
    margin: 0.5em 0 0; /* Removed large bottom margin pushing the form away */
}

.newsletter p strong {
    color: var(--primary-color);
}

/* Prevents the form from expanding wider than the screen on tiny devices */
.newsletter form {
    max-width: 400px;
    width: 100%;
    display: flex; /* Aligns input and button in a clean row if needed */
    box-sizing: border-box;
}

/* Desktop View: Puts text on the left and form on the right */
@media screen and (min-width: 768px) {
    .newsletter .wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/*----------------------
  FOOTER WIDGET STYLES
  ----------------------*/
.widgets { /* Fixed typo: changed from .widget to .widgets */
    padding: 3.5em 0;
    background-color: var(--light-bg-color);
}

.widgets .flexwrap {
    display: flex;
    flex-wrap: wrap; /* Stacks vertically on mobile */
    gap: 30px;
}

.widgets .row {
    flex: 1 1 100%; /* Stacks columns 100% wide on mobile devices */
}

.widgets h4 {
    font-size: 1.1em;
    color: var(--dark-color);
    margin-bottom: 1.5em;
}

.widgets .mini-links ul {
    gap: 0.75em;
}

.widgets .mini-links li a {
    color: var(--light-text-color);
    font-size: var(--font-small);
}

.widgets .mini-links li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/*----------------------
  FOOTER INFO STYLES
  ----------------------*/
.footer-info {
    padding: 3.5em 0 5em;
}

.footer-info .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-info .wrapper .flexcol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info .logo a {
    font-size: 1.5em;
    font-weight: var(--fw7);
    color: var(--dark-color);
}

.footer-info ul.flexitem {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.footer-info ul li a {
    font-size: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg-color);
    border-radius: 50%;
    margin: 0.25em;
    color: var(--dark-color);
    transition: background-color 0.3s, color 0.3s;
}

.footer-info ul li a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-info .mini-text {
    margin-top: 2em;
    text-align: center;
    color: var(--light-text-color);
    font-size: 0.85em;
}


/*----------------------
  BOTTOM MENU STYLES
  ----------------------*/
.menu-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Fixed invalid box-shadow syntax */
    z-index: 900;
}

.menu-bottom .flexitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.menu-bottom nav li {
    flex: 1;
    text-align: center;
}

.menu-bottom nav li a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.menu-bottom nav li a:hover {
    color: var(--dark-color);
}

.menu-bottom nav li a span {
    font-size: 0.75rem; /* Fixed: changed from font-family to font-size */
    margin-top: 2px;
}

.menu-bottom nav li a i {
    font-size: 1.3em;
}

/* Red Dot Badge for Cart/Trending */
.menu-bottom .fly-item {
    position: absolute;
    top: -5px;
    right: 25%; /* Anchors properly above the icon */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Usually cart badges are red/primary */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.menu-bottom .item-number {
    font-size: 0.65rem;
    font-weight: 700;
}


/*----------------------
  BOTTOM MENU SEARCH STYLES
  ----------------------*/
.search-bottom {
    position: fixed;
    left: 0;
    bottom: 60px; /* Sits perfectly right on top of the bottom menu */
    width: 100%;
    padding: 1.5em 0;
    background-color: var(--secondary-dark-color);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px); /* Adds a smooth slide up effect */
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* Active class triggered by JS */
.showsearch .search-bottom {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.search-bottom form {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 15px; /* Adds padding on small screens */
}

.search-bottom input {
    width: 100%;
    padding: 0.8em 1em;
    border: none;
    outline: none;
}

.search-bottom button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0 1.5em;
    height: 100%;
    cursor: pointer;
}

.search-bottom .t-close {
    position: absolute;
    top: -45px;
    right: 15px;
    width: 35px;
    height: 35px;
    background-color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-bottom .t-close:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
/*----------------------
  OVERLAY STYLES
  ----------------------*/
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Added for smooth fade */
}
:where(.showmenu, .showmodal, .overlay) {
    opacity: 1;
    visibility: inherit;
}

/* Trigger overlay when search is active */
body.showsearch .overlay {
    visibility: visible;
    opacity: 1;
}

/* Trigger overlay when mobile menu is active */
body.showmenu .overlay {
    visibility: visible;
    opacity: 1;
}


/* ```````
  *PAGE SINGLE STYLES
  *------------*/
.page-home .dpt-cat .dpt-trigger,
.dpt-trigger .ri-close-line,
.showdpt .dpt-trigger .ri-menu-3-line {
    display: none;
}
.showdpt .dpt-trigger .ri-close-line{
    display: block;
}


/* ```````single page
  *breadcrumb styles
  *------------*/
.breadcrumb{
    font-size: var(--font-small);
    margin-bottom: 2em;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    padding: 0 0.35em;
}
.breadcrumb li:last-child {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--light-text-color);
}


/*---------------------------------------
  * product offer page styles
---------------------------------------*/
/* Professional Product Grid Container */
.product-showcase {
    display: grid;
    /* Responsive columns: min 280px wide, fills space automatically */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
}

/* Individual Modern Product Card */
.professional-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image Section Styling */
.card-media {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f9f9f9;
    overflow: hidden;
}

.card-media img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.professional-card:hover .card-media img {
    transform: scale(1.08);
}

/* Info Section Styling */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-body h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* Professional Pricing Typography */
.card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.card-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e67e22; /* Branding Color */
}

.card-price .normal {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

/* Modern Buy Button */
.card-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.btn-primary-modern {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary-modern:hover {
    background: var(--dark-color);
}

/* Badges */
.badge-discount {
    position: absolute;
    top: 15px; left: 15px;
    background: #ff4757;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}



/*---------------------------------------
  * product review styles
---------------------------------------*/
/* Container & Grid 
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    background: #f9f9f9;
}

.professional-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}*/

/* Media Section */
.card-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Review Dashboard */
.review-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    padding: 20px;
    border-top: 1px solid #eee;
}

.rating-overview h2 { font-size: 2.2rem; margin: 0; }

/* Interactive Stars for Form */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating-input input { display: none; }
.star-rating-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffc107;
}

/* Review List */
.review-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

/* Reviews Wrapper */
.producs.main.flex {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Individual Review Card */
.review-entry {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 20px;
}

.review-entry:last-child {
    border-bottom: none;
}

/* Header: Name and Date */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-identity {
    font-weight: 700;
    color: #2c3e50;
}

.review-timestamp {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Content: Title and Text */
.review-subject {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 10px 0 5px 0;
}

.review-body {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Star Styles */
.review-entry .stars {
    color: #f1c40f;
    font-size: 0.8rem;
}





/*---------------------------------------
  * product details
---------------------------------------*/
.products.one .item{
    flex-direction: column;
}

.products.one .price .discount{
    font-size: 1em;
    font-size: var(--fw7);
    line-height: 1;
    position: absolute;
    top: 0;
    bottom: auto;
    padding: 1em;
    z-index: 2;
    background-color: var(--dark-color);
    color: var(--white-color);
    border-radius: var(--percent50);
    margin: 0.5em;
}
.products.one :where(.big-image, .small-image) {
    overflow: hidden;
}
.products.one .big-image{
    position: relative;
    margin-bottom: 1em;
}
.products.one :where(.big-image, .small-image) img{
    object-fit: cover;
    width: var(--percent100);
    height: var(--percent100);
    display: block;
}
.products.one .thumbnail-show {
    position: relative;
    width: 130px;
    height: 110px;
    overflow: hidden;
    margin: 0 2em 2em 0;
}
.products :is(.swiper-button-next, .swiper-button-prev) {
    outline: none;
    color: var(--secondary-dark-color);
    transition: var(--trans-background), transform .3s;
}
.products .big-image:hover .swiper-button-next {
    transform: translateX(10px);
}
.products .big-image:hover .swiper-button-prev {
    transform: translateX(-10px);
}

.products :is(.swiper-button-next, .swiper-button-prev)::after {
    font-size: 1.5em;
}
.products .big-image:hover :is(.swiper-button-next, .swiper-button-prev) {
    background-color: var(--light-bg-color);
}
/*lightbox - https://fslightbox.com/ use data-fslightbox*/

/* ```````
  *Product STYLES
  *------------*/
.products.one .available{
    font-size: var(--font-small);
    font-weight: var(--fw5);
    padding: 0.5em;
    margin-right: 1em;
    border-radius: 3px;
    color: #10ac84;
    background-color: var(--light-bg-color);
}
.products.one .add-review{
    color: var(--dark-color);
}
.products.one .price{
    display: flex;
    gap: 1em;
    align-items: center;
    flex-wrap: wrap;
}
.products.one .price .current{
    font-size: 2.5em;
}
.products .variant form{
    display: flex;
    margin-top: 0.5em;
}
.products .variant form p{
    position: relative;
    margin: 0 0.5em 0;
}
.products :where(.variant, .actions) .circle{
    display: block;
    position: static;
    top: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}
:where(.products .variant, .filter-block:not(.pricing)) input{
    clip: rect(0,0,0,0);
    overflow: hidden;
    position: absolute;
    height: 0;
    width: 0;
}
.products .colors .variant label::before{
    opacity: 1;
}
.products .variant label[for="cogrey"]::before{
    background-color: #578574;
}
.products .variant label[for="coolive"]::before{
    background-color: #45a0ff;
}
.products .variant label[for="cogreen"]::before{
    background-color: #1dd1a1;
}
.single-product .variant form p input:checked + label {
    background-color: transparent;
    border: 2px solid var(--dark-color);
    color: var(--white-color);
}


.products .sizes .variant label::before{
    background-color: var(--white-color);
}
.products .sizes .variant label span{
    position: absolute;
    top: 0;
    left: 0;
    width: var(--percent100);
    height: var(--percent100);
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-product .sizes .variant form p input:checked + label::before {
    background-color: var(--dark-color);
    opacity: 1;
}

.products .actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2em;
}
.products .qty-control{
    width: fit-content;
    padding: 0.5em;
    border: 1px solid var(--border-color);
    margin: 0 2em 2em 0;
}
.products .actions :where(input, button) {
    font-size: 1.25em;
    outline: 0;
    border: 0;
}
.products .actions input{
    width: 50px;
    text-align: center;
}
.products .qty-control button::before{
    background-color: transparent;
}
.products  .actions .button-cart {
    flex: 1;
    min-width: 200px;
}
.products  .actions .button-cart button{
    width: var(--percent100);
    cursor: pointer;
}

.wish-share a {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: var(--fw7);
    margin: 1em 2em 1em 0;
    transition: var(--trans-color);
}


/* ```````PRODUCTS
  *CUSTOM STYLES
  *------------*/
.products .collapse .has-child > a {
    position: relative;
    font-weight: var(--fw7);
    text-transform: uppercase;
    padding: 1em 1.25em;
    border-top:  1px solid var(--border-color);
    gap: 1em;
    align-items: flex-start;
}
.products .collapse .has-child > a::before {
    content: "+";
    position: absolute;
    left: 0;
}
.products .collapse .content {
    margin: 0 0 1.5em 2em;
    font-size: var(--font-small);
}
.products .collapse .content li span:first-child {
    min-width: 100px;
    display:  inline-flex;
    font-weight: var(--fw5);
    text-transform: uppercase;
}
.products .collapse table{
    line-height: 3em;
}
.products .collapse table thead th{
    vertical-align: bottom;
    border-bottom: 2px solid var(--dark-color);
}
.products .collapse table :where(th, td) {
    border-bottom: 1px solid var(--border-color);
    padding-left: 2em;
}
.products .collapse .content {
    display: none;
}
.products .collapse .expand .content{
    display: flex;
}
.products .collapse .expand > a::before{
    content: "-";
}


/*```````PRODUCTS
 *PRODUCT REVIEW FORM
 *------------*/
.products .reviews h4{
    font-size: 2em;
    color: var(--light-text-color);
    padding-top: 1em;
    margin: 1em 0 0 0.5em;
    border-top: 1px solid var(--border-color);
}
.products .review-block {
    color: initial;
}
.products .review-block-head > a{
    display: block;
    font-size: 1.25em;
    width: var(--percent100);
    margin-top: 1em;
    text-align: center;
}
.products .review-block-head .rate-sum{
    position: relative;
    font-size: 4em;
    font-weight: var(--fw7);
    padding-right: 0.5em;
}
.products .review-block-head .rate-sum::before{
    content: " ";
    width: 2em;
    height: 50px;
    display: block;
    position: absolute;
    top: 10px;
    right: 13px;
    transform: rotate(22deg);
    background-color: var(--light-bg-color);
}
.products .review-block-body .item {
    gap: 1em;
    padding-bottom: 2.5em;
    margin-top: 3.5em;
}
.products .review-block-body :where(.person, .review-title) {
    font-weight: var(--fw7);

    text-transform: uppercase;
}
.products .review-block-body :where(.review-title, .view-all){
    font-size: 1.25em;
    justify-content: end;
}
.products .review-block-body .item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* ```````PRODUCT
  *PRODUCT REVIEW STYLES
  *------------*/
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-ad-section {
    padding: 20px 0;
    width: 100%;
    animation: fadeInUp 0.8s ease-out; /* The animation */
}

.store-ad-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.store-ad-container img:hover {
    transform: scale(1.01); /* Subtle zoom on hover */
}




/* ```````PRODUCT
  *PRODUCT REVIEW STYLES
  *------------*/
.review-form .rating{
    flex-wrap: wrap;
}
.review-form p {
    font-size: 1.25em;
    margin-right: 1em;
}
.review-form .rate-this input{
    display: none;
}
.review-form .rate-this label{
    float: right;
    font-size: 2em;
    color: var(--secondary-dark-color);
}
.rate-this > input:checked ~ label,
.rate-this:not(:checked) > label:hover,
.rate-this:not(:checked) > label:hover ~ label{
    color: #f1c40e;
}
.rate-this > input:checked + label:hover,
.rate-this > input:checked ~ label:hover,
.rate-this > input:hover ~ input:checked ~ label,
.rate-this > input:checked ~ label:hover ~ label {
    color: #ffed65;
}
.review-form form {
    margin-top: 2.5em;
}
form a{
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
}
form :where(input,textarea) {
    line-height: 1;
    padding: 1em;
    border: 1px solid var(--border-color);
    outline: 0;
}
form label {
    font-weight: var(--fw5);
    margin-bottom: 0.5em;
    text-transform: uppercase;
}
textarea {
    resize: none;
}


/* ```````PRODUCTS
  *SPECIAL OFFERS STYLES
  *------------*/
.page-single .stock {
    margin: 2em 0;
}
.page-single .stock .qty span:last-child {
    color: initial;
}
.single-product .stock .bar {
    height: 10px;
}
.page-single .stock .bar .available {
    margin: 0;
    border-radius: 0;
    background-color: var(--secondary-dark-color);
}

.related-products .content{
    height: var(--percent100);
}
.related-products .offer {
    margin-top: 10px;
}
.related-products .offer p {
    margin: 0 1em 0 0;
    text-transform: none;
    line-height: 1;
    font-size: large;
}
.related-products .offer ul li {
    width: 20px;
    height: 20px;
    font-size: var([--font-small]);
    padding: 0.5em 0.25em;
    background-color: transparent;
    color: white;
}
.related-products .content .stock {
    margin-top: auto;
    width: 60%;
}
.related-products .countdown-timer span {
    background-color: var(--light-text-color);
    padding: 7px;
    margin: 10px;
    border-radius: 27px;
}

/* ```````PAGE CATEGORY
  *SIDEBAR PRODUCT FILTER STYLES
  *------------*/
.filter-block {
    margin-bottom: 1em;
    padding-bottom: 1em;
}
.filter-block:not(:last-child){
    border-bottom: 1px solid var(--border-color);
}
.filter-block h4{
    font-size: 1.25em;
    margin-bottom: 0.5em;
}
.filter-block li {
    display: flex;
    font-size: 0.9em;
    position: relative;
    line-height: 2;
}
.filter-block label .checked {
    width: 26px;
    height: 16px;
    position: relative;
    line-height: 0;
    display: inline-block;
    border: 2px solid var(--secondary-dark-color);
    vertical-align: text-top;
    margin: 0 7px 0 0;
    cursor: pointer;
}
.filter-block label .checked::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-dark-color);
    top: 2px;
    left: 2px;
    opacity: 0;
}
.filter-block input:checked + label .checked::before {
    opacity: 1;
}
.filter-block li .count {
    margin-left: auto;
    color: var(--light-text-color);
}

.bycolor label[for="cored"]::before {
    background-color: var(--primary-color);
}
.bycolor label[for="colight"]::before {
    background-color: var(--border-color);
}
.bycolor input:checked + label{
    background-color: transparent;
    border: 2px solid var(--dark-color);
}

input[type="range"] {
    -webkit-appearance: none;
    width: var(--percent100);
}
input[type="range"]:focus {
    outline: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: var(--percent100);
    height: 5px;
    cursor: pointer;
    background-color: var(--border-color);
    box-shadow: none;
    border: 0;
}
input[type="range"]::-webkit-slider-thumb {
    z-index: 2;
    position: relative;
    height: 18px;
    width: 14px;
    background-color: var(--primary-color);
    -webkit-appearance: none;
    margin-top: -7px;
}

.byprice .price-range {
    display: flex;
    justify-content: space-between;
    color: var(--light-text-color);
    margin-top: 0.5em;
}

/* ```````PAGE CATEGORY
  *Head and product block STYLES
  *------------*/
.page-title {
    margin-bottom: 3em;
}
.cat-description p {
    font-weight: var(--fw5);
    font-size: 0.9em;
}
.cat-navigation {
    font-size: 0.85em;
    margin: 2em 0;
    justify-content: flex-end;
    gap: 1em;
}
.cat-navigation .item-filter{
    margin-right: auto;
}
.cat-navigation > div {
    position: relative;
}
.cat-navigation .item-filter a {
    align-items: center;
    text-transform: uppercase;
}
.cat-navigation ul{
    display: none;
    position: absolute;
    left: 0;
    min-width: var(--percent100);
    width: max-content;
    z-index: 10;
}
.cat-description .label, .cat-navigation ul li{
    display: flex;
    gap: 0.5em;
    padding: 0.5em 1em;
    transition: var(--trans-color);
}
:where(.item-sortir, .item-options) .label,
.cat-navigation ul {
    color: var(--light-text-color);
    background-color: var(--light-bg-color);
    cursor: pointer;
}

.cat-description :where(label, ul li):hover {
    color: var(--dark-color);
}
:where(.item-sortir, .item-options):hover ul {
    display: flex;
}

.load-more{
    margin: 2em 0 4em;
}

.filter {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 2em;
    max-width: 400px;
    width: 90%;
    background-color: var(--white-color);
    overflow: auto;
    z-index: 1000;
    box-shadow: rgb(0,  0, 0 / 30%) 0 10px 50px;
    visibility: hidden;
    opacity: 0;
}
.filter.show {
    visibility: visible;
    opacity: 1;
}

/* ```````
  *PAGE CATEGORY STYLES
  *------------*/
.single-category .holder {
    display: flex;
    flex-direction: column;
}
.single-category .sidebar,
.single-category .seection {
    flex: 1 0 100%;
}



/* ```````PAGE CART
  *CART STYLES
  *------------*/
.mini-cart {
    position: absolute;
    width: 250%;
    top: 100%;
    right: 20px;
    background-color: var(--white-color);
    z-index: 1000;
    box-shadow: rgb(0, 0, 0 / 30%) 0 10px 50px;
    opacity: 0;
    visibility: hidden;
}
/* Mobile Screens (Widths up to 480px) */
@media screen and (min-width: 480px) {
    .mini-cart {
        width: calc(100vw - 30px); /* Sets width to full viewport width minus a total of 30px margins */
        right: 15px; /* Keeps a clean 15px gap from the right edge */
        left: 15px;  /* Keeps a clean 15px gap from the left edge */
    }
}
.iscart:hover .mini-cart {
    visibility: visible;
    opacity: 1;
}
:is(.mini-cart .mini-cart .products .products.cart, .checkout .products), .thumbnail img{
    transform: none;
    /*position: relative;
    height: 100px;*/
}
.mini-cart ul :where(li, .price) {
    position: relative;
}
.mini-cart .content {
    width: var(--percent100);
    height: var(--percent100);
    touch-action: auto;
    padding: 1.5em;
}
.mini-cart .cart-head{
    font-size: 1.5em;
    font-weight: var(--fw5);
    color: var(--light-text-color);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
    width: fit-content;
}
.mini-cart .cart-body {
    padding: 0 1.5em;
    margin: 0 -1.5em;
    max-height: 450px;
    overflow: auto;
}
:where(.mini-cart, .products.cart, .checkout) .thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 1em;
}
.mini-cart .item-content{
        margin-left: 0.5em;
}
.mini-cart .item-content p {
    font-size: var(--font-small);
    font-weight: var(--fw5);
    margin-bottom: 1.5em;
    line-height: 1.2;
}
.mini-cart .item-remove{
    margin-left: 1em;
    flex: 1;
    justify-content: flex-end;
}
.mini-cart .subtotal {
    display: flex;
    flex-direction: column;
    padding-top: 1em;
    margin-bottom: 2em;
    border-top: 1px solid var(--border-color);
}
.mini-cart .subtotal p:last-child {
    font-size: 2em;
}
.mini-cart .actions a{
    display: block;
    width: 75%;
    text-align: center;
    justify-content: center;
    margin-bottom: 1em;
}
.mini-cart.show {
    visibility: visible;
    opacity: 1;
    position: absolute;
    top: 15%;
    margin-right: 10%;
    padding: 20px;
    border-radius: 13px;
    box-shadow: rgb(0 0 0 / 30%) 0 10px 50px;
}/**/




/* ``````` 
  *PAGE ABOUT STYLES 
  *------------*/
/* Hero Section */
.about-hero { 
    text-align: center; 
    padding: 50px; 
    background: var(--primary-color); 
    border-radius: 12px; 
    margin-bottom: 40px; 
    color: var(--white-color);
}
.about-hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
}

/* Sections */
.section { margin-bottom: 60px; }
.section-title { 
    font-size: 1.3rem; 
    margin-bottom: 20px; 
    border-left: 4px solid var(--secondary-color); 
    padding-left: 15px; 
}

/* Two Column Layout */
.flex-grid { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
}
.flex-col { 
    flex: 1; 
    min-width: 300px; 
}

/* Accordion for Policies/FAQ */
.accordion-item { 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    overflow: hidden; 
    background: var(--primary-color);
}
.accordion-header { 
    padding: 15px 20px; 
    background: var(--primary-color); 
    color: var(--white-color);
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 600;
}
.accordion-content { 
    padding: 0 20px; 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.3s ease; 
    background: #fafafa; 
}
.accordion-item.active .accordion-content { 
    padding: 15px 20px; 
    max-height: 500px; 
}
.accordion-item.active .ri-arrow-down-s-line { 
    transform: rotate(180deg); 
}

/* Reviews Grid */
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}
.review-card { 
    background: var(--primary-color);
    color: var(--white-color); 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.stars { 
    color: #ffb900; 
    margin-bottom: 10px; 
}

/*TEAM STYLES*/
.northex-team-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.team-category {
    margin-bottom: 60px;
}

.team-category h3 {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    padding-bottom: 5px;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-member {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 280px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-img {
    font-size: 3rem;
    color: var(--secondary-dark-color);
    margin-bottom: 15px;
}

.team-member h4 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

.team-member p {
    color: var(--white-color);
    font-size: 0.9rem;
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role {
    font-weight: bold;
    color: #1e90ff;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Cell Elements */
.item-ven{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: -70px;
}
.vendor-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v-avatar {
    width: 35px;
    height: 35px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

.v-name {
    font-weight: 600;
    margin: 0;
    cursor: pointer;
}


/* ``````` 
  *PAGE ORDER TRACKING STYLES 
  *------------*/

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.shipped { background: #d1ecf1; color: #0c5460; }
.status-badge.delivered { background: #d4edda; color: #155724; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }


 /* Step Styling */
.step { position: relative; z-index: 2; text-align: center; width: 25%; }
.step .dot { 
    width: 50px; height: 50px; line-height: 50px; background: #fff; 
    border: 3px solid #eee; border-radius: 50%; display: inline-block; 
    font-size: 20px; color: #ccc; transition: 0.3s;
}
.step .label { display: block; margin-top: 8px; font-size: 12px; color: #999; font-weight: bold; }

/* Active State */
.step.active .dot { border-color: #28a745; color: #28a745; }
.step.active .label { color: #28a745; }

/* Badge Colors */
.status-badge.pending { background: #fff3cd !important; color: #856404; }
.status-badge.processing { background: #cfe2ff !important; color: #084298; }
.status-badge.shipped { background: #e0f7fa !important; color: #006064; }
.status-badge.delivered { background: #d4edda !important; color: #155724; }

.order-progress {
    margin: 40px 0;
    padding: 20px 0;
}

.progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
}

/* The horizontal line */
.progress-track::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 5%;
    width: 90%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.step .icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: inline-block;
    font-size: 20px;
    color: #ccc;
    transition: 0.3s;
}

.step .text {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    font-weight: 600;
}

/* Active State Colors */
.step.active .icon {
    border-color: #28a745;
    color: #28a745;
}

.step.active .text {
    color: #28a745;
}

/* WISHLIST MODAL */
#quickview-modal {
    z-index: 10000 !important; /* Higher than your mobile sidebar */
}
#quickview-data .row {
        padding: 15%;
}
#quickview-data.active .row{
        padding: 15%;
}






/* ``````` 
  *PAGE CART STYLES 
  *------------*/
.products.cart form {
    width: var(--percent100);
}

.products.cart table {
    width: var(--percent100);
    border-collapse: collapse;
}

.products.cart table thead th {
    vertical-align: middle;
    background-color: var(--light-bg-color);
}

.products.cart table :where(th, td) {
    padding: 2em 1em;
    text-align: center;
}

.products.cart table :where(th, td):first-child {
    text-align: left;
    padding-left: 2em;
}

/* Product Info Column */
.products.cart table tbody td:first-child {
    display: flex;
    align-items: center;
    padding-left: 0;
    gap: 1.5em;
}

.products.cart table td :where(.content, .qty-control, p) {
    margin: 0;
    padding: 0;
}

/* Minimalist Quantity Control */
.products.cart .qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin: 0 auto;
}

.products.cart .qty-control :where(button, input) {
    width: 32px; /* Increased from 12px so numbers are visible */
    padding: 0.25em;
    text-align: center;
    outline: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.products.cart .qty-control input {
    cursor: default;
    font-weight: var(--fw5);
}

.products.cart table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

/* Ensure images fit the thumbnail box */
.products.cart .thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}



/* --- CART SUMMARY FULL STYLES --- */
.cart-summary {
    width: var(--percent100);
    margin: 2.5em 0 4em;
}
.cart-summary .item {
    background-color: var(--light-bg-color);
}

/* Coupon Section */
.cart-summary .coupon {
    position: relative;
    width: 90%;
}
.cart-summary .coupon input {
    font-size: 1.1em;
    outline: 0;
    width: var(--percent100);
    padding: 0 1.5em;
    line-height: 50px;
    background-color: var(--white-color);
    border: 3px solid var(--dark-color);
}
.cart-summary .coupon button {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    outline: 0;
    font-size: 1em;
    padding: 0 2.5em;
    line-height: 56px;
    background-color: var(--dark-color);
    color: var(--white-color);
    cursor: pointer;
}

/* Shipping Rate & Collapsible Section */
.cart-summary .shipping-rate {
    padding: 0 2em;
}

.cart-summary .has-child > a {
    font-size: 1em;
    margin: 2em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--fw6);
    color: var(--dark-color);
    text-decoration: none;
}

/* The Rotating Arrow */
.cart-summary .has-child > a::after {
    content: '\2304'; /*- Unicode for down chevron */
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.cart-summary .has-child > a.active-link::after {
    transform: rotate(180deg);
}

/* Smooth Slide Animation */
.cart-summary .shipping-rate .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0;
}

.cart-summary .shipping-rate .content.active {
    max-height: 1000px;
    padding: 1em 0 2em;
}

/* Location Fields (Select & Input) */
.cart-summary .countries, .cart-summary .states {
    margin-bottom: 1.5em;
    display: flex;
    flex-direction: column;
}

.cart-summary :where(.countries, .states) label {
    font-size: var(--font-small);
    font-weight: var(--fw6);
    margin-bottom: 0.5em;
    color: var(--light-text-color);
    text-transform: uppercase;
}

.cart-summary select, .cart-summary input[type="text"] {
    width: var(--percent100);
    padding: 12px 15px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

/* Custom Select Arrow */
.cart-summary select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://w3.org' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Totals Table */
.cart-summary .cart-total {
    padding: 2em;
    background-color: var(--border-color);
    line-height: 2em;
}

.cart-summary .cart-total table {
    width: var(--percent100);
}

.cart-summary .cart-total tr {
    display: flex;
    justify-content: flex-start;
}

.cart-summary .grand-total td {
    /*font-size: 2em;*/ 
    font-family: "Poppins", sans-serif;
    font-weight: var(--fw7);
    color: var(--primary-color);
}


/* ```````PAGE
  *PAGE CHECKOUT STYLES
 *------------*/






/* ```````PAGE 
  *PAGE CHECKOUT STYLES 
  *------------*/
.checkout {
    margin: 5em 0;
}

.checkout .left {
    padding: 2em; /* Increased padding for better internal spacing */
    background-color: var(--light-bg-color);
    box-shadow: 0 15px 70px -8px rgb(0 0 0 / 20%);
    border-radius: 10px;
}

.checkout .item {
    width: var(--percent100);
}

.checkout .left h2 { /* Targeting the Delivery Address/Methods headers */
    font-weight: var(--fw3);
    margin-bottom: 1.5em;
    padding-top: 0.5em;
    border-top: 1px solid var(--border-color);
}

/* Label Styling with Required Dot */
.checkout .left label {
    font-size: var(--font-small);
    text-transform: capitalize;
    position: relative;
    width: fit-content;
    display: block;
    margin-bottom: 0.5em;
}

.checkout .left label span {
    position: absolute;
    top: 0;
    right: -10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: var(--percent50);
}

/* Input & Textarea Styling */
.checkout p :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    background-color: rgb(255 255 255 / 50%);
    font-family: inherit;
    width: var(--percent100);
    padding: 12px;
    border: 1px solid var(--border-color);
    outline: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.checkout p input:focus, 
.checkout p textarea:focus {
    background-color: var(--white-color);
    border-color: var(--primary-color);
}

/* Checkbox & Radio layout */
.checkout p.checkset {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 1em 0;
}

.checkout p.checkset label {
    margin: 0 0 0 1em;
    cursor: pointer;
    text-transform: none; /* Usually better for "Create an account" */
}

.checkout p.checkset input {
    width: auto; /* Prevent checkbox from stretching */
}

/* Shipping Methods section adjustment */
.shipping-methods {
    margin: 2em 0;
}

/* Place Order Button */
.primary-checkout button {
    display: block;
    border: 0;
    outline: 0;
    cursor: pointer;
    width: var(--percent100);
    max-width: 280px; /* Adjusted slightly wider for Ghc text */
    font-size: 1.2em;
    margin: 3em auto 0;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    transition: opacity 0.3s;
}

.primary-checkout button:hover {
    opacity: 0.8;
}

/* Textarea specific height */
.checkout textarea {
    resize: vertical;
    min-height: 100px;
}


/* ```````PAGE 
  *ORDER SUMMARY UPDATED 
  *------------*/

.checkout .item.right {
    padding: 5em 0 0;
}

.summary-totals ul {
    max-width: 335px;
    line-height: 2;
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px solid var(--secondary-dark-color);
}

.summary-totals li {
    display: flex;
    justify-content: space-between;
    font-weight: var(--fw5);
}

/* The Grand Total Price */
.summary-totals li strong {
    font-size: 2.5em;
    line-height: 1;
}

.summary-totals li:last-child {
    margin-top: 2em;
}

/* Styles labels (Subtotal, Discount, etc.) except for the grand total */
.summary-totals li:not(:last-child) span:first-child {
    color: var(--light-text-color);
}

/* Product list price layout */
.summary-order .price {
    display: flex;
    flex-direction: column;
    color: var(--light-text-color);
    font-size: 0.85em;
    margin-top: 0.5em;
}

/* Thumbnail and Item layout consistency */
.summary-order .products .item {
    display: flex;
    gap: 1em;
    margin-bottom: 2em;
}

.summary-order .thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.summary-order .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ```````PAGE 
  *PAGE MODAL STYLES 
  *------------*/

/* Create a backdrop when the modal is active */
.site.showmodal::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dimmed effect */
    z-index: 999; /* Just below modal */
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 600px;
    width: 90%;
    height: max-content;
    padding: 2em;
    margin: auto;
    text-align: center;
    background-color: var(--light-bg-color);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: transform .2s, visibility .2s, opacity .2s;
    border-radius: 10px; /* Added for smoother look */
    overflow: hidden;
}

.showmodal .modal {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: transform 1s, visibility 1s, opacity 1s;
}

.modal .image {
    position: relative;
    height: calc(154px + 10vw);
    overflow: hidden;
    max-height: 400px;
    margin: -2em -2em 0 -2em; /* Offsets padding of parent */
}

.modal h2 {
    font-size: 1.75em;
    text-transform: uppercase;
    max-width: 300px;
    margin: 0.5em auto;
    line-height: 1;
}

.modal p {
    margin-bottom: 1em;
    color: var(--light-text-color);
}

.modal .t-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: var(--white-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}


.backtotop a{
    position: fixed;
    bottom: 6em;
    right: 2em;
    text-align: center;
    gap: 0;
    font-size: var(--font-small);
    padding: 0.5em 1em;
    border-radius: 3px;
    z-index: 999;
    background-color: var(--light-bg-color);
    transition: var(--trans-background);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Class toggled by JavaScript to show the button */
.backtotop.show {
    opacity: 1;
    visibility: visible;
}

.backtotop a:hover{
    background-color: var(--dark-color);
    color: var(--white-color);
}


/* ```````
  *MIXED STYLES
  *------------*/
 
    /* Container Layout
.wrapper.flexi.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
} */

 /* Stack vertically on mobile */
.wrapper.flexi.product-details {
    display: flex;
    flex-direction: column;
    gap: 0px; 
} 

.main-image img {
    width: 43%; 
    height: auto; 
    object-fit: contain; 
    display: block;
}

/* Column Widths */
.column.left {
    flex: 1 1 400px;
    margin-left: 0;
}

.column.right {
    flex: 1.5 1 300px; /* Info area - slightly wider */
    margin-left: 0;
}


/* ==========================================================================
   STUDENTS DASHBOARD STYLES
   ========================================================================== */

    .student-progress-section {
        max-width: 100%;
        margin: 15px auto;
        padding: 10px;
        font-family: sans-serif;
    }

    .dashboard-tabs-container {
        margin-bottom: 20px;
        border-bottom: 2px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }

    .dashboard-tab-btn {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 14px 15px;
        font-size: 1rem;
        font-weight: bold;
        text-align: left;
        cursor: pointer;
        width: 100%;
        transition: all 0.2s;
        display: flex;
        align-items: center;
    }

    .dashboard-tab-btn.active-tab {
        color: #1a1a2e;
       /* background: #1a1a2e;*/
        border-color: #1a1a2e;
    }

    .dashboard-tab-btn.template-inactive-tab {
        color: #64748b;
    }

    .tab-icon {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    .panel-academy-view {
        display: block;
    }

    .panel-heading {
        color: #1a1a2e;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    .courses-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .progress-card {
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 15px;
        align-items: stretch;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    }

    .course-thumbnail {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
    }

    .course-info-block {
        width: 100%;
    }

    .category-badge {
        font-size: 0.7rem;
        background: #eff6ff;
        color: #007bff;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: bold;
        text-transform: uppercase;
        display: inline-block;
    }

    .course-title-text {
        color: #1a1a2e;
        margin: 8px 0 10px 0;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .meter-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .meter-rail {
        flex: 1;
        height: 8px;
        background: #e2e8f0;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }

    .meter-fill {
        height: 100%;
        background: linear-gradient(90deg, #007bff, #00d2ff);
        border-radius: 20px;
    }

    .percentage-label {
        font-size: 0.8rem;
        font-weight: bold;
        color: #334155;
        min-width: 35px;
        text-align: right;
    }

    .checkpoint-subtext {
        font-size: 0.75rem;
        color: #64748b;
        margin-top: 8px;
        margin-bottom: 0;
    }

    .action-btn-wrapper {
        padding-left: 0;
        width: 100%;
    }

    .btn-action {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 12px 15px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-certificate {
        background: #16a34a;
    }

    .btn-continue {
        background: #1a1a2e;
    }

    .action-icon-right {
        font-size: 0.8rem;
        margin-left: 4px;
    }

    .empty-enrollment-state {
        text-align: center;
        padding: 30px 20px;
        border: 2px dashed #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
    }

    .empty-state-icon {
        font-size: 2.2rem;
        color: #94a3b8;
        margin-bottom: 8px;
    }

    .empty-state-text {
        color: #64748b;
        margin: 0;
        font-size: 0.9rem;
    }

    .empty-state-link {
        color: #007bff;
        font-weight: bold;
        text-decoration: none;
        display: inline-block;
        margin-top: 8px;
        font-size: 0.9rem;
    }

    .panel-orders-view {
        display: none; /* Controlled dynamically via JS tab-switching script */
    }

    .orders-heading {
        color: #1a1a2e;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    .orders-grid-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .invoice-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    }

    .checkout-status-badge {
        font-size: 0.7rem;
        background: #fff7ed;
        color: #ea580c;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: bold;
        text-transform: uppercase;
        display: inline-block;
    }

    /* Transform traditional table structure to responsive data blocks */
    .invoice-table, 
    .invoice-table thead, 
    .invoice-table tbody, 
    .invoice-table th, 
    .invoice-table td, 
    .invoice-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .table-header-row {
        display: none; /* Hide headings on mobile layout */
    }

    .table-item-row {
        border-bottom: 1px dashed #e2e8f0;
        padding: 12px 0;
        position: relative;
    }

    .cell-desc {
        font-weight: 600;
        font-size: 0.95rem;
        padding-bottom: 6px !important;
    }

    .item-size-label {
        display: block;
        color: #94a3b8;
        font-size: 0.8rem;
        margin-top: 2px;
    }

    .cell-qty {
        text-align: left;
        color: #64748b;
        font-size: 0.85rem;
        padding: 2px 0 !important;
    }

    .cell-qty::before {
        content: "Quantity: ";
        font-weight: 500;
        color: #94a3b8;
    }

    .cell-price {
        text-align: left;
        font-weight: bold;
        color: #1e293b;
        font-size: 0.95rem;
        padding: 4px 0 !important;
    }

    .cell-price::before {
        content: "Subtotal: ";
        font-weight: 500;
        color: #94a3b8;
    }

    .table-total-row {
        padding: 15px 0 5px 0;
        border-top: 2px solid #e2e8f0;
        margin-top: 10px;
    }

    .total-label-cell {
        font-size: 1rem;
        color: #1a1a2e;
        font-weight: bold;
        padding: 0 !important;
    }

    .total-value-cell {
        text-align: left;
        font-size: 1.25rem;
        color: #16a34a;
        font-weight: 800;
        padding: 6px 0 0 0 !important;
    }

    .checkout-action-wrapper {
        margin-top: 20px;
        text-align: stretch;
    }

    .btn-checkout {
        display: block;
        background: #007bff;
        color: #fff;
        text-decoration: none;
        padding: 14px 15px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.95rem;
        text-align: center;
       /* width: 100%; */
    }

    .checkout-btn-icon {
        margin-left: 6px;
    }

    .empty-cart-state {
        text-align: center;
        padding: 30px 20px;
        border: 2px dashed #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
    }

    .empty-invoice-icon {
        font-size: 2.2rem;
        color: #94a3b8;
        margin-bottom: 8px;
    }

    .empty-cart-text {
        color: #64748b;
        margin: 0;
        font-size: 0.9rem;
    }

    .empty-cart-link {
        color: #007bff;
        font-weight: bold;
        text-decoration: none;
        display: inline-block;
        margin-top: 8px;
        font-size: 0.9rem;
    }

    .panel-career-view {
        display: none; /* Controlled dynamically via your tab switching script */
        font-family: system-ui, -apple-system, sans-serif;
    }

    .career-header-block {
        margin-bottom: 20px;
    }

    .guide-badge {
        font-size: 0.7rem;
        background: #fef3c7;
        color: #d97706;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: bold;
        text-transform: uppercase;
        display: inline-block;
    }

    .career-main-heading {
        color: #1a1a2e;
        margin: 8px 0 5px 0;
        font-size: 1.2rem;
    }

    .career-subheading {
        margin: 0;
        color: #64748b;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .career-grid-container, .course-grid.main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .career-track-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .career-icon-box {
        background: #f0fdf4;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #16a34a;
        font-size: 1.1rem;
    }

    .salary-badge {
        font-size: 0.75rem;
        font-weight: bold;
        color: #475569;
        background: #f1f5f9;
        padding: 4px 8px;
        border-radius: 6px;
    }

    .career-card-title {
        margin: 0 0 4px 0;
        color: #1e293b;
        font-size: 1rem;
        font-weight: 700;
    }

    .industry-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        color: #94a3b8;
        font-weight: bold;
        display: block;
        margin-bottom: 8px;
    }

    .career-card-desc {
        margin: 0 0 15px 0;
        font-size: 0.8rem;
        color: #64748b;
        line-height: 1.4;
        height: auto;
        overflow: visible;
        display: block;
    }

    .card-progress-footer {
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }

    .readiness-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        font-weight: 600;
        margin-bottom: 6px;
        color: #334155;
    }

    .readiness-bar-rail {
        height: 6px;
        background: #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .readiness-bar-fill {
        height: 100%;
        border-radius: 10px;
    }

    .complete-gradient {
        background: #16a34a;
    }

    .progress-gradient {
        background: linear-gradient(90deg, #2563eb, #3b82f6);
    }

    .card-action-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .modules-count-subtext {
        color: #94a3b8;
        font-weight: 500;
        font-size: 0.75rem;
        text-align: center;
    }

    .btn-view-track {
        text-decoration: none;
        color: #fff;
        background: #2563eb;
        font-size: 0.85rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        border-radius: 6px;
        text-align: center;
    }

    .view-track-icon {
        font-size: 0.75rem;
    }

    .empty-career-state {
        text-align: center;
        padding: 30px 20px;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        background: #f8fafc;
        color: #64748b;
        width: 100%;
        box-sizing: border-box;
    }

    .empty-career-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
        color: #94a3b8;
    }

    .empty-career-text {
        margin: 0;
        font-size: 0.9rem;
    }

    .products.main  {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .resumes {
        max-width: 800px;
        margin: 20px auto;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }
    .resumes-card  {
        background: #065c18;
        color: #fff;
        padding: 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .ads-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: center;
    }



/* ```````
  *RESPONSIVE STYLES
  *------------*/

@media screen and (min-width: 401px) {
    .products.main .item{
        flex: 0 0 50%;
    }


    /*page single*/
    .products.one .big-image{
        margin-bottom: 2em;
    }

    .products.one .image-show{
        height: 600px;
    }

    .products.one .thumbnail-show {
        height: 160px;
    }



}




@media screen and (max-width: 639px) {
    #cart-table thead {
        display: none;
    }

    #cart-table tbody tr{
        display: flex;
        flex-wrap: wrap;
        position: relative;
        align-items: center;
    }
   #cart-table tbody tr td:first-child{
    width: var(--percent100);
    min-width: var(--percent100);
    position: relative;
   } 
   #cart-table tbody tr td:not(:first-child) {
    flex-basis: 0;
    flex-grow: 1;
    max-width: var(--percent100);
   }
   #cart-table tbody tr td:last-child {
    position: absolute;
    top: 0;
    right: 0;
   }


   /* Outer container grid */
    .flexwrap {
        display: flex;
        flex-wrap: wrap; /* Stacks on desktop */
        gap: 10px;
        width: 100%;
    }



}



    
@media screen and (min-width: 768px) {

h1 {
    font-size: var(--font-small);
    font-weight: var(--fw7);
}

h2 {
    font-size: var(--font-smaller);
}

h3 {
    font-size: var(--font-smaller);
    font-weight: var(--fw5);
}

h4 {
    font-size: var(--font-smaller);
    font-weight: var(--fw3);
}

/* Define widths to place items horizontally */
 .flexwrap {
    flex-wrap: nowrap; /* Forces Big and the Wrapper to share the row */
    align-items: flex-start;
}


/* Big product takes up about 35% of the total row width */
.row.products.big {
    flex: 0 0 33%;
    max-width: 35%;
}
.products.main .item {
    flex: 0 0 28%;
}



.product-grid{
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}
.products-grid{
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    width: 100%;
}


/* Forces the 2 top Banners to sit side-by-side */
.banner.flexwrap .row {
    flex: 1; /* Automatically splits the row into 50/50 exactly */
}

/* Forces the 3 Product Categories to sit side-by-side */
.product-categories.flexwrap .row {
    flex: 1; /* Automatically splits the row into 33/33/33 exactly */
}

/* 2. Override the 100% width and set it to roughly 1/3 */
.products.main .item {
    /* 33.33% means exactly 3 items will fit perfectly in a 100% wide row */
    flex: 0 0 33.33%; 
    max-width: 33.33%;
}
/* Wrapper fills up the remaining 65% of the space */
.mini-products-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row; /* Places Mini Column 1 and 2 in a row */
    gap: 20px;
}
.mini-products-wrapper {
    flex: 0 0 100%; /* Takes full width of the screen */
    display: flex;
    flex-direction: row; /* CHANGED: Forces the 2 mini columns to sit side-by-side */
    gap: 15px; 
    width: auto;
}

/* Each mini column takes up half of the wrapper's space */

.row.products.mini {
    /* calc(50% - 7.5px) makes them exactly half width while accounting for the 15px gap */
    flex: 0 0 calc(50% - 7.5px); 
    display: flex;
    flex-direction: column; /* Keeps items inside stacking vertically */
    gap: 15px; 
}
 /* 1. Ensure the parent container lines items up horizontally */
.products.main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allows wrapping if you have more than 3 items */
    gap: 15px;       /* Adds clean spacing between your columns */
    width: 110%;
}

/* 2. Adjust the items to take up 1/3 of the space */
.products.main .item {
    /* calc(33.33% - 14px) leaves perfect room for the 20px gaps */
    flex: 0 0 calc(33.33% - 14px); 
    max-width: calc(33.33% - 14px);
    display: flex;
    flex-direction: column; /* Keeps content inside the item stacking vertically */
}

.product-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}


 /* Stack horizontally on desktop */
.wrapper.flexi.product-details {
    display: flex;
    flex-direction: row;
    gap: 20px;
} 

.column.left {
    flex: 1; 
    margin: 20px;
}
.column.right{
    flex: 1.2; 
    min-width: 300px; 
}

/* Remove the margin-bottom so items space out cleanly via flex gap */
.products.mini .item {
    margin-bottom: 0;
    padding: 0.5em; 
}

.products .price .current {
    font-size: 1.25em;
}
.product.mini,
.banner .row, 
.widget .row {
    flex: 0 0 50%;
}
.products.main .item {
    flex: 0 0 28%;
}

/*LOGIN*/
.container { min-height: auto; }
.overlay-cover { display: none; }
.auth-box { 
    position: relative; 
    width: 100%; 
    padding: 30px; 
    display: none; 
}
.auth-box.login-box { display: flex; }
.form-row { flex-direction: column; }
.mobile-prompt { display: block; }

.container.active .login-box { display: none; }
.container.active .signup-box { 
    display: flex; 
    transform: none; 
    opacity: 1; 
}

/* Aligns newsletter side-by-side on desktop */
.newsletter .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter p {
    margin: 0.5em 0 0; /* Clears bottom margin on desktop */
}
.newsletter .box{
    display: flex;
    align-items: center;
}

/* Forces the 4 widget columns to sit side-by-side */
.widgets .row,
.checkout .item {
    flex: 1; /* Splits the 100% width equally by 4 */
}

/* Aligns logo, socials, and copyright in a clean layout */
.footer-info .wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-info .wrapper .flexcol {
    flex-direction: row;
    gap: 30px;
}


/**Page Single**/
#page:not(.page-home) .dpt-menu{
    display: none;
}
#page.showdpt .dpt-menu {
    display: block;
}
/**Page Single**/
.products.one .row {
    flex: 0 0 50%;
    width: 50%;
}

.products.one .is_sticky,
.is_sticky {
    position: sticky;
    top: 2em;
}

.checkout .item.right {
    padding: 5em 0 0 5em;
}

.button-group button.primary-button {
    width: 100% !important; /* Full width buttons on mobile */
}


.product-showcase {
    display: grid;
    /* Responsive columns: min 280px wide, fills space automatically */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
}

.student-progress-section {
        max-width: 900px;
        margin: 30px auto;
        padding: 20px;
        font-family: sans-serif;
    }

    .dashboard-tabs-container {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #e2e8f0;
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

    .dashboard-tab-btn {
        background: transparent;
        border: none;
        padding: 12px 25px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
    }

    .dashboard-tab-btn.active-tab {
        color: #1a1a2e;
        border-bottom: 3px solid #1a1a2e;
    }

    .dashboard-tab-btn.template-inactive-tab {
        color: #94a3b8;
        border-bottom: 3px solid transparent;
    }

    .tab-icon {
        margin-right: 6px;
    }

    .panel-academy-view {
        display: block;
    }

    .panel-heading {
        color: #1a1a2e;
        margin-bottom: 20px;
    }

    .courses-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .progress-card {
        display: flex;
        gap: 20px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 15px;
        align-items: center;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    }

    .course-thumbnail {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
    }

    .course-info-block {
        flex: 1;
    }

    .category-badge {
        font-size: 0.75rem;
        background: #eff6ff;
        color: #007bff;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .course-title-text {
        color: #1a1a2e;
        margin: 5px 0 12px 0;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .meter-row {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .meter-rail {
        flex: 1;
        height: 10px;
        background: #e2e8f0;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }

    .meter-fill {
        height: 100%;
        background: linear-gradient(90deg, #007bff, #00d2ff);
        border-radius: 20px;
        transition: width 0.5s ease;
    }

    .percentage-label {
        font-size: 0.85rem;
        font-weight: bold;
        color: #334155;
        min-width: 40px;
        text-align: right;
    }

    .checkpoint-subtext {
        font-size: 0.8rem;
        color: #64748b;
        margin-top: 5px;
        margin-bottom: 0;
    }

    .action-btn-wrapper {
        padding-left: 10px;
    }

    .btn-action {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 10px 18px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.85rem;
        text-align: center;
    }

    .btn-certificate {
        background: #16a34a;
    }

    .btn-continue {
        background: #1a1a2e;
    }

    .action-icon-right {
        font-size: 0.75rem;
        margin-left: 4px;
    }

    .empty-enrollment-state {
        text-align: center;
        padding: 40px;
        border: 2px dashed #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
    }

    .empty-state-icon {
        font-size: 2.5rem;
        color: #94a3b8;
        margin-bottom: 10px;
    }

    .empty-state-text {
        color: #64748b;
        margin: 0;
    }

    .empty-state-link {
        color: #007bff;
        font-weight: bold;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
    }

    .panel-orders-view {
        display: none;
    }

    .orders-heading {
        color: #1a1a2e;
        margin-bottom: 20px;
    }

    .orders-grid-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .invoice-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    }

    .checkout-status-badge {
        font-size: 0.75rem;
        background: #fff7ed;
        color: #ea580c;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .invoice-table {
        width: 100%;
        margin-top: 15px;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .table-header-row {
        border-bottom: 2px solid #f1f5f9;
        text-align: left;
        color: #64748b;
    }

    .table-header-row th {
        padding: 8px 0;
    }

    .col-qty {
        text-align: center;
    }

    .col-price {
        text-align: right;
    }

    .table-item-row {
        border-bottom: 1px solid #f1f5f9;
        color: #1e293b;
    }

    .table-item-row td {
        padding: 12px 0;
    }

    .cell-desc {
        font-weight: 500;
    }

    .item-size-label {
        display: block;
        color: #94a3b8;
    }

    .cell-qty {
        text-align: center;
        color: #64748b;
    }

    .cell-price {
        text-align: right;
        font-weight: bold;
    }

    .table-total-row {
        font-size: 1.1rem;
        font-weight: bold;
        color: #1a1a2e;
    }

    .total-label-cell {
        padding-top: 20px;
    }

    .total-value-cell {
        text-align: right;
        padding-top: 20px;
        color: #16a34a;
    }

    .checkout-action-wrapper {
        margin-top: 20px;
        text-align: right;
    }

    .btn-checkout {
        display: inline-block;
        background: #007bff;
        color: #fff;
        text-decoration: none;
        padding: 12px 25px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.9rem;
    }

    .checkout-btn-icon {
        margin-left: 5px;
    }

    .empty-cart-state {
        text-align: center;
        padding: 40px;
        border: 2px dashed #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
    }

    .empty-invoice-icon {
        font-size: 2.5rem;
        color: #94a3b8;
        margin-bottom: 10px;
    }

    .empty-cart-text {
        color: #64748b;
        margin: 0;
    }

    .empty-cart-link {
        color: #007bff;
        font-weight: bold;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
    }

    .panel-career-view {
        display: none;
        font-family: system-ui, -apple-system, sans-serif;
    }

    .career-header-block {
        margin-bottom: 25px;
    }

    .guide-badge {
        font-size: 0.75rem;
        background: #fef3c7;
        color: #d97706;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .career-main-heading {
        color: #1a1a2e;
        margin: 8px 0 5px 0;
    }

    .career-subheading {
        margin: 0;
        color: #64748b;
        font-size: 0.9rem;
    }

    .career-grid-container, .course-grid.main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .career-track-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.2s;
    }

    .career-track-card:hover {
        transform: translateY(-2px);
    }

    .card-top-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .career-icon-box {
        background: #f0fdf4;
        width: 45px;
        height: 45px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #16a34a;
        font-size: 1.25rem;
    }

    .salary-badge {
        font-size: 0.8rem;
        font-weight: bold;
        color: #475569;
        background: #f1f5f9;
        padding: 4px 8px;
        border-radius: 6px;
    }

    .career-card-title {
        margin: 0 0 6px 0;
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .industry-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #94a3b8;
        font-weight: bold;
        display: block;
        margin-bottom: 10px;
    }

    .career-card-desc {
        margin: 0 0 20px 0;
        font-size: 0.85rem;
        color: #64748b;
        line-height: 1.5;
        height: 45px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .card-progress-footer {
        border-top: 1px solid #f1f5f9;
        padding-top: 15px;
    }

    .readiness-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 6px;
        color: #334155;
    }

    .readiness-bar-rail {
        height: 8px;
        background: #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .readiness-bar-fill {
        height: 100%;
        border-radius: 10px;
        transition: width 0.4s ease;
    }

    .complete-gradient {
        background: #16a34a;
    }

    .progress-gradient {
        background: linear-gradient(90deg, #2563eb, #3b82f6);
    }

    .card-action-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modules-count-subtext {
        color: #94a3b8;
        font-weight: 500;
    }

    .btn-view-track {
        text-decoration: none;
        color: #f7f7f7;
        font-size: 0.85rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .view-track-icon {
        font-size: 0.75rem;
    }

    .empty-career-state {
        grid-column: 1/-1;
        text-align: center;
        padding: 40px;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        background: #f8fafc;
        color: #64748b;
    }

    .empty-career-icon {
        font-size: 2rem;
        margin-bottom: 10px;
        color: #94a3b8;
    }

    .empty-career-text {
        margin: 0;
    }

    .ads-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: center;
    }

    

}


@media screen and (min-width: 992px) {
    .container {
        padding: 0 2em;
    }

    .desktop-hide {
        display: none;
    }

    .mobile-hide {
        display: block;
    }

    .logo a {
        margin-right: 2em;
    }

    .header-nav {
        padding: 0;
        margin: 0;
        border-bottom: 0;
    }

    .header-nav .right li > a {
        margin-left: 1em;
    }


    /* --- NAVIGATION MEGA MENU CODES --- */
    nav .mega {
        position: absolute;
        height: auto;
        top: auto;
        left: 0;
        right: 0;
        padding: 2em;
        line-height: 2em;
        background-color: var(--light-bg-color);
        box-shadow: rgba(0, 0, 0, 20%) 0 30px 20px -20px;
        z-index: 100;
        display: none; /* Keeps navigation mega menus hidden initially */
    }

    nav li.has-child:hover .mega {
        display: block;
    }
        
    nav .wrapper {
        display: flex;
    }

    nav .mega h4 {
        font-size: 0.8em;
        text-transform: uppercase;
    }

    nav .mega ul {
        font-size: var(--font-small);
    }

    nav .mega .women-brands {
        display: flex;
        flex-wrap: wrap;
        max-width: 100px;
    }

    nav .mega .women-brands li {
        min-height: 50px;
    }

    nav .mega .view-all {
        margin-top: 1em;
    }

    nav .mega .products {
        flex: 2;
        padding: 0;
        align-items: center;
        position: relative;
    }

    nav .mega .products .row {
        width: 75%; /* Fixed: Changed from invalid variable var(--percent10) */
    }

    nav .mega .products .media {
        height: 400px;
    }

    nav .mega .products .text-content {
        line-height: initial;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
        position: absolute; /* Switched to absolute positioning for layered banners */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: var(--percent100);
    }

    nav .mega .products .text-content h4 {
        font-size: 2em;
        font-weight: var(--fw8);
        text-align: center;
        color: var(--secondary-dark-color);
    }

    .header-main .right {
        min-width: 600px;
        margin-left: 25px;
    }


    /* --- DEPARTMENTS MENU --- */
    .dpt-menu {
        position: absolute;
        top: var(--percent100);
        width: 300px;
        background-color: var(--white-color);
        border: 1px solid var(--border-color);
        border-top: 0;
        border-bottom: 0;
    }

    .dpt-menu > ul > li > a {
        font-weight: var(--fw5);
        padding: 0 1.5em;
        border-bottom: 1px solid var(--border-color);
    }

    .dpt-menu .has-child > ul, 
    .dpt-menu .mega {
        position: absolute;
        top: 0;
        left: var(--percent100);
        width: var(--percent100);
        height: auto;
        min-height: var(--percent100);
        padding: 1.5em;
        font-size: var(--font-small);
        line-height: 2.5em;
        border: 1px solid var(--border-color);
        border-top: 0;
        display: none; /* Fixed: Corrected so menus don't force-open by default */
        background-position: right;
        background-repeat: no-repeat;
        background-size: auto;
    }

    /* Fixed hover behavior specifically for department standard sub-menus */
    .dpt-menu .has-child:hover > ul {
        display: block;
    }

    /* Fixed hover behavior specifically for department mega menus */
    .dpt-menu .has-child:hover .mega {
        display: flex;
    }
    .dpt-menu .beauty ul {
        background-image: url(assets/menu/bt.jpg);
    }

    .dpt-menu .electric ul {
        background-image: url(assets/menu/elec.jpg);
    }

    .dpt-menu .fashion ul {
        background-image: url(assets/menu/fs.jpg);
    }

    .dpt-menu .homekit .mega {
        background-image: url(assets/menu/om.jpg);
    }

    .dpt-menu .has-child > :where(.mega)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1; /* Pushes color sheet behind links */
    }

    /* Applied directly to the actual dropdown containers */
    .dpt-menu .beauty ul,
    .dpt-menu .electric ul,
    .dpt-menu .fashion ul,
    .dpt-menu .homekit .mega {
        /* Use an RGBA color for the background with lower opacity instead of the opacity property */
        background-color: rgba(255, 255, 255, 0.8); 
        
        /* This creates the native frosted glass/blur effect behind the element */
        backdrop-filter: blur(30px); 
        -webkit-backdrop-filter: blur(50px); /* For Safari browser support */
        
        z-index: 10; /* Put above standard page content */
    }
    
    .dpt-menu .tuition ul,
    .dpt-menu .dynamic-learning ul,
    .dpt-menu .grading-summary .mega {
        background-color: rgba(255, 255, 255, 0.8);         
        backdrop-filter: blur(30px); 
        -webkit-backdrop-filter: blur(50px); /* For Safari browser support */
        z-index: 10; 
    }



    .dpt-menu .mega {
        width: auto;
        min-width: var(--percent100);
    }

    
    /*SLIDER*/
    .slider {
        display: flex;
        justify-content: flex-end; /* Pushes the child element to the right */
        width: auto;
        margin-left: 5%;
    } 

    .slider > div > .wrapper {
        width: calc(100% - (300px + 2em));
        margin-left: auto;
    }

    .slider .container.wrapper {
        width: calc(100% - (300px + 2em));
        margin-left: auto;
        margin-right: 0;
    }

    .slider .text-content{
        position: relative;
        height: var(--percent100);
        justify-content: flex-end;
        padding: 0 0 10% 10%;
        z-index: 1;
    }
    
    .slider .item {
        position: relative;
        height: 474px;

    }
    .slider h4{
        font-size: var(--font-small);
        font-weight: var(--fw7);
        width: fit-content;
        background-color: var(--dark-color);
        color: var(--white-color);
        border-radius: 4px;
    }
    .text-content :where(h2,h3) span:first-child {
        font-weight: var(--fw3);
        color: var(--light-text-color);

    }
    .text-content :where(h2,h3) span:last-child {
        color: var(--secondary-dark-color);
        text-transform: uppercase;
        letter-spacing: -1px;
    }

    /*Products*/
    .trending .products,
    .product-categories .row{
        flex: 0 0 25%;
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }
    .products.big .media{
        max-height: 473px;
    }

.products.main .item,
.widget .row {
    flex: 0 0 25%;
}



/*FOOTER**/
.newsletter .box{
    display: flex;
    gap: 1em;
    max-width: 500px;
    width: var(--percent100);
    justify-content: space-between;
    align-items: center;
}


/**Page Single**/
#page:not(.page-home) .dpt-menu{
    display: none;
}
#page.showdpt .dpt-menu {
    display: block;
}

.products.one .fllexwrap > .row:last-child > .item{
    padding-left: 2em;
}

/*Page Category*/
.single-category .holder{
    flex-direction: row;
}
.single-category .sidebar{
    flex: 1 0 25%;
}
.single-category .seection{
    flex: 1 0 75%;
}
.single-category .sidebar .filter{
    padding-right: 1.5em;
    position: sticky;
    top: 2em;
    box-shadow: none;
    width: 85%;
    z-index: initial;
    visibility: visible;
    opacity: 1;    
    margin-left: -10em;
}
.single-category .products.main .item {
    /*flex: 0 0 33.333%;*/
}

/*.PAGE CART*/
.products.cart .form-cart{
    width: fit-content;
    margin-left: -20px;
}
.products.cart .cart-summary {
    width: 50%;
    padding-left: 2em;
    margin-top: 0;
    margin-left: -20px;
}

/* Outer container grid for */
.products.one.cart .flexwrap {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    width: 100%;
}  




}
