:root {
    --primary-color: #1e88e5;
    --secondary-color: #0d47a1;
    --accent-color: #ff9800;
    --light-color: #e3f2fd;
    --dark-color: #0a3d62;
    --white-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
}

/* General Styles */
body {
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
    position: relative;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Slider Customization */
.hero-slider .carousel-item {
    height: 500px;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.hero-slider .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    left: 50px;
    right: auto;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 400px;
    }
    
    .hero-slider .carousel-caption {
        width: 80%;
        left: 10%;
    }
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease;
    overflow: hidden;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* Stock Items */
.stock-item {
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stock-item:hover {
    transform: translateY(-5px);
}

.restock-time {
    font-size: 12px;
    color: #666;
}

/* Delivery Slot Selector */
.slot-container {
    background: white;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slot-option {
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-option:hover {
    background-color: var(--light-color);
}

.slot-option.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Bulk Order Section */
.bulk-order {
    background-color: var(--dark-color);
    position: relative;
}

.bulk-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/api/placeholder/1200/400');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-widget button {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* product details */

.cut-preview-container {
    position: relative;
    background: var(--gray-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.cut-preview {
    position: relative;
    height: 300px;
    cursor: crosshair;
}

.cut-selection {
    position: absolute;
    top: 0;
    background-color: var(--primary-color);
    opacity: 0.3;
    height: 100%;
    pointer-events: none;
}

.cut-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--accent-color);
    pointer-events: none;
}

.product-image-details {
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-image-cart {
    max-height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.custom-control-label {
    cursor: pointer;
}

/* Update the cut-preview styles */
.cut-preview-container {
    position: relative;
    background: var(--gray-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.cut-preview {
    position: relative;
    height: 300px;
    cursor: default;
}

.cut-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cut-selection {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100%;
    background-color: rgba(30, 136, 229, 0.3);
    pointer-events: none;
    transition: width 0.1s ease;
}

.drag-handle {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    cursor: ew-resize;
    pointer-events: auto;
}

.drag-handle.left {
    left: 0;
}

.drag-handle.right {
    right: 0;
}

.drag-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drag-handle:hover::after {
    opacity: 0.3;
}

.cut-weight {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Add styles for active dragging state */
.cut-preview.dragging {
    cursor: ew-resize;
}

.cut-preview.dragging .cut-selection {
    transition: none;
}

/* cart */

.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-summary {
    position: sticky;
    top: 20px;
}

.quantity-input {
    width: 60px;
    text-align: center;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}