/* Shop Product List Styles */
.shop {
    padding: 40px 0 100px 0;
}
.shop .shop-search {
    margin-bottom: 24px;
}

.shop .shop-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop .shop-search-input:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.shop .shop-empty-state-wrap {
    grid-column: 1 / -1;
}

.shop .shop-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f5;
}

.shop .shop-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4f7fb 0%, #eef3f9 100%);
    color: #14498c;
}

.shop .shop-empty-state__icon svg {
    width: 44px;
    height: 44px;
}

.shop .shop-empty-state__title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #14498c;
    line-height: 1.4;
    max-width: 480px;
}

.shop .shop-empty-state__text {
    margin: 0 0 20px;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 420px;
}

.shop .shop-empty-state__tips {
    list-style: none;
    margin: 0 0 28px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #dbe3ee;
    max-width: 400px;
    width: 100%;
}

.shop .shop-empty-state__tips li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: #4b5563;
    text-align: left;
    line-height: 1.5;
}

.shop .shop-empty-state__tips li:last-child {
    margin-bottom: 0;
}

.shop .shop-empty-state__tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a227;
}

.shop .shop-empty-state__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #14498c;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.shop .shop-empty-state__btn:hover {
    background: #0f3a6e;
    box-shadow: 0 4px 12px rgba(20, 73, 140, 0.25);
}

.shop .shop-empty-state__btn:active {
    transform: translateY(1px);
}

@media (max-width: 575px) {
    .shop .shop-empty-state {
        padding: 36px 20px;
    }

    .shop .shop-empty-state__title {
        font-size: 1.15rem;
    }

    .shop .shop-empty-state__tips {
        padding: 14px 16px;
    }
}

.shop .sidebar {
    padding-right: 30px;
}

.shop .sidebar .widget-categories-bill {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 20px 1px 20px;
    margin-bottom: 30px;
}

.shop .sidebar .widget-title {
    margin-bottom: 20px;
}

.shop .sidebar .widget-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.shop .sidebar .filter-section {
    margin-bottom: 20px;
}

.shop .sidebar .filter-group {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.shop .sidebar .filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shop .sidebar .filter-header {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.shop .sidebar .filter-header .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.shop .sidebar .filter-header.active .arrow {
    transform: rotate(180deg);
}

.shop .sidebar .filter-options {
    margin-top: 0;
    max-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    transition: max-height 0.3s ease;
}

.shop .sidebar .filter-options.open {
    max-height: 200px;
    margin-top: 10px;
}

.shop .sidebar .filter-options label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

.shop .sidebar .filter-options input[type="checkbox"] {
    margin-right: 8px;
}

.shop .sidebar .show-more {
    display: block;
    text-align: center;
    color: #007bff;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px 0;
}

.shop .sidebar .show-more:hover {
    text-decoration: underline;
}

.shop .shop-content .product-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Fix for Bootstrap row::before */
.shop .shop-content .product-lists.row::before {
    display: none;
}

.shop .shop-content .product-lists .product-items {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    width: 100%;
}

.shop .shop-content .product-lists .product-items:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.shop .shop-content .product-lists .product-items .products-img {
    display: block;
    text-decoration: none;
    background: #f8f9fa;
    padding: 30px;
    margin-top: 20px;
}

.shop .shop-content .product-lists .product-items .products-img-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.shop .shop-content .product-lists .product-items .products-img-block .img-product {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
}

.shop .shop-content .product-lists .product-items:hover .products-img-block .img-product {
    transform: scale(1.05);
}

.shop .shop-content .product-lists .product-items .product-bio-title {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop .shop-content .product-lists .product-items .product-bio-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.shop .shop-content .product-lists .product-items .product-bio-title h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    text-transform: uppercase;
}

.shop .shop-content .product-lists .product-items .product-bio-title h4 a:hover {
    color: #007bff;
}

.shop .shop-search__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.shop .shop-search__grid .safin-wishlist__item {
    display: flex;
    min-width: 0;
}

.shop .shop-search__grid .safin-wishlist__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.shop .shop-search__grid .safin-wishlist__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.shop .shop-search__grid .safin-wishlist__card-specs {
    max-height: 88px;
    overflow-y: auto;
}

.shop .shop-search__grid .safin-wishlist__card-actions {
    margin-top: auto;
    flex-shrink: 0;
}

.shop .shop-search__grid .safin-wishlist__card-actions form {
    margin: 0;
    width: 100%;
}

.shop .shop-search__grid .safin-wishlist__card-btn {
    width: 100%;
    color: #fff;
    background: #14498c;
    border: none;
    appearance: none;
    -webkit-appearance: none;
}

.shop .shop-search__grid .safin-wishlist__card-btn:hover,
.shop .shop-search__grid .safin-wishlist__card-btn:focus {
    color: #fff;
    background: #0f3a6e;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .shop .sidebar {
        padding-right: 15px;
        margin-bottom: 30px;
    }

    .shop .shop-content .product-lists {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop .shop-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shop .shop-content .product-lists {
        gap: 20px;
        padding: 0 15px;
    }
    
    .shop .shop-content .product-lists .product-items {
        margin: 0 10px;
    }
    
    .shop .shop-content .product-lists .product-items .products-img-block {
        min-height: 140px;
    }
}

@media (max-width: 575px) {
    .shop {
        padding: 40px 0;
    }

    .shop .shop-search__grid {
        grid-template-columns: 1fr;
    }
    
    .shop .shop-content .product-lists {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .shop .shop-content .product-lists .product-items {
        margin: 0;
        width: calc(100% - 20px);
        margin: 0 auto;
    }
    
    .shop .shop-content .product-lists .product-items .products-img-block {
        min-height: 120px;
    }
    
    .shop .shop-content .product-lists .product-items .products-img {
        padding: 20px;
    }
    
    .shop .shop-content .product-lists .product-items .product-bio-title {
        padding: 15px;
    }
}

.shop-notices {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fafbfc;
}

.shop-notices__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.shop-notices__grid:not(:has(.shop-notices__tile--sales)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-notices__tile {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px 12px;
    align-items: center;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-notices__tile:hover,
.shop-notices__tile:focus-visible {
    border-color: #b8dcfa;
    box-shadow: 0 4px 14px rgba(20, 73, 140, 0.08);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.shop-notices__tile--sales {
    border-color: rgba(235, 94, 40, 0.22);
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}

.shop-notices__tile--sales:hover,
.shop-notices__tile--sales:focus-visible {
    border-color: rgba(235, 94, 40, 0.4);
}

.shop-notices__tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef4fb;
    flex-shrink: 0;
}

.shop-notices__tile--sales .shop-notices__tile-icon {
    background: rgba(235, 94, 40, 0.1);
}

.shop-notices__tile-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.shop-notices__tile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title badge"
        "action action";
    gap: 0 10px;
    align-items: start;
    min-width: 0;
}

.shop-notices__tile-badge {
    grid-area: badge;
    grid-row: 1 / -1;
    justify-self: end;
    align-self: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(20, 73, 140, 0.08);
    color: #14498c;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.shop-notices__tile-badge--sales {
    background: rgba(235, 94, 40, 0.12);
    color: #c44a1d;
}

.shop-notices__tile-title {
    grid-area: title;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #152535;
}

.shop-notices__tile-action {
    grid-area: action;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #14498c;
}

.shop-notices__tile--sales .shop-notices__tile-action {
    color: #c44a1d;
}

.shop-notices__tile-action i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.shop-notices__tile:hover .shop-notices__tile-action i,
.shop-notices__tile:focus-visible .shop-notices__tile-action i {
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .shop-notices__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-notices__grid:has(.shop-notices__tile--sales) .shop-notices__tile--sales {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .shop-notices {
        padding: 12px;
    }

    .shop-notices__grid,
    .shop-notices__grid:not(:has(.shop-notices__tile--sales)) {
        grid-template-columns: 1fr;
    }

    .shop-notices__grid:has(.shop-notices__tile--sales) .shop-notices__tile--sales {
        grid-column: auto;
    }
}
