.wc-product-slider-container {
    position: relative;
    margin: 20px 0;
}

.wc-product-slider {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wc-product-item {
    border: 1px solid #ddd;
    margin: 10px;
    padding: 10px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: auto;
    position: relative;
    overflow: hidden;
}

.wc-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.wc-product-image {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.wc-product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.wc-sale-badge,
.wc-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.wc-featured-badge {
    background: #28a745;
    top: 40px;
}

.wc-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: #333;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wc-product-price {
    font-weight: bold;
    color: #2c5aa0;
    margin: 15px 0;
    font-size: 18px;
}

.wc-product-excerpt {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wc-product-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wc-view-product,
.wc-enquiry-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.wc-view-product,
.wc-view-product:visited {
    background: #0073aa;
    color: white;
}

.wc-enquiry-btn {
    background: #28a745;
    color: white;
}

.wc-view-product:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.wc-enquiry-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Owl Carousel Custom Styles */
.owl-nav {
    margin-top: 20px;
}

.owl-nav button {
    background: #333 !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    margin: 0 5px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.owl-nav button:hover {
    background: #555 !important;
    transform: translateY(-2px) !important;
}

.owl-nav button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.owl-dots .owl-dot.active span,
.owl-dots .owl-dot:hover span {
    background: #333;
    transform: scale(1.2);
}

/* Modal Centering - Fix for vertical centering */
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-dialog-centered {
    margin: 1.75rem auto;
}

.modal-lg {
    max-width: 600px;
    width: 90%;
}

/* Modal Border Radius */
.modal-content {
    border-radius: 8px;
}

/* Modal Header Styling */
.modal-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
    min-height: auto;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Product Details in Header */
.product-details-header {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.product-details-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-details-header p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.product-details-header strong {
    color: #333;
    font-weight: 600;
}

.modal-header .btn-close {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Additional Material Design Enhancements */
.shadow-5 {
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
        0 6px 30px 5px rgba(0, 0, 0, 0.12),
        0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

.ripple-surface {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ripple-surface:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Modal Buttons */
.modal-footer .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

.modal-footer .btn-primary {
    background-color: #0d537c;
    border-color: #0d537c;
    color: #fff;
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus,
.modal-footer .btn-primary:active {
    background-color: #0a4163;
    border-color: #0a4163;
    color: #fff;
}

.modal-footer .btn-outline-secondary:hover {
    background-color: #0d537c;
    border-color: #0d537c;
    color: #fff;
}

/* Enhanced button styles */
.btn-primary.ripple-surface,
.btn-primary:not(:disabled):not(.disabled) {
    box-shadow: 0 2px 5px rgba(13, 83, 124, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(13, 83, 124, 0.4);
}

/* Homepage Modal Specific Styles */
.homepage-modal .btn-close {
    width: 0.8em;
    height: 0.8em;
    padding: 0;
    font-size: 1rem;
    opacity: 0.7;
}

.homepage-modal .btn-close:hover {
    opacity: 1;
}

.homepage-modal .modal-header {
    background-color: #fff;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.homepage-modal .modal-footer {
    background-color: #fff;
    border-top: none;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}



/* Form message styles for Bootstrap alerts */
.wc-form-message.alert {
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

/* Spinner Animation Styles */
.fa-spin {
    -webkit-animation: fa-spin 1s infinite linear;
    animation: fa-spin 1s infinite linear;
    display: inline-block;
}

@-webkit-keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Spinner in modal buttons */
.modal-footer button .fa-spin,
.modal-footer button .fa-circle-notch {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Ensure spinner remains circular */
.fa-circle-notch {
    border-radius: 50%;
}

.wc-no-products {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-product-item {
        padding: 15px;
    }

    .wc-product-title {
        font-size: 16px;
        height: auto;
    }

    .wc-product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wc-product-image img {
        height: 300px;
    }

    .wc-product-title {
        font-size: 14px;
    }

    .wc-product-price {
        font-size: 16px;
    }

    /* Mobile Modal Footer Buttons */
    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}