body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* TOP STRIP */
.top-strip {
    background: #f2f2f2;
    font-size: 13px;
    padding: 6px 0;
}

/* HEADER */
.main-header {
    padding: 15px 0;
    background: #fff;
    margin-bottom: 10px;
}

/* LOGO FLIP */
.logo-flip {
    perspective: 1000px;
    display: inline-block;
}

.logo-inner {
    position: relative;
    width: 140px;
    height: 60px;
    transform-style: preserve-3d;
    transition: 0.6s;
}

.logo-flip:hover .logo-inner {
    transform: rotateY(180deg);
}

.logo-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
}

.logo-img.back {
    transform: rotateY(180deg);
}

/* SEARCH */
.search-box {
    display: flex;
    width: 50%;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}

.search-box button {
    background: #b22222;
    color: #fff;
    border: none;
    padding: 0 20px;
}

/* ICONS */
.header-icons i {
    font-size: 20px;
}


/* PRODUCTS */
.product-card {
    border: 1px solid #eee;
    padding: 10px;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* MOBILE */
@media(max-width:768px){

.search-box {
    width: 100%;
    margin-top: 10px;
}

.main-header .container {
    flex-direction: column;
    gap: 10px;
}

.menu-scroll {
    justify-content: flex-start;
    padding-left: 10px;
}

}


.hero-banner {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

@media(max-width:768px){
.hero-banner {
    max-height: 220px;
}
}



/* GREEN BAR */
.green-bar {
    background: linear-gradient(90deg, #b22222, #f97316);
}

.main-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* FLASH SALE */
.flash a {
    color: yellow;
}

/* ================= DROPDOWN ================= */

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    min-width: 220px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dropdown a {
    color: #333;
    padding: 8px;
}

/* NESTED */
.nested {
    position: relative;
}

.sub-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    display: none;
    min-width: 200px;
    padding: 10px;
}

.nested:hover .sub-dropdown {
    display: block;
}

/* ================= MEGA MENU ================= */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 1000px;
    background: #fff;
    display: none;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 30px;
}

.mega-col {
    flex: 1;
}

.mega-col h6 {
    font-weight: bold;
    margin-bottom: 10px;
}

/* ================= HOVER ================= */

.menu-item:hover .dropdown {
    display: flex;
}

.has-mega:hover .mega-menu {
    display: flex;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

.main-menu {
    flex-direction: column;
    display: none;
}

.main-menu.active {
    display: flex;
}

.dropdown,
.mega-menu,
.sub-dropdown {
    position: static;
    box-shadow: none;
}

.menu-item:hover .dropdown,
.has-mega:hover .mega-menu {
    display: none;
}

.menu-item.active .dropdown,
.menu-item.active .mega-menu {
    display: flex;
    flex-direction: column;
}

}


