.amra-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100vw;
    z-index: 1000;
}
.header-wrapper {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.desktop-header {
    display: grid;
    align-items: center;
    gap: 30px;
    width: 100%;
    grid-template-columns: 20fr 15fr 65fr;
    justify-content: space-between;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Mega Menu */
.mega-menu-wrapper {
  position: relative;
  display: inline-block;
  direction: rtl;
  font-family: sans-serif;
}

.menu-trigger {
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
    color: var(--secondary-color);
    border-radius: 6px;
    transition: background 0.3s ease;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #e9e9e9;
    padding: 1vh 2vw;
}

.menu-trigger:hover {
    background: #bdbdbd;
}

.mega-menu {
    position: absolute;
    right: 0;
    top: 60px;
    background: var(--quaternary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
    width: 70vw;
    border-radius: 8px;
    min-height: 400px;
    overflow-y: auto;
}

.category-list {
  background-color: var(--secondary-color);
  color: white;
  width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  padding: 12px 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.category-list li:hover {
  background-color: var(--primary-color);
}

.category-content {
  flex: 1;
  position: relative;
  background: white;
  padding: 3vh 5vw;
}

.category-content .content {
  display: none;
  inset: 0;
  height: 100%;
}

.category-content .content.active {
  display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.content-grid .image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.content-grid .links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-grid .links ul li {
  margin-bottom: 10px;
}

.content-grid .links ul li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.content-grid .links ul li a:hover {
  color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--black-color);
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.6s ease;
}

.account-link:hover, .account-link:active, .account-link:focus {
    background:var(--primary-color) ;
    color: #fff;
}

/* Mini Cart*/
.minicart-wrapper {
    position: relative;
}

.cart-contents {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    position: relative;
    font-size: 1.7rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff442f; /* Primary color: red */
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.minicart-content {
    position: absolute;
    left: 0;
    top: 50px;
    background: #fff;
    min-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 20px;
    max-height: 800px;
    overflow-y: auto;
    border-radius: 10px;
}

.minicart-content.active {
    display: block;
    color: var(--secondary-color);
}

.minicart-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.minicart-content li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.mini-cart-item {
	margin-top: 15px;
	display: flex;
    flex-direction: column;
    gap: 15px;
}

.minicart-content li:last-child {
    border-bottom: none;
}

.minicart-content li img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.minicart-content li .product-info {
    flex: 1;
    margin-left: 10px;
}

.minicart-content li .product-info h4 {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.minicart-content li .product-info span {
    font-size: 0.8rem;
    color: #666;
}

.minicart-content li .product-price {
    font-size: 0.9rem;
    color: var(--primary-color); /* Primary color: red */
    font-weight: bold;
}

p.woocommerce-mini-cart__total.total {
    margin: 20px auto;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 13px 0;
}

.minicart-content .woocommerce-mini-cart__buttons {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.minicart-content .woocommerce-mini-cart__buttons a {
    display: inline-block;
    background: var(--primary-color); /* Primary color: red */
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 5px;
    transition: background 0.3s ease;
    width: 100%;
}

.minicart-content .woocommerce-mini-cart__buttons a:hover {
    background: #cc3726; /* Slightly darker red for hover effect */
}

.minicart-content .woocommerce-mini-cart__buttons .checkout-button {
    background: #00274d; /* Secondary color: dark blue */
    color: #fff;
}

.minicart-content .woocommerce-mini-cart__buttons .checkout-button:hover {
    background: #001f3a; /* Slightly darker blue for hover effect */
}

li.woocommerce-mini-cart-item.mini_cart_item a {
    font-weight: 800;
    color: #000;
}

li.woocommerce-mini-cart-item.mini_cart_item a.remove.remove_from_cart_button {
    background: var(--secondary-color);
    width: 10%;
    border-radius: 10000px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.6s ease;
}

li.woocommerce-mini-cart-item.mini_cart_item a.remove.remove_from_cart_button:hover, li.woocommerce-mini-cart-item.mini_cart_item a.remove.remove_from_cart_button:active, li.woocommerce-mini-cart-item.mini_cart_item a.remove.remove_from_cart_button:focus {
    background: var(--primary-color);
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    position: fixed;
    justify-content: space-between;
    padding: 10px 0;
    top: 0px;
    background: #fff;
    z-index: 10000;
    right: 0;
    left: 0;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-cart .cart-contents {
    text-decoration: none;
    position: relative;
}

.mobile-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

h1.entry-title {
    font-weight: 800;
}

@media (max-width: 991px) {
    .header-wrapper {
        padding: 0;
    }
    .mobile-header {
        display: flex;
        width: 100%;
    }

    .desktop-header {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        padding: 20px;
        transition: right 0.3s ease;
        z-index: 10002;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-menu {
        flex-direction: column;
        margin-top: 40px;
    }

    .main-menu > li {
        margin: 10px 0;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        padding-right: 20px;
        display: none;
    }

    .menu-item-has-children.active .sub-menu {
        display: block;
    }

    /* Mobile Mini Cart Styles */
    .minicart-content {
        position: fixed;
        top: 60px;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
        padding: 20px;
        z-index: 10001;
    }

    .minicart-content.active {
        display: block;
    }
}