* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #e74c3c;
    --secondary-color: #333333;
    --background-color: #f8f9fa;
    --border-color: #ddd;
    --font-family: "Arial", sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
}
/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* position: fixed; */
    /* top: 0; */
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.nav {
    padding: 1rem 0;
    display: block;
    z-index: 1000;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo h1 a {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-direction: row;
    justify-content: center;
    z-index: 1000;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
    z-index: 1000;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-end;
}
.nav-menu {
    width: 100%;
    background: white;
    padding: 0;
    border-top: 1px solid #eee;
}
.nav-menu ul li {
    padding: 8px 25px;
    border-right: 1px solid #eee;
}
.nav-menu ul li:last-child {
    border-right: none;
}
.nav-menu ul li .submenu li {
    padding: 0px;
    display: block;
}
.nav-menu ul li a:hover:after {
    width: 100%;
    left: 0;
}

/* Submenu */
.has-submenu {
    position: relative;
    z-index: 1000;
}
.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    gap: 5px;
    z-index: 1000;
}
.submenu-toggle:hover {
  color: var(--primary-color);
  z-index: 1000;
}
.sub.has-submenu .submenu-toggle {
    padding: 0;
    border: 0;
    z-index: 1000;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.submenu {
    display: none !important;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    position: absolute;
    min-width: 300px;
    left: 0 !important;
    top: 43px;
    border-radius: 0;
    border: 1px solid #eee;
    z-index: 1000;
}
.has-submenu .sub.submenu {
    top: -1%;
    left: -101% !important;
    z-index: 1000;
}
.submenu li a {
    padding: 10px 15px;
    display: block;
    color: var(--secondary-color);
    transition: all ease-in-out 0.1s;
    border-bottom: 1px solid #eee;
}
.submenu li:last-child a {
    border-bottom: none;
    z-index: 1000;
}
.submenu li a:hover{
    color: var(--primary-color);
    z-index: 1000;
}
.submenu li a:hover, .submenu .submenu-toggle:hover {
    background-color: #e1e1e170;
}
.arrow {
    transition: transform 0.3s;
    font-size: 12px;
    color: #777;
}
.has-submenu.open > .submenu {
  display: block !important;
}
li.sub.has-submenu ul li{
    padding:0px;
    border: 0px;
}
li.sub.has-submenu ul li a{
    padding: 10px 15px;
    display: block;
    border-bottom:1px solid #eee;
}
.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    width: 100%;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999999;
}

.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
}
.user-menu {
    position: relative;
}
.user-submenu {
    display: none;
    position: absolute;
    right: 75px;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 140px;
    z-index: 1001;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #c0392b;
}

/* Products Section */
.products-section {
    padding: 60px 0px;
    background: #f8f9fa;
}
.price_wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 20px;
    font-weight: 600;
}
.old-price{
    text-decoration: line-through;
    color: #999;
}
.sale-price{
    color: var(--primary-color);
    font-weight: bold;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-family: "Arial", sans-serif;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Category-wise layout */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-section {
    display: block;
}

.category-section.hidden {
    display: none;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    text-transform: capitalize;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    line-height: 2rem;
}

.category-header h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.category-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
    border: 1px solid #ddd;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}
.related-products .product-info {
    min-height: auto;
}
.product-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    min-height: 68px;
    line-height: 28px;
    text-align: center;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.single-product-page .product-title {
    text-align: left;
}
.single-product-page .product-info {
    width: 100%;
}
.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background: #c0392b;
}

/* Product slider start */

/* ----------------------
   Container & Layout
----------------------- */
.zoom-container {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: auto;
    z-index: 1;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    border: 1px solid #eee;
}

.main-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ----------------------
   Zoom Viewer
----------------------- */
.zoom-result {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 20px;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ----------------------
   Slider Container
----------------------- */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 10px;
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* ----------------------
   Thumbnail Images
----------------------- */

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* ----------------------
   Slider Buttons
----------------------- */
.slider-btn {
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    width: 40px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: inline-block;
}

.slider-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.slider-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    background: #f9f9f9;
}

/* Product slider End */
/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    animation: slideIn 0.3s ease-out;
}
.cart-item:first-child {
    padding-top: 0px;
}
.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 26px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity {
    padding: 0.2rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 50px;
    height: 30px;
    text-align: center;
}

.remove-item {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}
.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #219a52;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 0px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
}

.modal-body {
    padding: 2rem;
}

.modal-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #766f6f;
}
.contact-buttons{
    margin-top: 20px;
    display: flex; 
    gap: 10px;
    flex-wrap: wrap;
}
.contact-buttons a{
    font-size: 1.4rem;
    padding: 0.5rem 2rem; 
    border-radius: 5px;
    text-decoration: none;
    width: 100%;
}
.contact-buttons i{
    font-size: 1.5rem;
}
/* Footer */
.footer {
    background: #f8f9fa;
    color: var(--secondary-color);
}
.powerd_by_text {
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    color: #fff;
}
.powerd_by_text:hover{
    color: #ffc107;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0px;
    background: var(--primary-color);
    color: #fff;
    margin: 0;
}
.footer-bottom p{
    margin: 0;
}
.product-button-price {
    color: white;
}

/* For the product details page */
.product-details-section {
    padding: 20px 0px 30px;
    background: #f8f9fa;
}

.breadcrumb {
    margin-bottom: 15px;
    color: #000;
    gap: 10px;
    align-items: center;
    border-radius: 5px;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}
.breadcrumb span {
    font-size: 16px;
    font-weight: 600;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.product-details-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    flex: 1;
    max-width: 600px;
}
.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 0;
}
.thumbnail-container {
    display: flex;
    gap: 10px;
}
.thumbnail {
    border: 1px solid #ddd;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 0px;
    border-radius: 0px;
    cursor: pointer;
}
.thumbnail:hover {
    border-color: var(--primary-color);
}

/* Use more specific selectors to avoid index page conflicts */
.product-details-section .product-title {
    font-size: 35px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 40px;
    min-height: auto;
}
.product-details-section .product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0px 20px;
}
.product-details-section .product-info {
    padding: 0px 0px 20px;
    justify-content: flex-start;
}
.product-meta {
    margin-bottom: 2rem;
}
.meta-item {
    display: flex;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}
.meta-label {
    font-weight: bold;
    min-width: 120px;
    color: #666;
}
.meta-value {
    color: var(--secondary-color);
}
.product-details-section .product-description {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #555;
}
.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.quantity-label {
    margin-right: 1rem;
    font-weight: bold;
}
.quantity-input {
    width: 70px;
    height: 30px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
.action-buttons {
    display: flex;
    gap: 15px;
}
.product-details-section .add-to-cart-btn, .product-details-section .buy-now-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 50%;
}
.product-details-section .add-to-cart-btn {
    background: var(--primary-color);
    color: white;
}
.product-details-section .add-to-cart-btn:hover {
    background: #c0392b;
}
.product-details-section .buy-now-btn {
    background: var(--secondary-color);
    color: white;
}
.product-details-section .buy-now-btn:hover {
    background: #111;
}

/* Product Tabs */
.product-tabs {
    margin-top: 50px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}
.tab-content {
    display: none;
    padding: 1rem 0;
    line-height: 1.7;
    color: #555;
}
.tab-content.active {
    display: block;
}

/* Related Products */
.related-products {
    margin: 60px 0px;
}
.related-products .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.related-info {
    padding: 1.5rem;
}
.related-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.related-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-details-container {
        flex-direction: column;
    }
    .product-gallery {
        max-width: 100%;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .main-image {
        height: 400px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .action-buttons {
        flex-direction: column;
    }
    .product-details-section .add-to-cart-btn,
    .product-details-section .buy-now-btn {
        width: 50%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .main-image {
        height: 300px;
    }
    .product-details-section .product-title {
        font-size: 1.3rem;
    }
    .product-details-section .product-price {
        font-size: 1.5rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .tabs-header {
        flex-wrap: wrap;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
/* End of Product Details Page Styles */

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        gap: 1rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .category-filter {
        flex-wrap: wrap;
    }

    .category-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    .category-header h3 {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutNotification {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Site Content */
/* Product Details */
.attribute-group {
    margin-bottom: 8px;
}
.attribute-item {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    font-size: 0.95em;
    color: var(--secondary-color);
    transition: box-shadow 0.2s;
}
.attribute-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
    cursor: pointer;
}
.attribute-item.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(231,76,60,0.15);
}
/* Product */
.demo-products-grid{
    display: flex; 
    flex-wrap: wrap; 
    gap: 24px; 
    justify-content: center; 
    margin-top: 100px;
}
.demo-product-card{
    border:1px solid #eee;
    border-radius:8px; 
    padding:24px; 
    width:180px; 
    text-align:center;
}
.box-open-icon{
    font-size:48px; 
    color:#888;
}
/* Empty Product */
.empty-products-container{
    text-align: center;
    padding: 50px 20px; 
    width: 100%;
}
.empty-products-content{
    max-width: 500px; 
    margin: 0 auto;
}
.empty-icon{
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}
/* Newsletter */
.newsletter-section {
    background: #eee;
    padding: 3rem 0;
}
.newsletter-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary-color);
}
.newsletter-description {
    color: var(--secondary-color);
    margin: 0;
    font-size: 18px;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1 1 300px;
    justify-content: flex-end;
}
.newsletter_inp {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
}
.newsletter-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.top-sales-category-section {
    border-radius: 5px;
    border: 1px solid #eee;
    text-align: center;
    padding: 15px;
    margin: 10px;
    background: #fff;
    transition: all ease-in-out 0.2s;
    overflow: hidden;
}
.featured-category-image{
    object-fit: contain;
    transition: all ease-in-out 0.2s;
}
.top-sales-category-section:hover{
    border-color: var(--primary-color);
}
.top-sales-category-section:hover img{
    transform: scale(1.1);
}
/* Checkout Page  */
#checkout {
    padding: 60px 0px;
}
.page-title{
    font-size: 2rem;
    color: var(--secondary-color);
    text-transform: capitalize;
    position: relative;
    padding-bottom: 0.5rem;
    line-height: 1rem;
    text-align: center;
}
.page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}
.checkout-flex {
    margin: 50px 0px 0px;
}
.checkout-sub-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 15px;
}
.checkout-summary, .checkout-form {
    padding: 20px;
    border-radius: 5px;
    background: #eee;
    min-height: 580px;
}
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cart-items {
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    min-height: 120px;
    max-height: 500px;
    overflow-y: auto;
}
.cart-item-title {
    font-weight: 500;
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 26px;
}
.cart-total {
    font-size: 18px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 500;
    margin: 0;
}
.cart-total .cart-total-item-flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cart-total .total {
    color: var(--primary-color);
    font-weight: 600;
}
.promo-message{
    margin-top: 8px;
    font-size: 0.9rem;
}
.promo-code {
    position: relative;
}
.promo-code input {
    line-height: 44px;
    height: 44px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: none !important;
}
.promo-btn {
    position: absolute;
    top: 0;
    height: 44px;
    right: 0;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 0px 25px;
    border-radius: 0px 5px 5px 0px;
    font-weight: 600;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}
.promo-code input:focus{
    border: 1px solid var(--primary-color);
}
.empty-cart-message{
    text-align: center;
    color: #666;
    padding: 2rem;
}
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 18px;
}
.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100% !important;
}
.payment-method-label {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-width: 200px;
    gap: 5px;
}
.payment-method-label input:checked + .payment-method-label {
    border-color: var(--primary-color) !important;
}
.payment-method-label:hover,.payment-method-label:focus {
    border-color: var(--primary-color);
}
.order-place-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
    transition: all ease-in-out 0.2s;
}
.order-place-btn:hover {
    opacity: 0.8;
}
.checkout-form-inner {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
}

/* Mobile Footer Fixed Bar */
.mobile-footer-bar {
    display: none;
}

/* searchable select city zone  */
   #city.select2-container .select2-selection--single,
   #zone.select2-container .select2-selection--single {
       height: 44px !important;
   }
   
   #city.select2-container .select2-selection--single .select2-selection__rendered,
   #zone.select2-container .select2-selection--single .select2-selection__rendered {
       line-height: 44px !important;
   }
   
   #city.select2-container .select2-selection--single .select2-selection__arrow,
   #zone.select2-container .select2-selection--single .select2-selection__arrow {
       height: 44px !important;
   }
   
   .select2-container--default .select2-selection--single {
       height: 44px !important;
   }
   
   .select2-container--default .select2-selection--single .select2-selection__rendered {
       line-height: 44px !important;
   }
   
   .select2-container--default .select2-selection--single .select2-selection__arrow {
       height: 44px !important;
   }

@media (max-width: 991px) {
    .mobile-footer-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #f5f5f5;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 8px 0;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-footer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        padding: 8px 12px;
        flex: 1;
        text-decoration: none;
        color: var(--secondary-color);
        transition: color 0.3s ease;
        position: relative;
        min-width: 0;
        border: none;
        background: none;
    }
    
    /* Make div look like link */
    div.mobile-footer-item {
        text-decoration: none;
    }
    
    .mobile-footer-item:hover,
    .mobile-footer-item:active {
        color: var(--primary-color);
    }
    
    .mobile-footer-item i {
        font-size: 20px;
        display: block;
    }
    
    .mobile-footer-item svg {
        width: 20px;
        height: 20px;
        display: block;
        stroke: var(--secondary-color);
    }
    
    .mobile-footer-item svg path,
    .mobile-footer-item svg rect,
    .mobile-footer-item svg circle {
        stroke: var(--secondary-color);
    }
    
    .mobile-footer-item svg text {
        fill: var(--secondary-color);
    }
    
    .mobile-footer-item span:not(.wishlist-icon-container):not(.mobile-wishlist-badge):not(.cart-icon-container):not(.mobile-cart-badge) {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
        display: block;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        color: var(--secondary-color);
    }
    
    .cart-icon-container {
        position: relative;
        display: inline-block;
    }
    
    .mobile-cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: bold;
        line-height: 1;
        min-width: 16px;
        padding: 2px;
    }
    
    .mobile-cart-badge:empty,
    .mobile-cart-badge[style*="display: none"] {
        display: none !important;
    }
    
    /* Add padding to body to prevent content from being hidden behind fixed footer */
    body {
        padding-bottom: 70px;
    }
}