/* ================= HERO SECTION ================= */
.hero {
    padding: 120px 0; 
    background: url('../images/hero/home-bg-main-hero.png') no-repeat center center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
}

.hero-content {
    max-width: 600px; 
}

.hero-content h1 {
    font-size: 4.5rem; 
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem; 
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 90%;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    align-items: center;
}

.hero-buttons .btn-primary {
    font-size: 1.1rem;
    padding: 16px 32px;
}

.hero-buttons .btn-outline {
    font-size: 1.1rem;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    background: white; 
}

.hero-buttons .btn-outline:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.trust-badges {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.badge-icon {
    font-size: 26px;
    color: var(--primary-green);
    width: 32px;
    text-align: center;
}

.badge div {
    display: flex;
    flex-direction: column;
}

.badge strong {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

.badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================= ABOUT US SECTION ================= */
.about-us {
    background: #ffffff;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-image-decoration {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.floating-badge {
    position: absolute;
    bottom: 60px;
    right: -20px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-badge i {
    font-size: 28px;
}

.floating-badge div {
    display: flex;
    flex-direction: column;
}

.floating-badge strong {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-main);
}

.floating-badge span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.about-features i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* ================= SECTION HEADERS ================= */
section {
    padding: 100px 0;
}

.badge-label {
    display: inline-block;
    background: #e8f5e9;
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 3rem; 
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.split-header p {
    margin-bottom: 0;
}

.view-all-link {
    font-weight: 600;
    color: var(--primary-green);
    transition: var(--transition);
}

.view-all-link:hover {
    padding-right: 8px;
}

/* ================= HOW IT WORKS ================= */
.how-it-works {
    background: #fafafa;
}

.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step-card {
    background: white;
    padding: 60px 40px; 
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.step-number {
    position: absolute;
    top: -24px;
    left: 40px;
    background: #e8f5e9;
    color: var(--primary-green);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: #fafafa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: var(--primary-green);
}

.step-card:hover .step-icon i {
    color: white !important;
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ================= CATEGORIES (NEW LAYOUT) ================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.cat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.cat-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 30px rgba(27, 94, 32, 0.1); 
    transform: translateY(-5px);
}

.cat-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background: #f4f5f7; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Removed the padding so the image touches the borders */
    margin: 0;
    overflow: hidden;
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures edge-to-edge coverage */
    transition: transform 0.4s ease;
}

.cat-card:hover .cat-img-wrapper img {
    transform: scale(1.08);
}

.cat-content {
    padding: 20px 16px;
    background: white;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--text-main);
}

.cat-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================= PRODUCT CARDS ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex-grow: 1;
}

.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.08);
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.tag-featured { background: var(--primary-green); }
.tag-new { background: #3b82f6; }
.tag-hot { background: #f59e0b; }

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    transition: var(--transition);
}

.favorite-btn:hover {
    color: white;
    background: #ef4444;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.condition {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}

.price-row {
    margin-bottom: 12px;
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green);
}

.price small {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.card-action-box {
    padding: 0 20px 20px 20px;
}

.add-to-cart-btn {
    width: 100%;
}

/* ================= CONTACT US SECTION ================= */
.contact-us {
    background: #fafafa;
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.home-contact-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.input-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.home-contact-form input,
.home-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: #fdfdfd;
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background: white;
}

.contact-success-msg {
    background: #e8f5e9;
    border: 1px solid var(--primary-green);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.contact-success-msg i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.contact-success-msg h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.contact-success-msg p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

.contact-image-wrapper {
    position: relative;
    padding-left: 30px;
    padding-bottom: 30px;
}

.contact-image-decoration {
    position: absolute;
    top: 30px;
    right: 30px;
    left: 0;
    bottom: 0;
    background: var(--primary-green);
    opacity: 0.1;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.contact-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3;
    border-left: 4px solid var(--primary-green);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: #e8f5e9;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.info-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* ================= 100% RESPONSIVENESS ================= */

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    section { padding: 60px 0; }
    
    .hero { background-position: right center; text-align: center; }
    
    .hero-content { max-width: 100%; margin: 0 auto; background: rgba(255,255,255,0.85); padding: 40px 20px; border-radius: var(--radius-md); backdrop-filter: blur(10px); }
    .hero-content p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .trust-badges { justify-content: center; flex-wrap: wrap; gap: 20px; }
    
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-image-wrapper { padding-right: 15px; padding-bottom: 15px; max-width: 600px; margin: 0 auto; }
    .floating-badge { right: 10px; bottom: 30px; }

    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .contact-grid .contact-content { order: 1; }
    .contact-grid .contact-image-wrapper { order: 2; padding-left: 15px; padding-bottom: 15px; max-width: 600px; margin: 0 auto; }
    .contact-info-card { left: 10px; bottom: 10px; }
    
    .steps-wrapper { grid-template-columns: 1fr; gap: 60px; }
    .step-number { left: 50%; transform: translateX(-50%); }
    
    .split-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; gap: 12px; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    
    .about-content h2, .contact-content h2 { font-size: 2.2rem; }
    .section-header h2 { font-size: 2.2rem; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .trust-badges { flex-direction: column; align-items: center; }
}