/* Tabs Shop Page Layout */

.shop-layout {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar,
.shop-results {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-results {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.tabs-shop-page {
    position: relative;
    overflow: hidden;
}

.tabs-shop-bg {
    position: absolute;
    inset: 0;
    background: url("/static/images/tabs-shop-bg.jpg") center / cover no-repeat;
    filter: blur(1px);
    transform: scale(1.08);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.tabs-shop-page .page-container {
    position: relative;
    z-index: 1;
    max-width: 1350px;
}

/* Sidebar Cards Styles */

.sidebar-card {
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 18px;
}

.sidebar-card h3 {
    margin-top: 0;
}

.filter-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    text-decoration: none;
    color: var(--text-main);
}

/* Tabs Side filter Styles */

.shop-filter-card {
    padding: 24px;
}

.shop-filter-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.filter-submit-button {
    width: 100%;
    margin-top: 4px;
}

.filter-reset-link {
    text-align: center;
    font-size: 14px;
    text-decoration: none;
}

/* Promo Rotator Styles */

.promo-rotator {
    position: relative;
    min-height: 220px;
}

.promo-slide {
    display: none;
}

.promo-slide.active {
    display: block;
}

.promo-slide h3 {
    color: var(--text-main);
}

.promo-slide p {
    color: var(--text-muted);
    line-height: 1.5;
}

.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}

.promo-arrow.left {
    left: -10px;
}

.promo-arrow.right {
    right: -10px;
}

.promo-arrow:hover {
    background: var(--soft-bg);
}

/* Product Grid Styles */

.tabs-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 30px;
}

.tab-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: var(--text-main);
    text-align: center;
}

.tab-product-card:hover {
    text-decoration: none !important;
}

.tab-product-info {
    margin-top: 10px;
}

/* Product Thumbnail Styles */

.tab-thumbnail {
    width: 100%;
    aspect-ratio: 3.5 / 4;
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 12px;
}

.tab-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tab-thumbnail-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Product Text Styles */

.tab-title-line {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.tab-separator {
    margin: 0 1px;
    opacity: 0.7;
    font-weight: 500;
}

.tab-price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.75;
}

.currency-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.75;
    margin-right: 4px;
    vertical-align: middle;
}

/* Product Actions */

.tab-card-actions {
    margin-top: auto;
}

.tab-card-info {
    min-height: 76px;
}

.tab-card-actions form {
    margin: 0;
}

.tab-card-actions .button,
.tab-card-actions form .button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

/* Floating Cart */

.floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    background: var(--accent);
    color: white;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}