/* ═══════════════════════════════════════════════════════════════════
   TIOO Shop — E-commerce Styles
   Extends marketing base template; uses design tokens from base.css
   All classes use the `shop-` prefix to match HTML templates.
   ═══════════════════════════════════════════════════════════════════ */


/* ── 0. Utility ──────────────────────────────────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ── 1. Shop Main / Container ────────────────────────────────────── */

.shop-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}


/* ── 2. Sub-Navigation ───────────────────────────────────────────── */

.shop-subnav {
    position: sticky;
    top: 72px;
    z-index: 90;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.shop-subnav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 56px;
}

.shop-subnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
}

.shop-subnav-links::-webkit-scrollbar {
    display: none;
}

.shop-subnav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.shop-subnav-link:hover {
    color: var(--color-gray-900);
    background: var(--color-gray-100);
}

.shop-subnav-link.active {
    color: var(--color-primary);
    background: rgba(28, 35, 45, 0.08);
    font-weight: 600;
}

.shop-subnav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


/* ── 3. Search Form ──────────────────────────────────────────────── */

.shop-search-form {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.shop-search-form input {
    width: 100%;
    padding: 8px 16px 8px 38px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--color-gray-50);
    transition: all var(--transition-fast);
    color: var(--color-gray-800);
}

.shop-search-form input::placeholder {
    color: var(--color-gray-400);
}

.shop-search-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(28, 35, 45, 0.1);
}

.shop-search-form svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.shop-search-form button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-400);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


/* ── 4. Cart Icon & Badge ────────────────────────────────────────── */

.shop-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.shop-cart-icon:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.shop-cart-icon svg {
    width: 22px;
    height: 22px;
}

.shop-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}


/* ── 5. Hero Section ─────────────────────────────────────────────── */

.shop-hero {
    position: relative;
    padding: 64px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
    overflow: hidden;
    text-align: center;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.shop-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px;
}

.shop-hero-inner h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 12px;
    letter-spacing: -0.75px;
}

.shop-hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px;
    line-height: 1.6;
}

.shop-hero-search {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.shop-hero-search input {
    width: 100%;
    padding: 14px 100px 14px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-gray-800);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.shop-hero-search input::placeholder {
    color: var(--color-gray-400);
}

.shop-hero-search input:focus {
    outline: none;
    background: var(--color-white);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.shop-hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.shop-hero-search button:hover {
    background: var(--color-primary-light);
}


/* ── 6. Section Wrappers ─────────────────────────────────────────── */

.shop-section {
    padding: 48px 0;
}

.shop-section--alt {
    padding: 48px 0;
    background: var(--color-gray-50);
}

.shop-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.shop-section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0;
    letter-spacing: -0.5px;
}

.shop-section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.shop-section-link:hover {
    text-decoration: underline;
}


/* ── 7. Product Grid ─────────────────────────────────────────────── */

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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


/* ── 8. Product Card ─────────────────────────────────────────────── */

.shop-product-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.shop-product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: rgba(28, 35, 45, 0.12);
}

.shop-product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-product-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--color-gray-100);
}

.shop-product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.shop-product-card:hover .shop-product-card-image img {
    transform: scale(1.05);
}

.shop-product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.shop-product-card-badge--sale {
    background: var(--color-error);
    color: var(--color-white);
}

.shop-product-card-badge--low-stock {
    background: #fef3c7;
    color: #92400e;
}

.shop-product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-product-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-400);
    margin-bottom: 6px;
}

.shop-product-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 8px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-card-rating {
    margin-bottom: 10px;
}

.shop-product-card-review-count {
    font-size: 13px;
    color: var(--color-gray-400);
    margin-left: 4px;
    font-weight: 500;
}

.shop-product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 14px;
}

.shop-product-card-current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.shop-product-card-compare-price {
    font-size: 14px;
    color: var(--color-gray-400);
    text-decoration: line-through;
}

.shop-product-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.shop-product-card-btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.shop-product-card-btn--amazon {
    background: #ff9900;
    border-color: #ff9900;
    color: var(--color-white);
}

.shop-product-card-btn--amazon:hover {
    background: #e68a00;
    border-color: #e68a00;
    color: var(--color-white);
}

.shop-product-card-btn--disabled {
    background: var(--color-gray-200);
    border-color: var(--color-gray-200);
    color: var(--color-gray-400);
    cursor: not-allowed;
    pointer-events: none;
}


/* ── 9. Category Grid & Cards ────────────────────────────────────── */

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.shop-category-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.shop-category-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: rgba(28, 35, 45, 0.12);
}

.shop-category-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--color-gray-100);
}

.shop-category-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.shop-category-card:hover .shop-category-card-image img {
    transform: scale(1.05);
}

.shop-category-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    padding-top: 60%;
    position: relative;
}

.shop-category-card-image--placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    color: var(--color-gray-300);
}

.shop-category-card-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-category-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
}

.shop-category-card-count {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-gray-400);
    background: var(--color-gray-100);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}


/* ── 10. Trust Section ───────────────────────────────────────────── */

.shop-trust {
    padding: 48px 0;
    background: var(--color-gray-50);
}

.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.shop-trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
}

.shop-trust-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin: 12px 0 4px;
}

.shop-trust-card p {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin: 0;
    line-height: 1.5;
}

.shop-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(28, 35, 45, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-trust-icon svg {
    width: 24px;
    height: 24px;
}


/* ── 11. Breadcrumbs ─────────────────────────────────────────────── */

.shop-breadcrumbs {
    padding: 14px 0;
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

.shop-breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

.shop-breadcrumbs-item a {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.shop-breadcrumbs-item a:hover {
    color: var(--color-primary);
}

.shop-breadcrumbs-item.current {
    color: var(--color-gray-700);
    font-weight: 600;
}

.shop-breadcrumbs-sep {
    color: var(--color-gray-300);
    font-size: var(--text-xs);
    user-select: none;
    margin: 0 2px;
}


/* ── 12. Filters Sidebar ─────────────────────────────────────────── */

.shop-filters {
    position: sticky;
    top: 160px;
    align-self: start;
}

.shop-filters-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.shop-filters-body {
    display: flex;
    flex-direction: column;
}

.shop-filters-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    cursor: pointer;
    margin-bottom: 16px;
}

.shop-filters-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--color-gray-400);
}

.shop-filter-group {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-gray-200);
}

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

.shop-filter-heading {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-500);
    margin: 0 0 12px;
}

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

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

.shop-filter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-700);
    text-decoration: none;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

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

.shop-filter-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.shop-filter-count {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-left: auto;
}

.shop-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-700);
    padding: 5px 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.shop-filter-checkbox:hover {
    color: var(--color-gray-900);
}

.shop-filter-checkbox input[type="checkbox"],
.shop-filter-checkbox input[type="radio"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ── 13. Product Listing Layout ──────────────────────────────────── */

.shop-listing-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 32px 0;
}

.shop-listing-main {
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-toolbar-count {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.shop-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

.shop-toolbar-sort select {
    padding: 6px 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: var(--color-gray-700);
    background: var(--color-white);
    cursor: pointer;
    appearance: auto;
}

.shop-toolbar-sort select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(28, 35, 45, 0.1);
}

.shop-category-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-800);
    overflow: hidden;
}

.shop-category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(16, 19, 31, 0.7) 0%, rgba(28, 35, 45, 0.5) 100%);
    z-index: 1;
}

.shop-category-hero > * {
    position: relative;
    z-index: 2;
}

.shop-category-hero h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 8px;
    letter-spacing: -0.75px;
}

.shop-category-hero p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 520px;
}


/* ── 14. Pagination ──────────────────────────────────────────────── */

.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 32px 0;
    flex-wrap: wrap;
}

.shop-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.shop-pagination-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(28, 35, 45, 0.04);
}

.shop-pagination-link.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.shop-pagination-prev,
.shop-pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.shop-pagination-prev:hover,
.shop-pagination-next:hover {
    border-color: var(--color-gray-300);
    color: var(--color-gray-900);
    background: var(--color-gray-50);
}

.shop-pagination-prev.disabled,
.shop-pagination-next.disabled {
    color: var(--color-gray-300);
    pointer-events: none;
    background: var(--color-gray-50);
}

.shop-pagination-info {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    padding: 0 12px;
}


/* ── 15. Product Detail ──────────────────────────────────────────── */

.shop-product-detail {
    padding: 40px 0;
}

.shop-product-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.shop-product-gallery {
    position: sticky;
    top: 160px;
}

.shop-product-gallery-main {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-gray-100);
    margin-bottom: 12px;
}

.shop-product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.shop-product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shop-product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.shop-product-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    background: var(--color-gray-100);
}

.shop-product-thumb:hover {
    border-color: var(--color-gray-300);
}

.shop-product-thumb.active {
    border-color: var(--color-primary);
}

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

.shop-product-info {
    display: flex;
    flex-direction: column;
}

.shop-product-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.shop-product-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    background: rgba(28, 35, 45, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.shop-product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.shop-product-current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.shop-product-compare-price {
    font-size: 18px;
    color: var(--color-gray-400);
    text-decoration: line-through;
}

.shop-product-save-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-error);
    background: #fee2e2;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.shop-product-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: 16px;
}

.shop-product-availability--in_stock {
    background: #d1fae5;
    color: #065f46;
}

.shop-product-availability--low_stock {
    background: #fef3c7;
    color: #92400e;
}

.shop-product-availability--out_of_stock {
    background: #fee2e2;
    color: #991b1b;
}

.shop-product-availability--pre_order {
    background: #dbeafe;
    color: #1e40af;
}

.shop-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.shop-product-rating-text {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.shop-product-short-desc {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.shop-product-description {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 16px 0 24px;
}

.shop-product-description p {
    margin: 0 0 12px;
}

.shop-product-description p:last-child {
    margin-bottom: 0;
}

.shop-product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.shop-product-features li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 15px;
    color: var(--color-gray-700);
    line-height: 1.5;
}

.shop-product-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.shop-product-specs-table tr:nth-child(even) {
    background: var(--color-gray-50);
}

.shop-product-specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-product-specs-table td:first-child {
    font-weight: 600;
    color: var(--color-gray-700);
    width: 40%;
    white-space: nowrap;
}

.shop-product-specs-table td:last-child {
    color: var(--color-gray-600);
}

.shop-product-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 8px;
}

.shop-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex: 1;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.shop-product-btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.shop-product-btn--amazon {
    background: #ff9900;
    border-color: #ff9900;
    color: #111;
    font-weight: 700;
}

.shop-product-btn--amazon:hover {
    background: #e68a00;
    border-color: #e68a00;
    color: #111;
}

.shop-product-section {
    padding: 32px 0;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 32px;
}

.shop-product-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0 0 20px;
    letter-spacing: -0.3px;
}


/* ── 16. Quantity Stepper ────────────────────────────────────────── */

.shop-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.shop-qty-stepper--cart {
    border-color: var(--color-gray-200);
}

.shop-qty-btn {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.shop-qty-btn:hover {
    background: var(--color-gray-50);
    color: var(--color-gray-900);
}

.shop-qty-btn:active {
    background: var(--color-gray-100);
}

.shop-qty-btn:disabled {
    color: var(--color-gray-300);
    cursor: not-allowed;
    background: var(--color-white);
}

.shop-qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--color-gray-300);
    border-right: 1px solid var(--color-gray-300);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background: var(--color-white);
    -moz-appearance: textfield;
}

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

.shop-qty-input:focus {
    outline: none;
    background: var(--color-gray-50);
}

.shop-qty-input--cart {
    width: 44px;
    height: 36px;
    border-color: var(--color-gray-200);
}

.shop-qty-stepper--cart .shop-qty-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
}


/* ── 17. Star Rating (unprefixed — from template tags) ───────────── */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    line-height: 1;
}

.star-rating .star {
    color: #f59e0b;
}

.star-rating .star-empty {
    color: var(--color-gray-300);
}

.star-rating .rating-count {
    font-size: 13px;
    color: var(--color-gray-400);
    margin-left: 6px;
    font-weight: 500;
}


/* ── 18. Trust Badges (product detail) ───────────────────────────── */

.shop-product-trust-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid var(--color-gray-200);
}

.shop-product-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-500);
}

.shop-product-trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-gray-400);
    flex-shrink: 0;
}


/* ── 19. Amazon Affiliate ────────────────────────────────────────── */

.shop-product-amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff9900;
    border: 1px solid #e68a00;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.shop-product-amazon-link:hover {
    background: #e68a00;
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.shop-product-amazon-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.shop-product-ftc-disclosure {
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--color-gray-400);
    margin-top: 8px;
    line-height: 1.5;
}


/* ── 20. Reviews ─────────────────────────────────────────────────── */

.shop-reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-200);
}

.shop-reviews-summary-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-gray-900);
    letter-spacing: -0.5px;
}

.shop-reviews-summary-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-reviews-summary-count {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

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

.shop-review-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.shop-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-review-rating {
    flex-shrink: 0;
}

.shop-review-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 8px;
}

.shop-review-body {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0 0 12px;
}

.shop-review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: var(--text-sm);
}

.shop-review-author {
    font-weight: 600;
    color: var(--color-gray-700);
}

.shop-review-date {
    color: var(--color-gray-400);
}

.shop-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-success);
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.shop-reviews-empty {
    text-align: center;
    padding: var(--space-12) var(--space-8);
    color: var(--color-gray-500);
    font-size: 15px;
}


/* ── 21. Cart Page ───────────────────────────────────────────────── */

.shop-cart-page {
    padding: 32px 0;
}

.shop-cart-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.shop-cart-count {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.shop-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.shop-cart-items {
    min-width: 0;
}

.shop-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-cart-table-head th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border-bottom: 2px solid var(--color-gray-200);
    font-weight: 600;
    color: var(--color-gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-cart-row {
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-cart-row td {
    padding: var(--space-4);
    vertical-align: middle;
}

.shop-cart-cell {
    padding: var(--space-4);
    vertical-align: middle;
}

.shop-cart-cell--product {
    min-width: 300px;
}

.shop-cart-cell--price {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-700);
}

.shop-cart-cell--qty {
    white-space: nowrap;
}

.shop-cart-cell--total {
    white-space: nowrap;
}

.shop-cart-cell--remove {
    text-align: center;
    width: 60px;
}

.shop-cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-cart-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-gray-100);
}

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

.shop-cart-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-800);
    text-decoration: none;
    line-height: 1.35;
}

.shop-cart-product-name:hover {
    color: var(--color-primary);
}

.shop-cart-product-sku {
    font-size: 13px;
    color: var(--color-gray-400);
}

.shop-cart-line-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.shop-cart-remove-btn {
    background: none;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-cart-remove-btn:hover {
    color: var(--color-error);
    background: #fee2e2;
}

.shop-cart-remove-btn svg {
    width: 18px;
    height: 18px;
}

.shop-cart-summary {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: sticky;
    top: 160px;
}

.shop-cart-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 20px;
}

.shop-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.shop-cart-summary-row span:first-child {
    color: var(--color-gray-600);
}

.shop-cart-summary-row span:last-child {
    font-weight: 600;
    color: var(--color-gray-800);
}

.shop-cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--color-gray-200);
    margin-top: 12px;
    padding-top: 16px;
}

.shop-cart-summary-total span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.shop-cart-summary-total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.shop-cart-summary-note {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.shop-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.shop-cart-checkout-btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.shop-cart-continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.shop-cart-continue:hover {
    color: var(--color-primary);
}

.shop-empty-state {
    text-align: center;
    padding: var(--space-20) var(--space-8);
}

.shop-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--color-gray-300);
    margin-bottom: var(--space-4);
}

.shop-empty-state h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-gray-700);
    margin: 0 0 8px;
}

.shop-empty-state p {
    font-size: 16px;
    color: var(--color-gray-500);
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ── 22. Cart Cards (mobile layout) ──────────────────────────────── */

.shop-cart-cards {
    display: none;
}

.shop-cart-card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.shop-cart-card:last-child {
    border-bottom: none;
}

.shop-cart-card .shop-cart-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
}

.shop-cart-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-cart-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}


/* ── 23. Cart Drawer ─────────────────────────────────────────────── */

.shop-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    z-index: 200;
    background: var(--color-white);
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
}

.shop-cart-drawer.open {
    right: 0;
}

.shop-cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.shop-cart-drawer-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-cart-drawer-item:last-child {
    border-bottom: none;
}

.shop-cart-drawer-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-gray-100);
}

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

.shop-cart-drawer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-cart-drawer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-cart-drawer-qty {
    font-size: 13px;
    color: var(--color-gray-400);
}

.shop-cart-drawer-total {
    padding: 16px 20px;
    border-top: 2px solid var(--color-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.shop-cart-drawer-total span:last-child {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}

.shop-cart-drawer-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-cart-drawer-actions .btn {
    width: 100%;
    padding: 12px 24px;
}

.shop-cart-drawer-empty {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--color-gray-500);
    font-size: 15px;
}

.shop-cart-drawer-more {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    padding: 8px 0;
}


/* ── 24. Checkout ────────────────────────────────────────────────── */

.shop-checkout-page {
    padding: 32px 0;
}

.shop-checkout-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.shop-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.shop-checkout-form-area {
    min-width: 0;
}

.shop-checkout-section {
    border: none;
    padding: 0;
    margin: 0 0 32px;
}

.shop-checkout-section legend,
.shop-checkout-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-200);
    width: 100%;
    display: block;
}

.shop-checkout-errors {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
}

.shop-checkout-errors ul {
    margin: 4px 0 0;
    padding-left: 20px;
}

.shop-form-group {
    margin-bottom: var(--space-5);
}

.shop-form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
}

.shop-form-group input,
.shop-form-group select,
.shop-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.shop-form-group input:focus,
.shop-form-group select:focus,
.shop-form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(28, 35, 45, 0.12);
}

.shop-form-group select {
    appearance: auto;
}

.shop-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.shop-field-error {
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: var(--space-1);
}

.shop-checkout-summary {
    position: sticky;
    top: 160px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.shop-checkout-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.shop-checkout-items {
    margin-bottom: 16px;
}

.shop-checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-checkout-item:last-child {
    border-bottom: none;
}

.shop-checkout-item-image {
    position: relative;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-gray-100);
}

.shop-checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-checkout-item-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--color-gray-600);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.shop-checkout-item-info {
    flex: 1;
    min-width: 0;
}

.shop-checkout-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-checkout-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    flex-shrink: 0;
}

.shop-checkout-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-200);
}

.shop-checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 15px;
}

.shop-checkout-totals-row span:first-child {
    color: var(--color-gray-600);
}

.shop-checkout-totals-row span:last-child {
    font-weight: 600;
    color: var(--color-gray-800);
}

.shop-checkout-totals-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--color-gray-200);
    margin-top: 8px;
    padding-top: 12px;
}

.shop-checkout-totals-total span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.shop-checkout-totals-total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.shop-checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.shop-checkout-submit:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.shop-checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.shop-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: shop-spin 0.6s linear infinite;
}

@keyframes shop-spin {
    to { transform: rotate(360deg); }
}


/* ── 25. Order Confirmation ──────────────────────────────────────── */

.shop-order-confirm {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
}

.shop-order-confirm h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.shop-order-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.shop-order-confirm-icon svg {
    width: 36px;
    height: 36px;
}

.shop-order-confirm-number {
    font-size: 16px;
    color: var(--color-gray-500);
    margin: 0 0 12px;
}

.shop-order-confirm-number strong {
    color: var(--color-gray-800);
    font-weight: 700;
}

.shop-order-confirm-email {
    font-size: 15px;
    color: var(--color-gray-500);
    margin: 0 0 28px;
    line-height: 1.5;
}

.shop-order-confirm-details {
    text-align: left;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.shop-order-confirm-details h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gray-500);
    margin: 0 0 12px;
}

.shop-order-confirm-items {
    text-align: left;
    margin-bottom: 28px;
}

.shop-order-confirm-items h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gray-500);
    margin: 0 0 12px;
}

.shop-order-confirm-shipping {
    text-align: left;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.shop-order-confirm-shipping h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gray-500);
    margin: 0 0 8px;
}

.shop-order-confirm-shipping p {
    font-size: 15px;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin: 0;
}

.shop-order-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.shop-order-confirm-actions .btn {
    min-width: 160px;
}

.shop-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    margin-bottom: 16px;
}

.shop-order-table thead th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border-bottom: 2px solid var(--color-gray-200);
    font-weight: 600;
    color: var(--color-gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-order-table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: middle;
}

.shop-order-item-row {
    border-bottom: 1px solid var(--color-gray-100);
}

.shop-order-item-row td {
    padding: var(--space-3) var(--space-4);
    vertical-align: middle;
}

.shop-order-item-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-gray-100);
}

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

.shop-order-totals {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-200);
}

.shop-order-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

.shop-order-totals-row span:first-child {
    color: var(--color-gray-600);
}

.shop-order-totals-row span:last-child {
    font-weight: 600;
    color: var(--color-gray-800);
}

.shop-order-totals-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 8px;
    padding-top: 12px;
}

.shop-order-totals-total span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.shop-order-totals-total span:last-child {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
}

.shop-order-address {
    font-size: 15px;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.shop-order-address strong {
    color: var(--color-gray-900);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}


/* ── 26. Order Detail Page ───────────────────────────────────────── */

.shop-order-detail-page {
    padding: 32px 0;
}

.shop-order-detail {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.shop-order-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--color-gray-200);
    flex-wrap: wrap;
    gap: 12px;
}

.shop-order-detail-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0;
    letter-spacing: -0.3px;
}

.shop-order-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-order-detail-date {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.shop-order-detail-body {
    padding: 28px;
}

.shop-order-detail-items {
    margin-bottom: 28px;
}

.shop-order-detail-items h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 16px;
}

.shop-order-detail-shipping {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.shop-order-detail-shipping h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gray-500);
    margin: 0 0 8px;
}

.shop-order-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
}

.shop-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.shop-order-status-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.shop-order-status-badge--paid {
    background: #d1fae5;
    color: #065f46;
}

.shop-order-status-badge--processing {
    background: #dbeafe;
    color: #1e40af;
}

.shop-order-status-badge--shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.shop-order-status-badge--delivered {
    background: #d1fae5;
    color: #065f46;
}

.shop-order-status-badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.shop-order-status-badge--refunded {
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.shop-order-tracking {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.shop-order-tracking h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-700);
    margin: 0 0 8px;
}

.shop-order-tracking-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
}

.shop-order-tracking-number a {
    color: var(--color-primary);
    text-decoration: underline;
}

.shop-order-tracking-number a:hover {
    color: var(--color-primary-light);
}

.shop-order-tracking-info {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-top: 4px;
}

.shop-order-notes {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #92400e;
    line-height: 1.6;
}

.shop-order-notes strong {
    display: block;
    margin-bottom: 4px;
    color: #78350f;
}

.shop-order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.shop-order-item-sku {
    font-size: 13px;
    color: var(--color-gray-400);
    margin-top: 2px;
}


/* ── 27. Order Lookup ────────────────────────────────────────────── */

.shop-order-lookup {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.shop-order-lookup h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 0 0 8px;
}

.shop-order-lookup p {
    font-size: 15px;
    color: var(--color-gray-500);
    margin: 0 0 28px;
}

.shop-order-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.shop-order-lookup-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.shop-order-lookup-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(28, 35, 45, 0.12);
}

.shop-order-lookup-form .btn {
    width: 100%;
    padding: 12px 24px;
}


/* ── 28. Mobile Sticky Cart ──────────────────────────────────────── */

.shop-mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shop-mobile-sticky-cart-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.shop-mobile-sticky-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex: 1;
    max-width: 240px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.shop-mobile-sticky-cart-btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
}


/* ═══════════════════════════════════════════════════════════════════
   29. Responsive Breakpoints
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet (max-width: 768px) ───────────────────────────────────── */

@media (max-width: 768px) {

    /* Sub-navigation */
    .shop-subnav {
        top: 64px;
    }
    .shop-subnav-inner {
        padding: 0 20px;
        height: 52px;
    }
    .shop-search-form {
        max-width: 200px;
    }

    /* Hero */
    .shop-hero {
        padding: 40px 0;
    }
    .shop-hero-inner h1 {
        font-size: var(--text-3xl);
    }

    /* Category hero */
    .shop-category-hero {
        height: 220px;
    }
    .shop-category-hero h1 {
        font-size: var(--text-3xl);
    }

    /* Listing layout */
    .shop-listing-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .shop-filters {
        display: none;
        position: static;
    }
    .shop-filters-sidebar {
        margin-bottom: 20px;
    }
    .shop-filters-toggle {
        display: flex;
    }

    /* Product grid */
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .shop-product-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Category grid */
    .shop-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Product detail */
    .shop-product-detail-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .shop-product-gallery {
        position: static;
    }
    .shop-product-info h1 {
        font-size: 24px;
    }
    .shop-product-current-price {
        font-size: 24px;
    }
    .shop-product-add-to-cart {
        flex-wrap: wrap;
    }

    /* Cart — hide table, show cards */
    .shop-cart-layout {
        grid-template-columns: 1fr;
    }
    .shop-cart-table {
        display: none;
    }
    .shop-cart-cards {
        display: block;
    }
    .shop-cart-summary {
        position: static;
    }

    /* Checkout */
    .shop-checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .shop-checkout-summary {
        position: static;
        order: -1;
    }

    /* Order confirm */
    .shop-order-confirm {
        margin: 32px auto;
        padding: 36px 24px;
    }

    /* Trust badges */
    .shop-product-trust-badges {
        gap: 16px;
    }
    .shop-product-trust-badge {
        font-size: 12px;
    }

    /* Mobile sticky cart — show */
    .shop-mobile-sticky-cart {
        display: flex;
    }
    .shop-product-detail {
        padding-bottom: 72px;
    }

    /* Order detail */
    .shop-order-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Cart drawer */
    .shop-cart-drawer {
        width: 100%;
        right: -100%;
    }

    /* Reviews */
    .shop-review-header {
        flex-direction: column;
    }
}


/* ── Mobile (max-width: 480px) ───────────────────────────────────── */

@media (max-width: 480px) {

    /* Container */
    .shop-main {
        padding: 0 16px;
    }

    /* Sub-navigation */
    .shop-subnav-inner {
        padding: 0 16px;
        gap: 12px;
    }
    .shop-search-form {
        max-width: 160px;
    }
    .shop-subnav-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    /* Hero */
    .shop-hero {
        padding: 32px 0;
    }
    .shop-hero-inner {
        padding: 0 16px;
    }
    .shop-hero-inner h1 {
        font-size: var(--text-2xl);
    }
    .shop-hero-subtitle {
        font-size: var(--text-sm);
    }

    /* Category hero */
    .shop-category-hero {
        height: 180px;
    }
    .shop-category-hero h1 {
        font-size: var(--text-2xl);
    }
    .shop-category-hero p {
        font-size: var(--text-sm);
    }

    /* Product grid */
    .shop-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .shop-product-grid--4 {
        grid-template-columns: 1fr;
    }

    /* Category grid */
    .shop-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Product card */
    .shop-product-card-body {
        padding: 14px;
    }
    .shop-product-card-name {
        font-size: 15px;
    }
    .shop-product-card-current-price {
        font-size: 16px;
    }

    /* Product detail */
    .shop-product-info h1 {
        font-size: 22px;
    }
    .shop-product-current-price {
        font-size: 22px;
    }
    .shop-product-compare-price {
        font-size: 16px;
    }
    .shop-product-thumb {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }
    .shop-product-add-to-cart {
        flex-direction: column;
    }
    .shop-product-add-to-cart .shop-qty-stepper {
        width: 100%;
        justify-content: center;
    }
    .shop-product-add-to-cart .shop-product-btn {
        width: 100%;
    }

    /* Section header */
    .shop-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .shop-section-header h2 {
        font-size: 20px;
    }

    /* Checkout form */
    .shop-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Cart summary */
    .shop-cart-summary {
        padding: 20px;
    }
    .shop-cart-summary-total span:last-child {
        font-size: 20px;
    }

    /* Breadcrumbs */
    .shop-breadcrumbs {
        font-size: var(--text-xs);
        padding: 10px 0;
    }

    /* Order confirm */
    .shop-order-confirm {
        margin: 20px 16px;
        padding: 32px 20px;
        border-radius: var(--radius-xl);
    }
    .shop-order-confirm h1 {
        font-size: 24px;
    }
    .shop-order-confirm-actions {
        flex-direction: column;
    }
    .shop-order-confirm-actions .btn {
        width: 100%;
    }

    /* Order lookup */
    .shop-order-lookup {
        margin: 20px 16px;
        padding: 28px 20px;
    }

    /* Reviews */
    .shop-review-card {
        padding: 16px;
    }

    /* Pagination */
    .shop-pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .shop-pagination-prev,
    .shop-pagination-next {
        padding: 0 10px;
        font-size: 13px;
    }

    /* Trust section */
    .shop-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .shop-trust-card {
        padding: 16px 12px;
    }

    /* Section spacing */
    .shop-section {
        padding: 32px 0;
    }
    .shop-section--alt {
        padding: 32px 0;
    }

    /* Order detail */
    .shop-order-detail-body {
        padding: 20px;
    }
    .shop-order-detail-header {
        padding: 16px 20px;
    }
}
