.shop-header {
    background-color: #ffffff;
    padding: 8px 0;
    border-bottom: 3px solid #e0e0e0;
}

/* Shop Product Cards - Smaller Size */
.shop-products .shop-product-item .card {
    display: flex;
    height: 374px;
    min-height: 374px;
    margin-bottom: 20px;
    max-width: 200px;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-products .shop-product-item .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-products .discount-percent-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 11;
    display: inline-flex;
    min-width: 2.4rem;
    min-height: 1.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #ed145b;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(237, 20, 91, 0.28);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

/* Stop click propagation on action buttons */
.shop-products .shop-product-item .wishlist-btn,
.shop-products .shop-product-item .cart-btn,
.shop-products .shop-product-item .inquiry-btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.shop-products .shop-product-item .card-img-top {
    height: 200px !important;
    flex: 0 0 200px;
    padding: 8px;
    object-fit: contain !important;
}

.shop-products .shop-product-item .card-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 8px;
}

.shop-products .shop-product-item .card-body > .d-flex.justify-content-between:first-child {
    min-height: 20px;
}

.shop-products .shop-product-item .card-title {
    min-height: 30px;
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-products .shop-product-item .card-text {
    font-size: 11px;
    margin-bottom: 4px;
}

.shop-products .shop-product-item .card-body > .card-text.text-muted:not(.small) {
    min-height: 14px;
}

.shop-products .shop-product-item .card-body > .card-text.small {
    min-height: 15px;
}

.shop-products .shop-product-item .card-body > .card-text.small.mb-0 {
    min-height: 15px;
}

.shop-products .shop-product-item .card-price {
    font-size: 14px;
    font-weight: 700;
}

.shop-products .shop-product-item .product-price-stack {
    display: flex;
    min-width: 0;
    min-height: 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    line-height: 1.1;
}

.shop-products .shop-product-item .card-original-price {
    color: #8a8a8a !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.shop-products .shop-product-item .wishlist-btn,
.shop-products .shop-product-item .cart-btn,
.shop-products .shop-product-item .inquiry-btn {
    display: inline-flex;
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 12px;
    line-height: 1;
    border-radius: 50% !important;
    text-align: center !important;
    vertical-align: middle;
}

.shop-products .shop-product-item .wishlist-btn i,
.shop-products .shop-product-item .cart-btn i,
.shop-products .shop-product-item .inquiry-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 !important;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.shop-products .shop-product-item .wishlist-btn i::before,
.shop-products .shop-product-item .cart-btn i::before,
.shop-products .shop-product-item .inquiry-btn i::before {
    display: block;
    vertical-align: 0 !important;
}

.shop-products .shop-product-item .inquiry-btn .bi-chat-dots {
    font-size: 1.18em;
}

.shop-products .shop-product-item .card-body > .d-flex.justify-content-between.align-items-center {
    min-height: 32px;
    margin-top: auto !important;
}

.shop-products .shop-product-item .d-flex.gap-2 {
    gap: 4px !important;
}

/* Mobile product cards - even smaller */
.shop-products .mobile-product-card {
    max-width: 140px;
    height: 238px;
    min-height: 238px;
}

.shop-products .mobile-product-card .card-img-top {
    height: 110px !important;
    flex-basis: 110px;
}

.shop-products .mobile-product-card .card-body {
    padding: 6px;
}

.shop-products .mobile-product-card .card-title {
    min-height: 28px;
    font-size: 11px;
}

.shop-products .mobile-product-card .card-price {
    font-size: 12px;
}

.shop-products .mobile-product-card .card-original-price {
    font-size: 10px;
}

.shop-products .mobile-product-card .d-flex.gap-1 {
    gap: 3px !important;
}

.shop-products .mobile-product-card .discount-percent-badge {
    top: 0.45rem;
    right: 0.45rem;
    min-width: 2rem;
    min-height: 1.35rem;
    padding: 0.2rem 0.42rem;
    font-size: 0.6rem;
}

/* Extra small mobile */
@media (max-width: 480px) {
    .shop-products .mobile-product-card {
        max-width: 120px;
        height: 216px;
        min-height: 216px;
    }
    
    .shop-products .mobile-product-card .card-img-top {
        height: 90px !important;
        flex-basis: 90px;
    }
}

.shop-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    white-space: nowrap;
}

.shop-header .shop-title {
    flex-shrink: 0;
}

.shop-header .search-form {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
    min-width: 0;
}

.shop-header .input-group {
    width: 100%;
}

.shop-header .input-group .form-control {
    border-right: none;
    border-color: #a5a5a5;
}

.shop-header .input-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding-left: 14px;
    padding-right: 16px;
    color: #000000;
    border-color: #a5a5a5;
    border-left: none;
    background-color: #fff;
}

.shop-header .input-group .btn .bi-search {
    display: block;
    line-height: 1;
}

.shop-header .input-group .btn:focus {
    box-shadow: none;
}

.shop-header .input-group .btn:hover {
    background-color: #f8f9fa;
}

/* Product Cards - Align buttons to left */
.shop-products .card-body {
    text-align: left;
}

.shop-products .card-body .btn {
    display: inline-block;
    text-align: left;
}

/* Product Card Images */
.shop-products .card-img-top {
    padding: 15px;
    border-radius: 15px;
    object-fit: cover;
}

.shop-products .card {
    border-radius: 15px;
}

/* Cart Button */
.cart-btn {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
}

.cart-btn:hover {
    background-color: #0056b3;
    color: white;
}

/* Wishlist Button */
.wishlist-btn {
    background-color: transparent;
    border: 1px solid #dee2e6;
    border-radius: 100px;
    padding: 8px 12px;
    color: #6c757d;
    transition: all 0.3s;
    font-size: 16px;
}

.wishlist-btn:hover {
    background-color: #ffe6e6;
    border-color: #dc3545;
    color: #dc3545;
}

.wishlist-btn .bi-heart-fill {
    color: #dc3545;
}

.cart-btn {
    background-color: #8a8a8a;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 16px;
}

/* Category Container - Remove spacing between buttons */
.category-container {
    padding: 0;
    margin: 0;
}

.category-container .list-group {
    padding: 0;
    margin: 0;
}

.category-container .list-group-item {
    padding: 8px 0;
    margin: 0;
}

.category-container .category-link {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
}

.category-container .category-link:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.category-container .category-link.active {
    background-color: #007bff;
    color: rgb(0, 0, 0);
    border-radius: 4px;
}

.shop-header .header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#featuredDropdown {
  border-color: #a5a5a5;
  border-radius: 8px;  
  background-color: #fff;   
  width: min(180px, 100%);       
}

#featuredDropdown:hover {
    background-color: #f8f9fa;
    border-color: #3B00FF;
}

#featuredDropdown:focus {
    box-shadow: none;
    border-color: #3B00FF;
}

/* Active filter indicator */
.shop-header .featured-active {
    color: #3B00FF;
    font-weight: 600;
}

.shop-header .dropdown-item:active {
    background-color: #3B00FF;
}

/* Category */

.category-container {
    padding: 20px;
}

.category-container .card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    width: min(220px, 100%);
    flex-shrink: 0;
}

.category-card{
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    width: min(220px, 100%);
    height: fit-content;
    flex-shrink: 0;
}

.category-title {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #a3a3a3;
    margin-top: 20px;
}

.shop-price-filter-form {
    color: #333;
}

.shop-price-filter-form .form-label {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.shop-price-filter-form .form-select,
.shop-price-filter-form .form-control {
    border-color: #d8d8d8;
    border-radius: 8px;
    font-size: 0.85rem;
}

.shop-price-range {
    margin: 0.85rem 0 0.7rem;
}

.shop-price-range-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
}

.shop-range-control {
    position: relative;
    height: 28px;
}

.shop-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    transform: translateY(-50%);
}

.shop-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.shop-range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.shop-range-input::-moz-range-track {
    height: 6px;
    background: transparent;
}

.shop-range-input::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #ed145b;
    box-shadow: 0 2px 8px rgba(237, 20, 91, 0.35);
    cursor: grab;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
}

.shop-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #ed145b;
    box-shadow: 0 2px 8px rgba(237, 20, 91, 0.35);
    cursor: grab;
    pointer-events: auto;
}

.shop-range-input:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.shop-range-input:active::-moz-range-thumb {
    cursor: grabbing;
}

.shop-price-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.shop-price-filter-form .btn {
    border-radius: 8px !important;
    font-weight: 700;
}

.desktop-layout.category-container,
.tablet-layout.category-container {
    display: grid;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 20px;
}

.desktop-layout.category-container {
    grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
}

.tablet-layout.category-container {
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
}

.desktop-layout .category-card,
.tablet-layout .category-card,
.desktop-layout .product-container,
.tablet-layout .product-container {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.desktop-layout .category-card,
.tablet-layout .category-card {
    position: sticky;
    top: 20px;
    box-shadow: none !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.desktop-layout .category-card > .card,
.tablet-layout .category-card > .card {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.desktop-layout .shop-products,
.tablet-layout .shop-products {
    min-width: 0;
}

#shopProductsRowDesktop,
#shopProductsRowTablet {
    display: grid;
    align-items: start;
    width: 100%;
    margin: 0;
}

#shopProductsRowDesktop {
    grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
    justify-content: start;
    gap: 16px;
}

#shopProductsRowTablet {
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    justify-content: start;
    gap: 16px;
}

#shopProductsRowDesktop > .shop-product-item,
#shopProductsRowTablet > .shop-product-item {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
}

#shopProductsRowDesktop > .shop-product-item[class*="col-"],
#shopProductsRowTablet > .shop-product-item[class*="col-"] {
    flex: initial;
    max-width: none;
}

#shopProductsRowDesktop .card,
#shopProductsRowTablet .card {
    width: 100% !important;
    max-width: none;
    margin: 0;
}

/* Products container */
.shop-products .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
}

.shop-products .shop-product-item {
    margin-bottom: 0 !important;
}

.shop-products .shop-product-item .card {
    margin-bottom: 0;
}

.shop-pagination {
    padding: 18px 0 10px;
}

.shop-pagination nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.shop-pagination .pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 1px solid #f3d5e1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(237, 20, 91, 0.12);
}

.shop-pagination .page-item {
    margin: 0;
}

.shop-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    background: transparent;
    color: #2d1630;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.shop-pagination .page-link:hover,
.shop-pagination .page-link:focus {
    background: #ffe8f1;
    color: #ed145b;
    transform: translateY(-1px);
    box-shadow: none;
}

.shop-pagination .page-link:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(237, 20, 91, 0.14);
}

.shop-pagination .page-item.active .page-link {
    background: #ed145b !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(237, 20, 91, 0.28);
}

.shop-pagination .page-item.disabled .page-link {
    background: #f7f2f5;
    color: #b6a7b0;
    opacity: 1;
}

.shop-pagination .page-item:first-child .page-link,
.shop-pagination .page-item:last-child .page-link {
    background: #fff3f8;
    color: #ed145b;
    font-size: 1.2rem;
}

.shop-pagination .page-item:first-child.disabled .page-link,
.shop-pagination .page-item:last-child.disabled .page-link {
    background: #f7f2f5;
    color: #c6b8c1;
}

.mobile-menu-overlay,
.mobile-menu-panel {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(23, 5, 33, 0.68);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1041;
    width: min(320px, 88vw);
    height: 100vh;
    overflow-y: auto;
    background: #fbfaf8;
    border-right: 1px solid #e8e2e7;
    box-shadow: 18px 0 45px rgba(23, 5, 33, 0.22);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem;
    border-bottom: 0;
    background: linear-gradient(135deg, #170521 0%, #3c0a35 52%, #ed145b 100%);
    color: #ffffff;
}

.mobile-menu-header h5 {
    color: #ffffff !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
}

.mobile-menu-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.mobile-menu-logo {
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    border-radius: 12px;
    background: #ffffff;
    object-fit: contain;
    padding: 0.22rem;
    box-shadow: 0 10px 22px rgba(23, 5, 33, 0.18);
}

.mobile-menu-brand span {
    display: block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-menu-header .btn-close {
    --bs-btn-close-bg: none;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    opacity: 1;
    box-shadow: none;
}

.mobile-menu-header .btn-close::before {
    content: "×";
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.mobile-menu-header .btn-close:hover,
.mobile-menu-header .btn-close:focus {
    background: #ffffff;
    color: #ed145b;
}

.mobile-menu-content {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
}

.mobile-menu-section + .mobile-menu-section {
    margin-top: 0;
}

.mobile-menu-section {
    padding: 0.85rem;
    border: 1px solid #e8e2e7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 5, 33, 0.06);
}

.mobile-menu-section-title {
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #8f829b;
    letter-spacing: 0.06em;
}

.mobile-menu-panel .list-group {
    display: grid;
    gap: 0.28rem;
}

.mobile-menu-panel .list-group-item {
    padding: 0;
    background: transparent;
}

.mobile-menu-panel .category-link {
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.58rem 0.72rem;
    border-radius: 10px;
    color: #170521;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mobile-menu-panel .category-link:hover,
.mobile-menu-panel .category-link:focus {
    background: #fff2f6;
    color: #ed145b;
}

.mobile-menu-panel .category-link.active {
    background: #ed145b;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(237, 20, 91, 0.2);
}

.mobile-menu-panel .mobile-menu-section .btn {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    font-weight: 900;
}

.mobile-menu-panel #mobileCartBtn {
    border-color: #ed145b !important;
    background: #ed145b !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(237, 20, 91, 0.22);
}

.mobile-menu-panel .btn-outline-dark {
    border-color: #e8e2e7 !important;
    background: #fff2f6 !important;
    color: #ed145b !important;
}

html.phone-desktop-mode .mobile-menu-overlay,
html.phone-desktop-mode .mobile-menu-panel {
    display: block;
}

html.phone-desktop-mode .mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

html.phone-desktop-mode .mobile-menu-panel.open {
    transform: translateX(0);
}

html.phone-desktop-mode .shop-header {
    padding: 0.45rem 0 0.7rem;
}

html.phone-desktop-mode .shop-header .container {
    gap: 0.55rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

html.phone-desktop-mode .shop-header .d-lg-none {
    display: flex !important;
}

html.phone-desktop-mode .shop-header .d-lg-block,
html.phone-desktop-mode .shop-header .header-actions {
    display: none !important;
}

html.phone-desktop-mode .shop-header .shop-title {
    max-width: calc(100vw - 4.5rem);
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.15;
    white-space: normal;
}

html.phone-desktop-mode #mobileMenuBtn {
    display: inline-flex;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-right: 0.45rem !important;
    line-height: 1;
}

html.phone-desktop-mode .shop-header .search-form {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    margin: 0.45rem 0 0;
}

html.phone-desktop-mode .shop-header .input-group {
    max-width: none !important;
}

html.phone-desktop-mode .shop-header .form-control,
html.phone-desktop-mode .shop-header .input-group .btn {
    min-height: 42px;
    font-size: 0.95rem;
}

html.phone-desktop-mode main.container-fluid {
    padding: 0.85rem !important;
}

html.phone-desktop-mode .desktop-layout.category-container {
    display: block !important;
    padding: 0;
}

html.phone-desktop-mode .desktop-layout .category-card {
    display: none !important;
}

html.phone-desktop-mode #shopProductsRowDesktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

html.phone-desktop-mode #shopProductsRowDesktop > .shop-product-item {
    min-width: 0;
}

html.phone-desktop-mode #shopProductsRowDesktop .card {
    height: auto;
    min-height: 330px;
    border-radius: 12px !important;
}

html.phone-desktop-mode #shopProductsRowDesktop .card-img-top {
    height: 160px !important;
    flex-basis: 160px;
    padding: 0.5rem;
}

html.phone-desktop-mode #shopProductsRowDesktop .card-body {
    padding: 0.55rem 0.65rem 0.65rem;
}

html.phone-desktop-mode #shopProductsRowDesktop .card-title {
    min-height: 2.1rem;
    font-size: 0.82rem;
}

html.phone-desktop-mode #shopProductsRowDesktop .card-text,
html.phone-desktop-mode #shopProductsRowDesktop .text-muted.small {
    font-size: 0.72rem !important;
}

html.phone-desktop-mode #shopProductsRowDesktop .card-price {
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-menu-overlay,
    .mobile-menu-panel {
        display: block;
    }

    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-panel.open {
        transform: translateX(0);
    }

    .shop-header .container {
        justify-content: space-between;
        text-align: left;
    }
    
    .shop-header .shop-title {
        width: auto;
        text-align: left;
        margin-bottom: 0;
        padding: 8px 0;
    }
    
    .shop-header .search-form {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .shop-header .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .category-container {
        padding: 12px;
    }

    .category-container .card,
    .category-card {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .desktop-layout .category-card,
    .tablet-layout .category-card {
        position: static;
    }
}

footer {
    background-color: #000000;
}

/* Cart Slide-out Panel */

/* Cart Slide-out Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-slide {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.cart-slide.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h5 {
    margin: 0;
    font-weight: 600;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-select-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    color: #14111f;
    cursor: pointer;
}

.cart-select-control {
    width: 28px;
    min-width: 28px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-selection-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #cfd6e0;
    border-radius: 5px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cart-selection-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform 0.12s ease-in-out;
    clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 18%, 84% 4%, 37% 67%);
    background: #fff;
}

.cart-selection-checkbox:checked {
    background: #ec0f64;
    border-color: #ec0f64;
}

.cart-selection-checkbox:checked::before {
    transform: scale(1);
}

.cart-selection-checkbox:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

/* Mobile cart-item specific */
@media (max-width: 767.98px) {
    .cart-item {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.cart-count,
.wishlist-count,
.orders-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
}

/* Mobile Cart Modal (below 768px) */
@media (max-width: 767.98px) {
    .cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .cart-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .cart-slide {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(350px, calc(100vw - 24px));
        height: min(500px, calc(100vh - 24px));
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        overflow: hidden !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .cart-slide.open {
        opacity: 1;
        visibility: visible;
    }

    /* Hide mobile menu when cart modal is open */
    .cart-slide.open ~ .mobile-menu-panel,
    .cart-slide.open ~ .mobile-menu-overlay,
    #cartSlide.open ~ #mobileMenuPanel,
    #cartSlide.open ~ #mobileMenuOverlay {
        display: none;
    }

    .cart-header {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 15px 15px 0 0;
    }

    .cart-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 15px;
        max-height: 320px;
        width: 100%;
        box-sizing: border-box;
    }

    .cart-footer {
        padding: 15px 20px;
        border-top: 1px solid #e0e0e0;
        background-color: #f8f9fa;
        border-radius: 0 0 15px 15px;
    }

    .cart-header > div:first-child {
        flex: 1;
    }

    .cart-header .rounded-circle {
        width: 45px !important;
        height: 45px !important;
    }

    .cart-header .icon {
        width: 20px !important;
    }
}

/* Tablet product cards */
@media (min-width: 768px) and (max-width: 991px) {
    .shop-products .shop-product-item .card {
        max-width: 180px;
        height: 354px;
        min-height: 354px;
    }
    
    .shop-products .shop-product-item .card-img-top {
        height: 180px !important;
        flex-basis: 180px;
    }
    
    .shop-products .shop-product-item .card-body {
        padding: 8px;
    }
    
    .shop-products .shop-product-item .card-title {
        font-size: 11px;
    }
}

/* Mobile shop density fixes */
@media (max-width: 767.98px) {
    .shop-footer {
        width: calc(100% + 1.7rem);
        margin-left: -0.85rem;
        margin-right: -0.85rem;
        padding: 15px 10px !important;
    }

    .shop-footer .container-fluid {
        margin-top: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }

    .shop-footer .shop-footer-links,
    .shop-footer .shop-footer-divider,
    .shop-footer .shop-footer-divider > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .shop-footer .shop-footer-links {
        row-gap: 0;
    }

    .shop-footer .shop-footer-customer-service {
        display: none;
    }

    .shop-footer h5,
    .shop-footer h6 {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .shop-footer ul {
        margin-bottom: 0;
    }

    .shop-footer li + li {
        margin-top: 0.28rem;
    }

    .shop-footer a,
    .shop-footer p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .shop-footer p {
        font-size: 0.75rem;
    }

    .shop-footer .shop-footer-divider {
        border-top-width: 3px !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .shop-footer .shop-footer-divider .col-12 {
        text-align: center !important;
    }

    .shop-footer .fab {
        font-size: 1.2rem;
    }

    main.container-fluid {
        padding-top: 0.75rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .shop-header {
        padding: 0.45rem 0 0.7rem;
    }

    .shop-header .container {
        gap: 0.55rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .shop-header .shop-title {
        max-width: calc(100vw - 5rem);
        padding: 0;
        font-size: 1rem;
        line-height: 1.15;
        white-space: normal;
    }

    #mobileMenuBtn {
        width: 34px;
        min-width: 34px;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.4rem !important;
        line-height: 1;
    }

    .shop-header .search-form {
        margin: 0.45rem 0 0;
    }

    .shop-header .input-group {
        max-width: none !important;
    }

    .shop-header .form-control,
    .shop-header .input-group .btn {
        min-height: 42px;
        font-size: 0.95rem;
    }

    #shopProductsRowMobile {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.85rem;
        align-items: stretch;
    }

    #shopProductsRowMobile > .shop-product-item {
        display: flex;
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .shop-products .shop-product-item .mobile-product-card {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: none;
        height: 292px;
        min-height: 292px;
        flex: 1 1 auto;
        margin: 0;
        border-radius: 12px !important;
        overflow: hidden;
    }

    .shop-products .shop-product-item .mobile-product-card .badge {
        max-width: calc(100% - 1rem);
        min-height: 0;
        margin: 0.45rem !important;
        padding: 0.25rem 0.45rem;
        border-radius: 6px;
        font-size: 0.64rem;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-products .shop-product-item .mobile-product-card .card-img-top {
        height: 124px !important;
        flex: 0 0 124px;
        padding: 0.35rem 0.45rem 0.1rem;
        border-radius: 12px;
    }

    .shop-products .shop-product-item .mobile-product-card .card-body {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        padding: 0.3rem 0.5rem 0.35rem;
        overflow: hidden;
    }

    .shop-products .shop-product-item .mobile-product-card .card-body > .d-flex.justify-content-between:first-child {
        height: 18px;
        min-height: 18px;
        align-items: center;
        overflow: hidden;
    }

    .shop-products .shop-product-item .mobile-product-card .card-body > .d-flex.justify-content-between:first-child > .d-flex {
        min-width: 0;
        line-height: 1;
    }

    .shop-products .shop-product-item .mobile-product-card .card-body > .d-flex.justify-content-between:first-child span {
        line-height: 1;
        white-space: nowrap;
    }

    .shop-products .shop-product-item .mobile-product-card .text-muted.small {
        font-size: 0.64rem !important;
        line-height: 1;
    }

    .shop-products .shop-product-item .mobile-product-card .card-title {
        min-height: 1.62rem;
        margin-top: 0.18rem !important;
        margin-bottom: 0.18rem !important;
        font-size: 0.68rem;
        line-height: 1.22;
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
    }

    .shop-products .shop-product-item .mobile-product-card .mobile-product-meta {
        display: grid;
        gap: 0.06rem;
        margin-top: 0.2rem;
    }

    .shop-products .shop-product-item .mobile-product-card .mobile-product-meta .card-text {
        min-height: 0 !important;
        margin-bottom: 0 !important;
        font-size: 0.62rem;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-products .shop-product-item .mobile-product-card .mobile-card-footer {
        display: flex !important;
        width: 100%;
        min-width: 0;
        min-height: 30px;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 0.35rem;
        padding-right: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0.35rem !important;
        margin-bottom: 0 !important;
        text-align: left !important;
        overflow: visible;
    }

    .shop-products .shop-product-item .mobile-product-card .product-price-stack {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 0;
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left;
        overflow: visible;
    }

    .shop-products .shop-product-item .mobile-product-card .mobile-card-footer > .d-flex {
        position: static;
        width: auto;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-end;
    }

    .shop-products .shop-product-item .mobile-product-card .card-price {
        display: block;
        padding-right: 0;
        width: auto;
        max-width: 100%;
        justify-self: start;
        margin-left: 0 !important;
        margin-right: auto !important;
        font-size: 0.78rem;
        line-height: 1.05;
        text-align: left;
        overflow: visible;
        white-space: nowrap;
    }

    .shop-products .shop-product-item .mobile-product-card .card-original-price {
        font-size: 0.62rem;
    }

    .shop-products .shop-product-item .mobile-product-card .wishlist-btn,
    .shop-products .shop-product-item .mobile-product-card .cart-btn,
    .shop-products .shop-product-item .mobile-product-card .inquiry-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 0.8rem;
        border-radius: 999px;
    }
}

@media (max-width: 420px) {
    .shop-footer {
        width: calc(100% + 1.3rem);
        margin-left: -0.65rem;
        margin-right: -0.65rem;
    }

    #shopProductsRowMobile {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.7rem;
    }

    .shop-products .shop-product-item .mobile-product-card {
        height: 286px;
        min-height: 286px;
    }

    .shop-products .shop-product-item .mobile-product-card .card-img-top {
        height: 118px !important;
        flex-basis: 118px;
    }

    .shop-products .shop-product-item .mobile-product-card .card-title {
        min-height: 2.48rem;
        font-size: 0.66rem;
    }

    .shop-products .shop-product-item .mobile-product-card .wishlist-btn,
    .shop-products .shop-product-item .mobile-product-card .cart-btn,
    .shop-products .shop-product-item .mobile-product-card .inquiry-btn {
        width: 28px;
        min-width: 28px;
        height: 28px;
        min-height: 28px;
    }

    .shop-products .shop-product-item .mobile-product-card .mobile-card-footer {
        min-height: 30px;
    }
}
