.s-filter-body div[data-filter-attribute="variety"]{
    display: None !important;
}
.s-filter-body div[data-filter-attribute="brand"]{
    display: None !important;
}
.s-filter-body div[data-filter-attribute="container-type"]{
    display: None !important;
}
.s-filter-body div[data-filter-attribute="container-size"]{
    display: None !important;
}
div.s-checkout-card:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) {
    display:none;
}

div.s-checkout-card:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) {
    display:none;
}

.s-alert .alert{
    background-color: #f7e2ba;
    border-color: #c3c1cA;
    color: #63411A;
}
.s-item-total .price-tag, .s-product-price .price-tag{
    color:#63411A !important;
}
a{
    color: #63411A;
}

.delivery-charges {
    display: none;
}

.alert-warning {
    color: #000000;
    background-color: #C59E6F;
    border-color: #a47841;
}

.alert-info {
    background-color: #f7e2ba;
    border-color: #c3c1cA;
    color: #63411A;
}

footer {
    background-color: #63411A;
}

.s-info-container img {
    max-width: 100%;
}

div.modal-content div.cart-item-quantity-wrapper{
    display: none;
}

.add-cart-inactive {
    position: relative;
    display: inline-block;
    background: lightgray;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    text-align: center;
}

.add-cart-inactive a{
    color: #F7E2BA;
}

@media (max-width: 450px) {
    .add-cart-inactive {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        width: 100%;
    }
}


.add-cart-inactive .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #000C;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 5;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    margin-bottom: -5px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.add-cart-inactive .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.add-cart-inactive:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

div[data-url="/shop/set-shipping-presets"] .modal-header,
div[data-url="/shop/set-shipping-presets"] .btn-cancel,
body.shop_set_shipping_presets .card-header,
body.shop_set_shipping_presets .btn-outline-secondary {
    display: none;
}

.card-body:has(.text-success) {
    display: none !important;
}

/* === Product Grid Layout === */
.s-main-column .s-panel-body {
    display: grid;
    grid-template-columns: 100%;
    gap: 3px 4px;
    margin-bottom: 0.6rem;
}

.s-main-column .s-panel-body [class*="col-"] {
    max-width: 100%;
    align-items: stretch;
    max-height: 100%;
}

/* === Card Layout === */
.s-item-container .card .card-body {
    display: grid;
    padding: 1rem;
    grid-template-areas: "image name" "image price" "controls controls";
}

.s-item-container .mb-2 {
    grid-area: image;
    margin-bottom: 0 !important;
}

.s-item-container .s-product-image-carousel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.s-item-container .image {
    background-size: cover !important;
}

.s-item-container .s-product-name {
    grid-area: name;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 0 1rem;
    max-width: 80%;
}

.s-item-container .s-container-name,
.s-item-container .cart-item-quantity-wrapper label,
.s-item-container .s-unit-price,
.s-product-max-order-quantity,
.s-item-container .form-row.align-items-start .col-2 {
    display: none;
}

.s-item-container .s-product-cart-controls {
    grid-area: controls;
    flex-direction: row !important;
    align-items: flex-end;
    display: none;
    /*! margin: 0.5rem; */
}

.s-panel-body .mb-3, .my-3 {
  margin-bottom:0.25rem !important;
}

.s-item-container .s-product-quick-hints {
    line-height: 1;
    flex-grow: 1;
}

.s-item-container .s-product-quick-hints p {
    margin-bottom: 0 !important;
    padding: 0 0.5rem 0 0;
}

.s-item-container .cart-item-quantity-wrapper {
    margin: 0 !important;
}

.s-product-order-restrictions {
    padding-right: 1.1rem;
}

.s-item-container .form-row.align-items-start {
    grid-area: price;
    justify-content: flex-end;
}

.s-item-container .form-row.align-items-start .col-10 {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.3rem;
    max-width: 55%;
}

.s-item-container .s-product-price {
    margin-top: 1rem;
    white-space: nowrap;
    display: inline;
}

.s-item-container .price-tag {
    padding: 1rem;
}

.s-item-container .cart-item-quantity-wrapper > .d-flex {
    flex-wrap: nowrap !important;
    gap: 0.4rem;
}

.s-item-container .add-cart-item-button-wrapper,
.s-item-container .add-cart-item {
    width: auto !important;
    margin: 0 !important;
}

/* === Cart Summary === */
.cart-item-wrapper .s-product-name,
.cart-item-wrapper .s-product-price,
.cart-item-wrapper .col-5,
.cart-item-wrapper .s-item-total,
.cart-item-wrapper .col-12,
.cart-item-wrapper .s-product-cart-controls {
    display: inline;
    flex: 0 0 50%;
    max-width: 50%;
}

.cart-item-wrapper .ml-3 {
    display: flex;
}

.s-items-header .col-7 {
    max-width: 85%;
    margin-left: 4rem;
    display: inline;
}

.s-items-header .col-5 {
    max-width: 25%;
    margin-right: -5rem;
    display: inline;
}

.cart-item-wrapper .col-2 {
    flex: 0 0 0;
    max-width: 0;
}

/* === Media Queries === */
@media (min-width: 1200px) {
    .s-sidebar > div,
    .s-filter-column > div {
        position: sticky;
        top: 4em;
    }

    .s-item-container .card .card-body {
        grid-template: 'image name controls price';
        grid-template-columns: 80px auto 280px 180px;
    }

    .s-item-container .s-product-cart-controls {
        align-items: center;
    }

    .s-item-container .add-cart-item-form {
        flex: 0 0 150px;
    }

    .s-item-container .s-product-quick-hints {
        flex: 0 0 130px;
    }

    .s-item-container .s-product-quick-hints p {
        max-width: calc(100% - 0.5rem);
    }

    .s-item-container .s-product-price,
    .s-item-container .s-unit-price {
        flex: 0 0 50%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .s-filter-column > div {
        position: sticky;
        top: 5em;
    }

    .s-filter-column > .navbar {
        position: sticky;
        top: 8em;
    }

    .s-item-container .card .card-body {
        grid-template: 'image name price' 'image controls price';
        grid-template-columns: 70px auto 120px;
    }
}

@media (max-width: 767.98px) {
    .s-item-container .card .card-body {
        grid-template: 'image name' 'image price' 'controls controls';
        grid-template-columns: 70px auto;
    }

    .s-item-container .s-product-image-carousel {
        justify-content: flex-start;
        padding-top: 0.75rem;
    }

    .col-auto {
        display: inline;
    }

    .s-product-price .price-tag {
        padding-top: 1rem;
        padding-left: 8px;
    }
}
