/* assets/css/main.css */

:root {
    --body-bg: #EAEDED;
    --card-bg: #FFFFFF;
    --link-color: #007185;
    --link-hover: #C7511F;
    --price-red: #CC0C39;
    --rating-yellow: #FFA41C;
    --text-dark: #0F1111;
}

body {
    background-color: var(--body-bg);
}

/* --- HERO BANNER --- */
#hero-banner {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    height: 400px; /* Adjust based on image ratio */
    overflow: hidden;
}

.hero__container {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--body-bg));
    z-index: 1;
}

.hero__content {
    position: absolute;
    top: 20%;
    left: 5%;
    z-index: 2;
    max-width: 400px;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- HOME CONTENT LAYOUT --- */
.home-content-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    position: relative;
    z-index: 5;
    margin-top: -150px; /* Overlap effect */
}

/* --- INFO CARDS GRID --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: var(--card-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 420px;
    border: 1px solid #ddd; /* Subtle border */
}

.info-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.info-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-grow: 1;
    margin-bottom: 10px;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.grid-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 5px;
}

.grid-item span {
    font-size: 12px;
    color: var(--text-dark);
}

.single-image-container {
    flex-grow: 1;
    margin-bottom: 10px;
    overflow: hidden;
}

.single-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flex-center-col {
    justify-content: center;
}

.signin-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    display: block;
    text-align: center;
}

/* --- PRODUCT SLIDERS --- */
.product-slider-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd; /* Consistent styling */
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 21px;
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* --- PRODUCT CARD --- */
.product-card {
    background: white;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding-bottom: 10px;
}

.product-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.product-card__img-wrap {
    background: #F8F8F8;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 20px;
}

.product-card__img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-card__details {
    padding: 0 10px;
}

.deal-tags {
    margin-bottom: 8px;
    font-size: 12px;
}

.badge-red {
    background: var(--price-red);
    color: white;
    padding: 4px 6px;
    font-weight: 700;
    border-radius: 2px;
    margin-right: 5px;
}

.badge-red-text {
    color: var(--price-red);
    font-weight: 700;
}

.price-block {
    display: flex;
    align-items: flex-start;
}

.currency {
    font-size: 12px;
    margin-top: 4px;
    margin-right: 2px;
}

.price-whole {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
}

.old-price {
    font-size: 12px;
    color: #565959;
    margin-bottom: 5px;
}

.old-price span {
    text-decoration: line-through;
}

.product-title {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-title:hover {
    color: #C7511F;
}

.product-rating {
    color: var(--rating-yellow);
    font-size: 12px;
    margin-bottom: 5px;
}

.product-rating .count {
    color: #007185;
    margin-left: 5px;
}

.prime-delivery {
    font-size: 12px;
    color: #565959;
    margin-top: 5px;
}

.prime-text {
    color: #00A8E1;
    font-weight: 700;
    font-style: italic;
}

/* --- UTILITIES --- */
.link-plain {
    color: var(--link-color);
    font-size: 14px;
    text-decoration: none;
}
.link-plain:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.btn-primary {
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    padding: 8px 15px;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(213,217,217,.5);
    cursor: pointer;
}
.btn-primary:hover {
    background: #F7CA00;
    border-color: #F2C200;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .cards-grid .info-card:last-child { display: none; }
}

@media (max-width: 992px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .home-content-container { margin-top: 0; }
    #hero-banner { height: 300px; }
}

@media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    #hero-banner { height: 250px; }
    .hero__content { top: 10%; max-width: 90%; }
}