/* Flex Container
https://design.dev/tools/flexbox-playground/ */
.flex-container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: normal;
    gap: 16px;
}

/* Flex Items */
.flex-item {
    width: 30%;
    padding: 20px;
    box-sizing: border-box;
    /* border: 1px solid gray;
    border-radius: 10px; */
}

/* Footer */
.site-footer {
    background: #f9fbf8;
    border-top: 1px solid #dce5dc;
    padding: 35px 5%;
    border-radius: 0 0 24px 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    gap: 30px;
}

.site-footer .site-logo {
    font-size: 17px;
}

.site-footer .site-logo-icon {
    width: 25px;
    height: 25px;
}

.site-footer .site-brand {
    gap: 10px;
}

.site-footer p {
    color: #637067;
    font-size: 14px;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

header {
    padding: 20px;
    background-color: #DCEAFF;
}
body {
    background-color: #FCFDFA;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}
/* Header */
.site-header {
    background: #f9fbf8;
    padding: 25px 5%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    color: #142f21;
    margin: 0;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #142f21;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: #35714d;
}

/* Shopping bag */
.bag-button {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #142f21;
    font-size: 17px;
}

.bag-button:hover,
.bag-button:active {
    transform: none;
    box-shadow: none;
}

.bag-count {
    background: #e5f0e5;
    border-radius: 50%;
    padding: 4px 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 25px;
    }
}
/* Hero Section CSS */

/* Hero Section */
.hero {
    display: flex;
    min-height: 650px;
    background: #eaf3e9;
}

.hero-content {
    width: 50%;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 35px;
}

.hero h1 {
    font-size: clamp(48px, 5.5vw, 90px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    color: #142f21;
    margin-bottom: 35px;
}

.hero p {
    font-size: 20px;
    line-height: 1.8;
    color: #637067;
    max-width: 480px;
    margin-bottom: 35px;
}

.shop-button {
    background: #194c34;
    color: white;
    padding: 15px 22px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 30px;
}

.shop-button:hover {
    background: #286a48;
    color: white;
}

.hero-note {
    margin-top: 40px;
    color: #637067;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-note i {
    color: #194c34;
    font-size: 20px;
}

/* Hero Image */
.hero-image {
    width: 50%;
    padding: 40px;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    align-items: center;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        height: auto;
        padding: 24px;
    }

    .hero-content {
        padding: 60px 25px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-image {
        height: 400px;
    }
}

/* After Hero Features Section */
.features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 35px 5%;
    background: #f9fbf8;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e5f0e5;
    color: #194c34;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.feature-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #142f21;
    margin: 0 0 5px;
}

.feature-item p {
    font-size: 14px;
    color: #637067;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 30px 25px;
    }
}
.shop-heading {
    flex-basis: 100%;
    margin: 20 0 8px;
    text-align: center;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #142f21;
}
/* From Figma Work
 https://www.figma.com/design/S6W2jkrDJuQkF3TfQtLmpR/Franchise---Ecommerce-App--Community-?node-id=1-786&m=dev */
button, .btns {
    border-radius: 4px;
    border: 1.5px solid #000;
    background: #194c34;
    box-shadow: 5px 5px 0 #000;
    padding: 10px 20px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    
    
}

button:hover, .btns:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #000;
}

button:active, .btns:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}
#lessons {
    padding-block: 64px;
    gap: 24px;
}

@media (max-width: 768px) {
    #lessons {
        padding-block: 32px;
    }
}
.lesson-box {
    width: 330px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 5px;
    border: 4px solid #000;
    background: #FFF;
    box-shadow: 6px 6px 0 0 rgba(43, 43, 43, 0.30);
}
.lesson-title {
    background: #FF9587;

    width: calc(100% + 40px);
    margin-left: -20px;
    /* removing 20px pading from both side */
    box-sizing: border-box;

    border: none;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    border-radius: 0;

    text-align: center;
}
.lesson-image {
    display: block;
    width: calc(100% + 40px);
    height: auto;
    margin: -20px -20px 0;
}
.sort-controls {
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: #f9fbf8;
    border: 1px solid #dce5dc;
    border-radius: 12px;
}

.sort-group p {
    margin: 0 0 12px;
    font-weight: 700;
    color: #142f21;
}

.sort-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dce5dc;
    border-radius: 8px;
    color: #142f21;
    cursor: pointer;
}

.sort-group input[type="radio"] {
    margin: 0;
    accent-color: #006051;
}

@media (max-width: 768px) {
    .sort-controls {
        flex-direction: column;
    }
}
.search-controls {
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.search-group {
    width: 100%;
    max-width: 620px;
}

.search-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #142f21;
}

.search-group .input-group {
    max-width: 600px;
}
@media (max-width: 768px) {
    .search-group .input-group {
        max-width: 100%;
    }
}
/* Checkout Page CSS */
.cart-summary {
    width: 90%;
    margin: 32px auto;
}

.cart-grid {
    width: 100%;
    gap: 24px;
}

.cart-card .lesson-title {
    font-size: 22px;
    margin-bottom: 16px;
}

.cart-body {
    display: flex;
    gap: 12px;
}

.cart-details {
    flex: 1;
    min-width: 0;
}

.cart-details small {
    font-size: 12px;
    color: #637067;
}

.cart-card p {
    margin: 6px 0;
    font-size: 14px;
}

.cart-prices {
    flex: 0 0 110px;
    text-align: right;
}

.cart-prices button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 8px 6px;
    font-size: 13px;
}
/* Checkout Section / Order Informations */
.checkout-form {
    width: 90%;
    max-width: 900px;
    margin: 32px auto;
    padding: 28px;
    box-sizing: border-box;
    background: #f9fbf8;
    border: 1px solid #dce5dc;
    border-radius: 16px;
    color: #142f21;
}

.checkout-form h2 {
    margin: 0 0 24px;
    font-weight: 800;
}

.checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-fields label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}

.checkout-fields input,
.checkout-fields select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dce5dc;
    border-radius: 8px;
    background: white;
    color: #142f21;
    font: inherit;
    font-weight: 400;
}

.checkout-fields input:focus,
.checkout-fields select:focus {
    outline: 2px solid #006051;
    outline-offset: 2px;
}

.place-order {
    margin-top: 8px;
    padding: 12px 24px;
}

@media (max-width: 600px) {
    .checkout-fields {
        grid-template-columns: 1fr;
    }

    .checkout-form {
        padding: 20px;
    }
}
.place-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}