/*--------------------- Shop Page --------------------*/
.shop-page.section-spacing {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Product Card */
.shop-page .single-product {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.shop-page .single-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.shop-page .single-product .image-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    background: #f8f9fa;
}

.shop-page .single-product .image-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.02);
    z-index: 1;
}

.shop-page .single-product .image-box img {
    width: 100%;
    height: auto;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
}

.shop-page .single-product:hover .image-box img {
    transform: scale(1.08);
}

.shop-page .single-product .product-name {
    text-align: center;
    padding: 25px;
    position: relative;
    background: #fff;
    border-radius: 0 0 20px 20px;
}

.shop-page .single-product .product-name:before {
    content: "";
    position: absolute;
    top: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e9ecef, transparent);
}

.shop-page .single-product .product-name h5 {
    margin: 0 0 12px;
}

.shop-page .single-product .product-name h5 a {
    color: var(--heading-color);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.shop-page .single-product .product-name h5 a:hover {
    color: var(--theme-color);
}

.shop-page .single-product .product-name .price {
    color: #2ecc71;
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    display: block;
}

.shop-page .single-product .product-name .add-to-cart {
    margin-top: 20px;
}

.shop-page .single-product .product-name .add-to-cart a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.shop-page .single-product .product-name .add-to-cart a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.shop-page .single-product .product-name .add-to-cart a:hover:before {
    width: 100%;
}

.shop-page .single-product .product-name .add-to-cart a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    background: #2980b9;
}

.shop-page .single-product .product-name .add-to-cart a i {
    margin-right: 8px;
    font-size: 16px;
}

/* Sidebar Styles */
.blog-sidebar .sidebar-container {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.blog-sidebar .sidebar-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--theme-color);
}

.blog-sidebar .title {
    font-size: 22px;
    color: var(--heading-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
    position: relative;
}

.blog-sidebar .title:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-color);
}

.blog-sidebar .sidebar-recent-post ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .sidebar-recent-post ul li {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    margin: 0;
    transition: all 0.3s ease;
}

.blog-sidebar .sidebar-recent-post ul li:last-child {
    border: none;
    padding-bottom: 0;
}

.blog-sidebar .sidebar-recent-post ul li:first-child {
    padding-top: 0;
}

.blog-sidebar .sidebar-recent-post .cats a {
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.blog-sidebar .sidebar-recent-post .cats a i {
    color: var(--theme-color);
    margin-right: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.blog-sidebar .sidebar-recent-post .cats a:hover {
    color: var(--theme-color);
    padding-left: 5px;
}

.blog-sidebar .sidebar-recent-post .cats a:hover i {
    transform: translateX(3px);
}

/* Theme Inner Banner */
.theme-inner-banner {
    text-align: center;
    position: relative;
    background: var(--theme-color);
    overflow: hidden;
}

.theme-inner-banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.theme-inner-banner .overlay {
    padding: 100px 0;
    position: relative;
}

.theme-inner-banner h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.theme-inner-banner h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #fff;
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Product Detail Styles */
.product-details {
    padding: 50px 0;
}

.product-info .title {
    font-size: 28px;
    color: #232323;
    margin-bottom: 20px;
}

.product-divider {
    margin: 20px 0;
    border-color: #e9ecef;
}

.product-meta {
    font-size: 16px;
}

.product-meta strong {
    color: #232323;
    margin-right: 10px;
}

.product-prices {
    font-size: 18px;
}

.product-prices .new-price {
    color: #2ecc71;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 10px;
}

.order-box {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.order-box li {
    margin-bottom: 15px;
}

.quantity-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    max-width: 120px;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid #e9ecef;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #fff;
    color: #232323;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #3498db;
    color: #fff;
}

.quantity-box input {
    width: 40px;
    height: 35px;
    border: none;
    background: transparent;
    text-align: center;
    margin: 0 5px;
    font-size: 16px;
    color: #232323;
    font-weight: 600;
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: #fff;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cart:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-cart:hover:before {
    left: 100%;
}

.btn-cart:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-cart i {
    margin-right: 8px;
    font-size: 16px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    margin-right: 8px;
    font-size: 16px;
}

/* Cart Page Styles */
.shop-cart-section {
    padding: 60px 0;
}

.cart-table-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding: 20px;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table th {
    padding: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f5f5f5;
}

.shop-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
}

.product-thumbnail img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.product-name a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #3498db;
}

.product-price .amount,
.product-subtotal .amount {
    font-weight: 600;
    color: #2ecc71;
}

.removeFromCartBtn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.removeFromCartBtn:hover {
    background: #fff5f5;
    transform: scale(1.1);
}

.cart-summary {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding: 25px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
    color: #333;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.summary-item span:first-child {
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f5f5f5;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.free-shipping-message {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    color: #2ecc71;
    font-size: 14px;
    text-align: center;
}

.free-shipping-message i {
    margin-right: 5px;
}

.checkout-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.empty-cart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.empty-cart i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #333;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 25px;
}

/* Dark Mode */
[data-theme="dark"] .shop-page.section-spacing {
    background: #1a1a1a;
}

[data-theme="dark"] .shop-page .single-product {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .shop-page .single-product .image-box {
    background: #1a1a1a;
}

[data-theme="dark"] .shop-page .single-product .product-name {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .shop-page .single-product .product-name:before {
    background: linear-gradient(to right, transparent, #2d2d2d, transparent);
}

[data-theme="dark"] .shop-page .single-product .product-name h5 a {
    color: #fff;
}

[data-theme="dark"] .blog-sidebar .sidebar-container {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .blog-sidebar .title {
    color: #fff;
    border-color: #2d2d2d;
}

[data-theme="dark"] .blog-sidebar .sidebar-recent-post ul li {
    border-color: #2d2d2d;
}

[data-theme="dark"] .blog-sidebar .sidebar-recent-post .cats a {
    color: #fff;
}

[data-theme="dark"] .shop-page .single-product .product-name .add-to-cart a {
    background: #3498db;
    color: #fff;
}

[data-theme="dark"] .shop-page .single-product .product-name .add-to-cart a:hover {
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    background: #2980b9;
}

[data-theme="dark"] .shop-page .single-product .product-name .add-to-cart a:hover i {
    color: var(--theme-color);
}

/* Dark theme styles */
@media (prefers-color-scheme: dark) {
    .shop-page.section-spacing {
        background: #0a1930;
    }
    
    .shop-page .single-product {
        background: #112240;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .shop-page .single-product .image-box {
        background: #0a1930;
    }
    
    .shop-page .single-product .product-name {
        background: #112240;
    }
    
    .shop-page .single-product .product-name:before {
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    }
    
    .shop-page .single-product .product-name h5 a {
        color: #e6f1ff;
    }
    
    .shop-page .single-product .product-name h5 a:hover {
        color: var(--theme-color);
    }
    
    .shop-page .single-product .product-name .price {
        color: #2ecc71;
    }
    
    .shop-page .single-product .product-name .add-to-cart a {
        background: #3498db;
        color: #fff;
    }
    
    .shop-page .single-product .product-name .add-to-cart a:hover {
        box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
        background: #2980b9;
    }
    
    .shop-page .single-product:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .product-info .title {
        color: #e6f1ff;
    }

    .product-divider {
        border-color: rgba(255,255,255,0.1);
    }

    .product-meta strong {
        color: #e6f1ff;
    }

    .quantity-box {
        background: #112240;
        border-color: #1a365d;
    }

    .quantity-btn {
        background: #0a1930;
        color: #e6f1ff;
    }

    .quantity-btn:hover {
        background: #3498db;
        color: #fff;
    }

    .quantity-box input {
        color: #e6f1ff;
    }

    .btn-cart {
        background: #3498db;
    }

    .btn-cart:hover {
        background: #2980b9;
        box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .shop-page.section-spacing {
        padding: 60px 0;
    }
    
    .theme-inner-banner .overlay {
        padding: 80px 0;
    }
    
    .theme-inner-banner h2 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .shop-page .single-product {
        margin-bottom: 25px;
    }
    
    .shop-page .single-product .product-name {
        padding: 20px;
    }
    
    .theme-inner-banner .overlay {
        padding: 60px 0;
    }
    
    .theme-inner-banner h2 {
        font-size: 30px;
    }
    
    .blog-sidebar .sidebar-container {
        padding: 25px;
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .shop-page .single-product .product-name h5 a {
        font-size: 16px;
    }
    
    .shop-page .single-product .product-name .price {
        font-size: 20px;
    }
    
    .theme-inner-banner h2 {
        font-size: 26px;
    }
}

/* Dark theme styles */
@media (prefers-color-scheme: dark) {
    .cart-table-container,
    .cart-summary,
    .empty-cart {
        background: #112240;
    }

    .shop-table th {
        color: #e6f1ff;
        border-bottom-color: #1a365d;
    }

    .shop-table td {
        border-bottom-color: #1a365d;
    }

    .product-name a {
        color: #e6f1ff;
    }

    .product-name a:hover {
        color: #3498db;
    }

    .cart-summary h3 {
        color: #e6f1ff;
        border-bottom-color: #1a365d;
    }

    .summary-item {
        color: #a8b2d1;
    }

    .summary-total {
        color: #e6f1ff;
        border-top-color: #1a365d;
    }

    .free-shipping-message {
        background: #0a1930;
        color: #2ecc71;
    }

    .empty-cart {
        color: #e6f1ff;
    }

    .empty-cart h3 {
        color: #e6f1ff;
    }

    .empty-cart p {
        color: #a8b2d1;
    }
}
