.ag_product_page {
    padding: 70px 0px;
}

.ag_product_page h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #1b1f23;
}

.ag_product_page .ag_product_page_title {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.ag_product_page .ag_product_page_title button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.ag_product_page .ag_product_page_slider_image {
    border: 1px solid #dddddd;
    border-radius: 10px;
}

.ag_product_page .ag_product_page_slider_image img {
    border-radius: 10px;
   
    object-fit: contain;
}

.ag_product_page .ag_product_page_slider .slick-slide {
    padding: 0 10px;
}

.ag_product_page .ag_product_page_slider_content a {
    text-decoration: none;
}

.ag_product_page .ag_product_page_slider_content h6 {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin: 20px 0px 6px 0px;
    color: #1b1f23;
}
.ag_product-title {
    white-space: initial;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    max-height: 24px;
}

.ag_product_page .ag_product_page_slider_content span {
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    color: #1b1f23;
}

.ag_product_page .btn-black {
    width: 100%;
    color: #ffffff;
    background-color: #000000;
    padding: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.5s ease-in-out;
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
}

.ag_product_page .btn-black:hover {
    background-color: #000000c4;
}

/*  */

.ag_product_page_slider_select {
    margin: 0 auto !important;
}

.ag_product_page_slider_select form {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}
/* .ag_product_page_slider_select form:only-child select {
    flex: 1 0 100%;
} */
.ag_product_page_slider_select form select {
    border: 1px solid #dddddd;
    width: 50%;
    border-radius: 5px;
    padding: 5px 10px;
    appearance: none;
    background-image: url("./select_arrow.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 9px 13px;
    flex: 0 0 49%;
    font-size: 11px;
    color: #000000;
}
.product-option + .product-option {
    margin-top: 0;
}
.ag_product_page_slider_select select:focus {
    outline: none;
    box-shadow: none;
}
.product_page_slider_color_options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
}

.product_page_slider_color_options > .inputs {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #dddddd;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    transition: border 0.3s ease;
}

.product_page_slider_color_options > .inputs.active {
    border: 1px solid #000000;
    padding: 5px;
}

.no-color-found {
    margin: 2px;
}

.ag_slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.ag_slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    scroll-snap-type: x mandatory; /* Add scroll snap for better mobile experience */
}

.ag_slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.ag_slider-item {
    flex: 0 0 calc(25% - 12px);
    box-sizing: border-box;
    min-width: 200px;
    scroll-snap-align: start; /* Add scroll snap alignment */
}

.ag_slider-item a {
    text-decoration: none;
}

.ag_selectbox {
    display: flex;
    width: 100%;
    gap: 5px;
    overflow: auto;
    padding-bottom: 6px;
}

.ag_selectbox::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

.ag_selectbox::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ag_selectbox::-webkit-scrollbar-thumb {
    background: #000000;
}

@media screen and (max-width: 1024px) {
    .ag_slider-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 200px;
    }
    
    .sc-slider-title {
        font-size: 20px;
    }
    
    .slider-arrow-icon {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 768px) {
    .ag_slider {
        gap: 0; /* Remove gap for mobile to ensure full width items */
        scroll-snap-type: x mandatory;
    }


    
    .ag_slider-item {
        flex: 0 0 calc(50% - 4px);  /* Still 2 cards, adjusted gap */
        min-width: calc(50% - 4px);
    }
    
    
    .ag_slider-item {
        flex: 0 0 100%; /* Full width for mobile */
        min-width: 100%;
        scroll-snap-align: start;
        padding: 0 10px; /* Add padding instead of gap */
        box-sizing: border-box;
    }
    
    .sc-slider-header {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    .sc-slider-title {
        font-size: 18px;
    }
    
    .slider-arrow-icon {
        width: 30px;
        height: 30px;
    }
    
    .sc-slider-button {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
        padding: 7px;
    }
}

@media screen and (max-width: 480px) {
    
    .ag_slider-item {
        flex: 0 0 calc(50% - 4px);  /* Still 2 cards, adjusted gap */
        min-width: calc(50% - 4px);
    }
   
    .ag_slider-item {
        padding: 0 5px;
    }
    
    .sc-slider-title {
        font-size: 16px;
    }
    
    .slider-arrow-icon {
        width: 25px;
        height: 25px;
    }
    
    .sc-slider-header {
        margin-bottom: 10px;
    }
}

.ag_slider img {
    width: 100%;
    /* padding: 10px; */
    height: auto;
    display: block;
}

.ag_slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.ag_slider button:hover {
    background-color: transparent;
}

.ag_slider .prevButton {
    left: 10px;
}

.ag_slider .nextButton {
    right: 10px;
}

.ag_product_page .ag_product_page_title button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media screen and (max-width: 480px) {
    .ag_product_page > .ag_product_page_title {
        gap: 30px;
        justify-content: center;
    }

    .ag_product_page .ag_product_page_title button {
        width: 40px;
        height: 40px;
    }
    .ag_product_page h3 {
        font-size: 16px;
        line-height: 20px;
    }
    .ag_product_page .ag_product_page_slider_content h6 {
        font-size: 15px;
    }
    .ag_product_page .ag_product_page_slider_content span {
        font-size: 13px;
    }

    .ag_product_page .btn-black {
        padding: 5px 8px;
        font-size: 12px;
    }
    .no-color-found {
        font-size: 15px;
    }
    .ag_product_page_slider_select select {
        font-size: 6px !important;
        font-weight: 600;
        padding: 5px 5px;
    }

    .product_page_slider_color_options {
        gap: 5px;
    }
    .product_page_slider_color_options > .inputs.active {
        border: 1px solid #000000;
        padding: 5px;
    }
    .product_page_slider_color_options > .inputs {
        width: 20px;
        height: 20px;
    }
    .no-color-found {
        margin: 1px;
    }

    .ag_slider-item {
        flex: 0 0 50%;
    }

    .ag_product_page .product_page_slider_image img {
        border-radius: 10px;
        max-height: 180px;
        min-height: 180px;
        object-fit: contain;
    }
}

/* Slider header styles */
.sc-slider-header {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.sc-slider-title {
    font-size: 24px;
    font-weight: 700;
    color: black;
    margin: 0;
    text-align: center;
}

.sc-slider-button {
    background-color: transparent;
    color: #1B1F23;
    border: 1px solid rgba(27, 31, 35, 0.1);
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.sc-slider-button:hover:not(:disabled) {
    background-color: transparent;
    border-color: rgba(27, 31, 35, 0.2);
}

.sc-slider-button:disabled {
    background-color: transparent;
    cursor: not-allowed;
    transform: none;
}

/* ==============================
   CART DRAWER AUTO-INJECTION STYLES
   ============================== */

.seedid-cart-drawer-recommendations {
    padding: 16px 12px;
    background-color: transparent;
    margin-top: 16px;
}

.seedid-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.seedid-cart-drawer-title {
    font-size:22px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1b1f23;
    margin: 0;
}

.seedid-cart-drawer-nav {
    display: flex;
    gap: 4px;
}

.seedid-cart-drawer-prev,
.seedid-cart-drawer-next {
    background-color: transparent;
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #1b1f23;
    transition: all 0.2s ease;
    z-index: 10;
}

.seedid-cart-drawer-prev:hover:not(:disabled),
.seedid-cart-drawer-next:hover:not(:disabled) {
    background-color: transparent;
    border-color: rgba(27, 31, 35, 0.25);
}

.seedid-cart-drawer-prev:disabled,
.seedid-cart-drawer-next:disabled {
    background-color: transparent;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.seedid-cart-drawer-products {
    position: relative;
    overflow: hidden;
}

.seedid-cart-drawer-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 4px 0 8px 0;
    scroll-snap-type: x mandatory;
}

.seedid-cart-drawer-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.seedid-cart-drawer-item {
    flex: 0 0 calc(50% - 6px);
    min-width: calc(50% - 6px);
    border:none !important;
    padding: 8px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.seedid-cart-drawer-item__image {
    width: 100%;
    height: 80px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 4px;
    background-color: transparent !important;
}

.seedid-cart-drawer-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seedid-cart-drawer-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seedid-cart-drawer-item__title {
    font-size: 12px;
    font-weight: 500;
    color: #1b1f23;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 31px;
}

.seedid-cart-drawer-item__price {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0;
}

.seedid-cart-drawer-item__current-price {
    font-size: 12px;
    font-weight: 600;
    color: #1b1f23;
}

.seedid-cart-drawer-item__compare-price {
    font-size: 11px;
    color: #666;
    text-decoration: line-through;
}

.seedid-cart-drawer-item__variants {
    margin: 4px 0;
}

.seedid-cart-drawer-variant-select {
    width: 100%;
    font-size: 10px;
    padding: 4px 6px;
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 3px;
    background-color: transparent;
    color: #1b1f23;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 12px;
    cursor: pointer;
}

.seedid-cart-drawer-variant-select:focus {
    outline: none;
    border-color: #1b1f23;
}

.seedid-cart-drawer-add-btn {
    width: 100%;
    background-color: #1b1f23;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 4px;
}

.seedid-cart-drawer-add-btn:hover:not(:disabled) {
    background-color: #2d3440;
}

.seedid-cart-drawer-add-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.seedid-cart-drawer-add-btn[data-adding="true"] {
    background-color: #28a745;
    cursor: not-allowed;
}

.seedid-cart-drawer-add-btn[data-adding="true"]::after {
    content: " ✓";
}

/* Mobile adjustments for cart drawer */
@media screen and (max-width: 480px) {
    .seedid-cart-drawer-recommendations {
        padding: 12px 8px;
        margin-top: 12px;
    }
    
    .seedid-cart-drawer-title {
        font-size: 14px;
    }
    
    .seedid-cart-drawer-prev,
    .seedid-cart-drawer-next {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .seedid-cart-drawer-item {
        padding: 6px;
    }
    
    .seedid-cart-drawer-item__image {
        height: 60px;
        margin-bottom: 6px;
    }
    
    .seedid-cart-drawer-item__title {
        font-size: 11px;
        max-height: 28px;
    }
    
    .seedid-cart-drawer-item__current-price {
        font-size: 11px;
    }
    
    .seedid-cart-drawer-item__compare-price {
        font-size: 10px;
    }
    
    .seedid-cart-drawer-variant-select {
        font-size: 9px;
        padding: 3px 4px;
    }
    
    .seedid-cart-drawer-add-btn {
        font-size: 10px;
        padding: 5px 6px;
    }
}