html, body {   max-width: 100vw;   overflow-x: hidden;}
.header {
    background: #fff;
    border: 3px solid orange;
    padding: 10px;
    text-align: center;
}
.header h1 {
    color: red;
    margin: 5px 0;
}
.header p {
    font-weight: bold;
}
/* LAYOUT */
.mega-container {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 5px;
    padding: 10px;
    max-width: 1440px;
    margin: 10px auto;
    background: #fff;
}
/* SIDEBAR */
.sidebar {
    background: #e5e5e5;
    padding: 10px;
}
.sidebar h3 {
    background: #444;
    color: #fff;
    padding: 8px;
    margin: 10px 0 5px;
    font-size: 14px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar li {
    background: #fff;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}
/* MAIN CONTENT */
.main {
    background: #fff;
    padding: 10px;
}
.notice {
    background: #7b2d2d;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
}
.shipping {
    text-align: center;
    color: red;
    margin: 10px 0;
}
.title {
    text-align: center;
    font-size: 20px;
    color: #b00000;
    margin-bottom: 10px;
}
/* CATEGORY ICONS */
.categories {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}
.cat-box {
    padding: 10px;
    text-align: center;
    width: 14%;
    font-size: 12px;
}
/* IMAGE BANNER */
.store-img {
    width: 100%;
    background: #ccc;
    margin: 10px 0;
}
/* NEW ARRIVALS */
.new-arrivals {
    background: #444;
    color: #fff;
    padding: 8px;
    text-align: center;
    margin-bottom: 10px;
}
.products {
    display: flex;
    justify-content: space-between;
}
.product {
    width: 18%;
    text-align: center;
    padding: 0 1px;
}

.product img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    background: #fff;
}
/* RIGHT PANEL */
.rightbar {
    background: #e5e5e5;
    padding: 10px;
}
.brand {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    border: 1px solid #ccc;
}
/* BUTTON */
.direction-btn {
    margin-top: 20px;
    background: #fff;
    border: 2px solid red;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}
.banner-container {
    max-width: 1440px;
    overflow: hidden;
    position: relative;
    background: #fff;
    margin: 10px auto;
}
.carousel {
    display: flex;
    transition: transform 0.7s ease-in-out;
}
.carousel img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
/* Navigation Buttons */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}
.nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.genres-item {
    position: relative;
}

.genres-dropdown {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    min-width: 180px;
    z-index: 999;
}

.genres-dropdown li {
    background: #fff;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.genres-dropdown li a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.genres-item:hover .genres-dropdown {
    display: block;
}
.genres-item > a {
    position: relative;
    padding-right: 30px;
}

.genres-item > a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #3f4b5a;
    border-right: 2px solid #3f4b5a;
    transform: translateY(-50%) rotate(45deg);
}


.mobile-toggle {
    display: none;
}

.mobile-section > summary,
.mobile-child > summary{
    list-style:none;
    cursor:pointer;
}

.mobile-section > summary::-webkit-details-marker,
.mobile-child > summary::-webkit-details-marker{
    display:none;
}

/*@media (min-width:769px){

    .mobile-section{
        display:block;
    }

    .mobile-section > summary{
        display:block;
        list-style:none;
        cursor:default;
        background:#444;
        color:#fff;
        padding:8px;
        margin:10px 0 5px;
        font-size:14px;
        font-weight:bold;
    }

    .mobile-section > summary::after{
        display:none;
    }

    .mobile-child > summary{
        display:none;
    }

    .mobile-child > ul{
        display:block !important;
    }

    .mobile-section > ul{
        display:block !important;
    }
}*/
@media (min-width:769px){

    .mobile-section{
        display:block;
    }

    /* Prevent toggle on desktop */
    .mobile-section > summary{
        pointer-events: none;
        cursor: default;
        list-style: none;
        background:#444;
        color:#fff;
        padding:8px;
        margin:10px 0 5px;
        font-size:14px;
        font-weight:bold;
    }

    .mobile-section > summary::after{
        display:none;
    }

    .mobile-section[open] > ul,
    .mobile-section > ul{
        display:block !important;
    }
}
@media (max-width: 768px) {
    .genres-item{
        position:relative;
    }

    .mobile-toggle{

        position:absolute;
        top:0;
        right:0;

        width:45px;
        height:100%;

        z-index:1000;

        cursor:pointer;
    }



	.mega-container {
		display: block !important;
	}
	.direction-btn {
		display: inline-block;
		width: calc(50% - 5px);
		box-sizing: border-box;
		vertical-align: top;
		margin: 2px;
	}

	.product {
		width: unset;
		text-align: initial;
		padding: 4px 30px;
	}

	.brand {
		display: inline-block;
		width: calc(50% - 5px);
		box-sizing: border-box;
		vertical-align: top;
		margin: 2px;
	}

	.mega-main-header {
		padding: 3px 50px !important;
	}
  	.prev {
        display: none !important;
    }
    .next {
        display: none !important;
    }
  	.shipping,
    .title {
        display: block !important;
        visibility: visible !important;
    }

    .sidebar{
        background:#e5e5e5;
    }

    .sidebar h3{
        display:none;
    }

    .mobile-section{
        margin-bottom:8px;
        background:#e5e5e5;
    }

    .mobile-section>summary{

        background:#444;
        color:#fff;
        padding:10px;
        font-size:14px;
        font-weight:bold;
        position:relative;
    }

    .mobile-section>summary::after{

        content:"+";
        position:absolute;
        right:15px;
        top:50%;
        transform:translateY(-50%);
        font-size:22px;
        font-weight:bold;

    }

    .mobile-section[open]>summary::after{
        content:"−";
    }

    .mobile-section>ul{

        display:block;
        margin:0;
        padding:0;

    }

    .mobile-child{

        display:block;
        border-bottom:1px solid #ccc;

    }

    .mobile-child>summary{

        position:relative;
        padding:8px;
        background:#fff;
        list-style:none;

    }

    .mobile-child>summary::after{

        content:"+";
        position:absolute;
        right:12px;
        top:50%;
        transform:translateY(-50%);
        font-size:18px;
        font-weight:bold;

    }

    .mobile-child[open]>summary::after{

        content:"−";

    }

    .mobile-child>summary a{

        display:block;
        color:#000;
        text-decoration:none;
        padding-right:25px;

    }

    .mobile-child ul{

        padding-left:15px;
        margin:0;

    }

    .mobile-child ul li{

        background:#fff;

    }

    /* Desktop hover dropdown hide */

    /*.genres-dropdown{

        position:static !important;
        display:block !important;
        border:none;
        min-width:100%;

    }*/

    .genres-item>a::after{
        display:none;
    }
    .genres-item.has-children > a::after{
        content:"+";
        position:absolute;
        right:15px;
    }
    .genres-item{
        position:relative;
    }

    .genres-item > a{
        display:block;
        padding:10px 45px 10px 10px;
    }

    .mobile-toggle{
        display: block;
        position:absolute;
        right:15px;
        top:18px;
        width:18px;
        height:18px;
        cursor:pointer;
    }

    .mobile-toggle::before{
        content:"+";
        font-size:22px;
        font-weight:bold;
        line-height:18px;
    }

    .genres-item.open .mobile-toggle::before{
        content:"−";
    }

    .genres-dropdown{
        display:none !important;
        position:static;
        border:none;
        min-width:100%;
        padding:0;
    }

    .genres-item.open > .genres-dropdown{
        display:block !important;
    }

    .genres-dropdown li{
        padding-left:25px;
    }
}
