/* ============================================================
   Homepage – Features Section
   Source: frontend/home/features.blade.php
   ============================================================ */
.feature-container{background:#fff;border:1px solid #eee;border-radius:8px;padding:30px;display:flex;flex-direction:row;gap:0}
.feature-item{flex:1;display:flex;align-items:center;gap:15px;padding:0 20px;position:relative}
.feature-item:not(:last-child)::after{content:'';position:absolute;right:0;top:50%;transform:translateY(-50%);height:50%;width:1px;background:#ddd}
.feature-item-icon{min-width:45px;width:45px;height:45px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.feature-item-icon img{width:100%;height:100%;object-fit:contain;filter:none}
.feature-item-body{text-align:left;flex:1;min-width:0}
.feature-item-title{font-size:16px;font-weight:700;color:#0056b3;margin:0 0 4px 0;line-height:1.2}
.feature-item-title a{color:#0056b3;text-decoration:none;transition:color .3s ease}
.feature-item-title a:hover{color:#004085}
.feature-item-desc{font-size:13px;color:#666;line-height:1.4;margin:0}

@media (min-width:992px){
    .feature-item{padding:0 20px}
}

@media (max-width:991.98px){
    .feature-container{padding:25px;flex-wrap:wrap}
    .feature-item{flex:0 0 50%;padding:15px;border-bottom:1px solid #eee}
    .feature-item:not(:last-child)::after{display:none}
    .feature-item:nth-child(3),.feature-item:nth-child(4){border-bottom:none}
}

@media (max-width:767.98px){
    .feature-container{padding:20px;flex-wrap:wrap;gap:0}
    .feature-item{flex:0 0 50%;padding:15px;gap:10px}
    .feature-item:not(:last-child)::after{display:none}
    .feature-item-icon{min-width:35px;width:35px;height:35px}
    .feature-item-title{font-size:14px}
    .feature-item-desc{font-size:12px}
}

@media (max-width:375px){
    .feature-container{padding:15px}
    .feature-item{padding:12px}
    .feature-item-title{font-size:13px}
    .feature-item-desc{font-size:11px}
}

/* ============================================================
   Homepage – Deals of the Week Section
   Source: frontend/home/deals_of_the_week.blade.php
   ============================================================ */

/* Deals Section */
.deals-section { padding: 30px 0; }

/* Each deal card: split flex layout */
.deal-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    margin: 4px;
}

/* Left: image panel */
.deal-card-img {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
}

.deal-card-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.deal-card-img img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.deal-card-img img:hover { transform: scale(1.04); }

/* Right: content panel */
.deal-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    gap: 6px;
}

/* Offer badge */
.deal-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #003366;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
}

/* Rating row */
.deal-rating { line-height: 1; }

/* Title */
.deal-title {
    font-size: 14px;
    font-weight: 700;
    color: #003366;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-title a {
    color: #003366 !important;
    text-decoration: none !important;
}

.deal-title a:hover { color: #0056b3 !important; }

/* Price */
.deal-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.deal-price-current {
    font-size: 17px;
    font-weight: 800;
    color: #0056b3;
    line-height: 1;
}

.deal-price-original {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
}

/* Countdown: outlined compact boxes */
.deal-countdown { margin: 0; }

.deal-countdown .countdown-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.deal-countdown .countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 34px;
    background: #fff;
}

.deal-countdown .countdown-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.deal-countdown .countdown-unit-label {
    font-size: 8px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.deal-countdown .countdown-sep {
    font-size: 12px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 10px;
}

.deal-countdown .countdown-label { display: none; }

/* Expiry label */
.deal-expiry-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 3px;
    display: block;
}

/* Action buttons */
.deal-buttons {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.deal-buttons .btn-add-cart,
.deal-buttons .btn-buy-now {
    flex: 1;
    padding: 7px 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
}

.deal-buttons .btn-add-cart {
    background: #f0f4ff !important;
    color: #003366 !important;
    border: 1px solid #d0dcf0 !important;
}

.deal-buttons .btn-add-cart:hover {
    background: #003366 !important;
    color: #fff !important;
}

.deal-buttons .btn-buy-now {
    background: #003366 !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-buttons .btn-buy-now:hover {
    background: #0056b3 !important;
}

.deal-buttons i {
    font-size: 10px !important;
    margin-right: 3px !important;
}

/* Vertical divider in carousel between 2 items */
.offer-carousel .deal-card-wrapper:first-child {
    border-right: 1px solid #f0f0f0;
}

/* Mobile: stack image on top, ultra-compact */
@media (max-width: 576px) {
    .deal-card {
        flex-direction: column;
    }

    .deal-card-img {
        flex: none;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 8px;
    }

    .deal-card-img img {
        max-height: 120px !important;
        width: 100% !important;
        object-fit: contain;
    }

    .deal-card-body {
        padding: 8px;
        gap: 4px;
    }

    .deal-badge {
        font-size: 9px;
        padding: 2px 5px;
    }

    .deal-title {
        font-size: 12px !important;
        -webkit-line-clamp: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .deal-price-current {
        font-size: 14px !important;
    }

    .deal-price-original {
        font-size: 11px;
    }

    /* Countdown: numbers-only with colons, no labels */
    .deal-countdown .countdown-unit {
        border: none;
        padding: 0;
        min-width: auto;
        background: none;
    }

    .deal-countdown .countdown-unit-label {
        display: none;
    }

    .deal-countdown .countdown-value {
        font-size: 12px;
        font-weight: 700;
        color: #003366;
    }

    .deal-countdown .countdown-sep {
        font-size: 12px;
        color: #003366;
        margin-bottom: 0;
    }

    .deal-expiry-label { display: none; }

    .deal-buttons {
        gap: 4px;
    }

    .deal-buttons .btn-add-cart,
    .deal-buttons .btn-buy-now {
        padding: 5px 4px !important;
        font-size: 10px !important;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 577px) {
    .deal-card-img { flex: 0 0 38%; max-width: 38%; }
    .deal-card-img img { max-height: 160px; }
    .deal-title { font-size: 13px; }
}

