@media(max-width:991px) {

    .nav-wrapper {

        position: fixed;

        top: 0;

        right: -100%;

        width: 300px;

        height: 100vh;

        background: #10141d;

        flex-direction: column;

        justify-content: flex-start;

        align-items: flex-start;

        padding: 90px 30px;

        gap: 30px;

        transition: .35s;

        margin-left: 0;

    }

    .nav-wrapper.active {

        right: 0;

    }

    .nav-menu {

        flex-direction: column;

        width: 100%;

        align-items: flex-start;

        gap: 20px;

    }

    .nav-actions {

        width: 100%;

        flex-wrap: wrap;

    }

    .search-box {

        width: 100%;

    }

    .mobile-toggle {

        display: block;

        background: none;

        color: white;

        font-size: 25px;

    }

    .mega-menu {

        position: static;

        width: 100%;

        display: none;

        opacity: 1;

        visibility: visible;

        transform: none;

        padding: 15px;

        margin-top: 15px;

    }

    .mega-parent:hover .mega-menu {

        display: flex;

    }

}

@media (max-width:767px) {}

@media (max-width:575px) {}


@media(max-width:991px) {

    .hero-slider img {

        height: 360px;

    }

    .hero-overlay {

        padding: 35px;

    }

    .hero-overlay h1 {

        font-size: 34px;

    }

    .side-banner {

        margin-bottom: 20px;

    }

}

@media(max-width:576px) {

    .hero-slider img {

        height: 250px;

    }

    .hero-overlay {

        padding: 20px;

    }

    .hero-overlay h1 {

        font-size: 24px;

    }

    .hero-overlay p {

        font-size: 14px;

    }

    .hero-btn {

        padding: 10px 18px;

    }

}


@media(max-width:768px) {

    .section-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

    .section-header h2 {

        font-size: 24px;

    }

    .category-card {

        padding: 25px 15px;

    }

    .category-icon {

        width: 58px;

        height: 58px;

        font-size: 24px;

    }

}

@media(max-width:1200px) {

    .products-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

@media(max-width:992px) {

    .products-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:576px) {

    .products-grid {

        grid-template-columns: 1fr;

    }

    .product-image {

        height: 150px;

    }

}

@media(max-width:768px) {

    .footer {

        text-align: center;

    }

    .footer-logo {

        justify-content: center;

    }

    .social-links {

        justify-content: center;

    }

    .newsletter-form {

        flex-direction: column;

    }

    .newsletter-form input {
        padding: 16px 16px;
        ;
    }

    .newsletter-form button {

        height: 48px;

    }

    .footer-bottom {

        flex-direction: column;

        gap: 12px;

    }

}

@media(max-width:991px) {

    .filter-sidebar {

        margin-bottom: 30px;

    }

    .products-toolbar {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }

    .toolbar-actions {

        width: 100%;

    }

    .toolbar-actions select {

        width: 100%;

    }

}

@media(max-width:576px) {

    .page-title h1 {

        font-size: 28px;

    }

}

@media(max-width:1200px) {

    .products-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

@media(max-width:576px) {

    .products-grid {

        grid-template-columns: 1fr;

    }

}

@media(max-width:576px) {

    .quick-filters {

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 8px;

        scrollbar-width: none;

    }

    .quick-filters::-webkit-scrollbar {

        display: none;

    }

    .filter-chip {

        white-space: nowrap;

        flex-shrink: 0;

    }

}

@media(max-width:991px) {

    .mobile-filter-btn {

        display: flex;

        align-items: center;

        gap: 10px;

        background: var(--primary);

        color: #fff;

        padding: 12px 18px;

        border-radius: 12px;

    }

}


@media(max-width:991px) {

    .product-info {

        margin-top: 20px;

    }

    .main-image img {

        height: 330px;

    }

}

@media(max-width:576px) {

    .product-info h1 {

        font-size: 26px;

    }

    .thumbnail-images {

        justify-content: center;

    }

    .thumbnail-images img {

        width: 70px;

        height: 70px;

    }

    .action-buttons {

        flex-direction: column;

    }

    .wishlist-outline {

        width: 100%;

        height: 50px;

    }

    .buy-btn {
        padding: 16px;
    }
}

@media(max-width:991px) {

    .product-info {

        margin-top: 20px;

    }

    .main-image img {

        height: 330px;

    }

}

@media(max-width:576px) {

    .product-info h1 {

        font-size: 26px;

    }

    .thumbnail-images {

        justify-content: center;

    }

    .thumbnail-images img {

        width: 70px;

        height: 70px;

    }

    .action-buttons {

        flex-direction: column;

    }

    .wishlist-outline {

        width: 100%;

        height: 50px;

    }

}


@media(max-width:768px) {

    .product-tab-nav {

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;

    }

    .product-tab-nav::-webkit-scrollbar {

        display: none;

    }

    .product-tab-nav .nav-link {

        white-space: nowrap;

    }

    .tab-card {

        padding: 22px;

    }

    .product-spec-table th {

        width: 120px;

    }

}


@media(max-width:768px) {

    .related-products h2 {

        font-size: 26px;

    }

}

@media(max-width:576px) {

    .auth-card {

        padding: 30px 22px;

    }

    .auth-card h1 {

        font-size: 28px;

    }

}

@media(max-width:576px) {

    .otp-input {

        width: 45px;

        height: 55px;

        font-size: 20px;

    }

}


@media(max-width:768px) {

    .order-top {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }

    .order-bottom {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }

    .primary-btn {

        width: 100%;

    }

}


@media(max-width:992px) {

    .cart-item {

        flex-wrap: wrap;

    }

    .cart-price {

        width: 100%;

        text-align: right;

    }

}

@media(max-width:576px) {

    .cart-item img {

        width: 90px;

        height: 90px;

    }

    .cart-info {

        width: 100%;

    }

}

@media(max-width:992px) {

    .cart-summary {

        position: static;

        margin-top: 20px;

    }

    .discount-input {

        flex-direction: column;

    }

    .discount-input button {

        width: 100%;

        height: 48px;

    }

}

@media(max-width:576px) {

    .error-code {

        font-size: 72px;

    }

    .error-icon {

        width: 90px;

        height: 90px;

    }

    .error-icon i {

        font-size: 36px;

    }

    .error-actions {

        flex-direction: column;

    }

    .error-actions a {

        width: 100%;

    }

}

@media(max-width:576px) {

    .profile-card {

        flex-direction: column;

        text-align: center;

    }

}


@media(max-width:992px) {

    .desktop-menu {

        display: none;

    }

    .search-box {

        display: none;

    }

    .mobile-toggle {

        display: flex;

    }

    .mobile-search {

        display: flex;

    }

    .logo span {

        font-size: 22px;

    }

    .nav-actions {

        gap: 10px;

    }

}

@media(max-width:768px) {

    .brand-card {

        height: 100px;

    }

    .brand-card img {

        max-width: 90px;

        max-height: 45px;

    }

}

@media(max-width:768px) {

    .about-card {

        padding: 28px;

    }

    .about-big-icon {

        font-size: 90px;

    }

    .about-cta {

        padding: 40px 20px;

    }

}

@media(max-width:768px) {

    .blog-grid {

        grid-template-columns: 1fr;

    }

    .blog-body {

        padding: 18px;

    }

    .blog-card img {

        height: 190px;

    }

}



@media(max-width:576px) {

    .shipping-method-content {

        padding: 14px;

        gap: 12px;

    }

    .shipping-method-icon {

        width: 42px;

        height: 42px;

        min-width: 42px;

        font-size: 17px;

    }

    .shipping-method-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

    }

    .shipping-price {

        font-size: 13px;

    }

}


@media(max-width:576px) {

    .payment-result-page {

        padding: 40px 15px;

    }

    .payment-result-card {

        padding: 40px 20px;

        border-radius: 20px;

    }

    .payment-result-icon {

        width: 75px;

        height: 75px;

        font-size: 30px;

    }

    .payment-result-card h1 {

        font-size: 22px;

    }

    .payment-info {

        grid-template-columns: 1fr;

        padding: 10px;

    }

    .payment-info-item {

        padding: 14px 10px;

        border-left: none !important;

        border-bottom: 1px solid rgba(255, 255, 255, .07);

    }

    .payment-info-item:last-child {

        border-bottom: none;

    }

    .payment-result-actions {

        flex-direction: column;

    }

    .payment-result-actions a {

        width: 100%;

    }

}


@media (max-width: 768px) {
    .related-products .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .swiper-nav-buttons {
        align-self: flex-start;
    }

    .relatedSwiper {
        padding: 10px 0 40px;
    }
}


@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-products .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all-link {
        align-self: flex-start;
    }
}


@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .empty-wishlist {
        padding: 50px 15px;
    }

    .empty-icon {
        width: 75px;
        height: 75px;
    }

    .empty-icon i {
        font-size: 32px;
    }
}

/* Mobile menu and homepage banner fixes */
.offcanvas-header {
    min-height: 72px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.offcanvas-header h5 {
    margin: 0;
    line-height: 1.4;
}

.offcanvas-header .btn-close {
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    padding: 8px;
    opacity: .9;
}

.offcanvas-body {
    padding: 20px 24px 28px;
}

.mobile-menu {
    width: 100%;
}

.mobile-menu li + li {
    margin-top: 4px;
}

.mobile-menu a {
    padding: 14px 4px;
    text-align: right;
}

.hero-overlay {
    align-items: flex-end;
    text-align: right;
    direction: rtl;
    background: linear-gradient(270deg,
            rgba(0, 0, 0, .82),
            rgba(0, 0, 0, .25));
}

.hero-overlay h1,
.hero-overlay p,
.hero-overlay .hero-tag,
.hero-overlay .hero-btn {
    text-align: right;
}

/* Keep every hero element on the same right edge. */
.hero-overlay {
    align-items: flex-start;
    background: transparent;
}

.hero-overlay .hero-tag,
.hero-overlay .hero-btn {
    align-self: flex-start;
    margin-right: 0;
    margin-left: auto;
}

.hero-overlay .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    justify-content: flex-end;
    direction: rtl;
    text-align: right;
    align-items: flex-end;
    background: transparent;
    padding-right: 30px;
    padding-left: 30px;
}

.side-banner .banner-content {
    justify-content: flex-start;
    align-items: flex-end;
    direction: rtl;
    text-align: right;
}

/* The filter column should grow with its contents instead of scrolling. */
.products-page .filter-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    scrollbar-width: none;
}

.products-page .filter-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 576px) {
    .offcanvas {
        width: min(320px, 86vw);
    }

    .offcanvas-header {
        padding: 18px 20px;
    }

    .offcanvas-body {
        padding: 16px 20px 24px;
    }

    .hero-overlay {
        padding: 20px 18px 28px;
        align-items: flex-end;
    }

    .hero-overlay h1 {
        max-width: 82%;
        margin-bottom: 8px;
        line-height: 1.45;
    }

    .hero-overlay p {
        max-width: 88%;
        margin-bottom: 16px;
        line-height: 1.8;
    }

    .hero-overlay .hero-tag,
    .hero-overlay .hero-btn {
        align-self: flex-start;
        margin-right: 0;
        margin-left: auto;
    }
}

/* Final product layout overrides */
.product-page,
.products-page {
    overflow: hidden;
}

.product-card {
    min-width: 0;
    height: 100%;
}

.product-card .product-image-wrapper,
.related-products-grid .product-card > a {
    display: block;
    position: relative;
    height: 220px;
    background: #0d1018;
    overflow: hidden;
}

.product-card .product-image-wrapper .product-image,
.related-products-grid .product-card > a .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    background: transparent;
}

.product-card .product-body {
    min-width: 0;
    padding: 16px;
}

.product-card h3,
.product-card h3 a {
    min-width: 0;
}

.product-card h3 a {
    display: -webkit-box;
    color: inherit;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-rating {
    min-height: 24px;
    margin-bottom: 14px;
}

.product-card .product-price {
    min-height: 58px;
    justify-content: flex-end;
}

.product-card .add-cart-btn {
    margin-top: 8px;
}

.product-info {
    min-width: 0;
}

.product-info h1 {
    overflow-wrap: anywhere;
}

.thumbnail-images {
    overflow-x: auto;
    padding: 2px 1px 5px;
    scrollbar-width: thin;
}

.thumbnail-images img {
    flex: 0 0 auto;
}

@media (hover: hover) and (min-width: 992px) {
    .product-card:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 991px) {
    .product-page {
        padding-top: 28px;
        padding-bottom: 50px;
    }

    .product-page > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-page .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }

    .product-page .col-lg-5,
    .product-page .col-lg-7 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .product-gallery {
        padding: 14px;
        border-radius: 16px;
    }

    .main-image {
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .main-image img {
        height: clamp(250px, 58vw, 360px);
    }

    .product-info {
        margin-top: 22px;
    }

    .product-tabs,
    .related-products {
        margin-top: 52px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        gap: 6px;
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .product-info h1 {
        margin: 10px 0 12px;
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.5;
    }

    .product-rating {
        flex-wrap: wrap;
    }

    .stock-status {
        margin: 14px 0;
        line-height: 1.9;
    }

    .price-box {
        margin: 22px 0;
    }

    .price-box strong {
        font-size: clamp(26px, 8vw, 34px);
    }

    .product-colors {
        margin: 22px 0;
    }

    .color-list {
        gap: 12px;
    }

    .color-circle {
        width: 42px;
        height: 42px;
    }

    .action-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 10px;
    }

    .buy-btn {
        min-width: 0;
        height: 52px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .wishlist-outline {
        width: 52px;
        height: 52px;
    }

    .product-tab-nav {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 3px;
    }

    .product-tab-nav .nav-link {
        padding: 11px 15px;
        font-size: 13px;
    }

    .tab-card {
        padding: 18px;
        border-radius: 16px;
    }

    .tab-card h3 {
        font-size: 22px;
    }

    .product-spec-table {
        min-width: 440px;
    }

    .tab-card:has(.product-spec-table) {
        overflow-x: auto;
    }

    .review-summary {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .review-box {
        padding: 16px;
    }

    .related-products .section-header h2 {
        font-size: 24px;
    }

    .related-products-grid {
        gap: 14px;
    }

    .product-card .product-body {
        padding: 14px;
    }

    .product-card .product-image-wrapper,
    .related-products-grid .product-card > a {
        height: 185px;
    }

    .product-card .product-image-wrapper .product-image,
    .related-products-grid .product-card > a .product-image {
        padding: 14px;
    }

    .product-card h3 {
        min-height: 48px;
        font-size: 14px;
    }

    .product-card .product-price strong {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .products-grid .product-card .product-image-wrapper {
        height: 205px;
    }
}


@media(max-width:576px){

    .contact-map{

        height:300px;

        border-radius:16px;

    }

    .contact-map-header h3{

        font-size:19px;

    }

    .contact-map-header p{

        font-size:13px;

    }

}
/* Compact product cards: avoid stretched rows and excessive vertical spacing. */
.products-grid,
.related-products-grid,
.wishlist-grid {
    align-items: start;
}

.product-card,
.related-products-grid .product-card,
.wishlist-card {
    height: auto;
    align-self: start;
}

.product-card .product-image,
.product-card .product-image-wrapper,
.related-products-grid .product-card > a,
.related-products-grid .product-card .product-image,
.wishlist-card .product-image {
    height: 150px;
}

.product-card .product-body,
.related-products-grid .product-card .product-body,
.wishlist-card .product-body {
    flex: initial;
    padding: 10px 12px;
}

.product-card h3,
.wishlist-card .product-body h3 {
    min-height: 40px;
    margin: 6px 0;
}

.product-card .product-rating {
    min-height: 20px;
    margin-bottom: 8px;
}

.product-card .product-price {
    min-height: 34px;
}

@media (max-width: 576px) {
    .product-card .product-image,
    .product-card .product-image-wrapper,
    .related-products-grid .product-card > a,
    .related-products-grid .product-card .product-image,
    .wishlist-card .product-image {
        height: 135px;
    }

    .product-card .product-body,
    .related-products-grid .product-card .product-body,
    .wishlist-card .product-body {
        padding: 10px 12px;
    }
}

/* Keep every card in the product listing the same height, regardless of
   title length or whether the product has a discount. */
.products-page .products-grid {
    align-items: stretch;
}

.products-page .products-grid .product-card {
    height: 100%;
    min-height: 0;
}

.products-page .products-grid .product-card .product-image-wrapper {
    height: 150px;
    flex: 0 0 150px;
}

.products-page .products-grid .product-card .product-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.products-page .products-grid .product-card h3 {
    height: 44px;
    min-height: 44px;
}

.products-page .products-grid .product-card .product-rating {
    height: 20px;
    min-height: 20px;
}

.products-page .products-grid .product-card .product-price {
    height: 42px;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-page .products-grid .product-card .add-cart-btn {
    margin-top: auto;
    flex: 0 0 44px;
}

@media (max-width: 576px) {
    .products-page .products-grid .product-card .product-image-wrapper {
        height: 135px;
        flex-basis: 135px;
    }
}

/* Keep related-product cards equal in height as well. */
.related-products-grid {
    align-items: stretch;
}

.related-products-grid .product-card {
    height: 100%;
    min-height: 0;
}

.related-products-grid .product-card > a {
    height: 150px;
    flex: 0 0 150px;
}

.related-products-grid .product-card .product-body {
    flex: 1 1 auto;
    min-height: 0;
}

.related-products-grid .product-card h3 {
    height: 44px;
    min-height: 44px;
    overflow: hidden;
}

.related-products-grid .product-card .product-rating {
    height: 20px;
    min-height: 20px;
    margin-bottom: 8px;
}

.related-products-grid .product-card .product-price {
    height: 42px;
    min-height: 42px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-products-grid .product-card .add-cart-btn {
    margin-top: auto;
    flex: 0 0 44px;
}

@media (max-width: 576px) {
    .related-products-grid .product-card > a {
        height: 135px;
        flex-basis: 135px;
    }
}

/* Mobile card sizing and wishlist alignment. */
@media (max-width: 576px) {
    .products-grid,
    .related-products-grid,
    .wishlist-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .products-grid .product-card,
    .related-products-grid .product-card,
    .wishlist-grid .wishlist-card {
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
        min-width: 0;
        padding: 9px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .product-card .add-cart-btn,
    .related-products-grid .product-card .add-cart-btn,
    .wishlist-card .add-cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        height: 40px;
        padding: 0 8px;
        text-align: center;
        line-height: 1.4;
    }
}

/* Wishlist cards use fixed content rows so discount text does not change
   the height of individual cards. */
.wishlist-grid {
    align-items: stretch;
}

.wishlist-grid .wishlist-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wishlist-grid .wishlist-card .product-image {
    height: 150px;
    flex: 0 0 150px;
}

.wishlist-grid .wishlist-card .product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.wishlist-grid .wishlist-card .product-body h3 {
    height: 44px;
    min-height: 44px;
    overflow: hidden;
}

.wishlist-grid .wishlist-card .product-rating {
    height: 20px;
    min-height: 20px;
    margin-bottom: 8px;
}

.wishlist-grid .wishlist-card .product-price {
    height: 42px;
    min-height: 42px;
    margin-top: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wishlist-grid .wishlist-card .add-cart-btn {
    margin-top: auto;
    flex: 0 0 42px;
}

@media (max-width: 576px) {
    .wishlist-grid .wishlist-card .product-image {
        height: 135px;
        flex-basis: 135px;
    }

    .wishlist-grid .wishlist-card .product-body {
        padding: 8px 2px 0;
    }
}
