:root{
    --primary-color: #E0281B;
    --primary-hover-color: #e04338;
    --secondary-color: #231E20;
    --secondary-hover-color: #2c2729;
}

.woo-product-show-widget-one {
    margin: 20px 0;
}

/* Desktop: 6 products per row */
.woo-product-show-widget-one .products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.woo-product-show-widget-one .product-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.woo-product-show-widget-one .product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woo-product-show-widget-one .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woo-product-show-widget-one .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woo-product-show-widget-one .product-info {
    padding: 15px;
}

.woo-product-show-widget-one .product-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.woo-product-show-widget-one .product-title a {
    color: #333;
    text-decoration: none;
}

.woo-product-show-widget-one .product-title a:hover {
    color: #0073aa;
}

.woo-product-show-widget-one .product-price {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
}

.woo-product-show-widget-one .product-rating {
    margin: 8px 0;
    font-size: 13px;
}

.woo-product-show-widget-one .product-actions {
    display: flex;
    gap: 54px;
    margin-top: 12px;
}

.woo-product-show-widget-one .add-to-cart-btn-one,
.woo-product-show-widget-one .quick-buy-btn-one {
    flex: 1;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.woo-product-show-widget-one .add-to-cart-btn-one {
    background-color: var(--secondary-color);
    color: #fff;
}

.woo-product-show-widget-one .add-to-cart-btn-one:hover {
    background-color: var(--secondary-hover-color);
}

.woo-product-show-widget-one .add-to-cart-btn-one:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.woo-product-show-widget-one .add-to-cart-btn-one.added {
    background-color: #2ecc71;
}

.woo-product-show-widget-one .quick-buy-btn-one {
    background-color: var(--primary-color);
    color: #fff;
}

.woo-product-show-widget-one .quick-buy-btn-one:hover {
    background-color: var(--primary-hover-color);
}

.woo-product-show-widget-one .quick-buy-btn-one:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.woo-product-show-widget-one .quick-buy-btn-one.active {
    background-color: var(--primary-hover-color);
    color: #fff;
    cursor: not-allowed;
}

/* Tablet: 4 products per row */
@media (max-width: 1200px) {
    .woo-product-show-widget-one .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* Tablet (iPad): 3 products per row */
@media (max-width: 992px) {
    .woo-product-show-widget-one .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Small Tablet: 2 products per row */
@media (max-width: 768px) {
    .woo-product-show-widget-one .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .woo-product-show-widget-one .product-image {
        height: 180px;
    }
    
    .woo-product-show-widget-one .product-info {
        padding: 12px;
    }
    
    .woo-product-show-widget-one .product-title {
        font-size: 13px;
    }
}

/* Mobile (Android): 2 products per row */
@media (max-width: 480px) {
    .woo-product-show-widget-one .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .woo-product-show-widget-one .product-image {
        height: 140px;
    }
    
    .woo-product-show-widget-one .product-info {
        padding: 10px;
    }
    
    .woo-product-show-widget-one .product-title {
        font-size: 12px;
        margin: 0 0 5px 0;
    }
    
    .woo-product-show-widget-one .product-price {
        font-size: 13px;
        margin: 5px 0;
    }
    
    .woo-product-show-widget-one .product-rating {
        font-size: 11px;
        margin: 5px 0;
    }
    
    .woo-product-show-widget-one .add-to-cart-btn-one,
    .woo-product-show-widget-one .quick-buy-btn-one {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .woo-product-show-widget-one .product-actions {
        gap: 8px;
        margin-top: 8px;
    }
}

/* Cart Sidebar Styles */
.woo-cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
}

.woo-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woo-cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.cart-sidebar-close:hover {
    color: #1f2937;
    background-color: #e5e7eb;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-sidebar-empty p {
    margin: 0;
    font-size: 16px;
}

.cart-sidebar-items {
    padding: 0;
}

.cart-quick-checkout-form {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background-color: #fafbfc;
}

.quick-checkout-heading {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quick-checkout-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.quick-checkout-label span {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-weight: 600;
}

.quick-checkout-label input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.25s ease;
}

.quick-checkout-label input:focus,
.quick-checkout-label textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.quick-checkout-label textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.25s ease;
    resize: vertical;
}

.quick-checkout-address-toggle {
    margin: 16px 0 8px;
}

.quick-checkout-address-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
}

.quick-checkout-address-toggle-btn .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.quick-checkout-address-details {
    margin-top: 12px;
}

.quick-checkout-field-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 640px) {
    .quick-checkout-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cart-quick-checkout-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.cart-quick-checkout-actions .button {
    flex: 1;
    padding: 11px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-quick-checkout-actions .submit-quick-checkout-btn {
    background-color: #0073aa;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.cart-quick-checkout-actions .submit-quick-checkout-btn:hover:not(:disabled) {
    background-color: #005a87;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
    transform: translateY(-1px);
}

.cart-quick-checkout-actions .submit-quick-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cart-quick-checkout-actions .cancel-quick-checkout-btn {
    background-color: #e5e7eb;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cart-quick-checkout-actions .cancel-quick-checkout-btn:hover {
    background-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.cart-sidebar-message {
    display: none;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fbf7 0%, #e6f7ee 100%);
    border: 1px solid #c7eed6;
    color: #0f5132;
}

.cart-success-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0f5132;
}

.cart-success-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

.cart-success-close-btn {
    padding: 10px 14px;
    background-color: #0f5132;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-success-close-btn:hover {
    background-color: #0b3f28;
}

.cart-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-sidebar-item:hover {
    background-color: #f8f9fa;
}

/* Product thumbnail in cart item summary */
.cart-item-image-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.cart-item-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

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

.cart-item-title a:hover {
    color: #0073aa;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.quantity-minus,
.quantity-plus {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-minus:hover,
.quantity-plus:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 50px;
    height: 25px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 12px;
}

.cart-item-subtotal {
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
}

.cart-item-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: unset;
}

.cart-item-remove:hover {
    color: #ff6b6b;
}

.cart-sidebar-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background-color: #f8f9fa;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.total-label {
    color: #333;
}

.total-amount {
    color: #0073aa;
}

.cart-sidebar-buttons {
    display: flex;
    gap: 10px;
}

.view-cart-btn,
.checkout-btn {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-cart-btn {
    background-color: #0073aa;
    color: #fff;
}

.view-cart-btn:hover {
    background-color: #005a87;
}

.checkout-btn {
    background-color: #ff6b6b;
    color: #fff;
}

.checkout-btn:hover {
    background-color: #ee5a52;
}

/* Cart Toggle Button */
.cart-toggle-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99997;
    transition: all 0.3s ease;
}

.cart-toggle-btn:hover {
    background-color: #005a87;
    transform: translateY(-50%) scale(1.05);
}

.cart-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.cart-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #ff6b6b;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

/* Body class for when sidebar is open */
body.cart-sidebar-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    .woo-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-toggle-btn {
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    .cart-count {
        font-size: 11px;
        padding: 1px 5px;
        min-width: 16px;
    }
}

/* Cart Sidebar Styles */
.woo-cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
}

.woo-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woo-cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: unset;
}

.cart-sidebar-close:hover {
    color: #333;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-sidebar-empty p {
    margin: 0;
    font-size: 16px;
}

.cart-sidebar-items {
    padding: 0;
}

.cart-sidebar-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-sidebar-item:hover {
    background-color: #f8f9fa;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

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

.cart-item-title a:hover {
    color: #0073aa;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.quantity-minus,
.quantity-plus {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-minus:hover,
.quantity-plus:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 50px;
    height: 25px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 12px;
}

.cart-item-subtotal {
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: #ff6b6b;
}

.cart-sidebar-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background-color: #f8f9fa;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.total-label {
    color: #333;
}

.total-amount {
    color: #0073aa;
}

.cart-sidebar-buttons {
    display: flex;
    gap: 10px;
}

.view-cart-btn,
.checkout-btn {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-cart-btn {
    background-color: #0073aa;
    color: #fff;
}

.view-cart-btn:hover {
    background-color: #005a87;
}

.checkout-btn {
    background-color: #ff6b6b;
    color: #fff;
}

.checkout-btn:hover {
    background-color: #ee5a52;
}

/* Cart Toggle Button */
.cart-toggle-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99997;
    transition: all 0.3s ease;
}

.cart-toggle-btn:hover {
    background-color: #005a87;
    transform: translateY(-50%) scale(1.05);
}

.cart-icon {
    font-size: 28px;
    margin-bottom: 0px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #ff6b6b;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

/* Body class for when sidebar is open */
body.cart-sidebar-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    .woo-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-toggle-btn {
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    .cart-count {
        font-size: 11px;
        padding: 1px 5px;
        min-width: 16px;
    }
}

/* Compact cart item display */
.cart-item-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
 
    flex: 1;
}

.cart-item-summary-qty {
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.cart-item-summary-name {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.cart-item-summary-name:hover {
    color: #0073aa;
}

.cart-item-add-increcse-decrease {
    display: flex;
    gap: 4px;
}

.cart-item-add-more,
.cart-item-remove-more,
.cart-item-details-toggle {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 11px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-add-more:hover,
.cart-item-remove-more:hover,
.cart-item-details-toggle:hover {
    background: #f5f5f5;
}

.cart-item-more-details {
    display: none;
    gap: 15px;
    margin-top: 10px;
    align-items: flex-start;
}

.cart-sidebar-item.expanded .cart-item-more-details {
    display: flex;
}

.cart-item-info {
    flex: 1;
    min-width: 180px;
}
.cart-success-message{
    text-align-last: center;
    padding: 24px 16px;
    background: #e2fcff;
}

@media (max-width: 480px) {
    .cart-item-summary {
        flex-wrap: wrap;
    }

    .cart-item-summary-name {
        width: 100%;
    }

    .cart-item-add-more,
    .cart-item-remove-more,
    .cart-item-details-toggle {
        flex: 1;
        width: auto;
    }

    .cart-item-image-thumb {
        width: 45px;
        height: 45px;
    }

    .cart-sidebar-item {
        padding: 10px 12px;
        gap: 10px;
    }
}
