.goldshop-archive-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    background: #f6f7fb;
    border: 1px solid #edf0f7;
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 18px 40px rgba(15, 35, 52, 0.06);
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', sans-serif;
}

.goldshop-archive-layout * {
    box-sizing: border-box;
}

.goldshop-sidebar {
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 12px 30px rgba(15, 35, 52, 0.07);
    position: sticky;
    top: 16px;
}

.goldshop-filters-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.goldshop-filter-section {
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f6;
}

.goldshop-filter-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.goldshop-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goldshop-filter-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2433;
    margin: 0 0 12px;
    letter-spacing: 0.2px;
}

.goldshop-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goldshop-price-slider {
    position: relative;
    height: 22px;
    margin: 6px 0 10px;
}

.goldshop-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 22px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.goldshop-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #2f4ad0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.goldshop-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #2f4ad0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.goldshop-range::-webkit-slider-runnable-track,
.goldshop-range::-moz-range-track {
    height: 4px;
    background: transparent;
    border-radius: 999px;
}

.goldshop-price-slider .track,
.goldshop-price-slider .track-fill,
.goldshop-price-slider .thumb {
    pointer-events: none;
}

.goldshop-price-slider .track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: #dfe3ec;
    border-radius: 999px;
    transform: translateY(-50%);
}

.goldshop-price-slider .track-fill {
    position: absolute;
    top: 50%;
    left: var(--gold-min, 12%);
    right: calc(100% - var(--gold-max, 88%));
    height: 4px;
    background: #2f4ad0;
    border-radius: 999px;
    transform: translateY(-50%);
    box-shadow: 0 6px 16px rgba(47, 74, 208, 0.25);
    z-index: 1;
}

.goldshop-price-slider .thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #2f4ad0;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.goldshop-price-slider .thumb-min {
    left: var(--gold-min, 12%);
}

.goldshop-price-slider .thumb-max {
    left: var(--gold-max, 88%);
}

.goldshop-price-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #3b4256;
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 8px;
}

.goldshop-price-inputs {
    display: flex;
    gap: 10px;
}

.goldshop-price-inputs label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: #7a8092;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.goldshop-price-inputs input {
    margin-top: 6px;
    width: 100%;
    border: 1px solid #dfe3ec;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f9fafc;
    font-weight: 700;
    color: #171b2a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.goldshop-price-inputs input:focus {
    outline: 2px solid rgba(47, 74, 208, 0.25);
    border-color: #2f4ad0;
    background: #fff;
}

.goldshop-checkbox {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    color: #3b4256;
    position: relative;
}

.goldshop-checkbox:hover {
    background: #f6f7fb;
    border-color: #e5e8f1;
}

.goldshop-checkbox input {
    position: absolute;
    opacity: 0;
}

.goldshop-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #c7ccdc;
    border-radius: 4px;
    display: inline-block;
    background: #fff;
    position: relative;
}

.goldshop-checkbox input:checked + .checkmark {
    border-color: #2f4ad0;
    background: #2f4ad0;
    box-shadow: 0 6px 12px rgba(47, 74, 208, 0.25);
}

.goldshop-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.goldshop-checkbox .label-text {
    font-size: 13px;
    font-weight: 600;
}

.goldshop-checkbox .label-count {
    font-size: 12px;
    color: #7f879c;
}

.goldshop-filter-apply {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14px;
    background: #5062e6;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(80, 98, 230, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.goldshop-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(80, 98, 230, 0.34);
}

.goldshop-filter-apply:focus {
    outline: 2px solid rgba(80, 98, 230, 0.35);
    outline-offset: 2px;
}

.goldshop-products-area {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.goldshop-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e7eaf3;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 28px rgba(15, 35, 52, 0.05);
    font-size: 13px;
}

.goldshop-archive-left {
    flex: 1;
    color: #6c7386;
}

.goldshop-results-count {
    font-weight: 700;
    color: #1f2433;
}

.goldshop-archive-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.goldshop-show-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.goldshop-show-options .label {
    font-weight: 700;
    color: #3b4256;
}

.goldshop-show-options a {
    font-size: 13px;
    color: #7d8498;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
}

.goldshop-show-options a:hover {
    color: #2f4ad0;
}

.goldshop-show-options a.active {
    color: #2f4ad0;
    background: #eef1fb;
    border-color: #d6dbf6;
}

.goldshop-view-toggle {
    display: inline-flex;
    gap: 8px;
}

.goldshop-view-toggle .view-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #dfe3ec;
    position: relative;
    background: #fff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.goldshop-view-toggle .view-grid::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    top: 8px;
    left: 8px;
    background: #c3c7d6;
    border-radius: 2px;
    box-shadow: 10px 0 0 0 #c3c7d6, 0 10px 0 0 #c3c7d6, 10px 10px 0 0 #c3c7d6;
}

.goldshop-view-toggle .view-list::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    top: 9px;
    left: 9px;
    background: #c3c7d6;
    box-shadow: 0 6px 0 0 #c3c7d6, 0 12px 0 0 #c3c7d6;
}

.goldshop-view-toggle .view-icon.active {
    border-color: #2f4ad0;
    background: #eef1fb;
    box-shadow: 0 8px 18px rgba(47, 74, 208, 0.22);
}

.goldshop-view-toggle .view-icon.active::before {
    background: #2f4ad0;
    box-shadow: 10px 0 0 0 #2f4ad0, 0 10px 0 0 #2f4ad0, 10px 10px 0 0 #2f4ad0;
}

.goldshop-view-toggle .view-list.active::before {
    background: #2f4ad0;
    box-shadow: 0 6px 0 0 #2f4ad0, 0 12px 0 0 #2f4ad0;
}

.goldshop-sorting select.orderby {
    min-width: 180px;
    height: 38px;
    padding: 0 34px 0 12px;
    border-radius: 10px;
    border: 1px solid #dfe3ec;
    background: #fff;
    color: #333b4d;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7d8498 50%), linear-gradient(135deg, #7d8498 50%, transparent 50%), linear-gradient(to right, #ffffff, #ffffff);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
}

.goldshop-sorting select.orderby:focus {
    outline: 2px solid rgba(47, 74, 208, 0.26);
    border-color: #2f4ad0;
}

.goldshop-products-grid {
    display: grid;
    gap: 20px;
}

.goldshop-products-grid.layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.goldshop-products-grid.columns-2.layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goldshop-products-grid.columns-3.layout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goldshop-products-grid.columns-4.layout-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goldshop-products-grid.layout-list {
    grid-template-columns: minmax(0, 1fr);
}

.goldshop-product-card {
    background: #f7f8fb;
    border: 1px solid #e9ecf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 35, 52, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.goldshop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 35, 52, 0.14);
}

.goldshop-products-grid.layout-list .goldshop-product-card {
    flex-direction: row;
    align-items: stretch;
}

.goldshop-product-thumb {
    position: relative;
    padding: 20px;
    text-align: center;
    background: #fdfdfd;
    border-bottom: 1px solid #edf0f7;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goldshop-products-grid.layout-list .goldshop-product-thumb {
    flex: 0 0 220px;
    border-bottom: 0;
    border-right: 1px solid #edf0f7;
}

.goldshop-product-thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.goldshop-product-thumb img {
    max-width: 100%;
    max-height: 240px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.goldshop-badge-out {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffffff;
    color: #e85a5a;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    border: 1px solid #f3bcbc;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.goldshop-product-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goldshop-products-grid.layout-list .goldshop-product-body {
    flex: 1;
}

.goldshop-product-title {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0;
    line-height: 1.35;
}

.goldshop-product-title a {
    color: #1f2433;
    text-decoration: none;
}

.goldshop-product-title a:hover {
    color: #2f4ad0;
}

.goldshop-product-meta {
    font-size: 12px;
    color: #a0a6b6;
}

.goldshop-product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.goldshop-product-rating .star-rating {
    margin: 0;
}

.goldshop-product-price {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.goldshop-card-actions {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.goldshop-product-card:hover .goldshop-card-actions {
    opacity: 1;
    pointer-events: auto;
}

.goldshop-actions-floating {
    position: absolute;
    top: 14px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goldshop-actions-floating .action-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    pointer-events: auto;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
}

.goldshop-actions-floating .action-icon::before,
.goldshop-actions-floating .action-icon::after {
    content: none;
}

.goldshop-actions-floating .action-icon span {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}

.action-share span::before,
.action-share span::after,
.action-compare span::before,
.action-compare span::after,
.action-zoom span::before,
.action-quickview span::before,
.action-wish span::before,
.action-wish span::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
}

.action-share span::before,
.action-compare span::before {
    width: 14px;
    height: 14px;
    border: 1.8px solid #111827;
    border-radius: 3px;
    transform: rotate(45deg);
}

.action-zoom span::before,
.action-quickview span::before {
    width: 12px;
    height: 12px;
    border: 1.8px solid #111827;
    border-radius: 50%;
}

.action-zoom span::after,
.action-quickview span::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: #111827;
    right: -4px;
    bottom: -1px;
    transform: rotate(45deg);
    transform-origin: center;
}

.action-wish span::before {
    width: 16px;
    height: 16px;
    border-radius: 50% 50% 40% 40%;
    border: 1.8px solid #111827;
    transform: rotate(-45deg);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 50% 80%, 18% 100%, 0% 38%);
}

.action-wish span::after {
    width: 16px;
    height: 16px;
    border-radius: 50% 50% 40% 40%;
    border: 1.8px solid #111827;
    transform: rotate(45deg);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 50% 80%, 18% 100%, 0% 38%);
    opacity: 0.7;
}

.goldshop-actions-floating .action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.goldshop-cart-bar {
    display: grid;
    grid-template-columns: 30px 34px 30px 1fr;
    align-items: center;
    gap: 4px;
    background: rgba(52, 62, 82, 0.92);
    color: #fff;
    border-radius: 10px;
    padding: 6px 6px;
    margin: 0 8px 10px;
    pointer-events: auto;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.goldshop-cart-bar .qty-btn {
    width: 30px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.goldshop-cart-bar .qty-input {
    width: 38px;
    height: 26px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.goldshop-cart-bar .qty-input::-webkit-outer-spin-button,
.goldshop-cart-bar .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.goldshop-cart-bar .qty-input[type='number'] {
    -moz-appearance: textfield;
}

.goldshop-cart-bar .goldshop-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: transparent;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-height: 26px;
}

.goldshop-cart-bar .goldshop-add-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.goldshop-pagination {
    margin-top: 10px;
}

.goldshop-pagination .page-numbers {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.goldshop-pagination .page-numbers li a,
.goldshop-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    text-decoration: none;
    color: #222;
    background: #ffffff;
    border: 1px solid #e2e6f0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.goldshop-pagination .page-numbers li span.current {
    background: #2f4ad0;
    color: #fff;
    border-color: #2f4ad0;
}

@media (hover: none) {
    .goldshop-card-actions {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 1200px) {
    .goldshop-products-grid.columns-4.layout-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .goldshop-archive-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .goldshop-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .goldshop-archive-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .goldshop-archive-right {
        width: 100%;
        justify-content: flex-start;
    }

    .goldshop-products-grid.columns-3.layout-grid,
    .goldshop-products-grid.columns-4.layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .goldshop-price-inputs {
        flex-direction: column;
    }

    .goldshop-products-grid.layout-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .goldshop-actions-floating {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .goldshop-actions-floating .action-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .goldshop-cart-bar {
        grid-template-columns: 28px 36px 28px;
        grid-auto-rows: minmax(26px, auto);
        margin: 0 10px 12px;
        max-width: 100%;
    }

    .goldshop-cart-bar .goldshop-add-btn {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        font-size: 11px;
        letter-spacing: 0.2px;
        white-space: normal;
    }

    .goldshop-cart-bar .qty-input {
        width: 36px;
    }
}
