/* Modern Style Overrides */

:root {
    --primary-color: #d5bc64;
    --primary-gradient: linear-gradient(135deg, #d5bc64 0%, #e8d48a 100%);
    --secondary-color: #333;
    --text-color: #555;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Header & Navigation */
.header.shop {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.header.shop .topbar {
    background-color: #f1f1f1;
    border-bottom: none;
}

.header.shop .nav li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.header.shop .nav li:hover a {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(213, 188, 100, 0.3);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #e8d48a 0%, #d5bc64 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(213, 188, 100, 0.4);
    color: #fff;
}

/* Cards & Sections */
.section {
    padding: 60px 0;
}

.shop.single .product-des,
.shop-services.section,
.shop-newsletter.section,
.product-area .single-product,
.shopping-cart .shopping-summery,
.shopping-cart .total-amount .right,
.shopping-cart .total-amount .left .coupon {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Product Cards (Grid View) */
.single-product {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shop-list .single-product {
    border: none;
    box-shadow: none;
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.shop-list .col-12 {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.shop-list .col-12:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.single-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.shop-list .single-product:hover {
    transform: none;
    box-shadow: none;
}

.single-product .product-img {
    position: relative;
    overflow: hidden;
}

.single-product .product-img a {
    display: block;
}

.single-product .product-img a img {
    width: 100%;
    transition: all 0.4s ease;
}

.single-product:hover .product-img a img.default-img {
    opacity: 0;
    visibility: hidden;
}

.single-product .product-img a img.hover-img {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
}

.single-product:hover .product-img a img.hover-img {
    opacity: 1;
    visibility: visible;
}

/* Product Actions */
.product-area .single-product .button-head,
.single-product .button-head {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.02);
    display: block;
    pointer-events: none;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0;
    bottom: auto; /* Reset potential bottom styling */
}

.product-area .single-product:hover .button-head,
.single-product:hover .button-head {
    opacity: 1;
    bottom: auto;
}

.product-area .single-product .product-action,
.single-product .product-action {
    position: absolute;
    right: 15px;
    top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    pointer-events: auto;
    left: auto; /* Reset potential left styling */
    bottom: auto; /* Reset potential bottom styling */
}

.product-area .single-product .product-action a,
.single-product .product-action a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
    color: #333;
    display: flex; /* Flex to center icon */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0; /* Reset padding */
}

.product-area .single-product .product-action a i,
.single-product .product-action a i {
    line-height: 1;
    margin: 0; /* Reset margin */
}

.product-area .single-product .product-action a span,
.single-product .product-action a span {
    display: none !important; /* Force hide text */
}

.product-area .single-product:hover .product-action a,
.single-product:hover .product-action a,
.single-product:focus-within .product-action a {
    transform: translateX(0);
    opacity: 1;
}

.single-product:hover .product-action a:nth-child(1),
.single-product:focus-within .product-action a:nth-child(1) {
    transition-delay: 0.1s;
}

.single-product:hover .product-action a:nth-child(2),
.single-product:focus-within .product-action a:nth-child(2) {
    transition-delay: 0.2s;
}

.single-product .product-action a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(-3px);
}

/* Add to Cart Icon Button */
.product-area .single-product .product-action-2,
.single-product .product-action-2 {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    top: auto; /* Reset potential top styling */
}

.product-area .single-product .product-action-2 a,
.single-product .product-action-2 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto; /* Center if block */
    padding: 0;
}

.product-area .single-product:hover .product-action-2 a,
.single-product:hover .product-action-2 a,
.single-product:focus-within .product-action-2 a {
    transform: translateY(0);
    opacity: 1;
}

.product-area .single-product .product-action-2 a:hover,
.single-product .product-action-2 a:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(247, 148, 29, 0.3);
    transform: translateY(-3px);
}

/* Custom 5 Column Grid */
@media (min-width: 992px) {
    .col-lg-custom-5 {
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.container-fluid-custom {
    padding-right: 60px;
    padding-left: 60px;
}
@media (max-width: 991px) {
    .container-fluid-custom {
        padding-right: 30px;
        padding-left: 30px;
    }
}
@media (max-width: 767px) {
    .container-fluid-custom {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Force Center Alignment for Isotope Grid */
.isotope-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    height: auto !important; /* Override Isotope container height */
}

.isotope-grid .isotope-item {
    position: relative !important; /* Override Isotope positioning */
    top: auto !important;
    left: auto !important;
    float: none !important;
}

.single-product .product-content {
    padding: 20px;
    text-align: center;
}

.shop-list .list-content {
    padding: 10px;
}

.shop-list .list-content .title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.shop-list .list-content .des {
    margin-top: 15px;
    margin-bottom: 20px;
    color: #777;
    font-size: 14px;
}

.shop-list .list-content .btn {
    color: #fff;
    padding: 10px 25px;
}

.single-product .product-content h3 {
    margin-bottom: 10px;
}

.single-product .product-content h3 a {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.single-product .product-content h3 a:hover {
    color: var(--primary-color);
}

.single-product .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.single-product .product-price span {
    display: inline-block;
}

.single-product .product-price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-left: 10px;
}

/* Shop Sidebar */
.shop-sidebar .single-widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.shop-sidebar .single-widget .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.shop-sidebar .single-widget .title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 50px;
    background: var(--primary-color);
}

.shop-sidebar .categor-list li {
    margin-bottom: 12px;
}

.shop-sidebar .categor-list li:last-child {
    margin-bottom: 0;
}

.shop-sidebar .categor-list li a {
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.shop-sidebar .categor-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Price Filter */
.price-filter .ui-slider-horizontal {
    height: 6px;
    background: #eee;
    border: none;
    border-radius: 10px;
}

.price-filter .ui-slider .ui-slider-range {
    background: var(--primary-color);
    border-radius: 10px;
}

.price-filter .ui-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    top: -6px;
    cursor: pointer;
    outline: none;
}

.price-filter .filter_button {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-filter .filter_button:hover {
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.3);
    transform: translateY(-2px);
}

/* Shop Top Bar */
.shop-top {
    background: #fff;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f0f0f0;
}

.shop-shorter {
    display: flex;
    align-items: center;
}

.single-shorter {
    margin-right: 25px;
}

.single-shorter label {
    font-weight: 500;
    margin-right: 10px;
    color: #555;
}

.single-shorter select {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.view-mode li {
    display: inline-block;
    margin-left: 10px;
}

.view-mode li a {
    display: block;
    height: 35px;
    width: 35px;
    line-height: 35px;
    text-align: center;
    background: #f5f5f5;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-mode li.active a,
.view-mode li a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    justify-content: center;
}

.pagination .page-item .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 4px;
    color: #555;
    font-weight: 600;
    padding: 10px 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background: var(--primary-color);
    color: #fff;
}
.shop.single .product-gallery .flexslider-thumbnails {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.shop.single .product-des {
    padding: 30px;
}

.shop.single .product-des h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.shop.single .product-des .price span.discount {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.shop.single .size ul li a {
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
    font-weight: 500;
}

.shop.single .size ul li a.active,
.shop.single .size ul li a:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* Quick View Modal */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}

.modal-header .close {
    opacity: 1;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.modal-header .close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.quickview-content {
    padding: 20px;
}

.quickview-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.quickview-ratting-review {
    margin-bottom: 15px;
}

.quickview-ratting-review .quickview-ratting i {
    color: #d5bc64;
    font-size: 14px;
}

.quickview-stock span {
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
}

.quickview-stock span i {
    margin-right: 5px;
}

.quickview-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.quickview-content h3 del {
    color: #999;
    font-size: 18px;
    font-weight: 400;
    margin-right: 10px;
}

.quickview-peragraph p {
    font-size: 14px;
    color: #555;
    line-height: 24px;
    margin-bottom: 20px;
}

.quickview-content .size {
    margin-bottom: 20px;
}

.quickview-content .size h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.quickview-content .size ul li {
    display: inline-block;
    margin-right: 5px;
}

.quickview-content .size ul li a {
    display: block;
    height: 35px;
    width: 35px;
    line-height: 35px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quickview-content .size ul li a:hover,
.quickview-content .size ul li a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: transparent;
}

.quickview-content .quantity {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.quickview-content .input-group {
    width: 130px;
    margin-right: 20px;
    position: relative;
}

.quickview-content .input-group .button {
    position: absolute;
    top: 0;
}

.quickview-content .input-group .button.minus {
    left: 0;
}

.quickview-content .input-group .button.plus {
    right: 0;
}

.quickview-content .input-group .btn-number {
    height: 45px;
    width: 40px;
    line-height: 45px;
    padding: 0;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.quickview-content .input-group .btn-number:hover {
    background: var(--primary-color);
    color: #fff;
}

.quickview-content .input-group .input-number {
    height: 45px;
    width: 100%;
    text-align: center;
    border: 1px solid #f0f0f0;
    padding: 0 40px;
    border-radius: 0;
    font-weight: 600;
}

.quickview-content .add-to-cart {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.quickview-content .add-to-cart .btn {
    height: 45px;
    line-height: 20px; /* Adjusted for vertical centering */
    padding: 12px 30px;
    margin-right: 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(247, 148, 29, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quickview-content .add-to-cart .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(247, 148, 29, 0.4);
}

.quickview-content .add-to-cart .btn.min {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.quickview-content .add-to-cart .btn.min:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: transparent;
}

.quickview-content .default-social {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Cart & Wishlist Tables */
.shopping-cart .table thead {
    background: var(--secondary-color);
    color: #fff;
}

.shopping-cart .table thead th {
    border: none;
    padding: 15px;
    font-weight: 500;
}

.shopping-cart .table tbody tr td {
    vertical-align: middle;
}

.shopping-cart .total-amount .right {
    padding: 30px;
}

.shopping-cart .total-amount .right ul li {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.shopping-cart .total-amount .right ul li.last {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

/* Inputs */
input,
select,
textarea {
    border: 1px solid #e1e1e1;
    border-radius: var(--radius-md);
    padding: 10px 15px;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.1);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
}

.badge-success {
    background-color: #2ecc71;
}

.badge-danger {
    background-color: #e74c3c;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
}

.footer .about .logo {
    margin-bottom: 20px;
}

.footer .single-footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer .single-footer h4::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Custom Form Checkbox for User Dashboard */
.user-dashboard .form-check {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.user-dashboard .form-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.user-dashboard .form-check-label {
    position: relative;
    cursor: pointer;
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 24px;
    margin-bottom: 0;
    user-select: none;
}

.user-dashboard .form-check-label::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.user-dashboard .form-check-input:checked ~ .form-check-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.user-dashboard .form-check-label::after {
    content: "";
    position: absolute;
    left: -29px;
    top: 50%;
    margin-top: -6px;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0;
    transition: all 0.2s ease;
}

.user-dashboard .form-check-input:checked ~ .form-check-label::after {
    opacity: 1;
}

.user-dashboard .form-check:hover .form-check-label::before {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.1);
}
