/* ==========================================================================
   LifeSmart "Our Products" Section Styles
   Exact pixel-perfect match to the design mockup
   Fully responsive across 4K, Desktop, Tablet, and Mobile devices
   ========================================================================== */

.ls-our-products-section {
    padding: 70px 20px 80px 20px;
    background: #ffffff;
    position: relative;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ls-products-container {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.ls-products-header {
    text-align: center;
    margin-bottom: 38px;
}

.ls-products-heading {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    color: #0c2b48;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
}

.ls-products-subheading {
    font-size: 14.5px;
    color: #556877;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.ls-products-mobile-hint {
    display: none;
    text-align: right;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    padding-right: 4px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Products Grid (Desktop: 5 Columns)
   -------------------------------------------------------------------------- */
.ls-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* --------------------------------------------------------------------------
   Individual Product Card
   -------------------------------------------------------------------------- */
.ls-product-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 14px 14px 16px 14px;
    box-shadow: 0 4px 16px rgba(12, 43, 72, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.28s ease;
    position: relative;
}

.ls-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(12, 43, 72, 0.1);
    border-color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Card Media & Wishlist Button
   -------------------------------------------------------------------------- */
.ls-card-media {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ls-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ls-card-img {
    max-width: 95%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
    display: block;
}

.ls-product-card:hover .ls-card-img {
    transform: scale(1.06);
}

.ls-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    z-index: 5;
    padding: 0;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ls-wishlist-btn:hover {
    transform: scale(1.12);
    color: #e53935;
    border-color: #fca5a5;
    background: #fff;
}

.ls-wishlist-btn.active {
    color: #e53935;
    border-color: #e53935;
    background: #fee2e2;
}

.ls-wishlist-btn.active .ls-heart-icon {
    fill: #e53935;
    animation: heartPulse 0.35s ease-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.ls-heart-icon {
    width: 15px;
    height: 15px;
    display: block;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* --------------------------------------------------------------------------
   Card Body
   -------------------------------------------------------------------------- */
.ls-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ls-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #0c2b48;
    line-height: 1.35;
    margin: 0 0 6px 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ls-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ls-card-title a:hover {
    color: #d49c28;
}

/* --------------------------------------------------------------------------
   Rating Row
   -------------------------------------------------------------------------- */
.ls-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.ls-stars {
    color: #eab308;
    font-size: 13px;
    letter-spacing: 1.5px;
    line-height: 1;
}

.ls-review-count {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pricing Row
   -------------------------------------------------------------------------- */
.ls-card-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ls-price-sale {
    font-size: 18.5px;
    font-weight: 700;
    color: #d32f2f;
    letter-spacing: -0.3px;
}

.ls-price-regular {
    font-size: 12.5px;
    color: #888888;
    text-decoration: line-through;
    margin-top: 1px;
}

.ls-discount-badge {
    background: #d32f2f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.2px;
    display: inline-block;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Size Selector
   -------------------------------------------------------------------------- */
.ls-card-size-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ls-size-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.ls-select-wrapper {
    position: relative;
    flex: 1;
}

.ls-size-select {
    width: 100%;
    padding: 4px 24px 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 11px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.ls-size-select:focus {
    border-color: #d49c28;
    box-shadow: 0 0 0 2px rgba(212, 156, 40, 0.15);
}

/* --------------------------------------------------------------------------
   Add to Cart Button (Mustard / Golden)
   -------------------------------------------------------------------------- */
.ls-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 12px;
    background: #e4a737;
    color: #1a202c;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
}

.ls-add-to-cart-btn:hover {
    background: #d49a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(228, 167, 55, 0.35);
}

.ls-add-to-cart-btn:active {
    transform: translateY(0);
}

.ls-cart-icon {
    width: 15px;
    height: 15px;
    stroke: #1a202c;
}

/* --------------------------------------------------------------------------
   Card Footer (GST & View Details)
   -------------------------------------------------------------------------- */
.ls-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.ls-tax-info {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ls-tax-sep {
    color: #cbd5e1;
}

.ls-view-details-link {
    font-size: 11.5px;
    color: #1b4d79;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ls-view-details-link:hover {
    color: #0c2b48;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Cart Added Toast Notification
   -------------------------------------------------------------------------- */
.ls-cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0c2b48;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(12, 43, 72, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ls-cart-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ls-toast-icon {
    width: 20px;
    height: 20px;
    stroke: #22c55e;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Large Tablets & Medium Laptops (1024px to 1279px) */
@media screen and (max-width: 1279px) {
    .ls-products-grid {
        gap: 12px;
    }
    .ls-product-card {
        padding: 12px 10px 14px 10px;
    }
    .ls-card-media {
        height: 170px;
    }
    .ls-card-title {
        font-size: 13.5px;
    }
    .ls-price-sale {
        font-size: 17px;
    }
}

/* Tablets (768px to 1023px) */
@media screen and (max-width: 1023px) {
    .ls-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .ls-card-media {
        height: 190px;
    }
}

/* Mobile Screens (< 768px) */
@media screen and (max-width: 767px) {
    .ls-our-products-section {
        padding: 45px 16px 55px 16px;
    }

    .ls-products-header {
        margin-bottom: 24px;
    }

    .ls-products-heading {
        font-size: 26px;
    }

    .ls-products-subheading {
        font-size: 13.5px;
    }

    .ls-products-mobile-hint {
        display: none;
    }

    /* 2-Column Grid on Mobile View */
    .ls-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
    }

    .ls-products-grid::-webkit-scrollbar {
        display: none;
    }

    .ls-product-card {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 8px 12px 8px !important;
    }

    .ls-card-media {
        height: 140px !important;
    }

    .ls-card-title {
        font-size: 14px;
        min-height: 36px;
    }

    .ls-price-sale {
        font-size: 18px;
    }

    .ls-add-to-cart-btn {
        padding: 10px;
        font-size: 13px;
    }

    .ls-cart-toast {
        left: 16px;
        right: 16px;
        bottom: 20px;
        font-size: 13px;
        justify-content: center;
    }
}

/* Extra small mobile (< 380px) */
@media screen and (max-width: 380px) {
    .ls-product-card {
        flex: 0 0 230px;
        max-width: 230px;
    }
}
