/* Home page */
.shop-by-category-heading h2 {
    color: #223322;
    letter-spacing: 0.01em;
}

.category-card-link-home {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-card-link-home .prod-red-topc-hedng {
    background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
    border-top: 1px solid #edf2ed;
    padding: 18px 16px 16px;
}

.category-card-link-home .prod-red-topc-hedng h6 {
    color: #2d3f2d;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.shop-now-home-chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #228B22;
    color: #fff;
    border: 1px solid #228B22;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 8px;
    margin-bottom: 8px;
}

.category-card-link-home .prod-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef2ee;
}

.category-card-link-home:hover .prod-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(22, 44, 22, 0.14);
}

.category-card-link-home:hover .shop-now-home-chip {
    background: #1a6f1a;
    border-color: #1a6f1a;
    color: #fff;
}

.selling-product .product-button a {
    background: #f0f0f0 !important;
    color: #333 !important;
    border: none;
    transition: all 0.3s ease;
}

.selling-product .product-inner {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.selling-product .product-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.selling-product .product-img {
    background: #f5f5f5;
    overflow: hidden;
}

.selling-product .product-img img {
    transition: transform 0.3s ease;
}

.selling-product .product-inner:hover .product-img img {
    transform: scale(1.05);
}

.selling-product .product-button a:hover {
    background: #228B22 !important;
    color: #fff !important;
}

.selling-product .product-button button {
    background: #228B22 !important;
    color: #fff !important;
    border: none !important;
    transition: all 0.3s ease;
}

.selling-product .product-button button:hover {
    background: #1a6f1a !important;
}

/* Categories pages */
.product-section-content {
    text-align: left;
}

.product-section-content p {
    color: #e6f2e8;
    max-width: 620px;
    margin: 10px 0 0;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
}

.category-flex {
    gap: 20px;
    margin-top: 30px;
}

.product-item {
    flex: 0 1 calc(25% - 15px);
    min-width: 200px;
    display: flex;
}

.category-card-link {
    width: 100%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.prod-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prod-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prod-explore-gallery-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prod-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.prod-explr-imgs {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.prod-explr-imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-red-topc-hedng {
    padding: 20px;
    background: white;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-red-topc-hedng h6 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.category-desc {
    font-size: 13px;
    color: #5f6f5f;
    margin: 8px 0 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-count {
    display: inline-block;
    font-size: 11px;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
    margin-bottom: 10px;
}

.btn-shop-now-container {
    margin-top: auto;
}

.btn-shop-now {
    display: inline-block;
    background: #228B22;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-shop-now:hover {
    background: #1a6a1a;
    text-decoration: none;
}

.category-hero .category-hero-content {
    text-align: left;
}

.category-hero .category-hero-content h1,
.category-hero.has-image .category-hero-content h1 {
    color: #f7fff8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
}

.category-hero .category-hero-content p,
.category-hero.has-image .category-hero-content p {
    color: #e6f3e9;
    background: transparent;
    display: block;
    padding: 0;
    border-radius: 0;
    max-width: 760px;
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    margin: 10px 0 0;
}

.products-filter-section {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-flex {
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-button a {
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.product-button a:hover {
    background: #228B22 !important;
    color: white !important;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Products list */
.product-category {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-label {
    font-size: 14px;
}

/* Product details */
.product-breadcrumb-nav {
    background: linear-gradient(180deg, #f8fcf8 0%, #f2f9f2 100%);
    border: 1px solid #e2efe2;
    border-radius: 12px;
    padding: 10px 14px;
}

.product-breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.product-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.product-breadcrumb .breadcrumb-item,
.product-breadcrumb .breadcrumb-item.active {
    color: #4b5d4b;
    font-weight: 500;
}

.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #7aa57a;
    content: ">";
    font-weight: 700;
    padding: 0 8px 0 2px;
}

.product-breadcrumb .breadcrumb-item a {
    color: #1f7f2b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: #155d20;
    border-bottom-color: #155d20;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #2f3c2f;
    max-width: min(45vw, 340px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-images {
    position: sticky;
    top: 20px;
}

.thumbnail-img:hover {
    border-color: #228B22 !important;
    transform: scale(1.05);
}

.product-title {
    line-height: 1.3;
}

.btn-success:hover {
    background: #1a6a1a !important;
    border-color: #1a6a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.quantity-selector input:focus {
    border-color: #228B22;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.25);
    outline: none;
}

/* Cart and checkout responsive */
@media (max-width: 991px) {
    .selling-product .col-lg-4 > div {
        position: static !important;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .button-custom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .button-custom a {
        width: 100%;
        justify-content: center;
    }

    .selling-product .product-flex {
        gap: 12px;
        flex-wrap: wrap;
    }

    .selling-product .product-inner {
        width: calc(50% - 6px);
        min-width: 0;
    }

    .product-item {
        flex: 0 1 calc(50% - 10px);
    }

    .product-inner {
        flex: 1 1 calc(50% - 10px) !important;
    }

    .products-count {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
    }

    .category-hero .category-hero-content p {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.6;
    }

    .row.g-3 > div,
    .col-md-1 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        border: 1px solid #ececec;
        border-radius: 8px;
        margin: 12px;
        padding: 8px;
        background: #fff;
    }

    .cart-table td {
        text-align: left !important;
        padding: 8px 10px !important;
    }

    .cart-table td:not([data-label="Product"]) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .cart-table td:not([data-label="Product"])::before {
        content: attr(data-label);
        font-weight: 700;
        color: #4b4b4b;
        font-size: 12px;
        text-transform: uppercase;
    }

    .cart-table td[data-label="Product"] > div {
        align-items: flex-start !important;
    }

    .cart-table td[data-label="Product"] img {
        width: 68px !important;
        height: 68px !important;
    }

    .selling-product .col-lg-8 > div,
    .selling-product .col-lg-4 > div {
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .selling-product h3 {
        font-size: 18px !important;
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
    }

    .selling-product label,
    .selling-product input,
    .selling-product select,
    .selling-product textarea,
    .selling-product button,
    .selling-product a {
        font-size: 14px !important;
    }

    .selling-product input,
    .selling-product select,
    .selling-product textarea {
        padding: 10px !important;
    }

    .selling-product .row .col-md-6,
    .selling-product .row .col-md-4,
    .selling-product .row .col-md-3,
    .selling-product .row .col-md-2,
    .selling-product .row .col-md-12 {
        margin-bottom: 8px;
    }

    .selling-product [style*="max-height: 400px"] {
        max-height: 260px !important;
    }

    .selling-product [style*="justify-content: space-between"] {
        flex-wrap: wrap;
        gap: 6px;
    }

    .product-breadcrumb-nav {
        padding: 8px 10px;
    }

    .product-meta {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .product-actions form {
        flex-direction: column;
        gap: 10px !important;
    }

    .product-actions .quantity-selector,
    .product-actions .quantity-selector input {
        width: 100% !important;
    }

    .product-actions label {
        margin-bottom: 4px !important;
    }

    .product-breadcrumb {
        font-size: 13px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .product-breadcrumb .breadcrumb-item.active {
        max-width: 50vw;
    }

    .product-images {
        position: static;
    }

    .product-info {
        margin-top: 20px;
    }

    .row.mt-5 .d-flex.flex-wrap > div {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 0 !important;
    }
}

@media (max-width: 576px) {
    .product-price {
        font-size: 28px !important;
    }

    .product-title {
        font-size: 22px !important;
    }

    .row.mt-5 .d-flex.flex-wrap > div {
        flex: 1 1 100% !important;
    }

    .main-image img,
    .product-images .main-image img {
        height: 320px !important;
    }
}

@media (max-width: 520px) {
    .selling-product .product-inner {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-item {
        flex: 0 1 100%;
    }

    .product-inner {
        flex: 1 1 100% !important;
    }
}

/* Search and reviews */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.star {
    color: #ddd;
    transition: color 0.2s;
}

.star.active {
    color: #FFD700;
}

.star:hover {
    color: #FFA500;
}

/* Home best-selling card detail classes */
.home-bs-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-bs-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.home-bs-details {
    padding: 15px;
    flex-grow: 1;
}

.home-bs-desc {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    min-height: 35px;
}

.home-bs-price {
    font-size: 18px;
    font-weight: 600;
    color: #228B22;
    margin: 10px 0;
}

.price-strike {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: block;
}

.price-green {
    color: #228B22;
}

.discount-label {
    font-size: 11px;
    color: #c2185b;
    display: block;
}

.home-bs-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.home-bs-view,
.home-bs-add-form {
    flex: 1;
}

.home-bs-view {
    display: block;
    padding: 10px;
    text-align: center;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.hidden-qty {
    display: none;
}

.home-bs-add-btn {
    width: 100%;
    padding: 10px;
    background: #228B22;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

/* Category show page utility classes */
.cat-show-filter-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.cat-show-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.cat-show-input-group {
    display: flex;
    align-items: stretch;
}

.cat-show-search-input {
    border-radius: 6px 0 0 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
}

.cat-show-search-btn {
    border-radius: 0 6px 6px 0;
    padding: 0 20px;
    background: #228B22;
    border-color: #228B22;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.cat-show-sort-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

.cat-show-clear-btn {
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
}

.cat-show-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-show-muted {
    margin: 0;
    font-size: 14px;
}

.cat-show-green {
    color: #228B22;
}

.cat-show-item {
    flex: 0 1 calc(25% - 15px);
    min-width: 200px;
}

.cat-show-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-show-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cat-show-details {
    flex-grow: 1;
    padding: 15px;
}

.cat-show-title {
    margin: 8px 0;
}

.cat-show-title-link {
    text-decoration: none;
    color: #333;
}

.cat-show-desc {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    min-height: 35px;
}

.cat-show-price {
    font-size: 18px;
    font-weight: 600;
    color: #228B22;
    margin: 10px 0;
}

.cat-show-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
}

.cat-show-view,
.cat-show-add-form {
    flex: 1;
}

.cat-show-view {
    display: block;
    padding: 10px;
    text-align: center;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.cat-show-add-btn {
    width: 100%;
    padding: 10px;
    background: #228B22;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

/* Search page utility classes */
.search-result-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-discount-label {
    font-size: 11px;
    color: #c2185b;
    display: block;
}

.search-view-btn {
    width: 100%;
    text-align: center;
    display: block;
}
