/* 
 * DagoStore Italia E-commerce Template
 * Main Stylesheet
 */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary-blue: #3165B1;
    --accent-yellow: #FFCC01;
}

/* ===== RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Roboto', sans-serif !important; */
    font-family: "Merriweather", serif;
    background-color: var(--accent-yellow);
    color: #333;
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}


/* ===== BUTTONS & COMMON ELEMENTS ===== */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #2855a0;
    border-color: #2855a0;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    width: fit-content;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
}



/* ===== NAVBAR STYLING ===== */
.navbar {
    /* background-color: var(--primary-blue);
    background-image: url('../images/bgnavbar.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay; */
    background-color: var(--primary-blue);
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar .nav-link {
    color: white;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.navbar .nav-link:hover {
    color: var(--accent-yellow);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: rgba(49, 101, 177, 0.1);
    color: var(--primary-blue);
}

.offcanvas {
    background-color: var(--primary-blue);
    color: white;
    z-index: 9999;
    /* Increased z-index for maximum visibility */
    width: 100vw !important;
    height: 100vh;
    /* More appropriate width for mobile screens */
    /* Maximum width to prevent it from being too large */
    transform: none !important;
    /* Ensure no transform issues */
}

.offcanvas-backdrop {
    z-index: 9990;
    /* Increased z-index for the backdrop */
}

/* Ensure the mobile menu remains visible on all devices */
.offcanvas-start {
    left: 0;
    transform: translateX(-100%);
}

.offcanvas.show {
    transform: translateX(0) !important;
    /* Ensure it shows properly */
}

.offcanvas .nav-link {
    color: white;
}

.offcanvas .btn-close {
    filter: invert(1);
}

/* ===== FOOTER STYLING ===== */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: var(--accent-yellow);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== CARD STYLING ===== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background-color: #f8f9fa;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-logo {
    max-width: 30px;
    max-height: 30px;
}

.card-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.card-img-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
}

.card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ===== PRODUCT CARD STYLES ===== */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card:hover .card-img-container img {
    transform: scale(1.05);
}

.product-card .card-img-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
}

.product-card .card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .price {
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===== RECOMMENDED PRODUCTS SECTION ===== */
.recommended-products {
    margin-top: 3rem;
}

.recommended-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recommended-product-card:hover {
    transform: translateY(-5px);
}

.recommended-product-card .card-img-container {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
}

.recommended-product-card .card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.recommended-product-card:hover .card-img-container img {
    transform: scale(1.05);
}

.recommended-product-card .card-body {
    padding: 1.25rem;
}

.recommended-product-card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== RELATED PRODUCTS SECTION ===== */
.related-products {
    margin-top: 3rem;
}

.related-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-card .card-img-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
}

.related-product-card .card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.related-product-card:hover .card-img-container img {
    transform: scale(1.05);
}

/* ===== PRODUCT DETAILS PAGE ===== */
.product-gallery {
    margin-bottom: 2rem;
}

.main-image-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image-container img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
}

.thumbnails-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0.25rem;
    background-color: #f8f9fa;
}

.thumbnail:hover {
    border-color: #dee2e6;
}

.thumbnail.active {
    border-color: var(--primary-blue);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.product-meta {
    margin-bottom: 1.5rem;
}

.product-meta dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
}

.product-meta dt {
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    margin-right: 1rem;
    font-weight: 500;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    outline: none;
}

.quantity-selector input:focus {
    border-color: var(--primary-blue);
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-selector button:hover {
    background-color: #e9ecef;
}

.add-to-cart-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    width: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
}

.product-tabs {
    margin-top: 3rem;
}

.product-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.product-tabs .nav-link.active {
    color: var(--primary-blue);
    background-color: transparent;
    border-bottom: 2px solid var(--primary-blue);
}

/* ===== SOCIAL SHARE BUTTONS ===== */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.social-share a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share a:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.social-share a.facebook {
    background-color: #3b5998;
}

.social-share a.twitter {
    background-color: #1da1f2;
}

.social-share a.pinterest {
    background-color: #bd081c;
}

.social-share a.linkedin {
    background-color: #0077b5;
}

.social-share a.whatsapp {
    background-color: #25d366;
}

.social-share a.facebook:hover {
    background-color: #264d8c;
}

.social-share a.twitter:hover {
    background-color: #0c85d0;
}

.social-share a.pinterest:hover {
    background-color: #a50718;
}

.social-share a.linkedin:hover {
    background-color: #005e93;
}

.social-share a.whatsapp:hover {
    background-color: #1da851;
}

/* ===== CATALOG PAGE STYLES ===== */
.catalog-container {
    padding: 2rem 0;
}

.filter-sidebar {
    position: sticky;
    top: 200px;
    padding: 20px;
    background-color: #FFF;
    border-radius: 20px;
    ;

}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-option input[type="radio"] {
    margin-right: 0.5rem;
}

.filter-option label {
    cursor: pointer;
    font-size: 0.9rem;
}

.apply-filters-btn {
    width: 100%;
    margin-top: 1rem;
}

.apply-filters-btn:hover {
    background-color: #2855a0;
}

.mobile-filter-btn {
    display: none;
    margin-bottom: 1rem;
}

.filter-offcanvas {
    width: 300px;
}

.filter-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
}

.filter-offcanvas .btn-close {
    filter: invert(1) brightness(200%);
}

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


/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== PAGINATION STYLES ===== */
.pagination-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    color: var(--primary-blue);
    border-color: #dee2e6;
    margin: 0 0.25rem;
    border-radius: 4px;
}

.pagination .page-link:hover {
    background-color: rgba(49, 101, 177, 0.05);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ===== CART PAGE STYLES ===== */
.cart-page {
    padding: 2rem 0;
}

.cart-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    margin-right: 1rem;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
}

.cart-item-details h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cart-item-details p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.cart-item-subtotal {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-actions .btn {
    padding: 0.5rem 1rem;
}

.cart-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.cart-summary-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cart-summary-total {
    font-weight: 700;
    font-size: 1.2rem;
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 0;
}

.empty-cart-message i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* ===== CHECKOUT PAGE STYLES ===== */
.checkout-page {
    padding: 0 10px;
}

.checkout-header {
    margin-bottom: 2rem;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

.step.active .step-number {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.step.active .step-label {
    color: var(--primary-blue);
    font-weight: 500;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.step.completed .step-label {
    color: #28a745;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-section-title i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.form-section-title h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.order-summary-header {
    margin-top: 0px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.order-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    margin-bottom: 1.5rem;
}

.order-item-image {
    width: 70px;
    height: 70px;
    margin-right: 1rem;
    background-color: white;
    padding: 0.25rem;
    border-radius: 4px;
}

.order-item-details {
    flex: 1;
}

.order-item-details h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.order-item-details p {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

.order-item-price {
    font-weight: 500;
    font-size: 0.9rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.order-summary-row:last-child {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.order-summary-total {
    font-weight: 700;
    font-size: 1.1rem;
}

.payment-method {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-method:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-method-header {
    padding: 1rem;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment-method-header i {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #6c757d;
}

.payment-method-body {
    padding: 1rem;
    display: none;
    border-top: 1px solid #dee2e6;
}

.payment-method.active {
    border-color: var(--primary-blue);
}

.payment-method.active .payment-method-header i {
    color: var(--primary-blue);
}

.payment-method.active .payment-method-body {
    display: block;
}

.terms-section {
    margin-top: 2rem;
}

.terms-section .form-check {
    margin-bottom: 0.75rem;
}

.place-order-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* ===== BLOG STYLES ===== */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .blog-img-container {
    height: 180px;
    overflow: hidden;
}

.blog-card .blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img-container img {
    transform: scale(1.05);
}

.blog-card .blog-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .blog-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card .blog-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.blog-meta i {
    margin-right: 0.25rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-header {
    height: 400px;
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.blog-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}

.blog-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.blog-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.comments-section {
    margin-top: 3rem;
}

.comment {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    margin-right: 1.5rem;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.comment-text {
    margin-bottom: 0.75rem;
}

.comment-reply {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-decoration: none;
}

.comment-form {
    margin-top: 2rem;
}

.related-posts {
    margin-top: 3rem;
}

.related-post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-img {
    height: 150px;
    overflow: hidden;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-img img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--primary-blue);
}

/* ===== HERO CAROUSEL STYLES ===== */
.hero-carousel .carousel-item {
    height: 600px;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    /* background-color: rgba(0, 0, 0, 0.6); */
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--primary-blue);
        padding: 1rem;
        border-radius: 0 0 8px 8px;
    }

    .navbar-search-form {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
    }

    .mobile-filter-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5px
    }

    main {
        padding: 5px
    }

    .card-img-top {
        height: 180px;
    }

    footer {
        text-align: center;
    }

    .footer-links {
        margin-bottom: 1.5rem;
    }

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

    .hero-carousel .carousel-item {
        height: 300px;
    }

    .blog-header {
        height: 300px;
    }

    .sort-options {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .checkout-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .checkout-steps::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 150px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        margin-bottom: 1rem;
        margin-right: 0;
        width: 140px;
        height: 140px;
    }

    .sort-options {
        text-align: center;

        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

}

@media (min-width:1024px) {
    dt {
        font-weight: bold;
        width: 300px;
    }

    .sort-options {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .sort-select {
        padding: 0.5rem;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        min-width: 100px;
    }

}