.page-main {
    min-height: 100vh;
    padding-top: 0;
}

.breadcrumb {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb .section-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--gray-800);
    font-weight: 500;
}

.product-detail-section {
    padding: 1rem 0 2rem;
    background: var(--white);
    overflow: clip;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
}

.product-gallery,
.product-info-detail,
.products-main,
.products-page-layout {
    min-width: 0;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-main {
    position: relative;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 0.5rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    padding: 1rem 0;
}

.product-shop-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    min-width: 0;
}

.product-shop-info img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.product-shop-info span {
    font-weight: 600;
    color: var(--gray-700);
}

.product-shop-info .verified {
    color: var(--primary);
}

.product-title-lg {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #130e1d;
    -webkit-text-stroke: 0;
    text-shadow: none;
    margin-bottom: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.product-rating-lg {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-rating-lg .stars {
    color: var(--warning);
    font-size: 1rem;
}

.product-rating-lg .rating-text {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.product-rating-lg .sales-text {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.product-price-lg {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
}

.product-price-lg .current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price-lg .original-price {
    font-size: 1.25rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price-lg .discount-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-description {
    margin-bottom: 1.5rem;
}

.product-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.product-description p {
    color: var(--gray-600);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary);
    width: 20px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-section label {
    font-weight: 600;
    color: var(--gray-700);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-700);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.product-actions-lg {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.product-actions-lg .btn-lg {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.product-guarantees {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.guarantee i {
    color: var(--success);
}

.related-products-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.products-page-section {
    padding: 2rem 0 4rem;
    background: var(--gray-50);
}

.browse-category-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.browse-category-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 600;
    background: var(--white);
}

.browse-category-links a img {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    object-fit: contain;
}

.browse-category-links a:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--primary-50);
}

.browse-category-links i {
    color: var(--primary);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .browse-category-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.products-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .products-page-layout {
        grid-template-columns: 1fr;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .products-page-section {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .products-page-section .section-container {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }

    .product-detail-section .section-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .products-page-section .product-info {
        padding: 0.5rem;
    }

    .products-page-section .add-to-cart-btn {
        min-height: 38px;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        font-size: 0.7rem;
    }
}

.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section h3 i {
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.filter-option:hover {
    color: var(--primary);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--primary);
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.price-inputs span {
    display: none;
}

.products-main {
    min-height: 60vh;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Keep the shop title and its controls visually grouped on wide screens. */
.shop-page .products-header {
    display: grid;
    grid-template-columns: max-content auto;
    justify-content: start;
    align-items: center;
    column-gap: clamp(1rem, 3vw, 2.25rem);
}

.shop-page .products-header h2 {
    min-width: 0;
    margin: 0;
}

.shop-listing-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 0;
}

.location-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 600;
}

.shop-page .location-control {
    gap: 0.3rem;
    min-width: 0;
}

.shop-page .location-control > span {
    white-space: nowrap;
}

.shop-page .location-control .cs-select {
    flex: 0 1 126px;
    width: 126px !important;
    min-width: 0 !important;
}

.location-control select {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-700);
    padding: 0.45rem 0.7rem;
    max-width: 170px;
}

@media (max-width: 640px) {
    .shop-listing-controls {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: center;
        gap: 0.6rem;
        width: 100%;
    }

    .location-control {
        min-width: 0;
        gap: 0.25rem;
    }

    .shop-page .location-control .cs-select {
        flex: 1 1 0;
        width: auto !important;
        max-width: none;
    }

    .shop-page .sort-controls {
        min-width: 0;
    }

    .shop-page .sort-controls .cs-select {
        width: 100% !important;
        max-width: none;
    }

    .shop-page .sort-controls .cs-select {
        flex-basis: auto;
    }

    .shop-page .location-control > span {
        font-size: 0.72rem;
    }
}

.results-info {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.shop-page .sort-controls .cs-select {
    flex: 0 1 158px;
    width: 158px !important;
    min-width: 0 !important;
}

@media (max-width: 900px) {
    .shop-page .products-header {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    .shop-page .shop-listing-controls {
        justify-content: flex-start;
        width: 100%;
    }
}

.sort-controls label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.no-products i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-products h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-products p {
    color: var(--gray-500);
}

.shop-page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.shop-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.shop-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.shop-logo-lg {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    background: var(--white);
}

.shop-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info-lg {
    flex: 1;
}

.shop-info-lg h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #130e1d;
    -webkit-text-stroke: 0;
    text-shadow: none;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.shop-info-lg p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-info-lg .verified {
    color: #4ade80;
    font-size: 1.25rem;
}

.shop-stats {
    display: flex;
    gap: 2rem;
}

.shop-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.shop-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.shop-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .shop-info-lg h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .shop-page-header {
        padding: 2rem 0;
    }

    .shop-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .shop-logo-lg {
        width: 100px;
        height: 100px;
    }

    .shop-info-lg h1 {
        font-size: 1.35rem;
        justify-content: center;
    }

    .shop-info-lg p {
        font-size: 0.9rem;
        margin: 0 auto 1.25rem;
    }

    .shop-stats {
        justify-content: center;
        gap: 1.25rem;
    }

    .shop-stat-value {
        font-size: 1.15rem;
    }
}

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .product-gallery {
        position: static;
    }
    
    .products-page-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-section .section-container,
    .products-page-section .section-container {
        min-width: 0;
    }

    .product-detail-grid {
        gap: 0.75rem;
    }

    .product-title-lg {
        font-size: 1.5rem;
    }
    
    .product-price-lg .current-price {
        font-size: 2rem;
    }
    
    .product-actions-lg {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions-lg .btn-lg {
        width: 100%;
        min-width: 0;
    }
    
    .product-guarantees {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .shop-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .shop-stats {
        justify-content: center;
    }
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }

.toast-icon {
    font-size: 1.25rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.toast-close {
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.toast-close:hover {
    color: var(--gray-600);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ── Standalone catalogue and product pages ─────────────────────────────── */
.catalogue-page,
.product-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.catalogue-page #app,
.product-page #app {
    display: flex;
    min-height: 100vh;
    flex: 1;
    flex-direction: column;
}

.catalogue-page .shared-footer,
.product-page .shared-footer {
    flex-shrink: 0;
}

.catalogue-main,
.product-main {
    flex: 1;
    background:
        radial-gradient(circle at 88% 0%, rgba(139, 92, 246, .11), transparent 29rem),
        var(--gray-50);
}

.catalogue-main {
    padding: 2.6rem 0 4.5rem;
}

.catalogue-hero {
    max-width: 760px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.catalogue-hero .eyebrow,
.product-detail-page .eyebrow {
    margin-bottom: .7rem;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.catalogue-hero h1 {
    margin-bottom: .65rem;
    color: #130e1d;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
}

.catalogue-hero p {
    color: var(--gray-600);
    font-size: 1rem;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto 1.25rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(109, 40, 217, .12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-sm);
}

.products-toolbar-heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .08rem;
}

.products-toolbar-label {
    color: var(--gray-800);
    font-size: .85rem;
    font-weight: 700;
}

.products-toolbar-hint {
    color: var(--gray-500);
    font-size: .72rem;
}

.products-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
}

.products-toolbar-controls label {
    min-width: 140px;
}

.products-toolbar-controls .cs-select,
.products-toolbar-controls select {
    width: 100%;
}

.products-toolbar-controls select {
    min-height: 2.45rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(109, 40, 217, .14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .72);
    color: var(--gray-700);
    font-size: .8rem;
}

.catalogue-main #productsGrid {
    max-width: 1120px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.catalogue-main #productsGrid .location-empty-state,
.product-detail-page > .location-empty-state {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 220px;
    padding: 2.5rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .86);
    text-align: center;
}

.catalogue-main #productsGrid .location-empty-state i,
.product-detail-page > .location-empty-state i {
    margin-bottom: .45rem;
    font-size: 1.7rem;
}

.catalogue-main #productsGrid .location-empty-state strong,
.product-detail-page > .location-empty-state strong {
    color: var(--gray-900);
    font-family: var(--font-display);
    font-size: 1rem;
}

.catalogue-main #productsGrid .location-empty-state span,
.product-detail-page > .location-empty-state span {
    max-width: 34rem;
    color: var(--gray-500);
    font-size: .85rem;
}

.product-main {
    padding: 2.25rem 0 4.5rem;
}

.product-detail-page {
    max-width: 1120px;
    margin: 0 auto;
}

.product-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}

.product-detail-page .back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-2px);
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(109, 40, 217, .12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 36px rgba(35, 18, 66, .08);
}

.product-detail-image {
    display: grid;
    min-height: 420px;
    overflow: hidden;
    place-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gray-50), #ede9fe);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.product-detail-image i {
    color: var(--primary-light);
    font-size: 3rem;
}

.product-detail-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: .5rem 0;
}

.product-detail-copy h1 {
    margin-bottom: .85rem;
    color: #130e1d;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.product-detail-copy > p:not(.eyebrow) {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: .95rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.product-detail-price {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1;
}

.product-detail-copy .btn {
    min-width: 180px;
}

.product-detail-page > .location-empty-state {
    min-height: 300px;
}

.product-detail-page > .location-empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .45rem;
    padding: .7rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--gradient-1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, .22);
    color: var(--white);
    font-size: .82rem;
    font-weight: 700;
}

.product-detail-page > .location-empty-state a:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(99, 102, 241, .3);
}

@media (max-width: 1024px) {
    .catalogue-main #productsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .catalogue-main,
    .product-main {
        padding-top: 1.5rem;
    }

    .catalogue-hero {
        margin-bottom: 1.25rem;
    }

    .catalogue-hero h1 {
        font-size: 2rem;
    }

    .products-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: .7rem;
    }

    .products-toolbar-controls {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-toolbar-controls label {
        min-width: 0;
    }

    .catalogue-main #productsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: .85rem;
    }

    .product-detail-image,
    .product-detail-image img {
        min-height: min(78vw, 420px);
    }

    .product-detail-copy {
        padding: .35rem;
    }
}

@media (max-width: 480px) {
    .catalogue-main,
    .product-main {
        padding-bottom: 2.5rem;
    }

    .catalogue-main .section-container,
    .product-main .section-container {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .products-toolbar-controls {
        grid-template-columns: 1fr;
    }

    .products-toolbar-controls select,
    .products-toolbar-controls .cs-trigger {
        min-height: 2.35rem;
    }

    .catalogue-main #productsGrid {
        gap: .5rem;
    }

    .product-detail-card {
        border-radius: var(--radius-lg);
    }
}
