/**
 * Category Page Redesign - Rawmat & Fab Industrial Product Catalog
 * Professional industrial manufacturing styling matching brand identity
 */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

/* Rawmat & Fab Brand Color Palette */
:root {
    --brand-primary: #753825;
    --brand-secondary: #C0C0C0;
    --brand-dark: #4A2A1A;
    --brand-light: #E8D5C4;
    --background: #1a1a1a;
    --card-bg: #2a2a2a;
    --border: #3a3a3a;
    --hover-bg: #3a3a3a;
    --button-primary: #753825;
    --button-hover: #5A2B1D;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.5);
    
    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
}

/* Category Page Container */
.category-page-container {
    background: var(--background);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Main Content Area */
.category-main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Product Texture Container - Override dark background */
.product-texture {
    background: var(--background) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
}

/* Breadcrumb Styling - Ensure readability */
.breadcrumb {
    background: #ffffff !important;
    padding: 16px 24px !important;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    font-size: 14px;
    max-width: 100%;
    overflow-wrap: break-word;
}

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

.breadcrumb-item a {
    color: #555555 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #753825 !important;
    background-color: rgba(117, 56, 37, 0.05);
    text-decoration: none;
}

.breadcrumb-item a:focus {
    outline: 2px solid #753825;
    outline-offset: 2px;
    background-color: rgba(117, 56, 37, 0.05);
}

.breadcrumb-item a:active {
    background-color: rgba(117, 56, 37, 0.1);
}

.breadcrumb-item.active {
    color: #753825 !important;
    font-weight: 700;
    padding: 4px 8px;
    background-color: rgba(117, 56, 37, 0.03);
    border-radius: 4px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #8b5a3c !important;
    content: "›";
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 8px;
    padding: 0;
}

/* Responsive Breadcrumb Styling */
@media (max-width: 992px) {
    .breadcrumb {
        padding: 14px 20px !important;
        font-size: 13px;
        border-radius: 10px;
    }

    .breadcrumb-item a,
    .breadcrumb-item.active {
        padding: 3px 6px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 6px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 16px !important;
        font-size: 13px;
        border-radius: 8px;
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        margin-bottom: 4px;
    }

    .breadcrumb-item a,
    .breadcrumb-item.active {
        padding: 3px 6px;
        font-size: 12px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 4px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 10px 14px !important;
        font-size: 12px;
        border-radius: 6px;
    }

    .breadcrumb-item a,
    .breadcrumb-item.active {
        padding: 2px 4px;
        font-size: 11px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 3px;
        font-size: 1rem;
    }
}

.product-texture h1,
.product-texture h2,
.product-texture h3,
.product-texture h4,
.product-texture h5,
.product-texture h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    line-height: 1.3;
}

.product-texture h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* HTML Content Styling for Database Content */
.product-description,
.category-description,
.product-content-wrapper,
.category-content-wrapper,
.flip-card-back p,
.w3-container.city {
    line-height: 1.8;
    color: var(--text-primary);
}

.product-description p,
.category-description p,
.product-content-wrapper p,
.category-content-wrapper p,
.flip-card-back p,
.w3-container.city p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.product-description ul,
.category-description ul,
.product-content-wrapper ul,
.category-content-wrapper ul,
.flip-card-back ul,
.w3-container.city ul {
    padding-left: 25px;
    margin-bottom: 18px;
}

.product-description ol,
.category-description ol,
.product-content-wrapper ol,
.category-content-wrapper ol,
.flip-card-back ol,
.w3-container.city ol {
    padding-left: 25px;
    margin-bottom: 18px;
}

.product-description li,
.category-description li,
.product-content-wrapper li,
.category-content-wrapper li,
.flip-card-back li,
.w3-container.city li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.product-description h2,
.category-description h2,
.product-content-wrapper h2,
.category-content-wrapper h2,
.flip-card-back h2,
.w3-container.city h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-description h3,
.category-description h3,
.product-content-wrapper h3,
.category-content-wrapper h3,
.flip-card-back h3,
.w3-container.city h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-description h4,
.category-description h4,
.product-content-wrapper h4,
.category-content-wrapper h4,
.flip-card-back h4,
.w3-container.city h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-description strong,
.category-description strong,
.product-content-wrapper strong,
.category-content-wrapper strong,
.flip-card-back strong,
.w3-container.city strong {
    font-weight: 700;
    color: var(--text-primary);
}

.product-description em,
.category-description em,
.product-content-wrapper em,
.category-content-wrapper em,
.flip-card-back em,
.w3-container.city em {
    font-style: italic;
}

.product-description a,
.category-description a,
.product-content-wrapper a,
.category-content-wrapper a,
.flip-card-back a,
.w3-container.city a {
    color: var(--brand-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.product-description a:hover,
.category-description a:hover,
.product-content-wrapper a:hover,
.category-content-wrapper a:hover,
.flip-card-back a:hover,
.w3-container.city a:hover {
    color: var(--brand-light);
}

.product-description table,
.category-description table,
.product-content-wrapper table,
.category-content-wrapper table,
.flip-card-back table,
.w3-container.city table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.product-description th,
.category-description th,
.product-content-wrapper th,
.category-content-wrapper th,
.flip-card-back th,
.w3-container.city th {
    background-color: var(--brand-dark);
    color: var(--text-primary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border);
}

.product-description td,
.category-description td,
.product-content-wrapper td,
.category-content-wrapper td,
.flip-card-back td,
.w3-container.city td {
    padding: 12px;
    border: 1px solid var(--border);
}

.product-description blockquote,
.category-description blockquote,
.product-content-wrapper blockquote,
.category-content-wrapper blockquote,
.flip-card-back blockquote,
.w3-container.city blockquote {
    border-left: 4px solid var(--brand-primary);
    padding-left: 16px;
    margin: 18px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.product-description code,
.category-description code,
.product-content-wrapper code,
.category-content-wrapper code,
.flip-card-back code,
.w3-container.city code {
    background-color: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.product-description pre,
.category-description pre,
.product-content-wrapper pre,
.category-content-wrapper pre,
.flip-card-back pre,
.w3-container.city pre {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.product-description pre code,
.category-description pre code,
.product-content-wrapper pre code,
.category-content-wrapper pre code,
.flip-card-back pre code,
.w3-container.city pre code {
    background-color: transparent;
    padding: 0;
}

.product-texture h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 14px;
}

.product-texture h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-texture p {
    color: var(--text-secondary) !important;
    line-height: 1.7;
}

.product-texture .text-light {
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Typography */
.category-page-container h1,
.category-page-container h2,
.category-page-container h3,
.category-page-container h4,
.category-page-container h5,
.category-page-container h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.category-page-container h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary) !important;
    line-height: 1.2;
    margin-bottom: 24px;
}

.category-page-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary) !important;
    line-height: 1.3;
    margin-bottom: 20px;
}

.category-page-container h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary) !important;
    line-height: 1.4;
    margin-bottom: 16px;
}

.category-page-container p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary) !important;
    max-width: 850px;
}

.category-page-container a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-page-container a:hover {
    color: var(--brand-primary) !important;
}

/* Section Spacing */
.category-section {
    padding: var(--space-4xl) 0;
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .category-section {
        padding: 48px 0;
    }
}

/* White Card Container */
.category-card-container {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

/* Glass Container */
.glass {
    background: var(--card-bg) !important;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    padding: var(--space-xl);
}

.glass h2,
.glass h3 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.glass .text-light {
    color: var(--text-primary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Category Navigation Tabs */
.category-tabs-container {
    margin: 48px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tabs-container::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    min-width: max-content;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 12px 24px;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.category-tab:hover {
    background: var(--hover-bg);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.category-tab.active {
    background: var(--button-primary);
    color: #FFFFFF;
    border-color: var(--button-primary);
    box-shadow: 0 4px 12px rgba(117, 56, 37, 0.25);
}

/* Category Button */
.category-button {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-normal) ease;
    white-space: nowrap;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.category-button:hover {
    background: var(--button-primary);
    color: #FFFFFF;
    border-color: var(--button-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-button:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.category-button:active {
    transform: translateY(0);
}

/* Primary Button */
.btn-primary {
    background: var(--button-primary);
    color: #FFFFFF;
    border: 1px solid var(--button-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-normal) ease;
    min-height: 44px;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Secondary Button */
.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-normal) ease;
    min-height: 44px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-normal) ease;
    min-height: 44px;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* CTA Button */
.btn-cta {
    background: var(--brand-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-normal) ease;
    min-height: 48px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.btn-cta:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-cta:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Button Disabled State */
button:disabled,
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin-left: var(--space-sm);
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Product Detail Section */
.product-detail-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 40px;
    margin: 32px 0;
    border: 1px solid var(--border);
}

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

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.product-thumbnail-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #1a1a1a;
    padding: 8px;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--brand-primary);
    transform: scale(1.05);
}

/* Main View and Side View */
.main_view {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.main_view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.main_view img:hover {
    transform: scale(1.05);
}

.side_view {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.side_view img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: #1a1a1a;
    padding: var(--space-sm);
    transition: all var(--transition-normal) ease;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-soft);
}

.side_view img:hover,
.side_view img.active {
    border-color: var(--brand-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.product-info-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.product-rating .stars {
    color: #D4A574;
    font-size: 18px;
}

.product-rating .review-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* Modern Tabs - W3 Override */
.w3-bar {
    background: var(--card-bg) !important;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

.w3-bar-item {
    color: var(--text-primary) !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    padding: 12px 24px !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.w3-bar-item:hover {
    background: var(--hover-bg) !important;
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.w3-red,
.w3-hover-red:hover {
    background: var(--button-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--button-primary) !important;
}

.w3-container {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-md);
    min-height: 200px;
}

.w3-container.w3-border {
    border: 1px solid var(--border) !important;
}

.w3-container p {
    color: var(--text-secondary) !important;
    line-height: 1.8;
    font-size: 16px;
}

.w3-container b {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.city {
    display: none;
}

.city.active {
    display: block;
}

/* Premium Product Cards */
.premium-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 48px 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    align-items: stretch;
}

/* Related Products Grid - 3 columns on desktop */
.premium-product-grid.related-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Ensure Related Products cards don't overflow their columns */
.premium-product-grid.related-products-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .premium-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Related Products remain 3 columns on all desktop sizes */
    .premium-product-grid.related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .premium-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Related Products: 2 columns on tablet */
    .premium-product-grid.related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .premium-product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Related Products: 1 column on mobile */
    .premium-product-grid.related-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.premium-product-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.premium-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.premium-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #1a1a1a;
    padding: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    max-width: 100%;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.premium-product-card:hover .premium-product-image {
    transform: scale(1.03);
}

.premium-product-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.premium-product-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--hover-bg);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.premium-product-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.premium-product-card:hover .premium-product-title {
    color: var(--brand-primary);
}

.premium-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-height: 89px;
}

.premium-product-cta {
    margin-top: auto;
    padding: 12px 24px;
    background: var(--button-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.premium-product-cta:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 56, 37, 0.2);
}

/* Primary Button */
.btn-primary-modern {
    height: 48px;
    padding: 12px 32px;
    background: var(--button-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-modern:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 56, 37, 0.2);
}

.btn-primary-modern:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Breadcrumb Styling */
.category-breadcrumb {
    padding: 24px 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.category-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.category-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}


/* Hero Banner */
.category-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
    height: 350px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
}

.category-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.category-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFFFFF;
    z-index: 1;
    padding: 0 24px;
}

.category-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Range Gap - Banner Text */
.range_gap h1 {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.range_gap p {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-size: 18px;
    line-height: 1.6;
}

/* Banner Overlay */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease forwards;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Product Card Override */
.product-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl);
    height: 520px;
    overflow: hidden;
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-tumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    padding: var(--space-xl);
    overflow: hidden;
    margin: 0;
    background-color: #1a1a1a !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: var(--transition-slow) all ease-in-out;
    min-height: 300px;
    border-bottom: 1px solid var(--border);
}

.product-tumb img {
    transition: var(--transition-slow) all ease-in-out;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.product-card:hover .product-tumb img {
    transform: scale(1.08);
}

.product-details {
    padding: var(--space-lg) 24px var(--space-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    min-height: 220px;
}

.product-catagory {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary) !important;
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.product-details h4 a {
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: var(--transition-normal);
    line-height: 1.4;
    min-height: 44px;
}

.product-details h4 a:hover {
    color: var(--brand-primary) !important;
    text-decoration: none;
}

.product-details p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-secondary) !important;
    flex-grow: 1;
    min-height: 48px;
}

.product-details p:hover {
    color: var(--text-primary) !important;
}

.badge {
    position: absolute;
    left: 0;
    top: var(--space-lg);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    background: var(--brand-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(117, 56, 37, 0.4);
    letter-spacing: 0.5px;
}

/* Swiper Related Products */
.relatedproduct .swiper-slide {
    height: auto;
    padding: var(--space-md);
    width: auto;
}

.relatedproduct .swiper-wrapper {
    padding: var(--space-md) 0;
    display: flex;
    gap: var(--space-lg);
}

.relatedproduct .swiper-pagination {
    bottom: 0 !important;
}

.relatedproduct .swiper-pagination-bullet {
    background: var(--border) !important;
    opacity: 1 !important;
    width: 8px;
    height: 8px;
}

.relatedproduct .swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
}

/* Grid System Improvements */
.row {
    margin-left: calc(var(--space-md) * -0.5);
    margin-right: calc(var(--space-md) * -0.5);
}

.row > [class*="col-"] {
    padding-left: calc(var(--space-md) * 0.5);
    padding-right: calc(var(--space-md) * 0.5);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--space-xl);
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* Category Hero Section - Mobile Responsive Layout */
.category-hero-section {
    margin-bottom: 32px;
}

.category-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.category-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.category-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.category-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Mobile Responsive Layout for Category Hero Section - STRICT !IMPORTANT */
@media (max-width: 768px) {
    .category-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 24px !important;
    }
    
    .category-image-wrapper {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .category-hero-image {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .category-content-wrapper {
        order: 2 !important;
        width: 100% !important;
    }
    
    .category-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .category-description {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .category-hero-image {
        max-height: 280px !important;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .category-description {
        font-size: 14px;
    }
}

/* Desktop Layout Preservation */
@media (min-width: 769px) {
    .category-hero-grid {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }
    
    .category-image-wrapper {
        order: unset;
    }
    
    .category-content-wrapper {
        order: unset;
    }
}

@media (min-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Category */
.mobile-category {
    display: none;
    padding: var(--space-md) 0;
}

.mobile-category h3 {
    font-size: 20px;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mobile-category {
        display: block;
    }
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-normal) ease;
}

.mobile-sidebar-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--brand-primary);
}

.mobile-sidebar-toggle-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-sidebar-toggle-icon {
    font-size: 20px;
    color: var(--brand-primary);
    transition: transform var(--transition-normal) ease;
}

.mobile-sidebar-toggle.active .mobile-sidebar-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .mobile-sidebar-toggle {
        display: flex;
    }
}

/* Mobile Sidebar Collapse */
@media (max-width: 992px) {
    .category-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: none;
    }
    
    .category-sidebar.active {
        display: block;
        margin-bottom: var(--space-xl);
    }
}

/* ==================== NEW LAYOUT STYLES ==================== */

/* Category Sidebar */
.category-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    padding: var(--space-xl);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.category-sidebar::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 3px;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 3px;
}

.sidebar-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--brand-primary);
}

.sidebar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-nav {
    margin-top: var(--space-md);
}

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

.category-item {
    margin-bottom: var(--space-sm);
}

.category-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal) ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-link:hover {
    background: var(--hover-bg);
    color: var(--brand-primary);
    padding-left: 20px;
}

.category-link.active {
    background: rgba(117, 56, 37, 0.15);
    color: var(--brand-primary);
    font-weight: 600;
    border-left: 3px solid var(--brand-primary);
}

.category-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    margin-right: 12px;
    transition: all var(--transition-normal) ease;
}

.category-link:hover .category-indicator,
.category-link.active .category-indicator {
    background: var(--brand-primary);
    transform: scale(1.2);
}

.category-name {
    flex-grow: 1;
}

/* Category Hero Section */
.category-hero-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.category-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 992px) {
    .category-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .category-hero-section {
        margin-bottom: var(--space-xl);
        padding: var(--space-lg) 0;
    }
}

.category-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    background: var(--background);
    aspect-ratio: 1/1;
}

.category-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.category-image-wrapper:hover .category-hero-image {
    transform: scale(1.05);
}

.category-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: var(--space-md);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.category-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 100%;
}

.category-description p {
    margin-bottom: var(--space-md);
}

/* Information Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal) ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-primary);
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-card-header::before {
    content: '';
    width: 32px;
    height: 32px;
    background: rgba(117, 56, 37, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.info-card-content {
    padding-top: var(--space-md);
}

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

.info-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    transition: color var(--transition-normal) ease;
}

.info-item::before {
    content: '✓';
    color: var(--brand-primary);
    font-weight: 700;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.info-item:hover {
    color: var(--brand-primary);
    padding-left: 4px;
}

/* Specification Section */
.specification-section {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.specification-table-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
}

.specification-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.specification-table th {
    text-align: left;
    padding: 16px;
    background: rgba(117, 56, 37, 0.1);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid var(--brand-primary);
    width: 30%;
}

.specification-table td {
    padding: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.specification-table tr:last-child td {
    border-bottom: none;
}

.specification-table tr:hover td {
    background: var(--hover-bg);
}

/* Product Hero Section */
.product-hero-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 992px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .product-hero-section {
        margin-bottom: var(--space-xl);
        padding: var(--space-lg) 0;
    }
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.product-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: var(--space-md);
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.product-rating .stars {
    color: #D4A574;
    font-size: 18px;
    display: flex;
    gap: 4px;
}

.product-rating .review-count {
    color: var(--text-muted);
    font-size: 14px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-description p {
    margin-bottom: var(--space-md);
}

/* Product Details Section */
.product-details-section {
    margin-bottom: var(--space-2xl);
}

/* Related Products Section */
.related-products-section {
    margin-bottom: var(--space-2xl);
}

.premium-product-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    width: 100%;
    overflow: visible;
}

.premium-product-image-wrapper {
    background: var(--background);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    min-height: 220px;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-sidebar {
        position: static;
        max-height: none;
        margin-bottom: var(--space-xl);
    }
    
    .category-title,
    .product-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-hero-grid,
    .product-hero-grid {
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .category-page-container {
        padding: 0 var(--space-md);
    }
    
    .category-sidebar {
        padding: var(--space-lg);
    }
    
    .sidebar-title {
        font-size: 16px;
    }
    
    .category-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .category-title,
    .product-title {
        font-size: 24px;
    }
    
    .category-title::after,
    .product-title::after {
        width: 60px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .specification-table-wrapper {
        padding: var(--space-lg);
    }
    
    .specification-table th,
    .specification-table td {
        padding: 12px;
        font-size: 14px;
    }
    
    .premium-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .category-hero-grid,
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .category-image-wrapper,
    .product-image-gallery {
        aspect-ratio: 4/3;
    }
    
    .category-title,
    .product-title {
        font-size: 20px;
    }
    
    .category-description,
    .product-description {
        font-size: 14px;
    }
    
    .info-card {
        padding: var(--space-md);
    }
    
    .info-card-title {
        font-size: 16px;
    }
    
    .info-item {
        font-size: 13px;
    }
}

/* Block Small */
.block-small {
    display: block;
}

/* ==================== HTML CONTENT STYLING ==================== */

/* Content Container Styling */
.category-description,
.product-description,
.w3-container p,
.w3-container div {
    color: var(--text-secondary) !important;
    line-height: 1.8;
    font-size: 16px;
}

/* Paragraph Styling */
.category-description p,
.product-description p,
.w3-container p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-secondary) !important;
}

.category-description p:last-child,
.product-description p:last-child,
.w3-container p:last-child {
    margin-bottom: 0;
}

/* Headings Styling */
.category-description h1,
.category-description h2,
.category-description h3,
.category-description h4,
.category-description h5,
.category-description h6,
.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6,
.w3-container h1,
.w3-container h2,
.w3-container h3,
.w3-container h4,
.w3-container h5,
.w3-container h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.category-description h1,
.product-description h1,
.w3-container h1 {
    font-size: 28px;
}

.category-description h2,
.product-description h2,
.w3-container h2 {
    font-size: 24px;
}

.category-description h3,
.product-description h3,
.w3-container h3 {
    font-size: 20px;
}

.category-description h4,
.product-description h4,
.w3-container h4 {
    font-size: 18px;
}

/* List Styling */
.category-description ul,
.category-description ol,
.product-description ul,
.product-description ol,
.w3-container ul,
.w3-container ol {
    margin-bottom: 18px;
    padding-left: 25px;
    color: var(--text-secondary) !important;
}

.category-description li,
.product-description li,
.w3-container li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary) !important;
}

.category-description ul,
.product-description ul,
.w3-container ul {
    list-style-type: disc;
}

.category-description ol,
.product-description ol,
.w3-container ol {
    list-style-type: decimal;
}

/* Strong/Bold Text Styling */
.category-description strong,
.category-description b,
.product-description strong,
.product-description b,
.w3-container strong,
.w3-container b {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Italic Text Styling */
.category-description em,
.category-description i,
.product-description em,
.product-description i,
.w3-container em,
.w3-container i {
    color: var(--text-secondary) !important;
}

/* Link Styling */
.category-description a,
.product-description a,
.w3-container a {
    color: var(--brand-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-description a:hover,
.product-description a:hover,
.w3-container a:hover {
    color: var(--brand-secondary) !important;
    text-decoration: underline;
}

/* Table Styling */
.category-description table,
.product-description table,
.w3-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.category-description th,
.category-description td,
.product-description th,
.product-description td,
.w3-container th,
.w3-container td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary) !important;
}

.category-description th,
.product-description th,
.w3-container th {
    background: rgba(117, 56, 37, 0.1);
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.category-description tr:last-child td,
.product-description tr:last-child td,
.w3-container tr:last-child td {
    border-bottom: none;
}

.category-description tr:hover td,
.product-description tr:hover td,
.w3-container tr:hover td {
    background: var(--hover-bg);
}

/* Span Styling - Remove inline styles */
.category-description span,
.product-description span,
.w3-container span {
    color: var(--text-secondary) !important;
}

/* Clean up legacy Word styles */
.category-description span[style*="font-family"],
.category-description span[style*="font-size"],
.category-description span[style*="color"],
.product-description span[style*="font-family"],
.product-description span[style*="font-size"],
.product-description span[style*="color"],
.w3-container span[style*="font-family"],
.w3-container span[style*="font-size"],
.w3-container span[style*="color"] {
    font-family: 'Inter', sans-serif !important;
    font-size: inherit !important;
    color: var(--text-secondary) !important;
}

/* Remove empty spans */
.category-description span:empty,
.product-description span:empty,
.w3-container span:empty {
    display: none;
}

/* Blockquote Styling */
.category-description blockquote,
.product-description blockquote,
.w3-container blockquote {
    margin: 18px 0;
    padding: 16px;
    border-left: 4px solid var(--brand-primary);
    background: var(--hover-bg);
    color: var(--text-secondary) !important;
    font-style: italic;
}

/* Code Styling */
.category-description code,
.product-description code,
.w3-container code {
    background: var(--hover-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--brand-primary) !important;
}

/* Pre Styling */
.category-description pre,
.product-description pre,
.w3-container pre {
    background: var(--hover-bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.category-description pre code,
.product-description pre code,
.w3-container pre code {
    background: transparent;
    padding: 0;
}

/* Horizontal Rule Styling */
.category-description hr,
.product-description hr,
.w3-container hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* Address Styling */
.category-description address,
.product-description address,
.w3-container address {
    font-style: normal;
    margin-bottom: 18px;
    color: var(--text-secondary) !important;
}

/* Responsive Design Improvements */
@media (max-width: 992px) {
    .main_view {
        height: 350px;
        padding: var(--space-md);
    }
    
    .side_view img {
        width: 70px;
        height: 70px;
        padding: 8px;
    }
    
    .product-card {
        height: 480px;
    }
    
    .product-tumb {
        height: 280px;
        padding: var(--space-lg);
    }
    
    .category-page-container h1 {
        font-size: 36px;
    }
    
    .category-page-container h2 {
        font-size: 28px;
    }
    
    .category-page-container h3 {
        font-size: 22px;
    }
    
    .glass {
        padding: 24px;
    }
    
    .w3-container {
        padding: 24px;
    }
    
    #side-productbar {
        margin-bottom: 24px;
    }
}

@media (max-width: 600px) {
    .block-small {
        display: none;
    }
    
    .breadcrumb {
        padding: 12px 16px !important;
        font-size: 14px;
    }
    
    .category-button {
        font-size: 13px;
        padding: 10px 16px;
        min-height: 40px;
    }
    
    .main_view {
        height: 280px;
        padding: var(--space-sm);
    }
    
    .side_view img {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    
    .product-card {
        height: auto;
        min-height: 450px;
    }
    
    .product-tumb {
        height: 240px;
        padding: var(--space-md);
    }
    
    .product-details {
        padding: var(--space-md) 16px var(--space-lg);
    }
    
    .glass {
        padding: 16px;
    }
    
    .w3-container {
        padding: 16px;
    }
    
    .w3-bar .w3-bar-item {
        font-size: 11px;
        padding: 8px 12px !important;
    }
    
    .range_gap p {
        font-size: 14px;
    }
    
    .badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Pad 0 */
.pad-0 {
    padding: 0 !important;
}

/* Sidebar Styles */
#side-productbar {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    height: fit-content;
    box-shadow: var(--shadow-soft);
}

.sidenav {
    margin-bottom: var(--space-lg);
}

.sidenav b a {
    color: var(--text-primary) !important;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: var(--space-md) 0;
    border-bottom: 2px solid var(--border);
    transition: color 0.3s ease;
}

.sidenav b a:hover {
    color: var(--brand-primary) !important;
}

/* Accordion Override */
.accordion-item {
    background: transparent !important;
    border: none !important;
    margin-bottom: var(--space-sm);
}

.accordion-button {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px var(--space-md) !important;
    transition: all var(--transition-normal) ease;
}

.accordion-button:hover {
    background: var(--background) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: var(--brand-primary) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-primary) !important;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-md);
    margin-top: -4px;
}

/* Category Link */
.category-link {
    display: block;
    color: var(--text-secondary) !important;
    text-decoration: none;
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition-normal) ease;
    margin-bottom: var(--space-xs);
}

.category-link:hover {
    color: var(--brand-primary) !important;
    background: var(--background);
    padding-left: var(--space-md);
}

.category-link.active {
    color: var(--brand-primary) !important;
    background: var(--brand-primary);
    color: #FFFFFF !important;
    font-weight: 500;
}

/* Sidebar Responsive */
@media (max-width: 992px) {
    #side-productbar {
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 768px) {
    #side-productbar {
        padding: var(--space-md);
    }
    
    .sidenav b a {
        font-size: 16px;
    }
    
    .accordion-button {
        font-size: 14px;
        padding: 12px var(--space-sm) !important;
    }
    
    .category-link {
        font-size: 13px;
        padding: var(--space-sm) 10px;
    }
}

/* Ellipsis */
.ellpisis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description Clamp */
.description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design Fixes */
@media (max-width: 768px) {
    .category-page-container h1 {
        font-size: 28px;
    }
    
    .category-page-container h2 {
        font-size: 24px;
    }
    
    .category-page-container h3 {
        font-size: 20px;
    }
    
    .category-page-container p {
        font-size: 15px;
    }
    
    .main_view {
        height: 300px;
        padding: 16px;
    }
    
    .main_view img {
        height: auto;
        width: 100%;
    }
    
    .side_view img {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    
    .product-card {
        height: auto;
        min-height: 450px;
    }
    
    .product-tumb {
        height: 250px;
        padding: 24px;
    }
    
    .w3-bar .w3-bar-item {
        font-size: 12px;
        padding: 8px 12px !important;
    }
    
    .category-button {
        font-size: 13px;
        padding: 10px 16px;
        min-height: 40px;
    }
    
    .glass {
        padding: 20px;
    }
    
    .w3-container {
        padding: 20px;
    }
    
    .breadcrumb {
        padding: 12px 16px !important;
    }
    
    #side-productbar {
        padding: var(--space-md);
    }
    
    .sidenav b a {
        font-size: 16px;
    }
    
    .accordion-button {
        font-size: 14px;
        padding: 12px var(--space-sm) !important;
    }
    
    .category-link {
        font-size: 13px;
        padding: var(--space-sm) 10px;
    }
}

@media (max-width: 576px) {
    .category-page-container h1 {
        font-size: 24px;
    }
    
    .category-page-container h2 {
        font-size: 20px;
    }
    
    .category-page-container h3 {
        font-size: 18px;
    }
    
    .main_view {
        height: 250px;
        padding: 12px;
    }
    
    .side_view img {
        width: 50px;
        height: 50px;
        padding: 4px;
    }
    
    .product-card {
        height: auto;
        min-height: 400px;
    }
    
    .product-tumb {
        height: 200px;
        padding: 20px;
    }
    
    .product-details {
        padding: 16px 20px 20px;
    }
    
    .glass {
        padding: 16px;
    }
    
    .w3-container {
        padding: 16px;
    }
    
    .range_gap p {
        font-size: 14px;
    }
    
    .breadcrumb {
        padding: 10px 14px !important;
        font-size: 13px;
    }
    
    .category-button {
        font-size: 12px;
        padding: 8px 14px;
        min-height: 36px;
    }
    
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .product-catagory {
        font-size: 11px;
    }
    
    .product-details h4 a {
        font-size: 14px;
    }
    
    .product-details p {
        font-size: 13px;
    }
}

/* Responsive Table Wrapper */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-wrapper table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .table-responsive-wrapper {
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }
}

/* Responsive Product Tabs */
@media (max-width: 768px) {
    .w3-bar {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .w3-bar-item {
        width: 100%;
        text-align: center;
        padding: var(--space-sm) var(--space-md);
    }
    
    .city {
        padding: var(--space-md);
    }
}

/* Responsive Info Cards */
@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .info-card {
        padding: var(--space-md);
    }
    
    .info-list {
        font-size: 14px;
    }
}

/* Responsive Category Hero Section */
@media (max-width: 768px) {
    .category-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .category-hero-image {
        height: auto;
        max-height: 300px;
    }
    
    .category-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .category-description {
        font-size: 14px;
    }
}

/* Responsive Product Cards */
@media (max-width: 768px) {
    .premium-product-card {
        height: auto;
        min-height: auto;
    }
    
    .premium-product-image {
        height: 200px;
        object-fit: contain;
    }
    
    .premium-product-title {
        font-size: 16px;
    }
    
    .premium-product-description {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .premium-product-cta {
        width: 100%;
    }
}

/* Global Responsive Fixes */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Container overflow fixes */
.container-fluid,
.container,
.row,
.col {
    overflow-x: hidden;
    max-width: 100%;
}

/* Image responsive fixes */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile First Responsive Breakpoints */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 321px) and (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}

@media (min-width: 376px) and (max-width: 425px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
}

/* Tablet Responsive Fixes */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
}

/* Laptop Responsive Fixes */
@media (min-width: 1025px) and (max-width: 1440px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Desktop Responsive Fixes */
@media (min-width: 1441px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

/* Touch-friendly button sizing */
button, .btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
}

@media (max-width: 768px) {
    button, .btn, input[type="submit"], input[type="button"] {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Form responsive fixes */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    label {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* Navigation responsive fixes */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Sidebar responsive fixes */
@media (max-width: 992px) {
    #side-productbar {
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 20px;
    }
}

/* Product gallery responsive fixes */
@media (max-width: 768px) {
    .main_view img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .side_view {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .side_view img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }
}

/* Footer responsive fixes */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
    }
    
    footer .row {
        flex-direction: column;
    }
    
    footer .col {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Card responsive fixes */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .product-card,
    .category-card {
        width: 100%;
    }
}

/* Hero banner responsive fixes */
@media (max-width: 768px) {
    .background-banner,
    .background-banner1,
    .background-banner2,
    .background-banner3,
    .background-banner4,
    .background-banner5 {
        min-height: 200px;
        padding: 20px;
    }
    
    .carousel-title {
        font-size: clamp(18px, 5vw, 28px);
    }
}

/* Table responsive fixes */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 6px;
    }
}

/* Spacing responsive fixes */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-lg-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-lg-5 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Text overflow fixes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .text-truncate {
        max-width: 100%;
    }
}

/* Z-index fixes for overlapping elements */
.breadcrumb {
    position: relative;
    z-index: 10;
}

.navbar {
    position: relative;
    z-index: 1000;
}

.product-image-gallery {
    position: relative;
    z-index: 5;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Flexbox responsive fixes */
@media (max-width: 768px) {
    .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .d-flex.flex-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Responsive Header and Navigation */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 150px !important;
        height: 60px !important;
    }
    
    .container-fluid.px-5 {
        padding-left: var(--space-md) !important;
        padding-right: var(--space-md) !important;
    }
    
    .nav-link {
        font-size: 14px;
        padding: var(--space-sm) var(--space-md) !important;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
        border: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-content .d-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-content a {
        padding: var(--space-sm) var(--space-md) !important;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        width: 120px !important;
        height: 48px !important;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .dropdown-content a {
        font-size: 13px;
        padding: 8px 12px !important;
    }
}

/* Extra Small Mobile (390px) */
@media (max-width: 389px) {
    .navbar-brand img {
        width: 100px !important;
        height: 40px !important;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 8px 12px !important;
    }
    
    .dropdown-content a {
        font-size: 12px;
        padding: 6px 10px !important;
    }
    
    .premium-product-grid {
        gap: 16px;
    }
    
    .premium-product-card {
        min-height: 350px;
    }
    
    .premium-product-image {
        height: 180px;
    }
    
    .premium-product-content {
        padding: 16px;
    }
    
    .premium-product-title {
        font-size: 16px;
    }
    
    .premium-product-description {
        font-size: 13px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 14px;
    }
}

/* Ultra Small Mobile (320px) */
@media (max-width: 319px) {
    .navbar-brand img {
        width: 90px !important;
        height: 36px !important;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 6px 10px !important;
    }
    
    .dropdown-content a {
        font-size: 11px;
        padding: 6px 8px !important;
    }
    
    .premium-product-grid {
        gap: 12px;
    }
    
    .premium-product-card {
        min-height: 320px;
    }
    
    .premium-product-image {
        height: 160px;
    }
    
    .premium-product-content {
        padding: 12px;
    }
    
    .premium-product-title {
        font-size: 14px;
    }
    
    .premium-product-description {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .premium-product-cta {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .top-footer .col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--space-md);
    }
    
    .footer-hero-img .col-sm-3,
    .footer-hero-img .col-sm-2,
    .footer-hero-img .col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--space-lg);
    }
    
    .footer-hero-img h4 {
        font-size: 18px;
    }
    
    .footer-hero-img p {
        font-size: 14px;
    }
    
    .footer-hero-img a {
        font-size: 14px;
    }
    
    #newsletter-email {
        width: 100% !important;
        margin-bottom: var(--space-sm);
    }
    
    .footer-hero-img button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-footer h4 {
        font-size: 16px;
    }
    
    .top-footer p {
        font-size: 13px;
    }
    
    .footer-hero-img h4 {
        font-size: 16px;
    }
    
    .footer-hero-img p {
        font-size: 13px;
    }
    
    .footer-hero-img a {
        font-size: 13px;
    }
}

/* Global Responsive Improvements */
@media (max-width: 768px) {
    /* Container adjustments */
    .container-fluid,
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    /* Button responsiveness */
    .btn-cta,
    .btn-primary,
    .btn-secondary {
        padding: var(--space-sm) var(--space-md);
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Typography scaling */
    h1 {
        font-size: clamp(24px, 5vw, 36px);
    }
    
    h2 {
        font-size: clamp(20px, 4vw, 28px);
    }
    
    h3 {
        font-size: clamp(18px, 3.5vw, 24px);
    }
    
    h4 {
        font-size: clamp(16px, 3vw, 20px);
    }
    
    p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    
    .py-lg-5 {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    
    /* Form inputs */
    input,
    textarea,
    select {
        font-size: 16px;
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    /* Smaller button sizing */
    .btn-cta,
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Smaller typography */
    h1 {
        font-size: clamp(20px, 6vw, 28px);
    }
    
    h2 {
        font-size: clamp(18px, 5vw, 24px);
    }
    
    h3 {
        font-size: clamp(16px, 4.5vw, 20px);
    }
    
    p {
        font-size: 13px;
    }
    
    /* Reduced spacing */
    .py-5 {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    /* Touch-friendly targets */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}
