.new-product-list .block-products-list .grid {
    grid-template-columns: repeat(1,minmax(0,1fr));
}
@media (max-width: 767px) {
    .product-tab-section {
        flex-wrap: wrap;
    }
    .new-product-list .block-products-list .grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


/* Scotland Heritage Style Tartan Swatch Selector */
:root {
    --sh-pine: #1f493a;
    --sh-pine-dark: #16382b;
    --sh-brass: #b08a4a;
    --sh-brass-wash: #ebe2d2;
    --sh-charcoal: #17221d;
    --sh-white: #ffffff;
    --sh-ivory: #fbf8f3;
}

.sh-tartan-wrapper {
    width: 100%;
}

.sh-tartan-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.65rem;
}

.sh-tartan-heading__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sh-tartan-heading__title {
    color: #000000;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0;
    text-transform: uppercase;
}

.sh-tartan-required {
    color: #c53030;
    font-weight: 700;
    font-size: 0.85rem;
}

.sh-tartan-optional {
    color: #737e78;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sh-tartan-help-icon {
    display: inline-flex;
    align-items: center;
    color: #737e78;
    cursor: pointer;
    transition: color 0.15s ease;
}

.sh-tartan-help-icon:hover {
    color: #000000;
}

.sh-tartan-browse-btn {
    background: transparent;
    border: 0;
    color: #000000;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sh-tartan-browse-btn:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.sh-tartan-desc-box {
    background: #ffffff;
    border: 1px solid rgba(31, 73, 58, 0.18);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    color: var(--sh-charcoal, #17221d);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sh-tartan-quick-search {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(31, 73, 58, 0.24);
    border-radius: 6px;
    color: rgba(23, 34, 29, 0.55);
    display: flex;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0 0.85rem;
    width: 100%;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sh-tartan-quick-search:focus-within {
    border-color: var(--sh-brass, #b08a4a);
    box-shadow: 0 0 0 2px rgba(176, 138, 74, 0.15);
}

.sh-tartan-search-icon {
    display: inline-flex;
    color: rgba(23, 34, 29, 0.5);
    flex-shrink: 0;
}

.sh-tartan-quick-search input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--sh-charcoal, #17221d) !important;
    font-size: 0.85rem !important;
    min-height: 44px;
    outline: none !important;
    padding: 0 !important;
    width: 100%;
}

.sh-tartan-quick-search input::placeholder {
    color: #9ba49f;
    font-size: 0.85rem;
}

.sh-tartan-clear-search-btn {
    background: transparent;
    border: 0;
    color: #999;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 0.25rem;
}

.sh-tartan-clear-search-btn:hover {
    color: #333;
}

.sh-tartan-quick-search input::-webkit-search-cancel-button,
.sh-tartan-modal__search-box input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.sh-tartan-inline {
    align-items: stretch;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
    .sh-tartan-inline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sh-tartan-inline-item {
    align-items: center;
    background: #ffffff;
    border: 1.5px solid rgba(31, 73, 58, 0.2);
    border-radius: 6px;
    color: var(--sh-pine, #1f493a);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 0.18rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.sh-tartan-inline-item:hover {
    border-color: var(--sh-pine, #1f493a);
    box-shadow: 0 0 0 2px rgba(31, 73, 58, 0.12);
}

.sh-tartan-inline-item.is-selected {
    border-color: var(--sh-pine, #1f493a) !important;
    box-shadow: 0 0 0 1px var(--sh-pine, #1f493a);
}

.sh-tartan-inline-item::after,
.sh-tartan-inline-item:after,
.sh-tartan-modal__item::after,
.sh-tartan-modal__item:after {
    display: none !important;
    content: none !important;
}

.sh-tartan-check-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 1.45rem;
    height: 1.45rem;
    background: var(--sh-pine, #1f493a);
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.sh-tartan-check-badge svg {
    display: block;
}

.sh-tartan-inline-item.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.sh-tartan-inline-item * {
    pointer-events: none;
}

.sh-tartan-tile-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sh-tartan-tile-media {
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    background: var(--sh-ivory, #f6f2e9);
    position: relative;
    pointer-events: none;
}

.sh-tartan-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.sh-tartan-text-tile {
    align-items: center;
    background: var(--sh-ivory, #f6f2e9);
    border: 1px dashed rgba(31, 73, 58, 0.32);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.3rem;
    box-sizing: border-box;
}

.sh-tartan-tile-label {
    align-items: center;
    display: flex;
    font-size: 0.7rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    min-height: 2.3rem;
    overflow: hidden;
    padding: 0.35rem 0.2rem 0.25rem;
    text-align: center;
    color: var(--sh-charcoal, #17221d);
    word-break: break-word;
}

/* More Card */
.sh-tartan-inline-item.is-more {
    background: var(--sh-pine, #1f493a);
    border-color: var(--sh-pine, #1f493a);
    color: #ffffff;
}

.sh-tartan-inline-item.is-more:hover {
    background: var(--sh-pine-dark, #16382b);
    box-shadow: 0 0 0 2px rgba(31, 73, 58, 0.25);
}

.sh-tartan-more-tile {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    padding: 1rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.sh-tartan-more-tile strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.sh-tartan-more-tile small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.sh-tartan-price-badge {
    background: var(--sh-brass-wash, #ebe2d2);
    border: 1px solid var(--sh-brass, #b08a4a);
    border-radius: 999px;
    color: var(--sh-pine, #1f493a);
    font-size: 0.6rem;
    font-weight: 700;
    left: 0.4rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    position: absolute;
    top: 0.4rem;
    white-space: nowrap;
    z-index: 2;
}

.sh-tartan-empty-inline {
    background: #fbf8f3;
    border: 1px dashed rgba(31, 73, 58, 0.2);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0.85rem;
}

.sh-tartan-btn-link {
    background: transparent;
    border: 0;
    color: var(--sh-pine, #1f493a);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

/* Selected Summary Card */
.sh-tartan-selection {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(31, 73, 58, 0.22);
    border-radius: 8px;
    display: flex;
    gap: 1.25rem;
    margin-top: 0.85rem;
    padding: 0.85rem 1.15rem;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sh-tartan-selection__preview-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.sh-tartan-selection__preview {
    width: 100%;
    height: 100%;
    background: var(--sh-ivory, #f6f2e9);
    border: 1.5px solid rgba(31, 73, 58, 0.18);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    padding: 0.18rem;
    margin: 0;
    display: block;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.sh-tartan-selection__preview:hover {
    border-color: var(--sh-brass, #b08a4a);
}

.sh-tartan-selection__preview img {
    border-radius: 4px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.sh-tartan-selection__zoom {
    align-items: center;
    background: var(--sh-brass, #b08a4a);
    border: 2px solid #ffffff;
    border-radius: 50%;
    bottom: -0.3rem;
    right: -0.3rem;
    color: #ffffff;
    display: flex;
    height: 1.6rem;
    width: 1.6rem;
    justify-content: center;
    position: absolute;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.sh-tartan-selection__zoom:hover {
    background: #96743b;
    transform: scale(1.1);
}

.sh-tartan-selection__copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sh-tartan-selection__title-row {
    align-items: baseline;
    color: var(--sh-charcoal, #17221d);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
}

.sh-tartan-selection__title-row strong {
    font-family: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: #17221d;
    letter-spacing: -0.01em;
}

.sh-tartan-selection__price {
    color: var(--sh-brass, #b08a4a);
    font-size: 0.82rem;
    font-weight: 700;
}

.sh-tartan-selection__subtitle {
    color: #767d79;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0.2rem 0 0;
    font-weight: 400;
}

.sh-tartan-selection__actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.sh-tartan-selection__clear {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    background: transparent;
    border: 0;
    color: #737e78;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background-color 0.15s;
    z-index: 3;
}

.sh-tartan-selection__clear:hover {
    color: #17221d;
    background: #f0ede6;
}

.sh-tartan-selection__clear svg {
    pointer-events: none;
}

.sh-tartan-selection__change {
    background: transparent;
    border: 0;
    color: #000000;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.sh-tartan-selection__change:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

@media (max-width: 640px) {
    .sh-tartan-selection {
        padding: 0.75rem 0.85rem;
        gap: 0.85rem;
    }
    .sh-tartan-selection__preview-wrap {
        width: 60px;
        height: 60px;
    }
    .sh-tartan-selection__title-row strong {
        font-size: 1.05rem;
    }
}

/* Modal Popup */
.sh-tartan-modal__overlay {
    align-items: center;
    background: rgba(8, 24, 20, 0.65);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: fixed;
    z-index: 99999;
}

.sh-tartan-modal__dialog {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 850px);
    max-width: 1100px;
    overflow: hidden;
    width: min(94vw, 1100px);
}

.sh-tartan-modal__header {
    align-items: center;
    border-bottom: 1px solid #e5e0d7;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
}

.sh-tartan-modal__header h2 {
    color: #173f35;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.sh-tartan-modal__header p {
    color: #6b716d;
    font-size: 0.8rem;
    margin: 0.2rem 0 0;
}

.sh-tartan-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #173f35;
    cursor: pointer;
    display: inline-flex;
    font-size: 2rem;
    height: 2.2rem;
    width: 2.2rem;
    justify-content: center;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.sh-tartan-modal__close:hover {
    background: #f0ede6;
}

.sh-tartan-modal__search {
    flex: 0 0 auto;
    padding: 1rem 1.25rem 0.5rem;
}

.sh-tartan-modal__search-box {
    display: flex;
    align-items: center;
    border: 1px solid #cfc8bd;
    border-radius: 6px;
    min-height: 44px;
    padding: 0 0.8rem;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sh-tartan-modal__search-box:focus-within {
    border-color: #173f35;
    box-shadow: 0 0 0 2px rgba(23, 63, 53, 0.14);
}

.sh-tartan-modal__search-box input {
    flex: 1;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    color: var(--sh-charcoal, #17221d) !important;
    padding: 0 !important;
}

.sh-tartan-modal__alphabet {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.5rem 1.25rem 0.75rem;
    scrollbar-width: thin;
}

.sh-tartan-modal__alphabet-label {
    color: var(--sh-charcoal, #17221d);
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sh-tartan-modal__alphabet button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(31, 73, 58, 0.2);
    border-radius: 4px;
    color: var(--sh-pine, #1f493a);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    height: 1.9rem;
    justify-content: center;
    min-width: 1.9rem;
    padding: 0 0.45rem;
    transition: all 0.15s ease;
}

.sh-tartan-modal__alphabet button:hover {
    border-color: var(--sh-pine, #1f493a);
    background: #f6f2e9;
}

.sh-tartan-modal__alphabet button.is-active {
    background: var(--sh-pine, #1f493a) !important;
    border-color: var(--sh-pine, #1f493a) !important;
    color: #ffffff !important;
}

.sh-tartan-modal__results {
    align-content: start;
    display: grid;
    flex: 1 1 auto;
    gap: 0.85rem;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem;
    scrollbar-width: thin;
}

.sh-tartan-modal__item {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(31, 73, 58, 0.2);
    border-radius: 6px;
    color: var(--sh-pine, #1f493a);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sh-tartan-modal__item:hover {
    border-color: var(--sh-pine, #1f493a);
    box-shadow: 0 0 0 2px rgba(31, 73, 58, 0.14);
}

.sh-tartan-modal__item.is-selected {
    border-color: var(--sh-pine, #1f493a) !important;
    box-shadow: 0 0 0 1px var(--sh-pine, #1f493a);
}

.sh-tartan-modal__item * {
    pointer-events: none;
}

.sh-tartan-modal__preview {
    aspect-ratio: 1;
    background: var(--sh-ivory, #f6f2e9);
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    pointer-events: none;
}

.sh-tartan-modal__preview img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}

.sh-tartan-modal__label {
    align-items: center;
    display: flex;
    font-size: 0.75rem;
    font-weight: 600;
    justify-content: center;
    min-height: 42px;
    padding: 0.45rem 0.4rem;
    text-align: center;
    line-height: 1.25;
    color: var(--sh-charcoal, #17221d);
    word-break: break-word;
    pointer-events: none;
}

.sh-tartan-modal__empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #606662;
}

.sh-tartan-empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #173f35;
    margin-bottom: 0.5rem;
}

.sh-tartan-empty-copy {
    font-size: 0.85rem;
    color: #6b716d;
    margin-bottom: 1.25rem;
}

.sh-tartan-btn-primary {
    background: var(--sh-pine, #1f493a);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sh-tartan-btn-primary:hover {
    background: var(--sh-pine-dark, #16382b);
}
