/**
 * SemadModern Theme - Main Stylesheet
 * ESG-focused design for Semad Hygiene
 */

/* ========================================
   Base & Typography
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #1a2744;
    transform: translateY(-2px);
}

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

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

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

.btn-white:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--gray-900);
}

.btn-accent:hover {
    background: var(--accent-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ========================================
   Top Bar
   ======================================== */
.semad-top-bar {
    background: var(--secondary, #0F172A);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.semad-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.semad-top-bar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.semad-top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.semad-top-bar-item:hover {
    color: var(--accent, #F59E0B);
}

.semad-top-bar-item svg {
    flex-shrink: 0;
}

.semad-top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.semad-top-bar-social {
    display: flex;
    gap: 12px;
}

.semad-top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.semad-top-bar-social a:hover {
    color: var(--accent, #F59E0B);
}

/* ========================================
   Header Main
   ======================================== */
.semad-header {
    background: white;
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
    position: sticky;
    top: 0;
    z-index: 100;
}

.semad-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

/* Logo */
.semad-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.semad-logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.semad-logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Search Bar */
.semad-search-bar {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.semad-search-bar form {
    position: relative;
}

.semad-search-bar input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--gray-200, #E5E7EB);
    border-radius: var(--radius, 12px);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.semad-search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.semad-search-bar input::placeholder {
    color: var(--gray-400, #9CA3AF);
}

.semad-search-bar svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.semad-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.semad-search-results.show {
    display: block;
}

/* Header Actions */
.semad-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.semad-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray-600, #4B5563);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    background: none;
    border: none;
}

.semad-header-action:hover {
    color: var(--primary);
    background: var(--light-blue, #EFF6FF);
}

.semad-header-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.semad-cart-icon-wrapper {
    position: relative;
}

.semad-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account Dropdown */
.semad-account-dropdown {
    position: relative;
}

.semad-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.semad-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.semad-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
}

.semad-dropdown-menu a:last-child {
    border-bottom: none;
}

.semad-dropdown-menu a:hover {
    background: var(--light-blue);
    color: var(--primary);
}

/* ========================================
   Category Navigation
   ======================================== */
.semad-category-nav {
    background: var(--primary, #1E3A8A);
    padding: 0;
}

.semad-category-nav-inner {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.semad-category-nav-inner::-webkit-scrollbar {
    display: none;
}

.semad-category-nav-item {
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.semad-category-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent, #F59E0B);
}

.semad-all-categories {
    background: var(--primary-dark, #1E3A6E);
    padding: 16px 24px;
}

/* Category Dropdowns */
.semad-dropdown {
    position: relative;
}

.semad-dropdown .semad-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
}

.semad-dropdown:hover .semad-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.semad-dropdown .semad-dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.semad-dropdown .semad-dropdown-menu a:hover {
    padding-left: 24px;
}

/* ========================================
   Hero Section
   ======================================== */
.semad-hero {
    background: linear-gradient(135deg, var(--primary, #1E3A8A) 0%, var(--secondary, #0F172A) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.semad-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.semad-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.semad-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.15;
}

.semad-hero-content h1 span {
    color: var(--accent, #F59E0B);
}

.semad-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 500px;
}

.semad-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.semad-hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.semad-hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
}

.semad-hero-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.semad-hero-feature-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

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

.semad-hero-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.semad-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.semad-hero-card-icon {
    width: 56px;
    height: 56px;
    background: var(--light-blue, #EFF6FF);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.semad-hero-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.semad-hero-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.semad-hero-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.semad-hero-card-featured {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 100%);
}

.semad-hero-card-featured .semad-hero-card-icon {
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    margin-bottom: 0;
}

.semad-hero-card-featured h3,
.semad-hero-card-featured p {
    color: var(--gray-900);
}

/* ========================================
   Trust Bar
   ======================================== */
.semad-trust-bar {
    background: var(--light, #F1F5F9);
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.semad-trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.semad-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.semad-trust-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.semad-trust-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.semad-trust-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 2px;
}

.semad-trust-text p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   Section Headers
   ======================================== */
.semad-section {
    padding: 80px 0;
}

.semad-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.semad-section-title-group h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.semad-section-title-group p {
    color: var(--gray-500);
    font-size: 1rem;
    margin: 0;
}

.semad-section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.semad-section-link:hover {
    gap: 12px;
}

/* ========================================
   Categories Grid
   ======================================== */
.semad-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.semad-category-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.semad-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 50%, #3B82F6 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.semad-category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.semad-category-card:hover::before {
    transform: scaleX(1);
}

.semad-category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.semad-category-card:hover .semad-category-icon {
    background: var(--primary-dark);
}

.semad-category-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary);
    transition: fill 0.3s ease;
}

.semad-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.semad-category-card:hover .semad-category-icon svg {
    fill: white;
}

.semad-category-card h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.semad-category-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   Why Choose Us
   ======================================== */
.semad-why-choose {
    background: var(--light);
}

.semad-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.semad-why-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.semad-why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.semad-why-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.semad-why-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.semad-why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.semad-why-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   CTA Banner
   ======================================== */
.semad-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.semad-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.semad-cta-content {
    position: relative;
    z-index: 2;
}

.semad-cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.semad-cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
}

.semad-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.semad-footer {
    background: var(--secondary, #0F172A);
    color: white;
    padding: 60px 0 0;
}

.semad-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.semad-footer-brand img {
    height: 50px;
    margin-bottom: 20px;
}

.semad-footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.semad-footer-social {
    display: flex;
    gap: 12px;
}

.semad-footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.semad-footer-social a:hover {
    background: var(--esg-green, #059669);
    transform: translateY(-3px);
}

.semad-footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.semad-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.semad-footer-column li {
    margin-bottom: 12px;
}

.semad-footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.semad-footer-column a:hover {
    color: var(--accent);
}

.semad-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.semad-footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.semad-footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========================================
   Ajax Loader
   ======================================== */
#ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#ajax-loader img {
    width: 50px;
    height: 50px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .semad-categories-grid,
    .semad-why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .semad-trust-bar-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .semad-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .semad-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .semad-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .semad-hero-ctas {
        justify-content: center;
    }

    .semad-hero-features {
        justify-content: center;
    }

    .semad-hero-cards {
        max-width: 500px;
        margin: 40px auto 0;
    }

    .semad-header-main {
        flex-wrap: wrap;
        gap: 16px;
    }

    .semad-search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .semad-categories-grid,
    .semad-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .semad-top-bar-left {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .semad-top-bar-inner {
        flex-direction: column;
        gap: 12px;
    }

    .semad-category-nav-inner {
        padding: 0 16px;
    }

    .semad-hero {
        padding: 50px 0;
    }

    .semad-hero-content h1 {
        font-size: 2rem;
    }

    .semad-hero-cards {
        grid-template-columns: 1fr;
    }

    .semad-hero-card-featured {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .semad-trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .semad-section {
        padding: 50px 0;
    }

    .semad-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .semad-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .semad-cta-content h2 {
        font-size: 1.75rem;
    }

    .semad-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .semad-categories-grid,
    .semad-why-grid {
        grid-template-columns: 1fr;
    }

    .semad-trust-bar-grid {
        grid-template-columns: 1fr;
    }

    .semad-header-actions {
        gap: 4px;
    }

    .semad-header-action {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    .semad-header-action svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   ESG Top Bar (Green)
   ======================================== */
.semad-top-bar.semad-top-bar-esg {
    background: var(--esg-green, #059669);
}

.semad-top-bar.semad-top-bar-esg .semad-top-bar-item:hover {
    color: white;
}

.semad-top-bar-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
}

.semad-top-bar-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ESG Nav Item */
.semad-category-nav-item.semad-esg-nav-item {
    background: var(--esg-green, #059669);
}

.semad-category-nav-item.semad-esg-nav-item:hover {
    background: var(--esg-green-dark, #047857);
}

/* ========================================
   Hero - ESG Stats
   ======================================== */
.semad-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--esg-green, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.semad-hero-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.semad-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.semad-hero-stat {
    text-align: center;
}

.semad-hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--esg-green-light, #10B981);
    line-height: 1;
}

.semad-hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Hero ESG Cards */
.semad-hero-esg-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.semad-hero-esg-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--gray-800);
}

.semad-hero-esg-card:hover {
    transform: translateX(10px);
}

.semad-hero-esg-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.semad-hero-esg-card-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.semad-hero-esg-card-icon.env { background: var(--esg-green, #059669); }
.semad-hero-esg-card-icon.social { background: var(--social-orange, #EA580C); }
.semad-hero-esg-card-icon.gov { background: var(--governance-purple, #7C3AED); }

.semad-hero-esg-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.semad-hero-esg-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   ESG Section
   ======================================== */
.semad-esg-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-green, #ECFDF5) 0%, white 100%);
}

.semad-esg-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.semad-esg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--esg-green, #059669);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.semad-esg-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.semad-esg-header h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.semad-esg-header h2 span {
    color: var(--esg-green, #059669);
}

.semad-esg-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
}

.semad-esg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.semad-esg-card {
    background: white;
    border-radius: var(--radius-xl, 24px);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.semad-esg-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
}

.semad-esg-card.env:hover { border-color: var(--esg-green, #059669); }
.semad-esg-card.social:hover { border-color: var(--social-orange, #EA580C); }
.semad-esg-card.gov:hover { border-color: var(--governance-purple, #7C3AED); }

.semad-esg-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.semad-esg-card-icon.env { background: linear-gradient(135deg, #059669 0%, #10B981 100%); }
.semad-esg-card-icon.social { background: linear-gradient(135deg, #EA580C 0%, #F97316 100%); }
.semad-esg-card-icon.gov { background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%); }

.semad-esg-card-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.semad-esg-card-letter {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.semad-esg-card.env .semad-esg-card-letter { color: var(--esg-green, #059669); }
.semad-esg-card.social .semad-esg-card-letter { color: var(--social-orange, #EA580C); }
.semad-esg-card.gov .semad-esg-card-letter { color: var(--governance-purple, #7C3AED); }

.semad-esg-card h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.semad-esg-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.semad-esg-card-features {
    text-align: left;
}

.semad-esg-card-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-100);
}

.semad-esg-card-feature svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.semad-esg-card.env .semad-esg-card-feature svg { fill: var(--esg-green, #059669); }
.semad-esg-card.social .semad-esg-card-feature svg { fill: var(--social-orange, #EA580C); }
.semad-esg-card.gov .semad-esg-card-feature svg { fill: var(--governance-purple, #7C3AED); }

.semad-esg-card-feature span {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* ========================================
   Cambridge Certification Banner
   ======================================== */
.semad-cambridge-banner {
    background: var(--secondary, #0F172A);
    border-radius: var(--radius-xl, 24px);
    padding: 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    color: white;
}

.semad-cambridge-badge {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.semad-cambridge-badge-inner {
    text-align: center;
}

.semad-cambridge-badge-text {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary, #1E3A8A);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.semad-cambridge-badge-uni {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary, #1E3A8A);
    margin-top: 2px;
}

.semad-cambridge-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.semad-cambridge-content h3 span {
    color: var(--esg-green-light, #10B981);
}

.semad-cambridge-content p {
    opacity: 0.85;
    font-size: 1rem;
    max-width: 500px;
}

/* ========================================
   Social Impact Section
   ======================================== */
.semad-social-impact {
    padding: 100px 0;
    background: white;
}

.semad-social-impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.semad-social-impact-content h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.semad-social-impact-content h2 span {
    color: var(--social-orange, #EA580C);
}

.semad-social-impact-content > p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.semad-impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.semad-impact-stat {
    background: var(--light, #F1F5F9);
    padding: 24px;
    border-radius: var(--radius-lg, 16px);
    text-align: center;
}

.semad-impact-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--social-orange, #EA580C);
    line-height: 1;
}

.semad-impact-stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.semad-impact-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.semad-impact-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.semad-impact-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(234, 88, 12, 0.1);
    border-radius: var(--radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.semad-impact-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--social-orange, #EA580C);
}

.semad-impact-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.semad-impact-feature-text p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* Soup Run Card */
.semad-soup-run-card {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    border-radius: var(--radius-xl, 24px);
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.semad-soup-run-card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.semad-soup-run-card-content {
    position: relative;
    z-index: 2;
}

.semad-soup-run-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.semad-soup-run-card p {
    opacity: 0.9;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.semad-soup-run-schedule {
    display: flex;
    gap: 16px;
}

.semad-schedule-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: var(--radius, 12px);
    text-align: center;
}

.semad-schedule-item-day {
    font-size: 1.1rem;
    font-weight: 700;
}

.semad-schedule-item-time {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   Speedpak Banner
   ======================================== */
.semad-speedpak-banner {
    background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
    border-radius: var(--radius-xl, 24px);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: white;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.semad-speedpak-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.semad-speedpak-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.semad-speedpak-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.semad-speedpak-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.semad-speedpak-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.semad-speedpak-content h3 span {
    color: #FEF3C7;
}

.semad-speedpak-content p {
    opacity: 0.95;
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 24px;
}

.semad-speedpak-content p strong {
    color: #FEF3C7;
}

.semad-speedpak-stats {
    display: flex;
    gap: 30px;
}

.semad-speedpak-stat {
    text-align: center;
}

.semad-speedpak-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.semad-speedpak-stat-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 4px;
    display: block;
}

/* ========================================
   How We Help ESG Goals
   ======================================== */
.semad-help-esg {
    padding: 100px 0;
    background: var(--light, #F1F5F9);
}

.semad-help-esg-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.semad-help-esg-header h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.semad-help-esg-header h2 span {
    color: var(--esg-green, #059669);
}

.semad-help-esg-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.semad-help-esg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.semad-help-esg-card {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.semad-help-esg-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.semad-help-esg-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green, #ECFDF5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.semad-help-esg-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--esg-green, #059669);
}

.semad-help-esg-card h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.semad-help-esg-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   Certifications
   ======================================== */
.semad-certifications {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.semad-certifications-header {
    text-align: center;
    margin-bottom: 40px;
}

.semad-certifications-header h3 {
    font-size: 1.2rem;
    color: var(--gray-500);
    font-weight: 600;
}

.semad-certifications-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.semad-cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.semad-cert-badge {
    width: 80px;
    height: 80px;
    background: var(--light, #F1F5F9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--esg-green, #059669);
    border: 2px solid var(--esg-green, #059669);
}

.semad-cert-name {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   ESG CTA (Green Gradient)
   ======================================== */
.semad-cta-banner.semad-cta-esg {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

/* ESG Button Variants */
.btn-esg {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
}

.btn-esg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

/* Footer ESG Badge */
.semad-footer-esg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--esg-green, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========================================
   ESG Responsive
   ======================================== */
@media (max-width: 1200px) {
    .semad-esg-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .semad-help-esg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .semad-hero-esg-cards {
        max-width: 500px;
        margin: 40px auto 0;
    }

    .semad-hero-stats {
        justify-content: center;
    }

    .semad-esg-grid {
        grid-template-columns: 1fr;
    }

    .semad-social-impact-grid {
        grid-template-columns: 1fr;
    }

    .semad-cambridge-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .semad-cambridge-badge {
        margin: 0 auto;
    }

    .semad-speedpak-banner {
        flex-direction: column;
        text-align: center;
    }

    .semad-speedpak-content p {
        max-width: 100%;
    }

    .semad-speedpak-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .semad-esg-section,
    .semad-social-impact,
    .semad-help-esg {
        padding: 60px 0;
    }

    .semad-esg-header h2,
    .semad-social-impact-content h2,
    .semad-help-esg-header h2 {
        font-size: 1.75rem;
    }

    .semad-impact-stats {
        grid-template-columns: 1fr;
    }

    .semad-help-esg-grid {
        grid-template-columns: 1fr;
    }

    .semad-soup-run-schedule {
        flex-direction: column;
    }

    .semad-speedpak-stats {
        flex-direction: column;
        gap: 16px;
    }

    .semad-certifications-grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .semad-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* =============================================
   Product Grid Fix - 2026-04-01
   ============================================= */

#grid .row,
.col-md-9 > .row {
    display: flex;
    flex-wrap: wrap;
}

.products-list,
.col-md-9 > .row > .col-md-3 {
    margin-bottom: 25px;
    display: flex;
    padding-left: 10px;
    padding-right: 10px;
}

.product-grid {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.product-grid:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-grid .product-image {
    position: relative;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    height: 220px;
}

.product-grid .product-image a.image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.product-grid .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-grid .product-image .pic-2 {
    display: none !important;
}

.product-grid:hover .product-image .pic-1 {
    transform: none !important;
}

.product-grid .product-links {
    display: none !important;
}

.product-grid .inner-content {
    padding: 12px 15px 8px;
    flex-grow: 1;
}

.product-grid .inner-content .title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4 !important;
    margin: 0 0 3px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.product-grid .inner-content .title:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.product-grid .inner-content .title u {
    text-decoration: none;
}

.product-grid .inner-content .title b {
    font-weight: 400;
    color: #888;
    font-size: 11px;
}

.product-grid .product-content {
    padding: 5px 15px 12px;
    margin-top: auto;
}

.product-grid .price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    width: auto;
    display: inline-block;
}

.product-grid .exclvatprice {
    font-size: 11px;
    color: #888;
}

.product-grid .btncart,
.product-grid .calfottext {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    width: 100%;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .product-grid .product-image {
        height: 160px;
    }
    .product-grid .inner-content .title:first-child {
        font-size: 13px;
    }
}

/* =============================================
   Featured Products Carousel (Home Page)
   ============================================= */

.carousel-cell {
    margin-right: 15px;
}

.carousel-cell a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.carousel-cell .card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.carousel-cell .card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-cell .img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.carousel-cell .card-img-top {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.carousel-cell .card-body {
    padding: 12px 15px;
}

.carousel-cell .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px;
    line-height: 1.3;
}

.carousel-cell .sku {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.carousel-cell .price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.carousel-cell .exclvatprice {
    font-size: 11px;
    color: #888;
}

@media (max-width: 768px) {
    .carousel-cell .img-wrapper {
        height: 140px;
    }
}

/* =============================================
   Product Detail Page
   ============================================= */

.product_detais {
    padding: 30px 0;
}

.product_detais .module-gallery {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.module-gallery .slider-wrapper {
    position: relative;
}

/* Product gallery - thumbnails left, main image right */
.module-gallery .slider-wrapper {
    display: flex;
    gap: 10px;
}

.module-gallery .slider-thumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 80px;
    max-height: 450px;
    overflow-y: auto;
}

.module-gallery .slider-thumb li {
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff;
}

.module-gallery .slider-thumb li:hover {
    border-color: var(--primary, #1E3A8A);
}

.module-gallery .slider-thumb li img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Main preview image */
.module-gallery .slider-preview {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.module-gallery .slider-preview li {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 350px;
    background: #fff;
}

.module-gallery .slider-preview li:first-child {
    display: flex;
}

.module-gallery .slider-preview li img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

/* Image zoom overlay */
.img-zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.img-zoom-overlay.active {
    display: flex;
}

.img-zoom-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.img-zoom-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 100000;
    font-weight: 300;
    line-height: 1;
}

/* Product info section */
.product-discription {
    padding: 0 0 0 15px;
}

.product-discription h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-discription .mb-3 {
    font-size: 13px;
    color: #888;
}

.product-discription .title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.product-discription h5 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
}

.product-discription .description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.product-discription h6 {
    font-size: 14px;
    margin-top: 10px;
}

/* Page header */
.page-head {
    background: var(--light, #f5f5f5);
    padding: 20px 0;
}

.page-head h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.page-head .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.page-head .breadcrumb a {
    color: var(--primary, #1E3A8A);
    text-decoration: none;
}

/* Product description section below gallery */
.product_detais .product-desc-section {
    margin-top: 30px;
}

/* Add to bag button */
.product_detais .btn-dark,
.product_detais .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 15px;
}

/* Qty input */
.product_detais input[type="number"],
.product_detais #txtqty {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

/* Soup run image card */
.semad-soup-run-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.semad-soup-run-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.semad-soup-run-card-caption {
    padding: 20px 24px;
    background: var(--social-orange, #EA580C);
    color: #fff;
}

.semad-soup-run-card-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.semad-soup-run-card-caption p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Speedpak award image */
.semad-speedpak-award-img {
    height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-right: auto;
}

/* Cambridge crest in badge */
.semad-cambridge-crest {
    width: 70px;
    height: auto;
    object-fit: contain;
}

/* Cambridge certificate image */
.semad-cambridge-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.semad-cambridge-cert-img {
    height: 150px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .semad-cambridge-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .semad-cambridge-cert-img {
        height: 90px;
    }
}

@media (max-width: 768px) {
    .module-gallery .slider-preview li {
        min-height: 250px;
        padding: 20px;
    }
    .module-gallery .slider-preview li img {
        max-height: 250px;
    }
    .product-discription {
        padding: 20px 0 0 0;
    }
}

/* =============================================
   Search Results & Mobile Tweaks
   ============================================= */

.semad-dropdown > .semad-category-nav-item svg.rotated {
    transform: rotate(180deg);
}

.semad-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
}

.semad-search-results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.semad-search-results a:hover {
    background: #f8f9fa;
}

.semad-search-results img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.semad-search-bar {
    position: relative;
}

/* =============================================
   Contact Page
   ============================================= */

.breadcrumb-area.contact {
    background: var(--gradient-hero, linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%));
    padding: 40px 0;
}

.breadcrumb-area.contact .breadcrumb-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumb-area.contact .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-area.contact .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.breadcrumb-area.contact .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
}

.hs_contact_head_text {
    margin-bottom: 30px;
}

.hs_contact_head_text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

.hs_contact_head_text img {
    display: none;
}

.hs_contact ul {
    list-style: none;
    padding: 0;
}

.hs_contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs_contact ul li p {
    margin: 0;
    font-size: 15px;
    color: #444;
}

.hs_contact ul li a {
    color: var(--primary, #1E3A8A);
    text-decoration: none;
}

.hs_comment_form {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
}

.hs_comment_form .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
}

.hs_comment_form .form-control:focus {
    border-color: var(--primary, #1E3A8A);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.hs_comment_form .btn-primary,
#contact_submit {
    background: var(--primary, #1E3A8A);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
}

/* =============================================
   Hamburger Menu (Mobile)
   ============================================= */

.semad-mobile-toggle,
.semad-mobile-close {
    display: none;
}

.semad-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.semad-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800, #333);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 991px) {
    .semad-mobile-toggle {
        display: block;
    }

    .semad-mobile-close {
        display: block;
        color: #fff;
        font-size: 28px;
        z-index: 10002;
    }

    .semad-category-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--primary, #1E3A8A);
        z-index: 10001;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0,0,0,0.3);
        padding-top: 60px;
    }

    .semad-category-nav.mobile-open {
        display: block;
    }

    .semad-category-nav .container {
        padding: 0;
    }

    .semad-category-nav-inner {
        flex-direction: column !important;
        overflow-x: visible !important;
        overflow-y: auto !important;
    }

    .semad-category-nav-item {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: normal !important;
        font-size: 15px;
    }

    .semad-dropdown {
        width: 100%;
    }

    .semad-dropdown .semad-dropdown-menu {
        position: static !important;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.15);
        max-height: none;
        padding: 0;
        transition: none;
    }

    .semad-dropdown .semad-dropdown-menu.mobile-show {
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
    }

    .semad-dropdown .semad-dropdown-menu a {
        color: rgba(255,255,255,0.85);
        padding: 10px 20px 10px 40px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 14px;
    }

    .semad-dropdown .semad-dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        padding-left: 40px;
    }

    .semad-mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 280px;
        width: calc(100% - 280px);
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }

    .semad-mobile-overlay.active {
        display: block;
    }

    .semad-mobile-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }

    .semad-header-search {
        display: none;
    }

    .semad-header-main .container {
        flex-wrap: wrap;
    }
}

/* =============================================
   Checkout Page
   ============================================= */

.checkout.page {
    padding: 30px 0;
}

.checkout-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}

.checkoutpg .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.checkoutpg .form-control:focus {
    border-color: var(--primary, #1E3A8A);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Order Summary sidebar */
.order-summary {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.order-summary a {
    font-size: 14px;
    font-weight: 500;
}

/* Order summary product */
.product-thumbnail {
    overflow: hidden;
}

.product-thumbnail__wrapper {
    width: 100%;
}

.product-thumbnail__image {
    width: 100%;
    max-width: 60px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.cart-box .row {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.cart-box .col-7 {
    padding-left: 10px;
}

.cart-box .order-title {
    font-size: 13px;
    line-height: 1.4;
}

.cart-box .col-7 p,
.cart-box .brand {
    font-size: 12px;
    color: #666;
}

.cart-box .col-3 {
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

/* Shipping icons */
.checkoutpg input[type="radio"] ~ img,
.checkoutpg .shipping img {
    max-width: 30px;
    height: auto;
    vertical-align: middle;
}

/* Payment icons */
.checkoutpg img[src*="payment"] {
    max-width: 60px;
    height: auto;
}

/* Checkout buttons */
.checkoutpg .btn-dark,
.checkoutpg .btn-primary,
.checkoutpg button[type="submit"] {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* Guest checkout header */
.checkout.page .breadcrumb {
    background: none;
    padding: 0;
    font-size: 13px;
    color: #888;
}

.checkout.page h5,
.checkout.page h6.order-summary {
    margin-bottom: 15px;
}
