:root {
    --main-color: #ad3c1c;
    --main-color-light: #c54a2a;
    --main-color-dark: #8b2f15;
}

/* Apply main color to key elements */
.header-cart a,
.favorites-toggle {
    color: var(--main-color) !important;
}

.header-cart a:hover,
.favorites-toggle:hover {
    color: var(--main-color-dark) !important;
}

/* Cart and favorites counters */
.header-cart span,
.favorites-toggle span {
    background-color: var(--main-color) !important;
    color: white !important;
}

/* Main menu links */
.main-menu ul li a {
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.main-menu ul li a:hover {
    color: var(--main-color) !important;
}

/* Search button with main color */
.header-search button {
    color: var(--main-color) !important;
}

.header-search button:hover {
    color: var(--main-color-dark) !important;
}

/* Product cards */
.product-item {
    background: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.product-item:hover {
    box-shadow: 0 8px 25px rgba(173, 60, 28, 0.15) !important;
    border-color: var(--main-color) !important;
}

.product-item:hover .product-img img {
    transform: scale(1.05) !important;
}

.product-item .product-img a {
    color: var(--main-color) !important;
    transition: color 0.3s ease !important;
}

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

.product-item .product-content h4 a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.product-item .product-content h4 a:hover {
    color: var(--main-color) !important;
}

.product-price {
    color: var(--main-color) !important;
    font-weight: bold !important;
}

/* Product cart icon - white color */
.product-cart-icon {
    color: white !important;
    background: var(--main-color) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.product-cart-icon:hover {
    background: var(--main-color-dark) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

.product-cart-icon i {
    color: white !important;
    font-size: 20px !important;
}

/* Section titles */
.section-title h2 {
    color: var(--main-color) !important;
}

/* Form controls */
.form-control:focus {
    border-color: var(--main-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(173, 60, 28, 0.25) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--main-color) !important;
    border-color: #dee2e6 !important;
}

.pagination .page-link:hover {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: white !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

/* Footer links */
.footer-content a {
    color: var(--main-color) !important;
    transition: color 0.3s ease !important;
}

.footer-content a:hover {
    color: var(--main-color-dark) !important;
}

/* Social links */
.social-links a {
    color: var(--main-color) !important;
    transition: all 0.3s ease !important;
}

.social-links a:hover {
    color: var(--main-color-dark) !important;
    transform: scale(1.1) !important;
}

/* Breadcrumb */
.breadcrumb a {
    color: var(--main-color) !important;
    text-decoration: none !important;
}

.breadcrumb a:hover {
    color: var(--main-color-dark) !important;
}

/* Alerts */
.alert-primary {
    background-color: rgba(173, 60, 28, 0.1) !important;
    border-color: var(--main-color) !important;
    color: var(--main-color-dark) !important;
}

/* Badges */
.badge-primary {
    background-color: var(--main-color) !important;
}

/* Table headers */
.table thead th {
    background-color: var(--main-color) !important;
    color: white !important;
}

/* Progress bars */
.progress-bar {
    background-color: var(--main-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.btn-primary:hover {
    background-color: var(--main-color-dark) !important;
    border-color: var(--main-color-dark) !important;
}

.btn-main {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: white !important;
}

.btn-main:hover {
    background-color: var(--main-color-dark) !important;
    border-color: var(--main-color-dark) !important;
}

/* Links */
a {
    color: var(--main-color) !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: var(--main-color-dark) !important;
}

/* Product Image Slider Styles */
.product-image-slider {
    position: relative;
    overflow: hidden;
}

.slider-item {
    display: none;
    position: relative;
}

.slider-item.active {
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-img:hover .slider-nav {
    opacity: 1;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.slider-prev i,
.slider-next i {
    font-size: 12px;
    color: #333;
}

/* Hero Slider Overlay Styles */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.nivo-html-caption {
    z-index: 10;
    position: relative;
}

.hero-slider-content h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Ensure slider container maintains overlay and is full width */
#home-slider {
    position: relative !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.home-slider-section {
    width: 100%;
    overflow: hidden !important;
}

/* Create overlay using pseudo-element on slider container */
#home-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    pointer-events: none;
}

/* Ensure Nivo slider elements work properly */
.nivo-main-image {
    z-index: 1;
}

.nivo-directionNav {
    z-index: 20;
}

/* Hide navigation arrows */
.nivo-directionNav {
    display: none !important;
}

.hero-slider-content p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-slider-content a {
    color: white !important;
    border: 2px solid white !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-slider-content a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Product Details Page Images */
.pro-large-img img {
    border-radius: 12px !important;
    transition: transform 0.3s ease !important;
}

.pro-large-img:hover img {
    transform: scale(1.02) !important;
}

.pro-thumb-img-slider img {
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.pro-thumb-img-slider a:hover img {
    border: 2px solid var(--main-color) !important;
}

/* Related Products Section Spacing */
.product-section.section {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.product-section .container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.product-slider.product-slider-4 {
    margin: 0 -20px !important;
}

.product-slider.product-slider-4 .isotope-item {
    padding: 0 20px !important;
    margin-bottom: 30px !important;
}

/* Target the product component directly */
.product-slider .product-item {
    margin-bottom: 30px !important;
}

/* Mobile Responsive Layout for Product Details */
@media (max-width: 768px) {
    .page-section {
        padding: 25px 0 !important;
    }

    .page-section .container {
        padding: 0 15px !important;
    }

    .page-section .row {
        flex-direction: column !important;
        margin: 0 !important;
    }

    .page-section .col-md-5,
    .page-section .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 30px !important;
        padding: 0 !important;
    }

    .pro-large-img {
        width: 100% !important;
        text-align: center !important;
    }

    .pro-large-img img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .pro-thumb-img-slider {
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .pro-thumb-img-slider > div {
        margin: 0 !important;
    }

    .pro-thumb-img-slider a {
        display: block !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .pro-thumb-img-slider a img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    .product-details {
        padding: 20px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .product-details .title {
        font-size: 24px !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .price-ratting {
        text-align: center !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .price-ratting .new {
        font-size: 22px !important;
        display: block !important;
        text-align: center !important;
    }

    .product-size {
        text-align: center !important;
        width: 100% !important;
        margin: 15px 0 !important;
        display: block !important;
        padding: 0 !important;
    }

    .product-size button {
        margin: 3px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        display: inline-block !important;
        text-align: center !important;
        white-space: nowrap !important;
        min-width: 40px !important;
        vertical-align: top !important;
        width: 100% !important;
    }

    .product-size h5 {
        text-align: center !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .product-size button {
        margin: 5px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        display: inline-block !important;
    }

    .quantity-cart {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .product-quantity {
        order: 1 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .add-to-cart {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 20px !important;
        text-align: center !important;
    }

    .usefull-link {
        text-align: center !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .usefull-link li {
        display: inline-block !important;
        margin: 0 10px !important;
    }

    .share-icons {
        text-align: center !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .share-icons a {
        margin: 0 10px !important;
        display: inline-block !important;
    }

    /* Product Info Tabs Mobile */
    .pro-info-tab-list {
        text-align: center !important;
        width: 100% !important;
    }

    .pro-info-tab-list li {
        display: inline-block !important;
        margin: 0 10px !important;
    }

    .pro-info-tab-list a {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .pro-info-tab {
        text-align: center !important;
        width: 100% !important;
        padding: 20px 0 !important;
    }

    .table-data-sheet {
        width: 100% !important;
        text-align: center !important;
    }

    .table-data-sheet td {
        padding: 10px !important;
        text-align: center !important;
    }
    .pd-sub-title::before {
        background-color: #9d9d9d;
        height: 0px;
    }
}

/* Enhanced Size Selection */
.product-size {
    margin: 25px 0 !important;
}

.product-size button {
    border: 2px solid #e8e8e8 !important;
    background: white !important;
    color: #333 !important;
    padding: 12px 20px !important;
    margin: 8px 12px 8px 0 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    min-width: 60px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 44px !important;
}

.product-size button:hover::before {
    left: 100%;
}

.product-size button:hover {
    border-color: var(--main-color) !important;
    background: var(--main-color-light) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(173, 60, 28, 0.3) !important;
}

.product-size button.active {
    border-color: var(--main-color) !important;
    background: var(--main-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(173, 60, 28, 0.4) !important;
}

.product-size button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(173, 60, 28, 0.2) !important;
}

/* Enhanced Quantity Selector */
.quantity-cart {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    margin: 35px 0 !important;
    flex-wrap: wrap !important;
}

.product-quantity {
    display: flex !important;
    align-items: center !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-quantity:hover::before {
    transform: translateX(100%);
}

.qty-btn {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-dark) 100%
    ) !important;
    color: white !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 2px !important;
    box-shadow: 0 3px 10px rgba(173, 60, 28, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.qty-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.qty-btn:hover::before {
    width: 100%;
    height: 100%;
}

.qty-btn:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    ) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(173, 60, 28, 0.4) !important;
}

.qty-btn:active {
    transform: scale(0.95) !important;
}

.qty-btn:disabled {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.product-quantity input {
    border: none !important;
    width: 50px !important;
    height: 32px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: transparent !important;
    color: #333 !important;
    outline: none !important;
    margin: 0 8px !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

.product-quantity input:focus {
    background: rgba(173, 60, 28, 0.1) !important;
    color: var(--main-color) !important;
}

.add-to-cart {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-dark) 100%
    ) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    height: 44px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(173, 60, 28, 0.3) !important;
    position: flex !important;
    overflow: hidden !important;
    justify-content: center !important;
    align-items: center !important;
}

.add-to-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: left 0.5s ease;
}

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

.add-to-cart:hover {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    ) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(173, 60, 28, 0.4) !important;
}

.add-to-cart:active {
    transform: translateY(-1px) !important;
}

/* Contact Page Styles */
.contact-map-container {
    height: 400px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px solid #e0e0e0;
}

.contact-form h3 {
    color: var(--main-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(173, 60, 28, 0.1);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #dc3545;
}

.contact-form input[type="submit"] {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input[type="submit"]:hover {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(173, 60, 28, 0.3);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.contact-info {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

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

.contact-info a:hover {
    color: var(--main-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--main-color);
    font-size: 18px;
}

.contact-info p {
    color: #333;
    margin: 0;
    font-weight: 500;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--main-color);
    font-size: 18px;
}

/* Page Banner Styles */
.page-banner-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.page-banner-content h1 {
    color: var(--main-color);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumb li {
    color: #666;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #999;
}

.breadcrumb li.active {
    color: var(--main-color);
    font-weight: 600;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--main-color);
}

/* Checkout Page Styles */
.checkout-form h3 {
    color: var(--main-color);
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(173, 60, 28, 0.1);
}

.checkout-form input.error,
.checkout-form select.error,
.checkout-form textarea.error {
    border-color: #dc3545;
}

.checkout-form input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.order-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    color: var(--main-color);
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.item-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.item-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.item-total {
    font-weight: 600;
    color: var(--main-color);
}

.order-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.total-row.total-final {
    border-top: 2px solid var(--main-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 16px;
}

.cart-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cart-table th,
.cart-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.cart-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

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

/* Responsive column widths for cart table */
.cart-table .pro-thumbnail {
    width: 80px;
    text-align: center;
}

.cart-table .pro-title {
    min-width: 200px;
    max-width: 300px;
}

.cart-table .pro-price {
    width: 120px;
    text-align: right;
}

.cart-table .pro-quantity {
    width: 100px;
    text-align: center;
}

.cart-table .pro-subtotal {
    width: 120px;
    text-align: right;
}

.cart-table .pro-remove {
    width: 60px;
    text-align: center;
}

/* Mobile responsiveness for cart table */
@media (max-width: 768px) {
    .cart-table {
        font-size: 14px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 8px;
    }

    .cart-table .pro-title {
        min-width: 150px;
        max-width: 200px;
    }

    .cart-table .pro-price,
    .cart-table .pro-subtotal {
        width: 100px;
    }

    .cart-table .pro-quantity {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .cart-table table {
        min-width: 500px;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 5px;
        font-size: 12px;
    }

    .cart-table .pro-title {
        min-width: 120px;
        max-width: 150px;
    }

    .cart-table .pro-thumbnail {
        width: 60px;
    }

    .cart-table .pro-price,
    .cart-table .pro-subtotal {
        width: 80px;
    }

    .cart-table .pro-quantity {
        width: 70px;
    }

    .cart-table .pro-remove {
        width: 40px;
    }
}

.cart-table .pro-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-table .pro-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cart-table .pro-title a:hover {
    color: var(--main-color);
}

.cart-table .pro-price .amount {
    font-weight: 600;
    color: var(--main-color);
}

.cart-table .product-quantity input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-table .pro-subtotal {
    font-weight: 600;
    color: var(--main-color);
}

.cart-table .pro-remove a {
    color: #dc3545;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.cart-table .pro-remove a:hover {
    color: #a71e2c;
}

.proceed-to-checkout button {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.proceed-to-checkout button:hover {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(173, 60, 28, 0.3);
}

.proceed-to-checkout button:active {
    transform: translateY(0);
}

/* Modern Card Layout Styles */

/* Wishlist Card Styles */
.wishlist-item-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.wishlist-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.wishlist-item-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.wishlist-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item-image:hover img {
    transform: scale(1.05);
}

.wishlist-item-info {
    flex: 1;
    min-width: 0;
}

.wishlist-item-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wishlist-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wishlist-item-title a:hover {
    color: var(--main-color);
}

.wishlist-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 8px;
}

.wishlist-item-stock {
    margin-bottom: 0;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.out-stock {
    background: #f8d7da;
    color: #721c24;
}

.wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.btn-add-to-cart {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-add-to-cart:hover {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    );
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(173, 60, 28, 0.3);
    color: white;
}

.btn-add-to-cart.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-remove {
    color: var(--main-color-dark);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-remove:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Empty State */
.wishlist-empty,
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wishlist-empty-content,
.cart-empty-content {
    max-width: 400px;
    margin: 0 auto;
}

.wishlist-empty i,
.cart-empty i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
    display: block;
}

.wishlist-empty h3,
.cart-empty h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.wishlist-empty p,
.cart-empty p {
    color: #999;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.btn-continue-shopping {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-continue-shopping:hover {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 60, 28, 0.3);
    color: white;
}

/* Cart Card Styles */
.cart-item-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cart-item-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    min-height: 120px;
}

.cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-image:hover img {
    transform: scale(1.05);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cart-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-title a:hover {
    color: var(--main-color);
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
}

.cart-item-options {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

.option-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--main-color);
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 140px;
    flex-shrink: 0;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100px;
    justify-content: center;
}

.cart-item-quantity label {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

.qty-btn:hover:not(:disabled) {
    background: var(--main-color);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 70px;
    height: 44px;
    border: none;
    text-align: center;
    font-weight: 700;
    color: #333;
    background: white;
    font-size: 16px;
}

.qty-input:focus {
    outline: none;
    background: #f8f9fa;
}

/* Simple Quantity Input */
.qty-input-simple {
    width: 90px;
    height: 48px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.qty-input-simple::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s;
}

.qty-input-simple:focus {
    outline: none;
    border-color: var(--main-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    box-shadow: 0 6px 20px rgba(173, 60, 28, 0.25);
    transform: translateY(-1px);
}

.qty-input-simple:focus::before {
    left: 100%;
}

.qty-input-simple:hover {
    border-color: var(--main-color-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.qty-input-simple:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Text input specific styles */
.qty-input-simple[type="text"] {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

.qty-input-simple[type="text"]:invalid {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #f8f9fa 100%);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.15);
}

.qty-input-simple[type="text"]:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.25);
}

/* Input validation styles */
.qty-input-simple:not(:placeholder-shown):invalid {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #f8f9fa 100%);
}

.qty-input-simple:not(:placeholder-shown):valid {
    border-color: var(--main-color);
    background: linear-gradient(
        135deg,
        rgba(173, 60, 28, 0.05) 0%,
        #f8f9fa 100%
    );
}

.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 140px;
    flex-shrink: 0;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100px;
    justify-content: center;
}

.subtotal-label {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtotal-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-color);
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.cart-item-remove {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

/* Desktop layout - single row with all elements */
@media (min-width: 769px) {
    .cart-item-content {
        display: flex;
        align-items: center;
        padding: 20px;
        gap: 20px;
        min-height: 120px;
    }

    .cart-item-top {
        display: contents; /* Makes children participate in parent's flex layout */
    }

    .cart-item-bottom {
        display: contents; /* Makes children participate in parent's flex layout */
    }

    .cart-item-image {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
    }

    .cart-item-info {
        flex: 1;
        min-width: 0;
    }

    .cart-item-quantity {
        width: 140px;
        height: 100px;
        flex-shrink: 0;
    }

    .cart-item-subtotal {
        width: 140px;
        height: 100px;
        flex-shrink: 0;
    }

    .cart-item-remove {
        width: 60px;
        flex-shrink: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Mobile layout: top section with image and info, bottom section with controls */
    .cart-item-card {
        position: relative;
    }

    .cart-item-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .cart-item-top {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .cart-item-bottom {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .cart-item-info {
        flex: 1;
        text-align: left;
    }

    .cart-item-quantity {
        flex: 1;
        width: 50%;
        height: 80px;
        margin: 0;
        border-radius: 0;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .cart-item-subtotal {
        flex: 1;
        width: 50%;
        height: 80px;
        margin: 0;
        border-radius: 0;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .cart-item-remove {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: transparent;
        color: #dc3545;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        z-index: 10;
        border: none;
        box-shadow: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .cart-item-remove:hover {
        background: rgba(220, 53, 69, 0.1);
        color: #c82333;
        transform: scale(1.1);
    }

    .cart-item-remove:active {
        transform: scale(0.95);
    }

    .cart-item-remove i {
        display: block;
        font-size: 14px;
        font-weight: 600;
    }

    .cart-item-remove::after {
        display: none;
    }

    /* Wishlist items keep original mobile layout */
    .wishlist-item-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .wishlist-item-image {
        width: 80px;
        height: 80px;
    }

    .wishlist-item-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wishlist-item-card,
    .cart-item-card {
        margin-bottom: 15px;
    }

    .wishlist-item-content,
    .cart-item-content {
        padding: 10px;
    }

    .wishlist-item-image,
    .cart-item-image {
        width: 60px;
        height: auto;
    }

    .wishlist-item-title,
    .cart-item-title {
        font-size: 16px;
    }

    .wishlist-item-price,
    .cart-item-price {
        font-size: 16px;
    }

    .subtotal-amount {
        font-size: 16px;
    }

    .cart-item-quantity {
        width: 50%;
        height: 70px;
        padding: 4px;
        margin: 0;
        border-radius: 0;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .cart-item-subtotal {
        width: 50%;
        height: 70px;
        padding: 4px;
        margin: 0;
        border-radius: 0;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .qty-input-simple {
        width: 70px;
        height: 38px;
        font-size: 14px;
    }

    .cart-item-remove {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        background: transparent;
        color: #dc3545;
        border: none;
        box-shadow: none;
    }

    .cart-item-remove i {
        font-size: 12px;
    }

    .cart-item-remove::after {
        display: none;
    }
}

/* Mobile container adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .page-section {
        padding-left: 0;
        padding-right: 0;
    }

    .cart-item-card {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .cart-item-content {
        padding: 10px;
    }

    .cart-item-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }
}

.wishlist-table .pro-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.wishlist-table .pro-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wishlist-table .pro-title a:hover {
    color: var(--main-color);
}

.wishlist-table .pro-price .amount {
    font-weight: 600;
    color: var(--main-color);
    font-size: 16px;
}

.wishlist-table .pro-remove a {
    color: #dc3545;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    background: #f8f9fa;
}

.wishlist-table .pro-remove a:hover {
    color: #a71e2c;
    background: #e9ecef;
}

.wishlist-table .pro-stock-status .in-stock {
    color: #28a745;
    font-weight: 500;
    font-size: 14px;
}

.wishlist-table .pro-stock-status .out-stock {
    color: #dc3545;
    font-weight: 500;
    font-size: 14px;
}

.wishlist-table .pro-add-to-cart .add-to-cart {
    background: linear-gradient(
        135deg,
        var(--main-color) 0%,
        var(--main-color-light) 100%
    );
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.wishlist-table .pro-add-to-cart .add-to-cart:hover {
    background: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 100%
    );
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(173, 60, 28, 0.3);
    color: white;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bee5eb;
}
