/* ============================================
   KRAMBU STORE - WooCommerce Styles
   ============================================ */

/* --- Store Notices --- */
.wc-block-store-notices:empty,
.wc-block-store-notices:not(:has(.wc-block-components-notice-banner)) {
    display: none;
}

.woocommerce-store-notice {
    background-color: var(--wp--preset--color--accent-primary);
    color: white;
}

/* ============================================
   STORE HERO SECTION
   ============================================ */
.krambu-store-hero {
    position: relative;
    overflow: hidden;
}

/* Subtle gradient mesh behind the hero */
.krambu-store-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(126, 0, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.krambu-store-hero > * {
    position: relative;
    z-index: 1;
}

/* Fix text contrast on dark hero backgrounds */
.krambu-store-hero .has-contrast-muted-color {
    color: rgba(255, 255, 255, 0.6) !important;
}

.krambu-store-hero p,
.krambu-store-hero .wp-block-paragraph {
    color: rgba(255, 255, 255, 0.65);
}

.krambu-product-hero-section .has-contrast-muted-color {
    color: rgba(255, 255, 255, 0.6) !important;
}

.krambu-product-hero-section p,
.krambu-product-hero-section .wp-block-paragraph {
    color: rgba(255, 255, 255, 0.65);
}

/* Sort dropdown styling on dark background */
.krambu-store-hero .wc-block-sort-select__select,
.krambu-store-hero select,
.krambu-product-hero-section .wc-block-sort-select__select,
.krambu-product-hero-section select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 4px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 200ms ease;
}

.krambu-store-hero .wc-block-sort-select__select:hover,
.krambu-store-hero select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.krambu-store-hero .wc-block-sort-select__select:focus,
.krambu-store-hero select:focus {
    border-color: var(--wp--preset--color--accent-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(126, 0, 255, 0.2);
}

/* Dropdown option text (when menu is open) */
.krambu-store-hero select option,
.krambu-product-hero-section select option {
    background: #1a1a2e;
    color: #ffffff;
}

.krambu-store-hero .wc-block-sort-select__label,
.krambu-store-hero .woocommerce-ordering::before,
.krambu-store-hero label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* WooCommerce block sort overrides for dark backgrounds */
.krambu-store-hero .wc-block-sort-select,
.krambu-product-hero-section .wc-block-sort-select {
    color: #ffffff;
}

.krambu-store-hero .wc-block-sort-select__label {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* WooCommerce ordering form on dark */
.krambu-store-hero .woocommerce-ordering select,
.krambu-store-hero .orderby {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
}

/* ============================================
   PRODUCT GRID (Archive Page)
   ============================================ */
.krambu-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--wp--preset--spacing--40) !important;
}

/* ============================================
   CATEGORY GRID (taxonomy-product_cat)
   Clean PHP-rendered cards, no WP block layout
   ============================================ */
.krambu-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
}

.krambu-cat-card {
    display: flex;
    flex-direction: row;
    background: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.krambu-cat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(126, 0, 255, 0.4);
}

.krambu-cat-card__image {
    flex: 0 0 25%;
    display: grid;
    place-items: center;
    background: var(--wp--preset--color--base-alt);
    padding: var(--wp--preset--spacing--40);
}

.krambu-cat-card__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 300ms ease-out;
}

.krambu-cat-card:hover .krambu-cat-card__image img {
    transform: scale(1.05);
}

.krambu-cat-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: var(--wp--preset--spacing--40);
}

.krambu-cat-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 var(--wp--preset--spacing--20);
}

.krambu-cat-card__title a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    transition: color 150ms ease;
}

.krambu-cat-card__title a:hover {
    color: var(--wp--preset--color--accent-primary);
}

.krambu-cat-card__spec {
    font-size: 0.8rem;
    color: var(--wp--preset--color--contrast);
    font-weight: 500;
    margin: var(--wp--preset--spacing--20) 0;
}

.krambu-cat-card__spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--contrast-muted);
    margin-right: 4px;
}

.krambu-cat-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--wp--preset--color--contrast-muted);
    margin: var(--wp--preset--spacing--20) 0;
}

.krambu-cat-card__excerpt p {
    margin: 0;
}

.krambu-cat-card__excerpt ul,
.krambu-cat-card__excerpt ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.krambu-cat-card__excerpt li::before {
    content: '– ';
    color: var(--wp--preset--color--contrast-muted);
}

.krambu-cat-card__footer {
    margin-top: auto;
    padding-top: var(--wp--preset--spacing--30);
    border-top: 1px solid var(--wp--preset--color--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
}

.krambu-cat-card__footer-meta {
    flex: 1;
    min-width: 0;
}

.krambu-cat-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    margin: 0;
    line-height: 1.2;
}

.krambu-cat-card__sku {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--wp--preset--color--contrast-muted);
    letter-spacing: 0.03em;
    margin: 0;
}

.krambu-cat-card__btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-primary) 0%, var(--wp--preset--color--accent-secondary) 100%);
    color: white !important;
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 200ms ease;
    border: 2px solid transparent;
}

.krambu-cat-card__btn:hover {
    box-shadow: 0 4px 12px 0 rgba(126, 0, 255, 0.15);
    transform: translateY(-1px);
}

.krambu-category-empty {
    text-align: center;
    padding: var(--wp--preset--spacing--80) 0;
    color: var(--wp--preset--color--contrast-muted);
}

.krambu-category-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--wp--preset--spacing--70);
}

.krambu-category-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid var(--wp--preset--color--border);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    transition: all 150ms ease;
}

.krambu-category-pagination .page-numbers.current {
    background: var(--wp--preset--color--accent-primary);
    border-color: var(--wp--preset--color--accent-primary);
    color: white;
}

.krambu-category-pagination .page-numbers:hover:not(.current) {
    border-color: rgba(126, 0, 255, 0.4);
    background: var(--wp--preset--color--base-alt);
}

@media (max-width: 768px) {
    .krambu-cat-card {
        flex-direction: column;
    }
    .krambu-cat-card__image {
        flex: none;
        height: 220px;
    }
}

/* --- Single Product: Request Pricing CTA --- */
.krambu-single-pricing-cta {
    margin-top: var(--wp--preset--spacing--50);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: var(--wp--preset--spacing--40);
}

.krambu-single-pricing-cta__label {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wp--preset--color--base);
    margin-bottom: var(--wp--preset--spacing--20);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.krambu-single-pricing-cta__terms {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 var(--wp--preset--spacing--40);
    max-width: 480px;
}

.krambu-single-pricing-cta__terms a {
    color: var(--wp--preset--color--accent-tertiary);
    text-decoration: none;
    font-weight: 700;
    transition: color 150ms ease;
}

.krambu-single-pricing-cta__terms a:hover {
    color: var(--wp--preset--color--base);
}

.krambu-single-pricing-cta__btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-primary) 0%, var(--wp--preset--color--accent-secondary) 100%);
    color: white !important;
    border-radius: 4px;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none !important;
    transition: all 200ms ease;
    border: 2px solid transparent;
}

.krambu-single-pricing-cta__btn:hover {
    box-shadow: 0 4px 12px 0 rgba(126, 0, 255, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .krambu-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .krambu-product-grid,
    .krambu-product-grid.krambu-product-grid--wide {
        grid-template-columns: 1fr !important;
    }
}

/* Remove WooCommerce default grid pseudo-elements */
.krambu-product-grid::before,
.krambu-product-grid::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   STORE CARD (Product Card)
   ============================================ */
.krambu-store-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    border: 1px solid var(--wp--preset--color--border);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    overflow: hidden;
}

.krambu-store-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(126, 0, 255, 0.4);
}

/* Card Image Section */
.krambu-store-card__image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
}

.krambu-store-card__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 300ms ease-out;
    border-radius: 4px;
}

.krambu-store-card:hover .krambu-store-card__image img {
    transform: scale(1.05);
}

/* Remove default WooCommerce product link styles inside cards */
.krambu-store-card .wc-block-components-product-image a {
    display: block;
}

/* Card Content Section */
.krambu-store-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product title in card */
.krambu-store-card .wp-block-post-title {
    font-size: 1rem !important;
    line-height: 1.35;
}

.krambu-store-card .wp-block-post-title a {
    color: var(--wp--preset--color--contrast) !important;
    text-decoration: none !important;
}

.krambu-store-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--accent-primary) !important;
}

/* Card Specs - natural height, no stretching */
.krambu-store-card .krambu-product-specs-card {
    flex: 0 0 auto;
}

/* Push price to bottom of card */
.krambu-store-card__content > .wc-block-components-product-price {
    margin-top: auto !important;
}

/* SKU tag at bottom of card */
.krambu-product-sku {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--wp--preset--color--contrast-muted);
    letter-spacing: 0.04em;
    padding-top: var(--wp--preset--spacing--20);
    border-top: 1px solid var(--wp--preset--color--border);
    margin-top: var(--wp--preset--spacing--30);
    font-family: 'JetBrains Mono', monospace;
}

/* Price in card */
.krambu-store-card .wc-block-components-product-price {
    color: var(--wp--preset--color--contrast) !important;
}

/* Overlay button on image */
.krambu-store-card__image .krambu-card-overlay-btn,
.krambu-store-card__image .wp-block-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 2;
    margin: 0 !important;
    width: auto;
}

.krambu-store-card:hover .krambu-store-card__image .krambu-card-overlay-btn,
.krambu-store-card:hover .krambu-store-card__image .wp-block-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.krambu-store-card__image .wp-block-button__link {
    background: linear-gradient(135deg, var(--wp--preset--color--accent-primary) 0%, var(--wp--preset--color--accent-secondary) 100%) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-align: center;
    transition: all 200ms ease !important;
    white-space: nowrap;
    min-width: 160px;
}

.krambu-store-card__image .wp-block-button__link:hover {
    box-shadow: 0 4px 12px 0 rgba(126, 0, 255, 0.15) !important;
}

/* View Cart link after adding to cart */
.krambu-store-card__image .added_to_cart,
.krambu-store-card__image .wp-block-button .wc-block-components-product-button__button--view-cart {
    display: inline-block;
    background: #ffffff !important;
    color: var(--wp--preset--color--contrast) !important;
    border-radius: 4px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-align: center;
    text-decoration: none !important;
    min-width: 160px;
    width: auto !important;
    max-width: 160px;
    box-sizing: border-box;
    margin-top: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background 200ms ease, box-shadow 200ms ease !important;
}

.krambu-store-card__image .added_to_cart:hover,
.krambu-store-card__image .wp-block-button .wc-block-components-product-button__button--view-cart:hover {
    background: #f0f0f0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
}

/* ============================================
   CARD SPECS LIST (Archive View)
   ============================================ */
.krambu-product-specs-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: var(--wp--preset--spacing--20);
    margin-bottom: var(--wp--preset--spacing--20);
}

.krambu-spec-chip {
    display: flex;
    align-items: baseline;
    gap: 4px;
    background: var(--wp--preset--color--base-alt);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--wp--preset--color--contrast);
    min-width: 0;
    overflow: hidden;
}

.krambu-spec-chip__label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--wp--preset--color--contrast-muted);
    flex-shrink: 0;
    font-size: 0.65rem;
}

.krambu-spec-chip__value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Highlight GPU chip */
.krambu-spec-chip--gpu {
    background: var(--wp--preset--color--surface-purple);
    border-color: rgba(126, 0, 255, 0.15);
}

.krambu-spec-chip--gpu .krambu-spec-chip__label {
    color: var(--wp--preset--color--accent-primary);
}

/* Short description for non-server products */
.krambu-product-short-desc {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   PRODUCT META BADGES (Categories, Brands, Tags)
   ============================================ */
.krambu-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--wp--preset--spacing--20);
}

.krambu-meta-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    line-height: 1.6;
    transition: all 150ms ease;
}

/* Category badge - purple accent */
.krambu-meta-badge--category {
    background: var(--wp--preset--color--surface-purple);
    color: var(--wp--preset--color--accent-primary) !important;
    border: 1px solid rgba(126, 0, 255, 0.12);
}

.krambu-meta-badge--category:hover {
    background: var(--wp--preset--color--accent-primary);
    color: white !important;
    border-color: var(--wp--preset--color--accent-primary);
}

/* Brand badge - neutral */
.krambu-meta-badge--brand {
    background: var(--wp--preset--color--base-alt);
    color: var(--wp--preset--color--contrast) !important;
    border: 1px solid var(--wp--preset--color--border);
}

.krambu-meta-badge--brand:hover {
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base) !important;
    border-color: var(--wp--preset--color--contrast);
}

/* Tag badge - lighter */
.krambu-meta-badge--tag {
    background: transparent;
    color: var(--wp--preset--color--contrast-muted) !important;
    border: 1px solid var(--wp--preset--color--border);
}

.krambu-meta-badge--tag:hover {
    border-color: var(--wp--preset--color--accent-primary);
    color: var(--wp--preset--color--accent-primary) !important;
}

/* Dark theme variant (for single product on dark background) */
.krambu-meta-badges--dark .krambu-meta-badge--category {
    background: rgba(126, 0, 255, 0.15);
    color: rgba(174, 100, 255, 1) !important;
    border-color: rgba(126, 0, 255, 0.25);
}

.krambu-meta-badges--dark .krambu-meta-badge--category:hover {
    background: var(--wp--preset--color--accent-primary);
    color: white !important;
}

.krambu-meta-badges--dark .krambu-meta-badge--brand {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12);
}

.krambu-meta-badges--dark .krambu-meta-badge--brand:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--wp--preset--color--surface-dark) !important;
}

.krambu-meta-badges--dark .krambu-meta-badge--tag {
    color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.krambu-meta-badges--dark .krambu-meta-badge--tag:hover {
    border-color: var(--wp--preset--color--accent-primary);
    color: var(--wp--preset--color--accent-primary) !important;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */

/* Kill WP block gap on product page main wrapper */
.woocommerce.product {
    margin-block-start: 0 !important;
}

/* Product content lists — dashes instead of dots */
.krambu-product-hero-section ul,
.krambu-product-hero-section ol,
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol,
.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol {
    list-style: none;
    padding-left: 0;
}

.krambu-product-hero-section li::before,
.woocommerce-product-details__short-description li::before,
.woocommerce-Tabs-panel li::before {
    content: '– ';
    color: var(--wp--preset--color--contrast-muted);
}

/* Product Hero Section */
.krambu-product-hero-section {
    position: relative;
    overflow: hidden;
}

.krambu-product-hero-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(126, 0, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.krambu-product-hero-section > * {
    position: relative;
    z-index: 1;
}

/* Breadcrumbs on dark background */
.krambu-product-hero-section .woocommerce-breadcrumb,
.krambu-product-hero-section .wc-block-breadcrumbs {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.8rem;
}

.krambu-product-hero-section .woocommerce-breadcrumb a,
.krambu-product-hero-section .wc-block-breadcrumbs a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}

.krambu-product-hero-section .woocommerce-breadcrumb a:hover,
.krambu-product-hero-section .wc-block-breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Gallery on dark background - white interior for mixed image types */
.krambu-product-gallery-wrapper {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.krambu-product-gallery-wrapper .woocommerce-product-gallery {
    background: #ffffff !important;
    border-radius: 8px;
    overflow: hidden;
}

.krambu-product-gallery-wrapper .woocommerce-product-gallery .flex-viewport {
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.krambu-product-gallery-wrapper .woocommerce-product-gallery__image img {
    background: #ffffff !important;
}

/* Gallery thumbnails */
.krambu-product-gallery-wrapper .flex-control-nav li img {
    background: #ffffff !important;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 200ms ease;
}

.krambu-product-gallery-wrapper .flex-control-nav li img.flex-active,
.krambu-product-gallery-wrapper .flex-control-nav li img:hover {
    opacity: 1;
    border: none !important;
}

/* Product rating stars on dark */
.krambu-product-hero-section .wc-block-components-product-rating,
.krambu-product-hero-section .star-rating {
    color: #FFD700;
}

/* Add to cart form on dark background */
.krambu-product-hero-section .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--wp--preset--color--accent-primary) 0%, var(--wp--preset--color--accent-secondary) 100%) !important;
    border: 2px solid transparent !important;
    border-radius: 4px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    transition: all 200ms ease !important;
}

.krambu-product-hero-section .single_add_to_cart_button:hover {
    box-shadow: 0 4px 12px 0 rgba(126, 0, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Quantity control on dark background */
.krambu-product-hero-section .quantity {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.krambu-product-hero-section .quantity input.qty {
    color: white !important;
}

.krambu-product-hero-section .quantity .krambu-qty-btn {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.krambu-product-hero-section .quantity .krambu-qty-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Single Product Specs Grid */
.krambu-specs-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-top: var(--wp--preset--spacing--30);
}

.krambu-spec-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.krambu-spec-item:nth-child(even) {
    border-right: none;
}

.krambu-spec-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.krambu-spec-item__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--contrast-muted);
    margin-bottom: 4px;
    display: block;
}

.krambu-spec-item__value {
    font-size: 0.85rem;
    color: var(--wp--preset--color--base);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .krambu-specs-single-grid {
        grid-template-columns: 1fr;
    }

    .krambu-spec-item {
        border-right: none;
    }

    .krambu-spec-item:last-child {
        border-bottom: none;
    }
}

/* ============================================
   RELATED PRODUCTS GRID
   ============================================ */
.krambu-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--wp--preset--spacing--40) !important;
}

.krambu-related-grid::before,
.krambu-related-grid::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 1024px) {
    .krambu-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .krambu-related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   LEGACY: Old product list styles
   (Kept for backward compat with
   WooCommerce default product loops)
   ============================================ */

/* Product List Layout */
.krambu-product-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--wp--preset--spacing--40) !important;
}

@media (max-width: 1024px) {
    .krambu-product-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .krambu-product-list {
        grid-template-columns: 1fr !important;
    }
}

.krambu-product-list::before,
.krambu-product-list::after {
    display: none !important;
    content: none !important;
}

/* Disable default WooCommerce hover transforms */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product:hover {
    box-shadow: none !important;
}

/* WooCommerce default loop product images */
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
    background-color: transparent !important;
}

/* ============================================
   TECHNICAL SPECS TABLE
   ============================================ */
.krambu-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--wp--preset--spacing--50);
}

.krambu-specs-table th,
.krambu-specs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
    text-align: left;
}

.krambu-specs-table th {
    width: 30%;
    background-color: var(--wp--preset--color--base-alt);
    font-weight: 600;
    color: var(--wp--preset--color--contrast-muted);
}

.krambu-specs-table tr.section-header td {
    background-color: var(--wp--preset--color--surface-dark);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.button.add_to_cart_button,
.single_add_to_cart_button {
    background-color: var(--wp--preset--color--accent-primary) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background-color: var(--wp--preset--color--accent-secondary) !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.woocommerce-pagination .page-numbers {
    display: flex;
    gap: 8px;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.woocommerce-pagination .page-numbers li span.current,
.woocommerce-pagination .page-numbers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid var(--wp--preset--color--border);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 150ms ease;
}

.woocommerce-pagination .page-numbers li span.current {
    background-color: var(--wp--preset--color--accent-primary);
    color: white;
}

.woocommerce-pagination .page-numbers li a {
    background-color: var(--wp--preset--color--base-alt);
    color: var(--wp--preset--color--contrast);
}

.woocommerce-pagination .page-numbers li a:hover {
    background-color: var(--wp--preset--color--border);
}

/* ============================================
   SINGLE PRODUCT: Gallery Layout
   ============================================ */
.woocommerce-product-gallery {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--wp--preset--spacing--40);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Store hero text centering */
    .krambu-store-hero .wp-block-group:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Single product columns stack */
    .krambu-product-hero-section .wp-block-columns {
        flex-direction: column !important;
    }

    .krambu-product-gallery-col,
    .krambu-product-details-col {
        flex-basis: 100% !important;
    }
}

/* Fix WooCommerce Strong Tag Display */
.woocommerce ul.products li.product strong {
    display: inline !important;
}

/* ============================================
   CATEGORY SHOWCASE (Shop Index Page)
   ============================================ */
.krambu-category-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--70);
}

.krambu-category-section {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--40);
}

/* Category Header Row */
.krambu-category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--30);
}

.krambu-category-header__left {
    display: flex;
    align-items: baseline;
    gap: var(--wp--preset--spacing--30);
    flex-wrap: wrap;
}

.krambu-category-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.krambu-category-header__title a {
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    transition: color 150ms ease;
}

.krambu-category-header__title a:hover {
    color: var(--wp--preset--color--accent-primary);
}

.krambu-category-header__count {
    font-size: 0.8rem;
    color: var(--wp--preset--color--contrast-muted);
    font-weight: 500;
}

.krambu-category-header__view-all {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wp--preset--color--accent-primary);
    text-decoration: none;
    transition: color 150ms ease;
    white-space: nowrap;
}

.krambu-category-header__view-all:hover {
    color: var(--wp--preset--color--accent-secondary);
}

/* Category Description */
.krambu-category-description {
    font-size: 0.9rem;
    color: var(--wp--preset--color--contrast-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
}

/* Mini Product Grid */
.krambu-mini-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wp--preset--spacing--40);
}

@media (max-width: 1024px) {
    .krambu-mini-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .krambu-mini-product-grid {
        grid-template-columns: 1fr;
    }
}

/* Mini Product Card */
.krambu-store-card--mini {
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.krambu-store-card--mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(126, 0, 255, 0.4);
}

.krambu-mini-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: linear-gradient(145deg, #0d0415 0%, #1a0a2e 50%, #0a0a0f 100%);
    overflow: hidden;
    padding: var(--wp--preset--spacing--30);
}

.krambu-mini-card__image img,
.krambu-mini-card__image .krambu-mini-card__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 300ms ease-out;
}

.krambu-store-card--mini:hover .krambu-mini-card__image img,
.krambu-store-card--mini:hover .krambu-mini-card__image .krambu-mini-card__img {
    transform: scale(1.05);
}

.krambu-mini-card__content {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.krambu-mini-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: var(--wp--preset--color--contrast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.krambu-mini-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
}

.krambu-mini-card__price del {
    color: var(--wp--preset--color--contrast-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.krambu-mini-card__price ins {
    text-decoration: none;
}

.krambu-mini-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.krambu-mini-card__pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--wp--preset--color--surface-purple, rgba(126, 0, 255, 0.08));
    color: var(--wp--preset--color--accent-primary, #7E00FF);
    line-height: 1.6;
}

.krambu-mini-card__spec {
    font-size: 0.75rem;
    color: var(--wp--preset--color--contrast);
    font-weight: 500;
    line-height: 1.3;
}

.krambu-mini-card__spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--contrast-muted);
    margin-right: 4px;
}

.krambu-mini-card__excerpt {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--wp--preset--color--contrast-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.krambu-mini-card__excerpt ul,
.krambu-mini-card__excerpt ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.krambu-mini-card__excerpt li::before {
    content: '– ';
    color: var(--wp--preset--color--contrast-muted);
}
