
.container2 {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    overflow: hidden;
}

/* Slider Styles */
.slider {
    float: left;
    width: 50%;
    padding: 15px;
}

.slider-slide {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product Details Styles */
.product-details {
    float: right;
    width: 100%;
    padding: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;

}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.share-icon:hover {
    color: var(--hover-color);
}

.product2 {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    margin: auto;
    justify-content: center;
}

.delivery-option {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 4px;
    background: var(--background-gray);
}

.delivery-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Buttons */
.add_cart_buy_button_container1 {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: left;
    width: 100%;
}


/* Product Specifications */
.product-specifications {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.product-specifications table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-specifications th,
.product-specifications td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.product-specifications th {
    background-color: var(--background-gray);
    font-weight: bold;
}

.product-specifications tr:nth-child(even) {
    background-color: var(--background-gray);
}

/* Product Description */
.product-description {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 17px;
}
@media screen and (min-width: 1000px) {
    .delivery-options {
        display: flex;
    }

}



/* Mobile Responsiveness */
@media screen and (max-width: 700px) {
    .slider,
    .product-details {
        float: none;
        width: 100%;
    }

    .product2 {
        justify-content: center;
    }

    .product-details {
        text-align: center;
    }

    .add_cart_buy_button_container1 {
        flex-direction: column;
        align-items: center;
    }

    .cir_button {
        width: 100%;
        max-width: 300px;
    }

    .delivery-option {
        text-align: center;
        width: 100%;
    }

    .delivery-label {
        flex-direction: column;
        gap: 8px;
    }

    .product-name {
        justify-content: center;
        flex-wrap: wrap;
        display: flow;
    }

    .share-icon {
        margin: 10px 0;
    }
}

/* Cart Message Animation */
.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.product-actions {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.delivery-option {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.delivery-option:hover{
    border: 1px solid #e19200;
}

.delivery-type {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.price-display {
    color: #cf5708;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

.delivery-time {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.dark-theme .delivery-time{
    color: white;
}

.dark-theme .delivery-type{
    color: white;
}

/* Button Styles */
.button-container {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.action-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Quick Cart Button */
.quick-cart-btn {
    background-color: #cf5708;
    color: #ffff;
    background-image: url("https://stufin.in/V/style/img/cir.png");
    background-size: inherit; 
    background-blend-mode: color-burn; 
    border-width: inherit;
    border-color: #cf5708;
    border: solid;
    border-width: medium;

}

.quick-cart-btn:hover {
    background: #b44c07;
    transform: translateY(-2px);
}

/* Normal Cart Button */
.normal-cart-btn {
color: #cf5708;
background: #808080;
background-image: url(https://stufin.in/V/style/img/cir.png);
background-size: inherit;
border-color: #cf5708;
border: solid;
border-width: medium;
}

.normal-cart-btn:hover {
    background: #fff3eb;
    transform: translateY(-2px);
}

/* Buy Now Button */
.buy-now-btn {
    background: #4CAF50;
    color: white;
    grid-column: 1 / -1;
}

.buy-now-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Admin Buttons */
.admin-button {
    background: #424242;
    color: white;
}

.admin-button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .delivery-options {
        grid-template-columns: 1fr;
    }

    .button-container {
        grid-template-columns: 1fr;
    }

    .action-button {
        padding: 15px 20px;
        font-size: 18px;
    }
}

/* Price Badge */
.price-badge {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Unavailable Message */
.unavailable-msg {
    color: #dc3545;
    padding: 15px;
    border: 1px solid #dc3545;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}



/* Dark theme container and general styles */
.dark-theme .container2 {
    background-color: #1a1a1a;
}

/* Product details dark styles */
.dark-theme .product-details {
    color: #e0e0e0;
}

.dark-theme .product-name {
    color: #e0e0e0;
}

.dark-theme .share-icon {
    color: #ff7b2c;
}

.dark-theme .share-icon:hover {
    color: #ff8f4c;
}

/* Delivery options dark styles */
.dark-theme .delivery-option {
    border-color: #404040;
    background: #2d2d2d;
}

.dark-theme .discount-price {
    color: #ff7b2c;
}

/* Product specifications dark styles */
.dark-theme .product-specifications table {
    background: #2d2d2d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-theme .product-specifications th,
.dark-theme .product-specifications td {
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .product-specifications th {
    background-color: #363636;
}

.dark-theme .product-specifications tr:nth-child(even) {
    background-color: #333;
}

/* Product description dark styles */
.dark-theme .product-description {
   border-color: #404040;
    color: #e0e0e0;


}

/* Cart message dark styles */
.dark-theme .cart-message {
    background-color: #2d2d2d;
    color: #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Card dark styles */
.dark-theme .card {
    background-color: #2d2d2d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.dark-theme .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
    background-color: #333;
}

/* User profile dark styles */
.dark-theme .user-profile {
    color: #e0e0e0;
}

.dark-theme .user-profile h2 {
    color: #ff7b2c;
}

.dark-theme .user-profile strong {
    color: #fff;
}

/* Button container dark styles */
.dark-theme .add_cart_buy_button_container,
.dark-theme .add_cart_buy_button_container1 {
    background-color: transparent;
}

/* Dark theme transitions */
.dark-theme .card,
.dark-theme .slider-slide,
.dark-theme .delivery-option {
    transition: all 0.3s ease;
}

/* Dark theme hover effects */
.dark-theme .delivery-option:hover {
    border-color: #ff7b2c;
}

/* Dark theme focus states */
.dark-theme .card:focus-within {
    box-shadow: 0 0 0 2px #ff7b2c;
}

/* Responsive dark theme adjustments */
@media screen and (max-width: 700px) {
    .dark-theme .product-details {
        background-color: #2d2d2d;
    }
    
    .dark-theme .delivery-option {
        background-color: #333;
    }
}

/* Dark theme scrollbar */
.dark-theme *::-webkit-scrollbar {
    width: 8px;
    background-color: #1a1a1a;
}

.dark-theme *::-webkit-scrollbar-thumb {
    background-color: #404040;
    border-radius: 4px;
}

.dark-theme *::-webkit-scrollbar-thumb:hover {
    background-color: #ff7b2c;
}


.seller-product-container {
    margin: 20px auto;
    max-width: 600px;
    padding: 0 15px;
}

.sell-product-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sell-product-btn:hover {
    background-color: #1976D2;
}

.seller-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
}

.popup-wrapper {
    background-color: white;
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.popup-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.popup-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.input-wrapper {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.input-field:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.1);
}

.inventory-submit-btn {
    width: 100%;
    padding: 14px;
    background: #cf5708;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.inventory-submit-btn:hover {
    background: #b44c07;
}

.current-seller-status {
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.remove-product-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #DC3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.remove-product-btn:hover {
    background-color: #C82333;
}

.form-status {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 14px;
}

.form-status.error {
    background-color: #FEE2E2;
    color: #DC2626;
}

.form-status.success {
    background-color: #DCFCE7;
    color: #16A34A;
}

@media (max-width: 768px) {
    .popup-wrapper {
        margin: 5% auto;
        width: 95%;
        padding: 20px;
    }
}

    .seller-actions {
        margin: 20px 0;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .seller-request-btn, .seller-remove-btn {
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .seller-request-btn {
        background: #2196F3;
        color: white;
    }

    .seller-request-btn:hover {
        background: #1976D2;
        transform: translateY(-2px);
    }

    .seller-remove-btn {
        background: #dc3545;
        color: white;
    }

    .seller-remove-btn:hover {
        background: #c82333;
        transform: translateY(-2px);
    }

    .seller-status-notice {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 8px;
        padding: 12px;
        text-align: center;
        margin: 10px auto;
        max-width: 300px;
        width: 100%;
    }

    @media screen and (max-width: 768px) {
        .seller-request-btn, .seller-remove-btn {
            max-width: none;
            width: 100%;
        }
    }