
/* ============================================
   CSS VARIABLES - CENTRALIZED THEME SYSTEM
   ============================================ */
:root {
    /* Primary Theme Colors */
    --primary-color: #3eac5f;
    --secondary-color: #c2330f;
    --accent-color: #729fcf;
    
    /* Auto-generated Color Variations */
    --primary-light: #50df7b;
    --primary-dark: #2b7842;
    --secondary-light: #fc4213;
    --secondary-dark: #87230a;
    --primary-rgb: 62, 172, 95;
    --secondary-rgb: 194, 51, 15;
    
    /* Background System */
    --background-color: #d3eacd;
    --container-bg: #d5e2c5;
    --card-bg: #ffffff;
    
    /* Typography System */
    --text-color: #000000;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --heading-color: #df8507;
    --font-family: 'Open Sans', Arial, sans-serif;
    --heading-font: 'Be Vietnam Pro', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    
    /* Status Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    --muted-color: #6c757d;
    
    /* Form & Input System */
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-focus-border: #df8507;
    --input-text: #2c3e50;
    
    /* Button System */
    --button-primary-bg: #df8507;
    --button-secondary-bg: #4bc39f;
    --button-hover-bg: #c77506;
    --button-text-color: #d6fffe;
    
    /* Table System */
    --table-header-bg: #f19009;
    --table-row-bg: #ffffff;
    --table-hover-bg: #f8f9fa;
    --table-border-color: #e9ecef;
    
    /* Navigation System */
    --sidebar-bg: #90d0ac;
    --sidebar-text: #abbfe8;
    --sidebar-hover: #3da88a;
    --nav-border: #e9ecef;
    --link-color: #945600;
    --border-color: #000000;
    
    /* UI System */
    --border-radius: 3px;
    --transition-speed: 0.2s;
    
    /* Alpha Utility Colors */
    --primary-alpha-10: rgba(62, 172, 95, 0.1);
    --primary-alpha-20: rgba(62, 172, 95, 0.2);
    --primary-alpha-50: rgba(62, 172, 95, 0.5);
    --secondary-alpha-10: rgba(194, 51, 15, 0.1);
    --secondary-alpha-20: rgba(194, 51, 15, 0.2);
    --secondary-alpha-50: rgba(194, 51, 15, 0.5);
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
    font-weight: 600;
}

h1 { font-size: calc(var(--font-size-xl) * 1.5); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-large); }
h4 { font-size: var(--font-size-base); }
h5 { font-size: var(--font-size-small); }
h6 { font-size: calc(var(--font-size-small) * 0.9); }

.text-small { font-size: var(--font-size-small); }
.text-large { font-size: var(--font-size-large); }
.text-xl { font-size: var(--font-size-xl); }

/* ============================================
   LAYOUT SYSTEM - REUSABLE CONTAINERS
   ============================================ */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop: Increase container width by 30% for wider screens */
@media (min-width: 1025px) {
    .container {
        max-width: 1170px;
    }
}

.section {
    padding: 80px 0;
}

.section-sm { padding: 40px 0; }
.section-lg { padding: 120px 0; }

/* ============================================
   GRID SYSTEM - UNIFIED & REUSABLE
   ============================================ */
.grid {
    display: grid;
    gap: 30px;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

.gap-sm { gap: 15px; }
.gap-md { gap: 30px; }
.gap-lg { gap: 40px; }

/* ============================================
   CARD SYSTEM - UNIFIED COMPONENTS
   ============================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: all var(--transition-speed);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-lg {
    padding: 40px 30px;
    border-radius: 20px;
}

.card-with-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-bordered {
    border-left: 5px solid var(--primary-color);
}

.card-bordered:hover {
    border-left-color: var(--secondary-color);
}

/* ============================================
   BUTTON SYSTEM - COMPREHENSIVE & REUSABLE
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--button-primary-bg);
    color: var(--button-text-color);
}

.btn-primary:hover {
    background: var(--button-hover-bg);
}

.btn-secondary {
    background: var(--button-secondary-bg);
    color: var(--button-text-color);
}

.btn-success { background: var(--success-color); color: white; }
.btn-warning { background: var(--warning-color); color: var(--text-color); }
.btn-danger { background: var(--error-color); color: white; }
.btn-info { background: var(--info-color); color: white; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-sm { padding: 8px 16px; font-size: var(--font-size-small); }
.btn-lg { 
    padding: 15px 30px; 
    font-size: var(--font-size-large);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; }

/* ============================================
   FORM SYSTEM - COMPREHENSIVE & CONSISTENT
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-speed);
    font-family: var(--font-family);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(223, 133, 7, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

input[type="file"] {
    padding: 8px 12px;
    border: 2px dashed var(--input-border);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--input-focus-border);
    background: var(--table-hover-bg);
}

/* ============================================
   HEADER STYLES - MOVED TO header.css
   ============================================ */

/* ============================================
   PRINTGO HERO SECTION - EXACT MATCH TO IMAGE
   ============================================ */
.printgo-hero {
    background: linear-gradient(135deg, #4bc39f 0%, #6bd6ad 50%, #c8e6c9 100%);
    min-height: 800px;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.printgo-hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 700px;
}

.hero-left {
    color: white;
    z-index: 2;
}

.hero-branding {
    margin-bottom: 40px;
}

.company-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.stars {
    display: flex;
    gap: 3px;
}

.stars i {
    color: var(--accent-color);
    font-size: calc(var(--font-size-base) + 3px);
}

.contact-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: white;
    font-size: calc(var(--font-size-base) - 2px);
}

.contact-badge i {
    color: var(--accent-color);
}

.hero-main-title {
    font-size: calc(var(--font-size-base) + 24px);
    color: var(--text-color);
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-sub-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    max-width: 500px;
}

.hero-right {
    position: relative;
    height: 500px;
}

.product-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-products {
    position: relative;
    width: 100%;
    height: 70%;
}

.product-item {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 10px;
    transition: all 0.3s ease;
    animation: gentleFloat 4s ease-in-out infinite;
}

.product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Positioning for floating products */
.product-1 { 
    top: 20px; 
    left: 30px; 
    animation-delay: 0s; 
}
.product-2 { 
    top: 10px; 
    right: 20px; 
    animation-delay: 1s; 
}
.product-3 { 
    top: 50%; 
    left: 10px; 
    transform: translateY(-50%);
    animation-delay: 2s; 
}
.product-4 { 
    bottom: 80px; 
    right: 40px; 
    animation-delay: 3s; 
}
.product-5 { 
    bottom: 120px; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 1.5s; 
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.ocop-branding {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    padding: 20px 30px;
    border-radius: 15px 0 0 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.ocop-text {
    text-align: center;
}

.ocop-main {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0 0 5px 0;
    font-weight: normal;
}

.ocop-highlight {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.ocop-subtitle {
    font-size: calc(var(--font-size-base) - 2px);
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

.color-highlight {
    color: var(--button-primary-bg);
    font-weight: bold;
}

/* Legacy hero section for backward compatibility */
.hero-section {
    background: linear-gradient(135deg, #4bc39f 0%, #2ecc71 50%, #27ae60 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

/* ============================================
   SECTION COMPONENTS - REUSABLE
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: calc(var(--font-size-xl) * 1.2);
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-subtitle {
    font-size: var(--font-size-large);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE HOMEPAGE BANNER SECTION
   ============================================ */
.homepage-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* Base banner styles */
.banner-desktop,
.banner-tablet,
.banner-mobile,
.banner-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none; /* Hide all by default */
}

/* Fallback gradient background */
.banner-fallback {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

/* Desktop Banner (1024px and above) */
@media (min-width: 1024px) {
    .banner-desktop {
        display: block;
    }
    .banner-tablet,
    .banner-mobile {
        display: none;
    }
}

/* Tablet Banner (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-tablet {
        display: block;
    }
    .banner-desktop,
    .banner-mobile {
        display: none;
    }
}

/* Mobile Banner (below 768px) */
@media (max-width: 767px) {
    .banner-mobile {
        display: block;
    }
    .banner-desktop,
    .banner-tablet {
        display: none;
    }
}

/* Fallback display when no specific banners are available */
.banner-fallback {
    display: block;
}

/* ============================================
   SERVICE CATEGORIES SECTION WITH BANNER CONTENT
   ============================================ */
.service-categories {
    padding: 80px 0;
    background: var(--background-color);
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.service-categories-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: flex-start;
}

.banner-content {
    text-align: left;
    padding: 40px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.banner-company {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.banner-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   DESIGN CATEGORIES SECTION - CAROUSEL STYLE
   ============================================ */
.design-categories {
    padding: 80px 0;
    background: var(--background-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: var(--font-size-large);
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
}

.design-carousel-container {
    position: relative;
    padding: 0 80px 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Desktop: Increase design carousel container width to match other sections */
@media (min-width: 1025px) {
    .design-carousel-container {
        max-width: 1170px;
    }
}

.design-carousel-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
}

.design-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease;
    align-items: stretch;
    justify-content: flex-start;
}

.design-item {
    min-width: 350px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: z-index 0s 0s;
}

.design-item:hover {
    z-index: 10;
}

.design-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.design-image {
    position: relative;
    height: 280px;
    border-radius: var(--border-radius);
    overflow: visible;
    margin-bottom: 20px;
    background: var(--card-bg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-item:hover .design-image {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.design-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
    clip-path: inset(0 round var(--border-radius));
}

.design-item:hover .design-image img {
    transform: scale(1.05);
}

.design-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 3rem;
    border-radius: var(--border-radius);
    clip-path: inset(0 round var(--border-radius));
}

.design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-item:hover .design-overlay {
    opacity: 1;
}

.design-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.design-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-align: center;
}

.design-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

/* Responsive Design for Design Categories */
@media (max-width: 1200px) {
    .design-carousel-container {
        max-width: 100%;
        padding: 0 70px;
    }
    
    .design-item {
        min-width: 300px;
    }
    
    .design-image {
        height: 250px;
    }
    
    .carousel-nav {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .design-carousel-container {
        padding: 0 60px;
    }
    
    .design-item {
        min-width: 280px;
    }
    
    .design-image {
        height: 240px;
    }
    
    .carousel-nav {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .design-categories {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .design-carousel-container {
        padding: 0 50px;
        max-width: 100%;
    }
    
    .design-carousel {
        gap: 15px;
    }
    
    .design-item {
        min-width: 250px;
    }
    
    .design-image {
        height: 200px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .design-carousel-container {
        padding: 0 40px 30px;
        max-width: 100%;
    }
    
    .design-carousel {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .design-item {
        min-width: 200px;
        flex: 0 0 calc(50% - 5px);
    }
    
    .design-image {
        height: 160px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .design-title {
        font-size: 1.1rem;
    }
    
    .design-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .design-carousel-container {
        padding: 0 30px;
    }
    
    .design-carousel {
        gap: 8px;
    }
    
    .design-item {
        min-width: 160px;
        flex: 0 0 calc(50% - 4px);
    }
    
    .design-image {
        height: 140px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .design-title {
        font-size: 1rem;
    }
    
    .design-subtitle {
        font-size: 0.75rem;
    }
}

.intro-section {
    text-align: center;
    margin-bottom: 60px;
}

.intro-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: normal;
}

.company-name {
    font-size: 3rem;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.intro-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .service-categories-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .banner-content {
        text-align: center;
        margin: 0 auto;
        max-width: 600px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .homepage-banner {
        height: 480px; /* 30% smaller than 600px for optimal mobile presence */
    }
    
    .banner-desktop,
    .banner-tablet,
    .banner-mobile,
    .banner-fallback {
        background-size: cover;
    }
    
    .service-categories {
        margin-top: -85px; /* Adjusted margin for optimal content overlay with reduced banner */
        padding: 40px 0;
    }
    
    .service-categories-layout {
        gap: 25px;
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        padding: 20px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        align-items: stretch;
    }
    
    .service-item {
        padding: 15px 8px 12px;
        min-height: 140px;
        
    }
    
    .service-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 12px;
        color: var(--secondary-color);
    }
    
    .service-item h4 {
        font-size: 0.9rem;
        min-height: 2.4em;
        color: var(--secondary-color);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        align-items: stretch;
    }
    
    .service-item {
        padding: 12px 6px 10px;
        min-height: 120px;
    }
    
    .service-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .service-item h4 {
        font-size: 0.8rem;
        line-height: 1.2;
        min-height: 2.2em;
        color: var(--secondary-color);
    }
    
    .banner-content {
        padding: 15px 12px;
    }
    
    .banner-title {
        font-size: 1.6rem;
    }
    
    .banner-company {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .homepage-banner {
        height: 420px; /* 30% smaller than 560px for optimal mobile experience */
    }
    
    .banner-desktop,
    .banner-tablet,
    .banner-mobile,
    .banner-fallback {
        background-size: cover;
    }
    
    .service-categories {
        margin-top: -65px; /* Adjusted margin for optimal content overlay with reduced banner */
        padding: 30px 0;
    }
}

@media (max-width: 360px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        align-items: stretch;
    }
    
    .service-item {
        padding: 10px 4px 8px;
        min-height: 100px;
    }
    
    .service-icon-box {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .service-item h4 {
        font-size: 0.75rem;
        line-height: 1.1;
        min-height: 2em;
        color: var(--secondary-color);
    }
    
    .banner-content {
        padding: 12px 8px;
    }
    
    .banner-title {
        font-size: 1.4rem;
    }
    
    .banner-company {
        font-size: 1.8rem;
    }
    
    .banner-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .homepage-banner {
        height: 500px; /* 30% smaller than 640px for optimal visual impact on small screens */
    }
    
    .banner-desktop,
    .banner-tablet,
    .banner-mobile,
    .banner-fallback {
        background-size: cover;
    }
    
    .service-categories {
        margin-top: -70px; /* Adjusted margin for optimal content positioning with reduced banner */
        padding: 25px 0;
    }
}

.service-item {
    background: var(--card-bg);
    padding: 25px 15px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all var(--transition-speed);
    border: 1px solid var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 180px;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all var(--transition-speed);
}

.service-item:hover .service-icon-box {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-all-icon {
    border: 2px dashed var(--border-color) !important;
    color: var(--text-muted) !important;
}

.view-all-item:hover .view-all-icon {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.service-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    text-align: center;
    padding: 0 5px;
}

.service-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.service-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-speed);
}

.service-item-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   LEGACY CARD STYLES - MAINTAINED FOR COMPATIBILITY
   ============================================ */
.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.card-title {
    font-size: var(--font-size-large);
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Product Specific Styles */
.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--container-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--warning-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--font-size-small);
    font-weight: 600;
}

.product-price {
    margin-bottom: 15px;
}

.price-sale {
    color: var(--error-color);
    font-weight: bold;
    font-size: var(--font-size-large);
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: var(--font-size-small);
    margin-left: 10px;
}

.price-current {
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-large);
}

.price-contact {
    color: var(--secondary-color);
    font-weight: 600;
    font-style: italic;
}

/* ============================================
   STATS & METRICS - REUSABLE
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--primary-alpha-10);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.stat-number {
    font-size: calc(var(--font-size-xl) * 1.5);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: var(--font-size-small);
}

/* ============================================
   TABLE SYSTEM - ENHANCED & REUSABLE
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--table-border-color);
}

.data-table th {
    background: var(--table-header-bg);
    color: var(--text-light);
    font-weight: 600;
}

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

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

/* ============================================
   MODAL SYSTEM - COMPREHENSIVE
   ============================================ */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-large {
    max-width: 1000px;
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--heading-color);
}

.modal-body {
    padding: 25px;
}

.close {
    color: var(--text-muted);
    font-size: calc(var(--font-size-base) + 12px);
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-speed);
}

.close:hover {
    color: var(--text-color);
}

/* ============================================
   ADMIN PANEL - CONSOLIDATED
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--background-color);
}

.admin-sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px var(--primary-alpha-10);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--container-bg);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.sidebar-nav .nav-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: var(--primary-alpha-10);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.content-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--primary-alpha-10);
    margin-bottom: 2rem;
}

.content-section-hidden {
    display: none;
}

.section-content {
    padding: 1.5rem;
}

/* ============================================
   NOTIFICATION SYSTEM - UNIFIED
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 5000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

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

/* ============================================
   IMAGE & MEDIA SYSTEM
   ============================================ */
.product-image-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.product-image-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-placeholder-thumb {
    width: 50px;
    height: 50px;
    background: var(--table-hover-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: calc(var(--font-size-base) + 4px);
}

.image-preview-container {
    margin-top: 10px;
}

.image-preview-container img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: block;
}

/* ============================================
   FOOTER SYSTEM - Basic Styles (Enhanced below)
   ============================================ */

/* ============================================
   UTILITY CLASSES - COMPREHENSIVE
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--error-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--secondary-color); }
.bg-success { background: var(--success-color); }
.bg-warning { background: var(--warning-color); }
.bg-danger { background: var(--error-color); }
.bg-info { background: var(--info-color); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.border { border: 1px solid var(--border-color); }
.border-0 { border: none; }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }

.rounded { border-radius: var(--border-radius); }
.rounded-0 { border-radius: 0; }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 50px; }

.shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.shadow-none { box-shadow: none; }

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* Printgo Hero Responsive */
    .printgo-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-right {
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
    
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .section { padding: 60px 0; }
    
    .hero-section { min-height: 500px; padding: 40px 0; }
    .hero-title { font-size: calc(var(--font-size-xl) * 1.2); }
    .hero-subtitle { font-size: var(--font-size-large); }
    .hero-actions { flex-direction: column; align-items: center; gap: 15px; }
    .btn-lg { width: 100%; max-width: 300px; }
    
    /* Printgo Hero Mobile */
    .printgo-hero {
        padding: 40px 0;
    }
    
    .printgo-hero-container {
        gap: 30px;
        padding: 0 15px;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-sub-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-right {
        height: 350px;
    }
    
    .contact-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ocop-branding {
        position: relative;
        margin-top: 20px;
        border-radius: 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        align-items: stretch;
    }
    
    .service-categories {
        padding: 60px 0 40px;
    }
    
    .company-name {
        font-size: 2.2rem;
    }
    
    .intro-title {
        font-size: 1.6rem;
    }
    
    /* Dynamic Header Mobile */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .search-section {
        order: 3;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form .search-input {
        font-size: var(--font-size-base) !important; /* Prevents zoom on iOS */
        padding: 10px 15px !important;
    }
    
    .search-form .search-button {
        padding: 10px 15px !important;
        min-width: 50px;
    }
    
    .header-actions {
        order: 2;
        gap: 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .nav-left {
        width: 100%;
        order: 1;
    }
    
    .nav-center {
        width: 100%;
        order: 2;
        justify-content: center;
    }
    
    .nav-highlight-section {
        padding: 12px 20px;
        font-size: calc(var(--font-size-base) - 3px);
        height: auto;
    }
    
    .nav-highlight-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--secondary-color);
        border-radius: 0;
        background: var(--primary-color);
        display: none;
    }
    
    .nav-highlight-section:hover .nav-highlight-dropdown {
        display: block;
        opacity: 1;
        transform: none;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-link {
        padding: 15px 12px;
        font-size: calc(var(--font-size-base) - 3px);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        background: rgba(255,255,255,0.1);
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-item { 
        width: 100%; 
        text-align: center; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
    }
    
    .nav-link { display: block; padding: 15px; width: 100%; }
    
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-auto { grid-template-columns: 1fr; }
    
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-speed);
    }
    
    .admin-sidebar.active { transform: translateX(0); }
    .admin-content { margin-left: 0; padding: 1rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .notification { right: 10px; left: 10px; max-width: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    .hero-title { font-size: var(--font-size-xl); }
    .hero-subtitle { font-size: var(--font-size-base); }
    
    .section-title { font-size: var(--font-size-xl); }
    .section-subtitle { font-size: var(--font-size-base); }
    
    .card-lg { padding: 20px; }
    
        /* Printgo Hero Small Mobile */
    .hero-main-title {
        font-size: calc(var(--font-size-base) + 10px);
    }

    .hero-sub-title {
        font-size: calc(var(--font-size-base) + 13px);
    }

    .hero-description {
        font-size: calc(var(--font-size-base) - 2px);
    }
    
    .contact-badge {
        font-size: calc(var(--font-size-base) - 4px);
        padding: 6px 12px;
    }
    
    .rating-text {
        font-size: calc(var(--font-size-base) + 3px);
        color: var(--text-color);
    }
    
    .product-item img {
        width: 60px;
        height: 60px;
    }
    
        .ocop-highlight {
        font-size: calc(var(--font-size-base) + 16px);
        color: var(--primary-color);
    }

    .ocop-main {
        font-size: var(--font-size-base);
        color: var(--text-color);
    }

    .company-name {
        font-size: calc(var(--font-size-base) + 13px);
        color: var(--primary-color);
    }

    .intro-title {
        font-size: calc(var(--font-size-base) + 6px);
        color: var(--text-color);
    }

    .intro-description {
        font-size: var(--font-size-base);
        color: var(--text-color);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 10px;
        align-items: stretch;
    }
    
    .service-item {
        padding: 15px 8px 12px;
    }
    
    .service-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .service-item h4 {
        font-size: calc(var(--font-size-base) - 3px);
        line-height: 1.2;
        margin-bottom: 0;
        color: var(--secondary-color);
    }
    
        .homepage-banner {
        height: 420px; /* 30% smaller than 560px for optimal mobile experience */
    }
    
    .service-categories {
        margin-top: -65px; /* Adjusted margin for optimal content overlay with reduced banner */
        padding: 30px 0;
    }
    
    .banner-content {
        padding: 20px;
    }
    
        .banner-title {
        font-size: calc(var(--font-size-base) + 6px);
        color: var(--text-color);
    }

    .banner-company {
        font-size: calc(var(--font-size-base) + 13px);
        margin-bottom: calc(var(--font-size-base) - 1px);
        color: var(--primary-color);
    }

    .banner-description {
        font-size: calc(var(--font-size-base) - 2px);
        color: var(--text-color);
    }
    
    /* Design Categories Mobile */
    .design-carousel {
        gap: 15px;
    }
    
    .design-item {
        min-width: 280px;
    }
    
    .design-image {
        height: 200px;
    }
    
    /* Dynamic Header Small Mobile */
    .logo-text {
        font-size: calc(var(--font-size-base) + 4px);
    }
    
    .logo-img {
        height: 35px;
        max-width: 150px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: calc(var(--font-size-base) - 2px);
    }
    
    .search-button {
        padding: 10px 15px;
    }
    
    .phone-number {
        font-size: calc(var(--font-size-base) - 2px);
    }
    
    .nav-link {
        padding: 12px 8px;
        font-size: calc(var(--font-size-base) - 4px);
    }
    
    .nav-highlight-section {
        padding: 10px 15px;
        font-size: calc(var(--font-size-base) - 4px);
    }
    
    .nav-highlight-dropdown .dropdown-item {
        padding: 10px 15px;
        font-size: calc(var(--font-size-base) - 4px);
    }
    
    .logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .data-table { font-size: var(--font-size-small); }
    .data-table th, .data-table td { padding: 10px; }
    
    .modal-content { width: 95%; }
    .modal-header, .modal-body { padding: 20px; }
    
    .btn-group { flex-direction: column; }
}

/* ============================================
   NEWSLETTER & FOOTER STYLES - MOVED TO footer.css
   ============================================ */

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    .main-header, .main-footer, .admin-sidebar { display: none !important; }
    .admin-content { margin-left: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ccc !important; }
    .newsletter-banner { display: none !important; }
}

/* ============================================
   HOMEPAGE PRODUCT SHOWCASE SECTION
   ============================================ */

.homepage-product-showcase {
    padding: 60px 0;
    background: var(--background-color);
    position: relative;
}

.homepage-product-showcase .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.homepage-product-showcase .section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.homepage-view-all-corner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: var(--font-size-small);
    transition: all 0.3s ease;
}

.homepage-view-all-corner:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tab Navigation */
.homepage-showcase-nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.homepage-nav-arrow {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.homepage-nav-arrow:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.homepage-nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.homepage-showcase-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-behavior: smooth;
    padding: 5px 0; /* Add padding for better visual appearance */
    scroll-snap-type: x mandatory; /* Improve scrolling behavior */
}

.homepage-showcase-tabs::-webkit-scrollbar {
    display: none;
}

.homepage-showcase-tab {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    white-space: nowrap;
    min-height: 40px;
    flex-shrink: 0;
    font-size: var(--font-size-small);
    scroll-snap-align: center; /* Improve scroll snapping */
}

.homepage-showcase-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.homepage-showcase-tab-active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.homepage-tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--font-size-small);
    font-weight: 600;
}

.homepage-showcase-tab-active .homepage-tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Container */
.homepage-showcase-content {
    position: relative;
    min-height: 400px;
}

.homepage-showcase-products {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-showcase-products-active {
    display: block;
    opacity: 1;
}

/* Products Grid */
.homepage-products-grid-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    overflow: hidden;
}

/* Desktop: Increase products grid container width */
@media (min-width: 1025px) {
    .homepage-products-grid-container {
        max-width: 1170px;
    }
}

.homepage-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    transition: transform 0.3s ease;
    min-height: 480px;
}

/* Product Navigation Arrows */
.homepage-product-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.homepage-product-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.homepage-product-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.homepage-product-nav-prev {
    left: 10px;
}

.homepage-product-nav-next {
    right: 10px;
}

/* Category-style Product Card - Updated for consistency */
.category-product-card,
.homepage-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color, #2563eb);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--index, 0) * 0.05s);
    animation-fill-mode: both;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.category-product-card:hover,
.homepage-product-card:hover {
    /* Only apply shadow and border change, no card transformation */
    box-shadow: 0 25px 50px rgba(107, 114, 128, 0.25);
    border-color: var(--secondary-color, #6b7280);
}

/* Remove hover effect for image frame as we've removed the frame */

.category-product-link,
.homepage-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.homepage-product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Image Container and Image */
.category-product-image-container {
    position: relative;
    overflow: hidden;
}

.category-product-image,
.homepage-product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.homepage-product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px; /* Increased height for gradient */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
}

/* Remove the image border pattern as the entire card has a border now */

.category-product-image img,
.homepage-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-product-placeholder,
.homepage-product-placeholder {
    color: var(--border-color, #cbd5e1);
    font-size: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-product-badge,
.homepage-product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 3;
    border: 2px solid white;
}

.badge-logo,
.homepage-badge-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Product Overlay and Quick Actions */
.category-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.9), rgba(75, 85, 99, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.category-product-card:hover .category-product-overlay {
    opacity: 1;
}

.product-quick-actions {
    display: flex;
    gap: 0.75rem;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--secondary-color, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.1rem;
}

.quick-action-btn:hover {
    background: var(--secondary-color, #6b7280);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

/* Product Content */
.category-product-content,
.homepage-product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-product-name,
.homepage-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #2563eb);
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.category-product-link:hover .category-product-name,
.homepage-product-link:hover .homepage-product-name {
    color: var(--accent-color, #3b82f6);
}

.category-product-description {
    color: var(--secondary-color, #6b7280);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Product Stats - Category Style Takes Precedence */
.category-product-stats,
.homepage-product-stats {
    display: flex !important;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    align-items: flex-start;
    /* Override old grid layout */
    grid-template-columns: unset !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Ensure category product stats in homepage use same styling */
.homepage-showcase-products .category-product-stats {
    display: flex !important;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    align-items: flex-start;
}

.stat-item {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--secondary-color, #6b7280);
    flex-shrink: 0;
    /* Override old homepage styles */
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.stat-item i {
    font-size: 0.8rem;
    margin-bottom: 0 !important;
}

.stat-item.rating {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.25rem;
    width: 100%;
    /* Override homepage styles */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Container for views and likes to be on same line */
.stats-row {
    display: flex !important;
    gap: 0.8rem;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: #d1d5db !important;
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
}

.stars i.filled {
    color: #fbbf24 !important;
}

.rating-text {
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--secondary-color, #6b7280) !important;
    display: inline-block !important;
    margin-left: 0.25rem;
}

/* Override mobile hiding of rating text */
.stat-item.rating .rating-text {
    display: inline-block !important;
}

.category-product-stats .rating-text,
.homepage-product-stats .rating-text {
    display: inline-block !important;
    visibility: visible !important;
}

/* Override homepage stat items to use category page style */
.homepage-product-stats .stat-item.views,
.homepage-product-stats .stat-item.likes {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.homepage-product-stats .stat-item.views i,
.homepage-product-stats .stat-item.likes i {
    color: var(--secondary-color, #6b7280) !important;
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
}

.stat-count {
    font-size: 0.8rem !important;
    color: var(--secondary-color, #6b7280) !important;
    font-weight: normal !important;
    white-space: nowrap !important;
}

.homepage-product-stats .stat-count {
    font-size: 0.8rem !important;
    color: var(--secondary-color, #6b7280) !important;
    font-weight: normal !important;
}

/* Override like button styles to work with new layout */
.homepage-product-stats .like-count {
    display: inline !important;
    white-space: nowrap !important;
}

.homepage-product-stats .stat-item.likes .like-btn {
    display: none; /* Hide the old like button since we're using quick actions now */
}

/* Ensure no grid layout interferes with flex layout */
.homepage-product-stats {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

/* Force all stat items to use flex layout */
.homepage-product-stats > * {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.homepage-product-stats .stat-item.rating {
    flex-direction: row !important;
    align-items: center !important;
}

/* Disable old hover effects on stat items */
.homepage-product-stats .stat-item:hover,
.homepage-product-stats .homepage-stat-item:hover,
.homepage-product-stats .homepage-like-container:hover,
.homepage-product-stats .homepage-rating-box:hover {
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    scale: none !important;
}

.homepage-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: calc(var(--font-size-base) - 6px);
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 0;
    height: 50px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    text-align: center;
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.homepage-stat-item:hover {
    background: var(--container-bg);
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.homepage-rating-box {
    color: var(--primary-color);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    /* Grid cell will handle dimensions */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 8px 0;
    text-align: center;
    border-radius: var(--border-radius);
    gap: 4px;
    overflow: hidden;
}

.homepage-rating-box span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    display: block;
    max-width: 100%;
    font-size: calc(var(--font-size-base) - 6px);
    font-weight: 600;
}

.homepage-rating-box i {
    color: var(--accent-color);
    margin-bottom: 2px;
    flex-shrink: 0;
    font-size: calc(var(--font-size-base) - 4px);
}

/* Ensure non-rating items have consistent styling */
.homepage-stat-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    font-size: calc(var(--font-size-base) - 6px);
    line-height: 1.2;
}

.homepage-stat-item i {
    font-size: calc(var(--font-size-base) - 4px);
    margin-bottom: 2px;
}

/* When only 2 stat items (no rating), adjust grid layout */
.homepage-product-stats:has(.homepage-stat-item:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}

/* When no rating box, ensure likes (first item) gets proper styling */
.homepage-product-stats:has(.homepage-stat-item:nth-child(2):last-child) .homepage-stat-item:first-child.homepage-like-container {
    color: var(--secondary-color);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
}

.homepage-product-stats:has(.homepage-stat-item:nth-child(2):last-child) .homepage-stat-item:first-child.homepage-like-container i {
    color: var(--secondary-color);
}

/* When no rating box, ensure views (second/last item) gets proper styling */
.homepage-product-stats:has(.homepage-stat-item:nth-child(2):last-child) .homepage-stat-item:last-child {
    color: var(--primary-color);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
}

.homepage-product-stats:has(.homepage-stat-item:nth-child(2):last-child) .homepage-stat-item:last-child i {
    color: var(--primary-color);
}

/* Like Button Styles */
.homepage-like-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    padding: 8px 0;
    color: var(--secondary-color);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    height: 50px;
    text-align: center;
}

.homepage-like-container:hover {
    transform: scale(1.05);
    background: var(--container-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
}

.homepage-like-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    border-radius: 50%;
    width: calc(var(--font-size-base));
    height: calc(var(--font-size-base));
    flex-shrink: 0;
    pointer-events: none;
}

.homepage-like-container:has(.homepage-like-btn:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.homepage-like-container:has(.homepage-like-btn:disabled):hover {
    transform: none;
    background: none;
}

.homepage-like-btn i {
    font-size: calc(var(--font-size-base) - 6px);
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--secondary-color);
    opacity: 0.8;
    margin-bottom: calc(var(--font-size-base) * 0.125);
}

.homepage-like-btn:hover i {
    color: var(--secondary-color);
    opacity: 1;
}

.homepage-like-btn i.homepage-liked {
    color: var(--secondary-color);
    opacity: 1;
    animation: heartBeat 0.6s ease-in-out;
}

.homepage-like-count {
    font-size: calc(var(--font-size-base) - 6px);
    color: var(--text-color);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
}

/* Additional stat item content sizing */
.homepage-stat-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    font-size: calc(var(--font-size-base) - 6px);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    text-align: center;
    /* Ensure spans fit within uniform containers */
    max-width: 100%;
}

/* View count specific styling */
.homepage-view-count {
    font-size: calc(var(--font-size-base) - 6px);
    color: var(--text-color);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
}

.homepage-stat-item i {
    flex-shrink: 0;
    width: auto;
    text-align: center;
    font-size: calc(var(--font-size-base) - 6px);
    color: inherit;
    margin-bottom: calc(var(--font-size-base) * 0.125);
}

/* Responsive stat items for smaller screens */
@media (max-width: 480px) {
    .homepage-product-stats {
        gap: calc(var(--font-size-base) * 0.125);
        padding: calc(var(--font-size-base) * 0.25);
        min-height: calc(var(--font-size-base) * 3);
    }
    
    .homepage-stat-item {
        font-size: calc(var(--font-size-base) - 8px);
        padding: calc(var(--font-size-base) * 0.1875) calc(var(--font-size-base) * 0.25);
        gap: calc(var(--font-size-base) * 0.0625);
        min-width: calc(var(--font-size-base) * 3);
        max-width: calc(var(--font-size-base) * 4);
        min-height: calc(var(--font-size-base) * 2.25);
    }
    
    .homepage-stat-item i {
        font-size: calc(var(--font-size-base) - 6px);
    }
    
    .homepage-like-btn {
        width: calc(var(--font-size-base) * 0.875);
        height: calc(var(--font-size-base) * 0.875);
    }
    
    .homepage-like-container {
        min-width: calc(var(--font-size-base) * 3);
        max-width: calc(var(--font-size-base) * 4);
        min-height: calc(var(--font-size-base) * 2.25);
        padding: calc(var(--font-size-base) * 0.1875) calc(var(--font-size-base) * 0.25);
    }
    
    .homepage-rating-box {
        min-width: calc(var(--font-size-base) * 3);
        max-width: calc(var(--font-size-base) * 4);
        min-height: calc(var(--font-size-base) * 2.25);
        padding: calc(var(--font-size-base) * 0.1875) calc(var(--font-size-base) * 0.25);
    }
    
    .homepage-rating-box span {
        font-size: calc(var(--font-size-base) - 8px);
        line-height: 1.0;
        /* Hide rating count on mobile - show only stars */
        display: none;
    }
    
    .homepage-rating-box i {
        margin-bottom: 0;
        font-size: calc(var(--font-size-base) - 4px);
    }
    
    .homepage-stat-item span {
        font-size: calc(var(--font-size-base) - 8px);
    }
    
    /* When only 2 stat items on mobile, maintain uniform sizing */
    .homepage-product-stats:has(.homepage-stat-item:nth-child(2):last-child) .homepage-stat-item {
        min-width: calc(var(--font-size-base) * 3);
        max-width: calc(var(--font-size-base) * 4);
        min-height: calc(var(--font-size-base) * 2.25);
    }
}

/* Heart animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.homepage-stat-item:nth-child(2) {
    color: var(--secondary-color);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    /* Inherit uniform dimensions from .homepage-stat-item */
}

.homepage-stat-item:nth-child(2) i {
    color: var(--secondary-color);
}

.homepage-stat-item:last-child {
    color: var(--primary-color);
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    /* Inherit uniform dimensions from .homepage-stat-item */
}

.homepage-stat-item:last-child i {
    color: var(--primary-color);
}

.homepage-stat-item span {
    font-weight: 600;
    font-size: calc(var(--font-size-base) - 4px);
    color: var(--text-color);
    /* Ensure text scales with uniform container */
    line-height: 1.2;
    text-align: center;
}

/* Product Footer - Removed quantity button styles as they're no longer needed */

/* Loading State */
.homepage-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.homepage-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.homepage-loading p {
    font-size: var(--font-size-base);
    margin: 0;
}

/* No Products State */
.homepage-no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.homepage-no-products i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.homepage-no-products p {
    font-size: var(--font-size-large);
    margin: 0;
}

/* Showcase Footer - Removed as we now use corner button */

/* Responsive Design */
@media (max-width: 1024px) {
    .homepage-products-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 18px;
        min-height: 420px;
    }
    
    .homepage-product-showcase .section-title {
        font-size: 2.2rem;
    }
    
    .category-product-card,
    .homepage-product-card {
        min-height: 300px;
    }
    
    .category-product-content,
    .homepage-product-content {
        padding: 1rem;
    }
    
    .homepage-product-image {
        height: 140px;
    }
    
    .homepage-product-nav {
        width: 40px;
        height: 40px;
    }
    
    .homepage-product-nav-prev {
        left: 8px;
    }
    
    .homepage-product-nav-next {
        right: 8px;
    }
}

@media (max-width: 768px) {
    .homepage-product-showcase {
        padding: 40px 0;
    }
    
    .homepage-product-showcase .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        gap: 10px;
    }
    
    .homepage-showcase-nav-container {
        padding: 0 10px;
    }
    
    .homepage-nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .homepage-products-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        min-height: 300px;
    }
    
    .homepage-product-image {
        height: 90px;
    }
    
    .homepage-product-showcase .section-title {
        font-size: 1.6rem;
        flex-shrink: 0;
    }
    
    .homepage-view-all-corner {
        padding: 8px 12px;
        font-size: calc(var(--font-size-base) - 4px);
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .homepage-product-content {
        padding: 8px;
    }
    
    .category-product-card,
    .homepage-product-card {
        min-height: 220px;
    }
    
    .category-product-content,
    .homepage-product-content {
        padding: 0.8rem;
    }
    
    .homepage-product-nav {
        width: 35px;
        height: 35px;
    }
    
    .homepage-product-nav-prev {
        left: 6px;
    }
    
    .homepage-product-nav-next {
        right: 6px;
    }
    
    .homepage-product-name {
        color: var(--secondary-color);
        font-size: calc(var(--font-size-base) - 5px);
        min-height: 2.5em;
    }
}

@media (max-width: 768px) {
    .homepage-products-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
        min-height: 300px;
    }
    
    .category-product-card,
    .homepage-product-card {
        min-height: 280px;
    }
    
    .homepage-product-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .homepage-product-showcase .section-header {
        padding: 0 10px;
        gap: 8px;
    }
    
    .homepage-products-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        min-height: 260px;
    }
    
    .category-product-card,
    .homepage-product-card {
        min-height: 250px;
    }
    
    .homepage-product-image {
        height: 100px;
    }
    
    .homepage-product-image::before {
        background-size: 8px 8px; /* Smaller pattern on mobile */
    }
    
    /* Hide rating box in phone mode - !important to ensure it's hidden */
    .homepage-rating-box {
        display: none !important;
    }
    
    /* Adjust stats grid to show only 2 columns in phone mode */
    .homepage-product-stats {
        grid-template-columns: 1fr 1fr;
        padding: 8px;
        gap: 6px;
    }
    
    /* Adjust stat items for better mobile display */
    .homepage-stat-item {
        height: 40px;
        padding: 4px 0;
        gap: 2px;
    }
    
    .homepage-product-showcase .section-title {
        font-size: 1.4rem;
        flex-shrink: 0;
    }
    
    .homepage-view-all-corner {
        padding: 6px 10px;
        font-size: calc(var(--font-size-base) - 6px);
    }
    
    .homepage-showcase-nav-container {
        gap: 10px;
        padding: 0 5px;
    }
    
    .homepage-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: calc(var(--font-size-base) - 4px);
    }
    
    .homepage-product-name {
        color: var(--secondary-color);
        font-size: calc(var(--font-size-base) - 6px);
        min-height: 2.8em;
        line-height: 1.3;
    }
    
    .homepage-product-stats {
        padding: 4px;
        gap: 4px;
    }
    
    .homepage-stat-item {
        font-size: calc(var(--font-size-base) - 8px);
        gap: 1px;
        padding: 2px;
    }
    
    .homepage-stat-item span, 
    .homepage-rating-box span {
        font-size: calc(var(--font-size-base) - 8px);
    }
    
    .homepage-rating-box i,
    .homepage-stat-item i {
        font-size: calc(var(--font-size-base) - 6px);
    }
}
    
    .category-product-card,
    .homepage-product-card {
        min-height: 200px;
    }
    
    .homepage-view-all-corner {
        padding: 6px 12px;
        font-size: calc(var(--font-size-base) - 5px);
        gap: 4px;
    }
    
    .homepage-product-nav {
        width: 30px;
        height: 30px;
    }
    
    .homepage-product-nav-prev {
        left: 4px;
    }
    
    .homepage-product-nav-next {
        right: 4px;
    }
}

@media (max-width: 320px) {
    .homepage-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .category-product-card,
    .homepage-product-card {
        max-width: 120px;
    }
}

/* Print Styles */
@media print {
    .homepage-product-showcase {
        padding: 20px 0;
    }
    
    .homepage-showcase-tabs {
        display: none;
    }
    
    .homepage-showcase-products {
        display: block !important;
    }
    
    .category-product-card,
    .homepage-product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .homepage-quantity-btn {
        display: none;
    }
}

/* ========================================
   HOMEPAGE SERVICE BANNER STYLES
   ======================================== */

/* Service Overview Banner Section */
.homepage-service-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

/* Background image overlay with transparency */
.homepage-service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}

/* Subtle pattern overlay for all banners */
.homepage-service-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.homepage-service-banner .container {
    position: relative;
    z-index: 3;
}

/* Banner Header */
.homepage-service-banner-header {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(62, 172, 95, 0.7);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage-service-banner-subtitle {
    font-size: calc(var(--font-size-base) + 2px);
    color: #ffffff;
    margin: 0 0 10px 0;
    font-family: var(--font-family);
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.homepage-service-banner-title {
    font-size: calc(var(--font-size-base) + 16px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-family: var(--heading-font);
    letter-spacing: 1px;
    line-height: 1.2;
}

.homepage-service-banner-brand {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-family: var(--heading-font);
}

/* Service Features Grid */
.homepage-service-banner-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Desktop: Increase service features grid width */
@media (min-width: 1025px) {
    .homepage-service-banner-features {
        max-width: 1170px;
    }
}

/* Individual Service Feature */
.homepage-service-feature {
    background: rgba(62, 172, 95, 0.7);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.homepage-service-feature:hover {
    background: rgba(62, 172, 95, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Feature Icon */
.homepage-service-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.homepage-service-feature-icon i {
    font-size: calc(var(--font-size-base) + 8px);
    color: var(--primary-color);
    text-shadow: none;
}

/* Feature Content */
.homepage-service-feature-title {
    font-size: calc(var(--font-size-base) + 4px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-family: var(--heading-font);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.homepage-service-feature-description {
    font-size: calc(var(--font-size-base) - 1px);
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-family: var(--font-family);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.homepage-service-feature-description:last-child {
    margin-bottom: 0;
}

/* Tablet responsive styles */
@media (max-width: 1024px) {
    .homepage-service-banner-features {
        gap: 30px;
    }
    
    .homepage-service-feature {
        padding: 25px 20px;
    }
    
    .homepage-service-banner-title {
        font-size: calc(var(--font-size-base) + 12px);
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .homepage-service-banner {
        padding: 40px 0;
    }
    
    .homepage-service-banner-header {
        margin-bottom: 35px;
    }
    
    .homepage-service-banner-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .homepage-service-banner-title {
        font-size: calc(var(--font-size-base) + 10px);
        line-height: 1.3;
    }
    
    .homepage-service-banner-subtitle {
        font-size: var(--font-size-base);
    }
    
    .homepage-service-feature {
        padding: 25px 20px;
        text-align: center;
    }
    
    .homepage-service-feature-icon {
        margin: 0 auto 20px auto;
    }
    
    .homepage-service-feature-title {
        font-size: calc(var(--font-size-base) + 2px);
    }
    
    .homepage-service-feature-description {
        font-size: var(--font-size-base);
        text-align: left;
    }
}

@media (max-width: 480px) {
    .homepage-service-banner {
        padding: 35px 0;
    }
    
    .homepage-service-banner-title {
        font-size: calc(var(--font-size-base) + 8px);
    }
    
    .homepage-service-banner-subtitle {
        font-size: calc(var(--font-size-base) - 1px);
    }
    
    .homepage-service-feature {
        padding: 20px 15px;
    }
    
    .homepage-service-feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .homepage-service-feature-icon i {
        font-size: calc(var(--font-size-base) + 6px);
    }
    
    .homepage-service-feature-title {
        font-size: var(--font-size-base);
        margin-bottom: 12px;
    }
    
    .homepage-service-feature-description {
        font-size: calc(var(--font-size-base) - 2px);
    }
}

/* ========================================
   NEWS SECTION STYLES
   ======================================== */

/* News Section */
.homepage-news {
    padding: 80px 0;
    background: var(--background-color);
    position: relative;
}

.homepage-news .container {
    position: relative;
    z-index: 2;
}

/* Featured News Section */
.news-featured-section {
    margin-top: 0;
}

.news-featured-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Section Headers - Match other sections */
.news-featured-section .section-subtitle {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-family);
}

.news-featured-section .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
    font-family: var(--heading-font);
}

.news-featured-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    color: var(--secondary-color);
    margin: 15px auto;
}

/* News Layout Container - Horizontal equal boxes */
.news-layout-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Desktop: Increase news layout container width */
@media (min-width: 1025px) {
    .news-layout-container {
        max-width: 1170px;
    }
}

/* Main Content Area (Left side) - Horizontal layout */
.news-main-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* All news items equal size */
.news-main-item {
    width: 100%;
    height: 100%;
}

/* News Card - Equal sized, vertical layout */
.news-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* News Image - Fixed height for consistency */
.news-image {
    position: relative;
    overflow: hidden;
    height: 260px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-size: 2rem;
}

/* News Content - Flexible area */
.news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Meta Information */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: calc(var(--font-size-base) - 2px);
    color: var(--secondary-color);
    font-family: var(--font-family);
}

.news-date,
.news-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News Title - Use primary color for headers */
.news-title {
    font-size: calc(var(--font-size-base) + 1px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    font-family: var(--heading-font);
    margin: 0;
    flex: 1;
}

/* News Excerpt - Use secondary color for content */
.news-excerpt {
    color: var(--secondary-color);
    line-height: 1.4;
    font-size: calc(var(--font-size-base) - 1px);
    margin: 0;
    font-family: var(--font-family);
    height: 2.8em; /* Reduced height to minimize gap */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* News Buttons - Use lighter primary color */
.news-btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: calc(var(--font-size-base) - 1px);
    display: inline-block;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    text-align: center;
    align-self: flex-start;
    font-family: var(--font-family);
}

.news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-alpha-30);
}

/* All buttons use lighter primary color variations */
.news-btn-green,
.news-btn-pink,
.news-btn-blue {
    background: var(--secondary-color);
    color: #ffffff;
}

.news-btn-green:hover,
.news-btn-pink:hover,
.news-btn-blue:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Sidebar Styles */
.news-sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    max-width: 350px;
    word-wrap: break-word;
}

.news-sidebar-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-sidebar-item:last-of-type {
    border-bottom: none;
}

.news-sidebar-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: calc(var(--font-size-base) - 3px);
    color: var(--secondary-color);
    font-family: var(--font-family);
}

.news-sidebar-date,
.news-sidebar-views {
    display: flex;
    align-items: center;
    gap: 3px;
}

.news-sidebar-title {
    font-size: calc(var(--font-size-base) - 1px);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-family);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-sidebar-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.news-sidebar-title a:hover {
    color: var(--primary-color);
}

.news-view-more-btn {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: calc(var(--font-size-base) - 1px);
    display: block;
    text-align: center;
    margin-top: 20px;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    font-family: var(--font-family);
}

.news-view-more-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-alpha-30);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-layout-container {
        max-width: 1000px;
        gap: 30px;
    }
    
    .news-main-content {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .homepage-news {
        padding: 60px 0;
    }
    
    .homepage-news .container {
        padding: 0 15px;
    }
    
    .news-layout-container {
        display: block;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .news-main-content {
        display: block;
        width: 100%;
        margin: 0 auto;
    }
    
    .news-main-item {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 25px auto;
        display: block;
    }
    
    .news-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .news-image {
        height: 200px;
        width: 100%;
    }
    
    .news-content {
        padding: 15px;
        width: 100%;
    }
    
    .news-sidebar {
        margin-top: 30px;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .news-featured-section .section-title {
        font-size: 2rem;
    }
    
    .news-featured-section .section-subtitle {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .homepage-news {
        padding: 40px 0;
    }
    
    .homepage-news .container {
        padding: 0 15px;
    }
    
    .news-main-item {
        margin: 0 auto 20px auto;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-title {
        font-size: var(--font-size-base);
        line-height: 1.4;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-excerpt {
        font-size: calc(var(--font-size-base) - 2px);
        line-height: 1.4;
    }
    
    .news-btn {
        padding: 10px 20px;
        font-size: calc(var(--font-size-base) - 2px);
    }
    
    .news-sidebar {
        padding: 15px;
        margin-top: 25px;
    }
    
    .news-featured-section .section-title {
        font-size: calc(var(--font-size-base) + 8px);
    }
    
    .news-featured-section .section-subtitle {
        font-size: calc(var(--font-size-base) - 1px);
    }
}