/**
 * RunZone Design System v2.0
 * Custom CSS for RunZone UX Builder Blocks
 */

/* ===================================
   CSS Variables (Design Tokens)
   =================================== */
:root {
    /* Colors */
    --rz-primary: #FFD700;
    --rz-primary-hover: #E6C200;
    --rz-primary-dark: #B8960F;
    --rz-bg-main: #000000;
    --rz-bg-surface: #1A1A1A;
    --rz-bg-elevated: #2A2A2A;
    --rz-bg-card: #1A1A1A;
    --rz-text-main: #F5F5F5;
    --rz-text-muted: #A0A0A0;
    --rz-text-subtle: #777777;
    --rz-border: #333333;
    --rz-border-light: #444444;
    --rz-success: #22C55E;
    --rz-error: #EF4444;
    --rz-warning: #F59E0B;
    --rz-info: #3B82F6;

    /* Typography */
    --rz-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rz-font-weight-regular: 400;
    --rz-font-weight-medium: 500;
    --rz-font-weight-semibold: 600;
    --rz-font-weight-bold: 700;
    --rz-font-weight-extrabold: 800;

    /* Font Sizes */
    --rz-text-xs: 12px;
    --rz-text-sm: 14px;
    --rz-text-base: 16px;
    --rz-text-lg: 18px;
    --rz-text-xl: 20px;
    --rz-text-2xl: 24px;
    --rz-text-3xl: 32px;
    --rz-text-4xl: 40px;
    --rz-text-5xl: 48px;

    /* Spacing */
    --rz-space-xs: 4px;
    --rz-space-sm: 8px;
    --rz-space-md: 16px;
    --rz-space-lg: 24px;
    --rz-space-xl: 32px;
    --rz-space-2xl: 48px;
    --rz-space-3xl: 64px;

    /* Border Radius */
    --rz-radius-xs: 4px;
    --rz-radius-sm: 6px;
    --rz-radius-md: 8px;
    --rz-radius-lg: 12px;
    --rz-radius-xl: 16px;
    --rz-radius-2xl: 20px;
    --rz-radius-full: 9999px;

    /* Shadows */
    --rz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --rz-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --rz-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --rz-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --rz-transition-fast: 150ms ease;
    --rz-transition-base: 250ms ease;
    --rz-transition-slow: 400ms ease;

    /* Z-index */
    --rz-z-dropdown: 1000;
    --rz-z-modal: 1050;
    --rz-z-tooltip: 1100;
}

/* ===================================
   Base Styles
   =================================== */
.rz-wrapper {
    font-family: var(--rz-font-family);
    color: var(--rz-text-main);
    line-height: 1.5;
}

/* ===================================
   Typography
   =================================== */
.rz-h1 {
    font-size: var(--rz-text-4xl);
    font-weight: var(--rz-font-weight-extrabold);
    line-height: 1.2;
    margin: 0 0 var(--rz-space-md);
    color: var(--rz-text-main);
}

.rz-h2 {
    font-size: var(--rz-text-3xl);
    font-weight: var(--rz-font-weight-bold);
    line-height: 1.25;
    margin: 0 0 var(--rz-space-md);
    color: var(--rz-text-main);
}

.rz-h3 {
    font-size: var(--rz-text-2xl);
    font-weight: var(--rz-font-weight-semibold);
    line-height: 1.3;
    margin: 0 0 var(--rz-space-sm);
    color: var(--rz-text-main);
}

.rz-h4 {
    font-size: var(--rz-text-xl);
    font-weight: var(--rz-font-weight-semibold);
    line-height: 1.35;
    margin: 0 0 var(--rz-space-sm);
    color: var(--rz-text-main);
}

.rz-body {
    font-size: var(--rz-text-base);
    font-weight: var(--rz-font-weight-medium);
    line-height: 1.6;
    color: var(--rz-text-main);
}

.rz-small {
    font-size: var(--rz-text-sm);
    color: var(--rz-text-muted);
}

/* ===================================
   Icon System (Material Symbols)
   =================================== */
.rz-icon {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    vertical-align: middle;
}

.rz-icon.xs {
    font-size: 16px;
}

.rz-icon.sm {
    font-size: 20px;
}

.rz-icon.md {
    font-size: 24px;
}

.rz-icon.lg {
    font-size: 32px;
}

.rz-icon.xl {
    font-size: 40px;
}

.rz-icon.xxl {
    font-size: 48px;
}

/* ===================================
   Buttons
   =================================== */
.rz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rz-space-sm);
    font-family: var(--rz-font-family);
    font-weight: var(--rz-font-weight-semibold);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--rz-transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.rz-btn:focus {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

/* Button Sizes */
.rz-btn-sm {
    padding: 8px 16px;
    font-size: var(--rz-text-xs);
    border-radius: var(--rz-radius-sm);
}

.rz-btn-md {
    padding: 12px 24px;
    font-size: var(--rz-text-sm);
    border-radius: var(--rz-radius-md);
}

.rz-btn-lg {
    padding: 16px 32px;
    font-size: var(--rz-text-base);
    border-radius: var(--rz-radius-lg);
}

/* Button Styles */
.rz-btn-primary {
    background: var(--rz-primary);
    color: var(--rz-bg-main);
    border-color: var(--rz-primary);
}

.rz-btn-primary:hover {
    background: var(--rz-primary-hover);
    border-color: var(--rz-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.rz-btn-primary:active {
    transform: translateY(0);
}

.rz-btn-outline {
    background: transparent;
    color: var(--rz-primary);
    border-color: var(--rz-primary);
}

.rz-btn-outline:hover {
    background: var(--rz-primary);
    color: var(--rz-bg-main);
}

.rz-btn-ghost {
    background: transparent;
    color: var(--rz-text-main);
    border-color: transparent;
}

.rz-btn-ghost:hover {
    background: var(--rz-bg-elevated);
    color: var(--rz-primary);
}

.rz-btn-block {
    display: flex;
    width: 100%;
}

.rz-btn .rz-icon {
    font-size: inherit;
}

/* ===================================
   Badges
   =================================== */
.rz-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rz-font-family);
    font-weight: var(--rz-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--rz-radius-sm);
}

.rz-badge-sm {
    padding: 2px 6px;
    font-size: 10px;
}

.rz-badge-md {
    padding: 4px 10px;
    font-size: var(--rz-text-xs);
}

.rz-badge-lg {
    padding: 6px 14px;
    font-size: var(--rz-text-sm);
}

.rz-badge-primary {
    background: var(--rz-primary);
    color: var(--rz-bg-main);
}

.rz-badge-outline {
    background: transparent;
    border: 1px solid var(--rz-primary);
    color: var(--rz-primary);
}

.rz-badge-sale {
    background: var(--rz-error);
    color: #fff;
}

.rz-badge-new {
    background: var(--rz-success);
    color: #fff;
}

.rz-badge-hot {
    background: var(--rz-warning);
    color: var(--rz-bg-main);
}

/* ===================================
   Product Card
   =================================== */
.rz-product-card {
    background: var(--rz-bg-card);
    border-radius: var(--rz-radius-xl);
    overflow: hidden;
    transition: all var(--rz-transition-base);
    position: relative;
}

.rz-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rz-shadow-lg);
}

.rz-product-media {
    position: relative;
    overflow: hidden;
    background: var(--rz-bg-elevated);
}

.rz-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rz-transition-slow);
}

.rz-product-card:hover .rz-product-media img {
    transform: scale(1.05);
}

/* Image Aspect Ratios */
.rz-ratio-4-3 .rz-product-media {
    aspect-ratio: 4/3;
}

.rz-ratio-1-1 .rz-product-media {
    aspect-ratio: 1/1;
}

.rz-ratio-16-9 .rz-product-media {
    aspect-ratio: 16/9;
}

/* Product Badge Position */
.rz-product-badge {
    position: absolute;
    top: var(--rz-space-sm);
    left: var(--rz-space-sm);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--rz-space-xs);
}

/* Product Wishlist Button */
.rz-product-wishlist {
    position: absolute;
    top: var(--rz-space-sm);
    right: var(--rz-space-sm);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: var(--rz-radius-full);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--rz-transition-fast);
    color: var(--rz-text-main);
    opacity: 0;
    transform: translateY(-10px);
}

.rz-product-card:hover .rz-product-wishlist {
    opacity: 1;
    transform: translateY(0);
}

.rz-product-wishlist:hover {
    background: var(--rz-primary);
    color: var(--rz-bg-main);
}

.rz-product-wishlist.active {
    background: var(--rz-error);
    color: #fff;
    opacity: 1;
    transform: translateY(0);
}

.rz-product-wishlist .rz-icon {
    font-size: 20px;
}

/* Product Content */
.rz-product-content {
    padding: var(--rz-space-md);
}

.rz-product-category {
    font-size: var(--rz-text-xs);
    color: var(--rz-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--rz-space-xs);
}

.rz-product-title {
    font-size: var(--rz-text-base);
    font-weight: var(--rz-font-weight-semibold);
    margin: 0 0 var(--rz-space-sm);
    color: var(--rz-text-main);
}

.rz-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--rz-transition-fast);
}

.rz-product-title a:hover {
    color: var(--rz-primary);
}

/* Line Clamp Utility */
.rz-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rz-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Rating */
.rz-product-rating {
    display: flex;
    align-items: center;
    gap: var(--rz-space-xs);
    font-size: var(--rz-text-sm);
    color: var(--rz-text-muted);
    margin-bottom: var(--rz-space-sm);
}

.rz-product-rating .rz-icon {
    font-size: 16px;
    color: var(--rz-primary);
}

/* Product Price */
.rz-product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rz-space-sm);
}

.rz-product-price {
    font-size: var(--rz-text-lg);
    font-weight: var(--rz-font-weight-bold);
    color: var(--rz-primary);
}

.rz-product-price-old {
    font-size: var(--rz-text-sm);
    color: var(--rz-text-subtle);
    text-decoration: line-through;
    margin-left: var(--rz-space-sm);
}

.rz-product-add-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--rz-radius-full);
    background: var(--rz-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--rz-transition-fast);
    color: var(--rz-bg-main);
    flex-shrink: 0;
}

.rz-product-add-btn:hover {
    background: var(--rz-primary-hover);
    transform: scale(1.1);
}

.rz-product-add-btn .rz-icon {
    font-size: 20px;
}

/* ===================================
   Category Card
   =================================== */
.rz-category-card {
    position: relative;
    border-radius: var(--rz-radius-xl);
    overflow: hidden;
    background: var(--rz-bg-card);
    transition: all var(--rz-transition-base);
    display: block;
    text-decoration: none;
}

.rz-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rz-shadow-lg);
}

.rz-category-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rz-category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rz-transition-slow);
}

.rz-category-card:hover .rz-category-card-media img {
    transform: scale(1.1);
}

.rz-category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.rz-category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--rz-space-lg);
    color: var(--rz-text-main);
}

.rz-category-card-title {
    font-size: var(--rz-text-xl);
    font-weight: var(--rz-font-weight-bold);
    margin: 0 0 var(--rz-space-xs);
}

.rz-category-card-count {
    font-size: var(--rz-text-sm);
    color: var(--rz-text-muted);
}

/* Minimal Style */
.rz-category-card-minimal {
    text-align: center;
}

.rz-category-card-minimal .rz-category-card-media {
    aspect-ratio: 1/1;
    border-radius: var(--rz-radius-full);
    margin: 0 auto var(--rz-space-md);
    width: 80%;
}

.rz-category-card-minimal .rz-category-card-content {
    position: static;
    padding: var(--rz-space-md);
}

.rz-category-card-minimal .rz-category-card-overlay {
    display: none;
}

/* ===================================
   Hero Section
   =================================== */
.rz-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rz-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--rz-bg-main);
    pointer-events: none;
}

.rz-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--rz-space-xl);
}

.rz-hero-title {
    font-size: var(--rz-text-4xl);
    font-weight: var(--rz-font-weight-extrabold);
    color: var(--rz-text-main);
    margin: 0 0 var(--rz-space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rz-hero-subtitle {
    font-size: var(--rz-text-2xl);
    font-weight: var(--rz-font-weight-semibold);
    color: var(--rz-primary);
    margin: 0 0 var(--rz-space-sm);
}

.rz-hero-description {
    font-size: var(--rz-text-lg);
    color: var(--rz-text-muted);
    margin: 0 0 var(--rz-space-xl);
    max-width: 600px;
}

.rz-hero-buttons {
    display: flex;
    gap: var(--rz-space-md);
    flex-wrap: wrap;
}

/* ===================================
   CTA Section
   =================================== */
.rz-cta {
    background: var(--rz-bg-surface);
    padding: var(--rz-space-3xl) var(--rz-space-xl);
}

.rz-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.rz-cta-title {
    font-size: var(--rz-text-3xl);
    font-weight: var(--rz-font-weight-bold);
    color: var(--rz-text-main);
    margin: 0 0 var(--rz-space-md);
}

.rz-cta-description {
    font-size: var(--rz-text-lg);
    color: var(--rz-text-muted);
    margin: 0 0 var(--rz-space-xl);
}

/* ===================================
   Icon Box
   =================================== */
.rz-icon-box {
    text-align: center;
    padding: var(--rz-space-lg);
}

.rz-icon-box-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--rz-radius-lg);
    background: var(--rz-bg-elevated);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--rz-space-md);
    color: var(--rz-primary);
}

.rz-icon-box-icon.sm {
    width: 48px;
    height: 48px;
}

.rz-icon-box-icon.md {
    width: 64px;
    height: 64px;
}

.rz-icon-box-icon.lg {
    width: 80px;
    height: 80px;
}

.rz-icon-box-icon.xl {
    width: 96px;
    height: 96px;
}

.rz-icon-box-title {
    font-size: var(--rz-text-lg);
    font-weight: var(--rz-font-weight-semibold);
    color: var(--rz-text-main);
    margin: 0 0 var(--rz-space-sm);
}

.rz-icon-box-description {
    font-size: var(--rz-text-sm);
    color: var(--rz-text-muted);
    margin: 0;
}

/* ===================================
   Search Bar
   =================================== */
.rz-search-bar {
    display: flex;
    align-items: center;
    background: var(--rz-bg-elevated);
    border: 1px solid var(--rz-border);
    border-radius: var(--rz-radius-lg);
    overflow: hidden;
    transition: all var(--rz-transition-fast);
}

.rz-search-bar:focus-within {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.rz-search-bar-icon {
    padding: 0 var(--rz-space-md);
    color: var(--rz-text-muted);
}

.rz-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--rz-space-md);
    font-size: var(--rz-text-base);
    color: var(--rz-text-main);
    font-family: var(--rz-font-family);
}

.rz-search-bar input::placeholder {
    color: var(--rz-text-subtle);
}

.rz-search-bar input:focus {
    outline: none;
}

.rz-search-bar-sm input {
    padding: var(--rz-space-sm);
    font-size: var(--rz-text-sm);
}

.rz-search-bar-md input {
    padding: var(--rz-space-md);
    font-size: var(--rz-text-base);
}

.rz-search-bar-lg input {
    padding: var(--rz-space-lg);
    font-size: var(--rz-text-lg);
}

.rz-search-bar-minimal {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--rz-border);
    border-radius: 0;
}

.rz-search-bar-minimal:focus-within {
    border-bottom-color: var(--rz-primary);
    box-shadow: none;
}

/* ===================================
   Stats Counter
   =================================== */
.rz-stats {
    text-align: center;
    padding: var(--rz-space-lg);
}

.rz-stats-icon {
    color: var(--rz-primary);
    margin-bottom: var(--rz-space-sm);
}

.rz-stats-number {
    font-size: var(--rz-text-4xl);
    font-weight: var(--rz-font-weight-bold);
    color: var(--rz-primary);
    display: block;
    margin-bottom: var(--rz-space-xs);
}

.rz-stats-label {
    font-size: var(--rz-text-sm);
    color: var(--rz-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Grid System
   =================================== */
.rz-grid {
    display: grid;
    gap: var(--rz-space-lg);
}

.rz-grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.rz-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rz-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rz-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.rz-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.rz-grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ===================================
   Utility Classes
   =================================== */
/* Flexbox */
.rz-flex {
    display: flex;
}

.rz-flex-col {
    flex-direction: column;
}

.rz-flex-wrap {
    flex-wrap: wrap;
}

.rz-items-center {
    align-items: center;
}

.rz-items-start {
    align-items: flex-start;
}

.rz-items-end {
    align-items: flex-end;
}

.rz-justify-center {
    justify-content: center;
}

.rz-justify-between {
    justify-content: space-between;
}

.rz-justify-start {
    justify-content: flex-start;
}

.rz-justify-end {
    justify-content: flex-end;
}

/* Gap */
.rz-gap-xs {
    gap: var(--rz-space-xs);
}

.rz-gap-sm {
    gap: var(--rz-space-sm);
}

.rz-gap-md {
    gap: var(--rz-space-md);
}

.rz-gap-lg {
    gap: var(--rz-space-lg);
}

.rz-gap-xl {
    gap: var(--rz-space-xl);
}

/* Text Alignment */
.rz-text-left {
    text-align: left;
}

.rz-text-center {
    text-align: center;
}

.rz-text-right {
    text-align: right;
}

/* Display */
.rz-hidden {
    display: none;
}

.rz-block {
    display: block;
}

.rz-inline-block {
    display: inline-block;
}

/* Width */
.rz-w-full {
    width: 100%;
}

.rz-w-auto {
    width: auto;
}

/* Margin */
.rz-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.rz-my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.rz-mt-0 {
    margin-top: 0;
}

.rz-mb-0 {
    margin-bottom: 0;
}

/* Padding */
.rz-p-0 {
    padding: 0;
}

.rz-p-sm {
    padding: var(--rz-space-sm);
}

.rz-p-md {
    padding: var(--rz-space-md);
}

.rz-p-lg {
    padding: var(--rz-space-lg);
}

.rz-p-xl {
    padding: var(--rz-space-xl);
}

/* Container */
.rz-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--rz-space-md);
    padding-right: var(--rz-space-md);
}

/* ===================================
   Animations
   =================================== */
@keyframes rz-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rz-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rz-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes rz-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rz-countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rz-animate-fadeIn {
    animation: rz-fadeIn var(--rz-transition-base) ease-out;
}

.rz-animate-fadeInUp {
    animation: rz-fadeInUp var(--rz-transition-base) ease-out;
}

.rz-animate-pulse {
    animation: rz-pulse 2s ease-in-out infinite;
}

.rz-animate-spin {
    animation: rz-spin 1s linear infinite;
}

/* ===================================
   Responsive Breakpoints
   =================================== */
/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --rz-text-4xl: 32px;
        --rz-text-3xl: 26px;
        --rz-text-2xl: 20px;
    }

    .rz-md-grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .rz-md-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rz-md-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .rz-md-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .rz-hero {
        min-height: 400px;
    }

    .rz-hero-content {
        padding: var(--rz-space-lg);
    }

    .rz-hero-buttons {
        justify-content: center;
    }

    .rz-md-hidden {
        display: none;
    }

    .rz-md-block {
        display: block;
    }

    .rz-md-text-center {
        text-align: center;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --rz-text-4xl: 28px;
        --rz-text-3xl: 22px;
        --rz-text-2xl: 18px;
    }

    .rz-sm-grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .rz-sm-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rz-hero {
        min-height: 350px;
    }

    .rz-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .rz-hero-buttons .rz-btn {
        width: 100%;
    }

    .rz-btn-lg {
        padding: 14px 24px;
    }

    .rz-product-card {
        border-radius: var(--rz-radius-lg);
    }

    .rz-sm-hidden {
        display: none;
    }

    .rz-sm-block {
        display: block;
    }

    .rz-sm-text-center {
        text-align: center;
    }
}

/* ===================================
   Product Grid Specific
   =================================== */
.rz-product-grid {
    width: 100%;
}

/* ===================================
   Loading States
   =================================== */
.rz-loading {
    position: relative;
    pointer-events: none;
}

.rz-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.rz-skeleton {
    background: linear-gradient(90deg, var(--rz-bg-elevated) 25%, var(--rz-bg-surface) 50%, var(--rz-bg-elevated) 75%);
    background-size: 200% 100%;
    animation: rz-pulse 1.5s ease-in-out infinite;
    border-radius: var(--rz-radius-md);
}

/* ===================================
   No Hover Effect Modifier
   =================================== */
.rz-no-hover .rz-product-wishlist {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Flash Sale Section
   =================================== */
.rz-flash-sale-section {
    padding: var(--rz-space-xl) var(--rz-space-md);
    border-radius: var(--rz-radius-xl);
    overflow: hidden;
}

/* Header */
.rz-flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rz-space-lg);
    flex-wrap: wrap;
    gap: var(--rz-space-md);
}

.rz-flash-sale-title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--rz-space-lg);
    flex-wrap: wrap;
}

.rz-flash-sale-badge {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: #fff;
    font-size: var(--rz-text-xl);
    font-weight: var(--rz-font-weight-extrabold);
    padding: 8px 16px;
    border-radius: var(--rz-radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    transform: skew(-10deg);
}

/* Countdown */
.rz-flash-sale-countdown-wrapper {
    display: flex;
    align-items: center;
    gap: var(--rz-space-md);
}

.rz-flash-sale-countdown-label {
    font-size: var(--rz-text-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--rz-font-weight-medium);
}

.rz-flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rz-countdown-box {
    background: #333;
    color: var(--rz-primary);
    font-family: monospace;
    font-weight: bold;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.rz-countdown-separator {
    color: #555;
    font-weight: bold;
    margin-top: -2px;
}

/* View All Link */
.rz-flash-sale-view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--rz-text-sm);
    transition: color 0.2s;
}

.rz-flash-sale-view-all:hover {
    color: var(--rz-primary);
}

/* Grid */
.rz-flash-sale-grid {
    display: grid;
    /* Grid columns handled by inline styles/classes */
}

/* Flash Sale Card (Dark Theme Override) */
.rz-flash-sale-card {
    background: #252525;
    /* Darker than body bg */
    border: 1px solid #333;
    border-radius: var(--rz-radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

.rz-flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

.rz-flash-sale-card-media {
    position: relative;
    aspect-ratio: 4/3;
    background: #000;
}

.rz-flash-sale-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.rz-flash-sale-card:hover .rz-flash-sale-card-media img {
    opacity: 1;
}

/* Discount Badge */
.rz-flash-sale-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #D32F2F;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}

/* Content */
.rz-flash-sale-card-content {
    padding: 12px;
}

.rz-flash-sale-card-title {
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.4;
    height: 40px;
    /* 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rz-flash-sale-card-title a {
    color: #e0e0e0;
    text-decoration: none;
}

.rz-flash-sale-card-title a:hover {
    color: #fff;
}

/* Price */
.rz-flash-sale-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rz-flash-sale-price-current {
    color: #D32F2F;
    /* Red price for sale */
    font-weight: bold;
    font-size: 16px;
}

.rz-flash-sale-price-original {
    color: #777;
    text-decoration: line-through;
    font-size: 13px;
}

/* Meta & Progress Bar */
.rz-flash-sale-card-meta {
    margin-top: auto;
}

.rz-flash-sale-meta-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}

.rz-flash-sale-stock--low {
    color: #f44336;
}

.rz-flash-sale-stock--available {
    color: #4caf50;
}

.rz-flash-sale-progress {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.rz-flash-sale-progress-bar {
    height: 100%;
    background: #D32F2F;
    /* Red progress */
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .rz-flash-sale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .rz-flash-sale-title-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .rz-flash-sale-view-all {
        align-self: flex-end;
    }
}

/* ===================================
   Countdown Block
   =================================== */
.rz-countdown-wrapper {
    display: inline-flex;
    align-items: center;
    gap: var(--rz-space-md);
    flex-wrap: wrap;
}

.rz-countdown-label {
    font-size: var(--rz-text-lg);
    font-weight: bold;
    color: var(--rz-text-main);
}

.rz-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rz-countdown-box {
    background: #333;
    color: var(--rz-primary);
    font-family: monospace;
    font-weight: bold;
    font-size: 20px;
    padding: 10px 12px;
    border-radius: 6px;
    min-width: 44px;
    text-align: center;
    line-height: 1;
}

/* Sizes */
.rz-size-sm .rz-countdown-box {
    font-size: 14px;
    padding: 6px 8px;
    min-width: 30px;
}

.rz-size-sm .rz-countdown-label {
    font-size: var(--rz-text-sm);
}

.rz-size-lg .rz-countdown-box {
    font-size: 28px;
    padding: 14px 18px;
    min-width: 56px;
}

.rz-size-lg .rz-countdown-label {
    font-size: var(--rz-text-xl);
}

.rz-countdown-separator {
    color: var(--rz-text-muted);
    font-weight: bold;
    font-size: 20px;
    margin-top: -2px;
}

/* Alignments */
.rz-text-center.rz-countdown-wrapper {
    margin-left: auto;
    margin-right: auto;
}

.rz-text-right.rz-countdown-wrapper {
    margin-left: auto;
}