/* Modern Color Scheme */
:root {
    --primary: #2d3250;
    /* Deep Navy Blue */
    --secondary: #424769;
    /* Slate Blue */
    --accent: #f6b17a;
    /* Warm Orange */
    --text: #2d3250;
    /* Dark Blue Text */
    --text-light: #7077a1;
    /* Light Blue Text */
    --background: #f7f7f9;
    /* Light Gray Background */
    --white: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(45, 50, 80, 0.1);
    --hover-shadow: 0 8px 15px rgba(45, 50, 80, 0.15);
    --radius: 12px;
    --gold: #c6a87d;
    --cream: #f8f5f0;
    --dark: #1a1a1a;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    /* font-family: "Poppins", sans-serif; */
    color: var(--text);
    line-height: 1.6;
    background-color: var(--background);
    font-family: "Inter", -apple-system, sans-serif;
}

a {
    color: #2d3250;
}

.d-none {
    display: none !important;
}

.error {
    color: red;
}

.wrap-container {
    padding: 10px 1.5rem;
}

.category-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-top: 10px;
}

.wrap-order-container {
    max-width: 1600px;
    margin: auto;
}

/* Header Styles */
.header-top {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
}

#cart {
    height: 50px;
    color: white;
    font-size: 25px;
    margin: 20px 60px 0px 10px;
    float: right;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 5px;
    display: flex;
    align-items: center;
}

#cart .user-login {
    margin-right: 10px;
    padding-left: 6px;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #2d3250;
}

#cart .user-login .user-text {
    font-size: 9px;
    display: block;
}

#cart .user-login:hover {
    background: #f00;
}

#cart .wrap-user-login {
    position: relative;
}

#cart .wrap-user-profile {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

#cart .wrap-user-login:hover .wrap-user-profile {
    display: block;
}

#cart .wrap-user-profile ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

#cart .wrap-user-profile ul li {
    padding: 10px 14px;
}

#cart .wrap-user-profile ul li:nth-last-child() {
    padding-bottom: 14px;
}

#cart .wrap-user-profile ul li:hover {
    background: #e5e5e5;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--white);
    padding: 4rem 10rem;
    height: 400px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn.primary {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.btn.secondary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Featured Products */
.featured {
    padding: 4rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;

    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.product-actions {
    position: absolute;
    bottom: 100px;
    left: 10px;
    display: flex;
    gap: 8px;
}

.product-actions button {
    background: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-actions button:hover {
    transform: scale(1.1);
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.rating {
    color: var(--gold);
}

/* Deals Section */
.deals {
    padding: 1.5rem;
    background: var(--light);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.deal-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
}

.newsletter-form button {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}

.footer-section h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}

.footer-about {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.newsletter-form {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: inherit;
    width: 100%;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.subscribe-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gold);
    border: none;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.subscribe-btn:hover {
    background: #b69468;
    transform: translateY(-2px);
}

.payment-methods {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 1.5rem;
}

.payment-methods i {
    transition: color 0.3s ease;
}

.payment-methods i:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    padding: 2rem;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
    z-index: 9999;
}

.close-menu {
    text-align: right;
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
}

.mobile-nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
}

/************ snack bar *****************/
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #df0404;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Category Navigation */
.category-nav {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0px;
    z-index: 90;
}

.category-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0 1rem;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.category-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.category-list li {
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

.category-list a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.category-list li.active a {
    color: var(--gold);
}

.category-list li.active a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Category Sections */
.category-section {
    padding: 3rem 0;
    background: var(--white);
    border-radius: 10px;
    margin-top: 10px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.category-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0;
    font-weight: 600;
}

.view-all-container {
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 20px;
}

.view-all {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.view-all:hover {
    transform: translateX(5px);
}

/* Enhanced Product Cards */
.all-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    justify-items: center;
}

.all-product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--cream);
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.all-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(145deg, var(--white), #f8f9fa);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
    cursor: pointer;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--cream);
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 2;
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.product-actions button:hover {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1);
}

.product-actions button:focus {
    outline: none;
}

.product-info {
    padding: 1.25rem;
}

.product-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text);
}

.price {
    font-weight: 600;
    color: var(--gold);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.rating {
    color: var(--gold);
    font-size: 0.875rem;
}

/* Category-specific styling */
#electronics {
    background: linear-gradient(135deg, var(--background) 0%, #ffffff 100%);
}

#fashion {
    background: linear-gradient(225deg, var(--background) 0%, #ffffff 100%);
}

#home {
    background: linear-gradient(135deg, var(--background) 0%, #ffffff 100%);
}

/* #sports {
    background: linear-gradient(225deg, var(--background) 0%, #ffffff 100%);
  } */

.popup-medium {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.75);
    overflow: auto;
}

.popup-inner-medium {
    max-width: 500px;
    width: 90%;
    padding: 0px 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px black;
    border-radius: 3px;
    background: #fff;
    z-index: 999;
}

.popup-new {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.75);
    overflow: auto;
}

.popup-inner-new {
    max-width: 300px;
    width: 90%;
    padding: 0px 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px black;
    border-radius: 3px;
    background: #fff;
    z-index: 999;
}

.popup-main {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    overflow: auto;
}

.popup-inner-main {
    max-width: 1200px;
    width: 90%;
    /* height: 80%; */
    /* overflow:scroll; */
    padding: 20px 14px;
    position: absolute;
    top: 10px;
    left: 50%;
    -webkit-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
    box-shadow: 0 2px 6px black;
    border-radius: 3px;
    background: #fff;
    z-index: 99;
    /* max-height: 500px;
  overflow-y: auto; */
}

.swal-modal {
    z-index: 9999;
}

/* spinner */
.show_progression {
    display: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.spinner-border {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border 0.75s linear infinite;
    animation: spinner-border 0.75s linear infinite;
}

.wrap-back-btn {
    margin-top: 20px;
}

.wrap-no-order {
    margin-top: 80px;
    color: #f00;
}

/*** */
.btn1 {
    border-radius: 20px;
    padding: 12px 30px;
    line-height: 16px;
    font-weight: 400;
    border: 1px solid #59b529 !important;
    text-shadow: none !important;
    background: #59b529;
    box-shadow: rgba(39, 174, 96, 0.15) 0 4px 9px;
    box-sizing: border-box !important;
    color: #fff;
    cursor: pointer;
    outline: 0;
    text-align: center;
    text-rendering: geometricPrecision;
    text-transform: none;
    user-select: none;
    transition: all 0.3s;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    width: 100%;
}

.btn1:hover {
    background: #fff;
    color: var(--p_color);
}

.btn1-sm {
    border-radius: 20px;
    padding: 12px 30px;
    line-height: 16px;
    font-weight: 400;
    border: 1px solid #59b529 !important;
    text-shadow: none !important;
    background: #59b529;
    box-shadow: rgba(39, 174, 96, 0.15) 0 4px 9px;
    box-sizing: border-box !important;
    color: #fff;
    cursor: pointer;
    outline: 0;
    text-align: center;
    text-rendering: geometricPrecision;
    text-transform: none;
    user-select: none;
    transition: all 0.3s;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}

.btn1-sm:hover {
    background: #fff;
    color: var(--p_color);
}

.btn2 {
    border-radius: 20px;
    padding: 12px 30px;
    line-height: 16px;
    font-weight: 400;
    border: 1px solid #2982b5 !important;
    text-shadow: none !important;
    background: #156da8;
    box-shadow: rgba(39, 174, 96, 0.15) 0 4px 9px;
    box-sizing: border-box !important;
    color: #fff;
    cursor: pointer;
    outline: 0;
    text-align: center;
    text-rendering: geometricPrecision;
    text-transform: none;
    user-select: none;
    transition: all 0.3s;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    width: 100%;
}

.btn2:hover {
    background: #fff;
    color: var(--p_color);
}

.btn-sm2 {
    border-radius: 20px;
    padding: 12px 30px;
    line-height: 16px;
    font-weight: 400;
    border: 1px solid #2982b5 !important;
    text-shadow: none !important;
    background: #156da8;
    box-shadow: rgba(39, 174, 96, 0.15) 0 4px 9px;
    box-sizing: border-box !important;
    color: #fff;
    cursor: pointer;
    outline: 0;
    text-align: center;
    text-rendering: geometricPrecision;
    text-transform: none;
    user-select: none;
    transition: all 0.3s;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}

.btn-sm2:hover {
    background: #fff;
    color: var(--p_color);
}

.btn-sm3 {
    border-radius: 20px;
    padding: 12px 30px;
    line-height: 16px;
    font-weight: 400;
    border: 1px solid #f5e617 !important;
    text-shadow: none !important;
    background: #fff23c;
    box-shadow: rgba(39, 174, 96, 0.15) 0 4px 9px;
    box-sizing: border-box !important;
    color: #333;
    cursor: pointer;
    outline: 0;
    text-align: center;
    text-rendering: geometricPrecision;
    text-transform: none;
    user-select: none;
    transition: all 0.3s;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}

.btn-sm3:hover {
    background: #fff;
    color: var(--p_color);
}

.btn-sm4 {
    border-radius: 20px;
    padding: 12px 30px;
    line-height: 16px;
    font-weight: 400;
    border: 1px solid #dd7f05 !important;
    text-shadow: none !important;
    background: #f59517;
    box-shadow: rgba(39, 174, 96, 0.15) 0 4px 9px;
    box-sizing: border-box !important;
    color: #fff;
    cursor: pointer;
    outline: 0;
    text-align: center;
    text-rendering: geometricPrecision;
    text-transform: none;
    user-select: none;
    transition: all 0.3s;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}

.btn-sm4:hover {
    background: #fff;
    color: var(--p_color);
}

.wrap-page-view .wrap-inner-view {
    width: 50%;
    margin: 0 auto;
    padding: 50px 0;
}

.text-center {
    text-align: center;
}
#error-messages{
    margin-bottom: 20px;
}
.alert-danger{
    color: #f00;
    text-align: center;
    margin-top: 20px;
}
.alert-danger ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.alert-danger ul li{
    margin-bottom: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-nav {
        top: 0px;
        font-size: 16px;
    }

    .category-list {
        justify-content: left;
    }

    .category-list li {
        padding: 0.75rem 0.5rem;
    }

    .category-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-info h3 {
        font-size: 0.875rem;
    }

    .price {
        font-size: 1rem;
    }
    #cart {

        margin: 0px 25px 0px 10px;
    }
}

@media (max-width: 480px) {
    .product-actions button {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }

    .product-tag {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }

    .product-card {
        max-width: 100% !important;
    }

    .product-image {
        height: 200px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Smooth scrolling for category navigation */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.product-image img {
    transition: opacity 0.3s ease;
}

.product-image img.loaded {
    opacity: 1;
}

/* Improved focus states */
button:focus,
a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading states */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Products Grid  */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    justify-items: center;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
    text-align: left;
    margin-top: 150px;
}

.slide-content h1 {
    font-size: 3rem;
    font-family: "Playfair Display", serif;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.7s;
}

.slide.active .cta-button {
    opacity: 1;
    transform: translateY(0);
}

.cta-button:hover {
    background: #b69468;
    transform: translateY(-2px);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background: var(--gold);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--gold);
}

/* Premium search bar design */
.search-bar {
    position: relative;
    display: flex;
    flex: 1;
    max-width: 800px;
    height: 50px;
    margin: 0 10px;
    border-radius: 16px;
    overflow: visible;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    z-index: 1001;
}

.search-bar:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.search-dropdown {
    /* min-width: 120px; */
    padding: 0 20px;
    background: #f9fafb;
    border: none;
    border-right: 2px solid #e5e7eb;
    border-radius: 14px 0 0 14px;
    color: #374151;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.search-dropdown:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.search-input {
    flex: 1;
    padding: 0 25px;
    border: none;
    font-size: 16px;
    color: #1f2937;
    letter-spacing: 0.3px;
    font-weight: 400;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
}

.search-submit {
    width: 60px;
    margin: 5px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.search-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #60a5fa, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-submit:hover::before {
    opacity: 1;
}

.search-submit i {
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.search-submit:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Focus state */
.search-bar:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Updated search suggestions with dropdown effect */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;

    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#search-suggestions.active {
    display: block;
    opacity: 1;

    transform: translateY(0);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-weight: 400;
}

.suggestion-item:hover {
    background: #f9fafb;
    color: #3b82f6;
    padding-left: 25px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Ensure search bar container allows for dropdown */
.search-bar {
    position: relative;
    z-index: 1001;
    max-width: 800px;
}

/* When search is focused */
.search-bar:focus-within {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}



.page-header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.page-title {
    margin-bottom: 20px;
}

.row-container {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.col1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col3 {
    flex: 0 0 25%;
    max-width: 25%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col5 {
    -ms-flex: 0 0 41.666667%;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col7 {
    -ms-flex: 0 0 41.666667%;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col8 {
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col9 {
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 75%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col10 {
    -ms-flex: 0 0 83.333333%;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col11 {
    -ms-flex: 0 0 91.666667%;
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col12 {
    flex: 0 0 100%;
    max-width: 100%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.wrap-account-content {
    padding: 0 10px 0px 20px;
    margin: 0px;
    box-sizing: border-box;
    min-height: 450px;
}

.wrap-profile-block {
    width: 100%;
    transition: 0.5s;
    padding: 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 10px;
}

.wrap-profile-block .content-block {
    display: block;
}

.wrap-profile-block .content-block .label-block {
    display: block;
    font-weight: 600;
}

.wrap-profile-block .content-block .name-block {
    display: block;
    font-size: var(--font_size);
    color: var(--p_color);
}

.wrap-address-block {
    width: 100%;
    transition: 0.5s;
    padding: 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 10px;
}

.wrap-address-block .content-block {
    display: block;
}

.wrap-address-block .content-block .label-block {
    display: block;
    font-weight: 600;
}

.wrap-address-block .content-block .name-block {
    display: block;
    font-size: var(--font_size);
    color: var(--p_color);
}
.row-container .form-group {
    margin-bottom: 10px;
}
.row-container input,
.row-container select {
    /* background: linear-gradient(225deg, var(--background) 0%, #ffffff 100%); */
    padding: 8px 0;
    width: 100%;
    font-size: 0.95rem;
    color: #374151;
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 4px;
}
.wrap-radio {
    display: flex;
    gap: 16px;
    align-items: center;
}

.wrap-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wrap-radio-input {
    display: none;
}

.wrap-radio-label {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.2s;
}

.wrap-radio-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    transition: border-color 0.2s;
}

.wrap-radio-input:checked + .wrap-radio-label {
    color: #2196f3;
}

.wrap-radio-input:checked + .wrap-radio-label:before {
    border-color: #2196f3;
}

.wrap-radio-input:checked + .wrap-radio-label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #2196f3;
    border-radius: 50%;
    animation: radioScale 0.2s ease;
}

/* .close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
} */
.close-icon {
    position: absolute;
    top: -3px;
    right: -2px;
    font-size: 30px;
    font-weight: normal;
    height: 60px;
    width: 60px;
    background: none;
    border: none;
    text-align: center;
    z-index: 99;
    cursor: pointer;
}

@-webkit-keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
/******end spinner *********/

/************ snack bar *****************/
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #df0404;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
form#cancelOrderForm ul{
    list-style: auto;
    margin-left: 20px;
}
form#cancelOrderForm ul li{
    margin-bottom: 10px;
}
.wrap-submit-btn{
    margin-top: 20px;
}
.wrap-other-reason{
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}
.hidden {
    display: none;
}
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes radioScale {
    0% {
        transform: translateY(-50%) scale(0);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-card {
        max-width: 250px;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer {
        padding: 2rem 0rem 0rem;
    }

    .footer-links {
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo {
        flex-grow: 1;
        margin-left: 10px;
    }

    .hero-slider {
        height: 400px;
    }

    .main-nav {
        padding: 0px 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-input {
        padding: 0px;
        box-sizing: border-box;
        font-size: inherit;
    }

    .search-bar {
        max-width: 350px;
        margin: 0 auto;

    }
    .search-submit{
        padding:10px 20px;
        right:45px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .product-image {
        height: 180px;
    }

    .products-grid {
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        overflow: hidden;
        overflow-x: scroll;
    }

    .product-card {
        width: 250px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .row-container {
        /* display: block; */
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(187px, 2fr));
    }

    .col3 {
        max-width: 100%;
    }

    .wrap-appartment-city {
        width: 100%;
        display: block;
    }

    .col1,
    .col2,
    .col3,
    .col4,
    .col5,
    .col6,
    .col7,
    .col8,
    .col9,
    .col10,
    .col11,
    .col12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wrap-radio {
        justify-content: space-between;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
    }

    .product-image {
        height: 250px;
        /* Smaller height on mobile */
    }

    .footer {
        padding: 0px 20px;
    }
}
