/* ==========================================================================
   Paper Bags Supplier - New Website Stylesheet
   Design based on canfeicn.com style
   Primary Color: #03abb6 (Teal)
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    --color-primary: #03abb6;
    --color-link: #0066CC;
    --color-accent: #27a9e7;
    --color-dark: #31302e;
    --color-darker: #231715;
    --color-darkest: #1d1513;
    --color-text: #333;
    --color-heading: #0e0d0d;
    --color-muted: #777;
    --color-muted-light: #999;
    --color-muted-lighter: #8f8f8f;
    --color-border: #eee;
    --color-border-dark: #ddd;
    --color-bg-light: #f5f5f5;
    --color-bg-lighter: #f7f7f7;
    --color-bg-lightest: #fafafa;
    --color-white: #fff;
    --color-footer-title: #3053a2;
    --color-orange: #ff8e09;
    --container-width: 1170px;
    --transition: all 0.5s ease;
    --transition-fast: all 0.3s ease;
    --shadow-card: 0px 0px 10px rgba(0,0,0,0.15);
    --shadow-dropdown: 0px 5px 10px rgba(0,0,0,0.15);
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Raleway', sans-serif;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.section-gray {
    background: var(--color-bg-light);
}

.section-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ==========================================================================
   4. Section Title
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 32px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.section-title p {
    font-size: 14px;
    color: var(--color-muted-light);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   5. Top Bar
   ========================================================================== */
.top-bar {
    background: #eee;
    padding: 5px 0;
    font-size: 13px;
}

.top-bar .top-left {
    float: left;
}

.top-bar .top-right {
    float: right;
}

.top-bar .top-left a,
.top-bar .top-left span {
    color: var(--color-link);
    line-height: 32px;
    display: inline-block;
    margin-right: 20px;
}

.top-bar .top-left i {
    margin-right: 5px;
    color: var(--color-primary);
}

.top-bar .social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin-left: 4px;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 3px;
    font-size: 14px;
    transition: var(--transition);
}

.top-bar .social-icons a:hover {
    background: var(--color-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.header {
    background: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.header .logo {
    float: left;
}

.header .logo img {
    max-height: 60px;
}

.header .search-box {
    float: right;
    margin-top: 15px;
    position: relative;
}

.header .search-box input {
    width: 320px;
    height: 40px;
    border: 1px solid var(--color-border);
    background: #f6f6f6;
    padding: 0 15px;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.header .search-box input:focus {
    border: 1px solid #333;
    background: var(--color-white);
}

.header .search-box button {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: var(--color-accent);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.header .search-box button:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   7. Navigation
   ========================================================================== */
.navbar {
    background: var(--color-primary);
    position: relative;
    z-index: 1000;
}

.navbar .nav-menu {
    display: flex;
    list-style: none;
}

.navbar .nav-menu > li {
    position: relative;
}

.navbar .nav-menu > li > a {
    display: block;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 22px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.navbar .nav-menu > li > a:hover,
.navbar .nav-menu > li.active > a {
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
}

/* Dropdown Menu */
.navbar .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 230px;
    box-shadow: var(--shadow-dropdown);
    border-bottom: 3px solid #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}

.navbar .nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .dropdown li a {
    display: block;
    padding: 12px 15px;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.navbar .dropdown li:last-child a {
    border-bottom: none;
}

.navbar .dropdown li a:hover {
    background: #333;
    color: var(--color-white);
    padding-left: 20px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: var(--color-darker);
    color: var(--color-white);
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Sticky Navigation */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==========================================================================
   8. Hero Banner
   ========================================================================== */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner .banner-item {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-banner .banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3,171,182,0.7) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-banner .banner-content {
    max-width: 800px;
    padding: 20px;
}

.hero-banner .banner-content h1 {
    color: var(--color-white);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-banner .banner-content p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-banner .banner-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 42px;
    border: 2px solid var(--color-primary);
    color: var(--color-white);
    background: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
}

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

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

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

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

.btn-dark:hover {
    background: transparent;
    color: var(--color-dark);
}

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

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

/* ==========================================================================
   10. Product Categories
   ========================================================================== */
.category-section {
    padding: 60px 0;
    background: var(--color-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    border: 1px solid var(--color-border-dark);
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    background: var(--color-white);
}

.category-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.category-card .cat-img {
    overflow: hidden;
    height: 200px;
}

.category-card .cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .cat-img img {
    transform: scale(1.1);
}

.category-card .cat-info {
    padding: 15px;
    border-top: 1px solid var(--color-border);
}

.category-card .cat-info h4 {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 5px;
}

.category-card .cat-info p {
    font-size: 12px;
    color: var(--color-muted-light);
    margin: 0;
}

.category-card .cat-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.category-card .cat-link:hover {
    color: var(--color-dark);
}

/* ==========================================================================
   11. Product Cards (Grid)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    border: 1px solid var(--color-border);
    padding: 8px;
    background: var(--color-white);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.product-card .product-img {
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.product-card .product-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .product-img .product-overlay {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-img .product-overlay {
    bottom: 10px;
    opacity: 1;
}

.product-card .product-info h4 {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 600;
    margin: 8px 0;
    padding: 0 5px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .product-info h4 a {
    color: var(--color-text);
}

.product-card .product-info h4 a:hover {
    color: var(--color-primary);
}

/* Product 3-column grid for featured */
.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* ==========================================================================
   12. Intro Section
   ========================================================================== */
.intro-section {
    padding: 60px 0;
    background: var(--color-bg-light);
    text-align: center;
}

.intro-section .intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 28px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 2;
    margin-bottom: 25px;
}

.intro-section .intro-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   13. Advantages Section
   ========================================================================== */
.advantages-section {
    padding: 60px 0;
    background: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.advantage-card .adv-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 28px;
    transition: var(--transition);
}

.advantage-card:hover .adv-icon {
    background: var(--color-dark);
    transform: rotateY(180deg);
}

.advantage-card h4 {
    font-size: 18px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   14. Video Section
   ========================================================================== */
.video-section {
    padding: 60px 0;
    background: var(--color-bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.video-card {
    background: var(--color-white);
    padding: 10px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-card);
}

.video-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #000;
}

.video-card .video-info {
    padding: 10px 5px;
}

.video-card .video-info h4 {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
}

/* ==========================================================================
   15. FAQ Section
   ========================================================================== */
.faq-section {
    padding: 60px 0;
    background: var(--color-white);
}

.faq-list {
    max-width: 800px;
    margin: 30px auto 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--color-primary);
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-light);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.faq-item.active .faq-question {
    background: var(--color-primary);
    color: var(--color-white);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 15px 20px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.footer {
    background: var(--color-primary);
    color: #090909;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 25% 30% 20% 25%;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-col p {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.footer-col p i {
    margin-right: 8px;
    color: var(--color-white);
}

.footer-col .footer-logo img {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer-col .footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.footer-col .footer-social a:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin: 0;
}

/* ==========================================================================
   17. Page Header (for inner pages)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a:hover {
    color: var(--color-white);
}

.page-header .breadcrumb span {
    margin: 0 8px;
}

/* ==========================================================================
   18. Product Listing Page
   ========================================================================== */
.product-listing {
    padding: 40px 0;
}

.product-listing .layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 30px;
}

.product-listing .main-content {
    min-width: 0;
}

.product-listing .sidebar {
    background: var(--color-bg-lightest);
    padding: 20px;
}

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget h3 {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-heading);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 15px;
}

.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--color-text);
    font-size: 13px;
    display: block;
    transition: var(--transition-fast);
}

.sidebar .widget ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.sidebar .widget ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--color-primary);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.filter-bar .filter-label {
    font-size: 13px;
    color: var(--color-muted);
}

.filter-bar .filter-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-bar .filter-cats a {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.filter-bar .filter-cats a:hover,
.filter-bar .filter-cats a.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 13px;
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination a.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ==========================================================================
   19. Article/Blog Page
   ========================================================================== */
.article-page {
    padding: 40px 0;
}

.article-page .layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 30px;
}

.article-page .article-content {
    background: var(--color-white);
}

.article-page .article-thumbnail {
    margin-bottom: 20px;
}

.article-page .article-thumbnail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-page .article-meta {
    font-size: 12px;
    color: var(--color-muted-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.article-page .article-meta span {
    margin-right: 20px;
}

.article-page .article-meta i {
    margin-right: 5px;
    color: var(--color-primary);
}

.article-page .article-body {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text);
}

.article-page .article-body p {
    margin-bottom: 20px;
}

.article-page .article-body h2,
.article-page .article-body h3 {
    margin: 25px 0 15px;
}

.article-page .article-body img {
    margin: 20px auto;
    border: 1px solid var(--color-border);
}

.article-page .article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.article-page .article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: var(--transition-fast);
}

.article-page .article-tags a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.post-nav a {
    font-size: 13px;
    color: var(--color-text);
}

.post-nav a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   20. About/Contact/Service Pages
   ========================================================================== */
.content-page {
    padding: 40px 0;
}

.content-page .layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 30px;
}

.content-page .main-content {
    background: var(--color-white);
    padding: 30px;
}

.content-page .main-content h2 {
    font-size: 24px;
    color: var(--color-heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.content-page .main-content h3 {
    font-size: 18px;
    color: var(--color-heading);
    margin: 25px 0 15px;
}

.content-page .main-content p {
    font-size: 14px;
    line-height: 2;
    color: var(--color-muted);
    margin-bottom: 15px;
}

.content-page .main-content img {
    margin: 20px 0;
    max-width: 100%;
}

.content-page .main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.content-page .main-content table th,
.content-page .main-content table td {
    border: 1px solid var(--color-border-dark);
    padding: 10px;
    text-align: left;
}

.content-page .main-content table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.content-page .main-content table tr:nth-child(even) {
    background: var(--color-bg-light);
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.contact-info-card {
    padding: 25px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
}

.contact-info-card i {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-info-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

/* Factory Gallery */
.factory-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.factory-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.factory-gallery img:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

/* Service/Custom Pages */
.service-content h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--color-primary);
}

.service-content .service-img {
    text-align: center;
    margin: 20px 0;
}

.service-content .service-img img {
    max-width: 100%;
    display: inline-block;
}

.service-content .img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

/* ==========================================================================
   21. Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 44px;
    height: 44px;
    line-height: 40px;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-dark);
}

/* ==========================================================================
   22. Floating Contact Widget
   ========================================================================== */
.float-contact {
    position: fixed;
    right: 0;
    top: 200px;
    z-index: 998;
}

.float-contact .contact-tab {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 8px;
    writing-mode: vertical-rl;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px 0 0 5px;
    transition: var(--transition);
}

.float-contact .contact-tab:hover {
    background: var(--color-dark);
}

.float-contact .contact-panel {
    position: absolute;
    right: -250px;
    top: 0;
    width: 230px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    padding: 0;
}

.float-contact.active .contact-panel {
    right: 35px;
}

.float-contact .contact-panel .panel-item {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.float-contact .contact-panel .panel-item:last-child {
    border-bottom: none;
}

.float-contact .contact-panel .panel-item a {
    display: block;
}

.float-contact .contact-panel .panel-item i {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.float-contact .contact-panel .panel-item span {
    font-size: 13px;
    color: var(--color-text);
}

/* ==========================================================================
   23. Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .header .search-box input {
        width: 260px;
    }
    .navbar .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .header .search-box {
        float: none;
        margin: 15px auto 0;
        max-width: 400px;
    }
    .header .logo {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }
    .header .logo img {
        max-height: 50px;
        display: inline-block;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-listing .layout,
    .article-page .layout,
    .content-page .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
    }
    .hero-banner .banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .top-bar .top-left,
    .top-bar .top-right {
        float: none;
        text-align: center;
    }
    .top-bar .top-left a,
    .top-bar .top-left span {
        margin: 0 8px;
        font-size: 12px;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-primary);
    }
    .navbar .nav-menu.active {
        display: flex;
    }
    .navbar .nav-menu > li {
        width: 100%;
    }
    .navbar .nav-menu > li > a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-bottom: none;
        background: rgba(0,0,0,0.2);
        min-width: 100%;
    }
    .navbar .dropdown li a {
        color: rgba(255,255,255,0.8);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-left: 30px;
    }
    .navbar .dropdown li a:hover {
        background: rgba(0,0,0,0.3);
        color: var(--color-white);
    }
    .product-grid,
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-banner .banner-item {
        height: 300px;
    }
    .hero-banner .banner-content h1 {
        font-size: 24px;
    }
    .hero-banner .banner-content p {
        font-size: 14px;
    }
    .section-title h2,
    .intro-section h2 {
        font-size: 22px;
    }
    .float-contact {
        display: none;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .factory-gallery {
        grid-template-columns: 1fr;
    }
    .service-content .img-pair {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid,
    .product-grid-3 {
        grid-template-columns: 1fr;
    }
    .header .search-box input {
        width: 100%;
    }
    .hero-banner .banner-btns {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-darker);
    z-index: 9999;
    border-top: 2px solid #333;
}

.mobile-bottom-nav a {
    display: block;
    width: 20%;
    float: left;
    text-align: center;
    padding: 8px 0;
    color: var(--color-white);
    font-size: 12px;
}

.mobile-bottom-nav a i {
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   24. Utilities
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-15 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 30px; }
.mb-45 { margin-bottom: 45px; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.hidden { display: none !important; }
.img-responsive { max-width: 100%; height: auto; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-white { color: var(--color-white); }
.bg-primary { background: var(--color-primary); }
.bg-gray { background: var(--color-bg-light); }
.bg-dark { background: var(--color-dark); }
