/*============================================================================================
   Start Card CSS (Artisanal / Human-Made Grocery Style)
==============================================================================================*/
.product.style-13 {
    --soil-dark: #2C2A25;         /* Deep rich earth for text */
    --olive-deep: #4A5D23;        /* Primary deep olive green */
    --olive-press: #3A4919;       /* Darker shadow for 3D button press */
    --terracotta: #B86B4E;        /* Warm clay for badges */
    --canvas-warm: #FBF8F1;       /* Main card background (warm paper) */
    --canvas-image: #F2EFE6;      /* Image background (subtle contrast) */
    --kraft-light: #E8E1D5;       /* Soft borders */
    --muted-earth: #7A7164;       /* Subtitles and secondary text */
    
    position: relative;
    font-family: var(--font-family, "Poppins", sans-serif);
    font-size: 1rem;
    color: var(--soil-dark);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--canvas-warm);
    border-radius: 14px;
    border: 1px solid var(--kraft-light);
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px -4px rgba(74, 93, 35, 0.08);
}
.product.style-13:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(74, 93, 35, 0.15);
    border-color: #DCE5D0;
}

.swiper-slide:has(.product.style-13) {
    height: unset;
}

/* ---- Media ---- */
.product.style-13 .product-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--canvas-image);
    border-bottom: 1px solid var(--kraft-light);
    border-radius: 18px;
}
.product.style-13 .product-media img{
    aspect-ratio:7/8;


}
.product.style-13 .product-media img.lazy {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 12px;
    transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product.style-13:hover .product-media img.lazy {
    transform: scale(1.12);
}

/* ---- Farm Tag (Flag Name) ---- */
.product.style-13 .product-card__bottom_tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: rgba(251, 248, 241, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid var(--kraft-light);
    padding: 4px 10px;
    font-size: 10px;
    color: var(--olive-deep);
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    width: fit-content;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* ---- Discount Stamp (Save Label) ---- */
.product.style-13 .save-label {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto; /* Overriding left positioning */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--terracotta);
    color: #FBF8F1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(184, 107, 78, 0.3);
    text-transform: uppercase;
    transform: rotate(-8deg); /* Slight tilt for human stamp feel */
    border: 2px solid rgba(255,255,255,0.3);
}

.product.style-13 .offer-countdown {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px 8px;
    border-radius: 6px;
    background: rgba(251, 248, 241, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--kraft-light);
}

/* ---- Body ---- */
.product.style-13 .product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px 16px 16px;
    gap: 4px;
    width: 100%;
}
.product.style-13 .product-details {
    display: flex;
    flex-direction: column;
    background: transparent;
    gap: 6px;
    text-align: center;
    align-items: center;
    padding-top: 5px;
}

.product.style-13 .product-name {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
    line-height: 1.4;
    color: var(--soil-dark);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.product.style-13 .product-name a {
    color: inherit;
    transition: color 0.2s;
}
.product.style-13 .product-name a:hover {
    color: var(--olive-deep);
}

.product.style-13 .product-card__subtitle {
    font-size: 12.5px;
    color: var(--muted-earth);
    font-weight: 400;
    line-height: 1.3;
}

.product.style-13 .product-card__rating-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    font-size: 11px;
}
.product.style-13 .product-card__rating-row svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    display: block;
}
.product.style-13 .product-card__rating-value {
    font-weight: 600;
    color: #1f1f1f;
}
.product.style-13 .product-card__rating-count {
    color: #666;
}

/* Overrides for price_display_ins partial */
.product.style-13 .product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    color: var(--soil-dark);
}
.product.style-13 .product-price .sale-price,
.product.style-13 .product-price .price,
.product.style-13 .product-price .current-price,
.product.style-13 .product-price ins,
.product.style-13 .product-price .new-price,
.product.style-13 .product-price > span:first-child {
    font-family: var(--font-family); 
    color: var(--olive-deep);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.product.style-13 .product-price .regular-price,
.product.style-13 .product-price .old-price,
.product.style-13 .product-price .compare-price,
.product.style-13 .product-price del,
.product.style-13 .product-price > span:nth-child(2) {
    color: #A39B91 !important;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
}
.product.style-13 .product-price .discount,
.product.style-13 .product-price .save-badge,
.product.style-13 .product-price .discount-badge,
.product.style-13 .product-price .off-badge,
.product.style-13 .product-price .discount-price,
.product.style-13 .product-price > span:nth-child(3),
.product.style-13 .product-price > span:last-child {
    border-radius: 20px !important;
    border: 1.5px dotted rgba(74, 93, 35, 0.35) !important;
    background: rgba(74, 93, 35, 0.06) !important;
    padding: 4px 10px !important;
    text-transform: uppercase;
    color: var(--olive-deep) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ---- Action area (Tactile 3D Button) ---- */
.product.style-13 .product-card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product.style-13 .product-card-action .order-btn,
.product.style-13 .call-for-price,
.product.style-13 .open-quantity-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--olive-deep);
    color: #FBF8F1;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 0px var(--olive-press); /* 3D press effect */
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}
.product.style-13 .product-card-action .order-btn:hover,
.product.style-13 .call-for-price:hover,
.product.style-13 .open-quantity-btn:hover {
    background: #566B2A;
    transform: translateY(-1px);
    box-shadow: 0 5px 0px var(--olive-press);
}
.product.style-13 .product-card-action .order-btn:active,
.product.style-13 .call-for-price:active,
.product.style-13 .open-quantity-btn:active {
    transform: translateY(4px); /* Pushes down */
    box-shadow: 0 0px 0px var(--olive-press); /* Shadow disappears */
}
.product.style-13 .open-quantity-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.product.style-13 .product-card-action .order-btn.stock-out {
    background: #EDE9DF;
    color: #A39B91;
    box-shadow: 0 4px 0px #D6CFC4;
    cursor: not-allowed;
}
.product.style-13 .product-card-action .order-btn.stock-out:hover {
    transform: none;
    background: #EDE9DF;
}

/* ---- Quantity stepper ---- */
.product.style-13 .quantity-container {
    position: relative;
    width: 100%;
    height: 44px;
}
.product.style-13 .quantity-box {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    background: #FBF8F1;
    border: 1px solid var(--olive-deep);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 0px var(--olive-press);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.product.style-13 .quantity-box.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.product.style-13 .decrease-btn,
.product.style-13 .increase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    background: var(--olive-deep);
    color: #FBF8F1;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.product.style-13 .decrease-btn:hover,
.product.style-13 .increase-btn:hover {
    background: #566B2A;
}
.product.style-13 .quantity {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--soil-dark);
    user-select: none;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .product.style-13:not(.product-list) {
        font-size: 0.8rem;
    }
    .product.style-13 {
        border-radius: 12px;
    }
    .product.style-13 .product-card-action {
        justify-content: center;
        gap: 10px;
    }
    .product.style-13 .quantity-container,
    .product.style-13 .quantity-box,
    .product.style-13 .product-card-action .order-btn,
    .product.style-13 .call-for-price,
    .product.style-13 .open-quantity-btn {
        height: 40px;
    }
    .product.style-13 .decrease-btn,
    .product.style-13 .increase-btn {
        width: 40px;
    }
    .product.style-13 .product-name {
        font-size: 13.5px;
    }
    .product.style-13 .product-body {
        padding: 12px;
        gap: 12px;
    }
    .product.style-13 .product-price .sale-price,
    .product.style-13 .product-price .price,
    .product.style-13 .product-price .current-price,
    .product.style-13 .product-price > span:first-child {
        font-size: 18px;
    }
    .product.style-13 .save-label {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
}
/*============================================================================================
   End Card CSS
==============================================================================================*/