.body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.call-to-action h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.2;
}


.call-to-action {
    align-self: end;
    display: grid;
    grid-column: 1fr;
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1rem;
    width: 100%;
    padding: 20px 30px 0px 30px;
    background-color: rgb(226, 207, 234);

}

.hero-img {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
}

.hero-img img {
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
}

.explainer-text {
    font-size: 1.2rem;
}

.col-span-2 {
    grid-column: 1 / 3;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid rgb(121, 121, 121);
    margin-bottom: 10px;
}

.search-container {
    align-self: self-end;
    width: 100%;
}

.search-bar input {
    background: white;
    width: 100%;
    border: 0;
    outline: none;
    padding: 10px 8px;
    font-size: 16px;
}

.search-bar button {
    width: 18px;
    color: rgb(240, 240, 240);
    border: 0;
    border-radius: 50%;
    background: #079168;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    /* needed for the suggestions dropdown */
}

.animated-text-container {
    overflow: hidden;
    height: 1.2em;         
    max-width: 610px;
}

.animated-text {
    display: flex;
    flex-direction: column;
    animation: text-change 10s infinite;
}

.animated-text span {
    height: 1.2em;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@keyframes text-change {
    /* Row 1 */
    0%, 14% {
        transform: translateY(0);
    }

    /* Row 2 */
    16.66%, 30.66% {
        transform: translateY(-1.2em);
    }

    /* Row 3 */
    33.33%, 47.33% {
        transform: translateY(-2.4em);
    }

    /* Row 4 */
    50%, 64% {
        transform: translateY(-3.6em);
    }

    /* Row 5 */
    66.66%, 80.66% {
        transform: translateY(-4.8em);
    }

    /* Row 6 */
    83.33%, 97.33% {
        transform: translateY(-6em);
    }

    /* Push past last row (hidden reset) */
    100% {
        transform: translateY(-7.2em);
    }
}

.featured-section {
    background-color: #eef1ec;
    padding: 30px 20px;
}


.carousel-control {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control i {
    color: white;
}

.carousel-control-next {
    margin-right: 1.4rem;
}

.carousel-control-prev {
    margin-left: 1.4rem;
}

.carousel-image {
    border-radius: 20px;
}

/* Search Container Styles */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #007bff;
    color: white;
}

.suggestion-item.no-results {
    cursor: default;
    color: #6c757d;
    text-align: center;
}

.suggestion-item.no-results:hover {
    background-color: white;
    color: #6c757d;
}

/* New Arrivals Section */
.new-arrivals-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    background-color: transparent;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background-color: #1a1a1a;
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.see-all-btn i {
    transition: transform 0.3s ease;
}

.see-all-btn:hover i {
    transform: translateX(5px);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    /* padding: 0 20px; */
}

.card {
    border-radius: 10px;
    overflow: hidden;
    max-width: 18rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.product-card-img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 10px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.personal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.product-meta {
    flex-grow: 0;
}

.price-section {
    margin-bottom: 4px;
}

.original-price {
    font-size: 0.8rem;
    color: #888;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.discounted-price,
.pricing {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    box-sizing: border-box;
    padding: 0px 4px;
}

.card-actions button,
.card-actions a {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .card {
        max-width: 100%;
    }
    
    .product-card-img {
        height: 200px;
    }

    .card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .card-actions button,
    .card-actions a {
        padding: 8px 10px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 74px;
        max-height: 40px;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 768px) {
    .card {
        max-width: 100%;
    }
}

/* FAQ Section */

.faq-section {
    background-color: #eef1ec;
    padding: 80px 0;
}

.faq-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-icon i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background-color: #1a1a1a;
    transform: rotate(180deg);
}

.faq-item.active .faq-icon i {
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

.faq-answer-content {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .faq-icon {
        width: 25px;
        height: 25px;
    }
    
    .faq-icon i {
        font-size: 14px;
    }
    
    .faq-answer-content {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-header h3 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details .left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
}

@media only screen and (max-width: 992px) {
    .hero-container-grid {
        gap: 1.6rem;
        grid-template-columns: 1fr;
        padding: 30px 20px 30px 20px;
    }

    .hero-img {
        display: none;
    }

    .explainer-text {
        text-align: justify;
    }

    .search-container {
        align-self: self-start;
    }
}
