/*==================================
  Elegant Login/Register Modal Design
====================================*/

#userAuthModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background: #ffffff;
}

#userAuthModal .modal-header {
    background-color: #118040;
    color: #ffffff;
    border: none;
    padding: 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

#userAuthModal .modal-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#userAuthModal .modal-body {
    padding: 30px;
}

#userAuthModal .nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: none;
}

#userAuthModal .nav-tabs .nav-link {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    padding: 10px 25px;
    border-radius: 50px;
    transition: 0.3s;
}

#userAuthModal .nav-tabs .nav-link.active {
    background-color: #118040;
    color: #fff;
}

#userAuthModal .form-group {
    margin-bottom: 20px;
    position: relative;
}

#userAuthModal .form-control {
    border-radius: 8px;
    height: 45px;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#userAuthModal .form-control:focus {
    border-color: #118040;
    box-shadow: 0 0 0 0.15rem rgba(17, 128, 64, 0.25);
}

#userAuthModal button[type="submit"] {
    width: 100%;
    background-color: #118040;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease;
    letter-spacing: 0.5px;
}

#userAuthModal button[type="submit"]:hover {
    background-color: #0c6a32;
}

#userAuthModal .text-danger,
#userAuthModal .text-success {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: block;
}

#userAuthModal .close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    opacity: 1;
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 576px) {
    #userAuthModal .modal-dialog {
        margin: 20px;
    }

    #userAuthModal .modal-body {
        padding: 20px;
    }

    #userAuthModal .nav-tabs .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
}



.single-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shop-sidebar ul {
    list-style:none;
    padding:0;
    margin:0;
}
.shop-sidebar ul li {
    margin-bottom:8px;
}
.shop-sidebar ul li a {
    text-decoration:none;
    color:#333;
    transition:0.3s;
}
.shop-sidebar ul li a:hover {
    color:#ff4d4f;
}

@media(max-width:768px){
    .shop-container {
        flex-direction:column;
    }
    .shop-sidebar {
        width:100%;
        margin-bottom:15px;
    }
    .shop-products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap:10px;
    }
}


.shop-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* 👈 Side gap for spacing */
}

.single-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shop-sidebar ul {
    list-style:none;
    padding:0;
    margin:0;
}
.shop-sidebar ul li {
    margin-bottom:8px;
}
.shop-sidebar ul li a {
    text-decoration:none;
    color:#333;
    transition:0.3s;
}
.shop-sidebar ul li a:hover {
    color:#ff4d4f;
}

.added-popup {
    transition: all 0.3s ease-in-out;
}

@media(max-width:768px){
    .shop-container {
        flex-direction:column;
    }
    .shop-sidebar {
        width:100%;
        margin-bottom:15px;
    }
    .shop-products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap:12px;
    }
}


/* Wrapper and layout */
.shop-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}
.shop-container {
    display: flex;
    gap: 25px;
    margin: 30px 0;
}
.shop-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* ===== SIDEBAR STYLING ===== */
.shop-sidebar {
    flex: 0 0 240px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff4d4f;
    padding-bottom: 8px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin-bottom: 10px;
}
.category-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.category-list li a:hover {
    background: #ff4d4f;
    color: #fff;
    transform: translateX(5px);
}
.cat-icon {
    font-size: 16px;
    opacity: 0.8;
}

/* ===== PRODUCT CARD ===== */
.single-product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    position: relative;
    background: #fff;
    transition: 0.3s;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.single-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-thumb {
    width: 100%;
    border-radius: 8px;
}
.product-title {
    margin: 8px 0;
    font-size: 1rem;
    color: #222;
}
.product-price {
    color: #ff4d4f;
    font-weight: bold;
    margin-bottom: 5px;
}
.add-to-cart-button {
    background: #ff4d4f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.add-to-cart-button:hover {
    background: #e43b3e;
}

/* Added to Cart Popup */
.added-popup {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
    transition: all 0.3s ease-in-out;
}

/* Responsive */
@media(max-width:768px){
    .shop-container {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .shop-products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* ========== SINGLE PRODUCT PAGE ========== */

.single-product-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
}

.single-product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Left Image Gallery */
.product-gallery {
    flex: 1;
    min-width: 350px;
}
.product-gallery img {
    width: 100%;
    border-radius: 10px;
}

/* Right Side Info */
.product-summary-section {
    flex: 1;
    min-width: 320px;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.4rem;
    color: #ff4d4f;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-rating {
    margin-bottom: 15px;
}

.product-short-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Add to Cart Section */
.product-cart form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-cart .quantity input {
    width: 70px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
}
.product-cart button.single_add_to_cart_button {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}
.product-cart button.single_add_to_cart_button:hover {
    background: #e43b3e;
}

/* Product Meta */
.product-meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: 15px;
}
.product-meta a {
    color: #ff4d4f;
}

/* Tabs Section */
.product-tabs {
    margin-top: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
}
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 20px;
    list-style: none;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.woocommerce-tabs ul.tabs li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding-bottom: 5px;
    transition: 0.3s;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #ff4d4f;
    border-bottom: 2px solid #ff4d4f;
}

.woocommerce-Tabs-panel {
    padding-top: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media(max-width:768px){
    .single-product-container {
        flex-direction: column;
    }
    .product-gallery, .product-summary-section {
        width: 100%;
    }
}
