/*
Theme Name: Architecture Pro
Theme URI: https://yourdomain.com
Author: Architecture Team
Author URI: https://yourdomain.com
Description: Premium Custom WordPress theme for House Designs, Elevations, and Interiors. Professional Sidebar Layout with Advanced AJAX.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: archpro
*/

/* ==========================================================================
   1. Premium Design System (CSS Variables)
   ========================================================================== */
:root {
    --primary-color: #1a1a24;
    --accent-color: #ff5722; /* Vibrant orange from reference */
    --bg-color: #f8f9fa;
    --text-color: #34495e;
    --sidebar-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Fix horizontal layout overflow */
    width: 100%;
}

/* ==========================================================================
   2. Professional Top Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo a {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo img {
    max-height: 50px;
    width: auto;
}

/* Top Search Bar */
.header-search {
    flex: 1;
    max-width: 600px;
}
#top-search-form {
    display: flex;
    position: relative;
}
#top-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 15px;
    background: #f8f9fa;
    transition: var(--transition);
    outline: none;
}
#top-search-input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}
#top-search-form button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    display: flex;
}
#top-search-form button:hover {
    color: var(--accent-color);
}

.mobile-callback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.premium-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-right: 30px;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    padding: 10px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Mega Menu Styles */
.dropdown-wrapper {
    position: relative;
    padding: 10px 0;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-wrapper:hover .mega-menu,
.dropdown-wrapper.touch-active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 800px;
    max-width: 90vw;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    border: 1px solid #f0f0f0;
}

.mega-menu-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 30px;
}

.mega-column {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
}

.mega-column h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}

.mega-column a {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    color: #555 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.mega-column a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.mega-promo {
    flex: 1.2;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mega-promo h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.promo-box span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.promo-btn {
    background: var(--accent-color);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.promo-btn:hover {
    background: #e64a19;
}

/* Contact Button */
.contact-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 36, 0.2);
}

.contact-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

/* ==========================================================================
   3. Main Layout Wrapper (Sidebar + Gallery)
   ========================================================================== */
.layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 40px;
    min-height: 100vh;
    align-items: start;
}

/* ==========================================================================
   4. Vertical Sidebar
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--sidebar-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

/* Category Accordion */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li.cat-item {
    margin-bottom: 6px;
}
.sidebar-categories a.main-cat-link {
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.sidebar-categories a.main-cat-link:hover, 
.sidebar-categories a.main-cat-link.active,
.sidebar-categories li.open > a.main-cat-link {
    background: rgba(255, 87, 34, 0.08);
    color: var(--accent-color);
    border-color: rgba(255, 87, 34, 0.3);
    font-weight: 700;
}
.sidebar-categories .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.sidebar-categories li.open > a .arrow {
    transform: rotate(180deg);
}

/* Subcategories (Indented under parent category) */
.sub-categories {
    list-style: none;
    padding-left: 10px;
    margin: 6px 0 6px 8px;
    border-left: 2px solid #e2e8f0;
}
.sub-categories li {
    margin-bottom: 4px;
}
.sub-categories a.sub-cat-link {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    padding: 6px 12px;
    display: block;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sub-categories a.sub-cat-link:hover,
.sub-categories a.sub-cat-link.active {
    color: var(--accent-color);
    background: #fff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Contact Widget */
.contact-widget {
    background: linear-gradient(135deg, #1a1a24 0%, #2c3e50 100%);
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
}

.contact-widget h3 {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.contact-widget p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 20px;
}

.contact-widget ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.contact-widget ul li {
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
}

.contact-widget .contact-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.contact-widget .contact-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

/* Premium Action Bar */
.premium-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.action-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid #eee;
}

.premium-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-like {
    background: transparent;
    padding: 0;
    color: #555;
}
.btn-like:hover {
    color: #e74c3c;
}

.view-count {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Premium Footer Styles
   ========================================================================== */
.premium-footer {
    background: var(--primary-color);
    color: #fff;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 4px solid var(--accent-color);
}

.mobile-submenu {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 10px;
    border-left: 2px solid var(--accent-color);
    display: none; /* Hide by default, JS toggles */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.footer-about {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.footer-socials a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: #fff;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

.footer-links a::before {
    content: '›';
    color: var(--accent-color);
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

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

.footer-contact li {
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-bottom {
    background: #111118;
    text-align: center;
    padding: 20px 40px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
}

/* ==========================================================================
   5. Main Content (Gallery)
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.gallery-item:hover img {
    transform: none; /* Removed scale for cleaner look */
}
/* Removed old gallery-overlay completely, handled in JS template */

/* Load More */
.load-more-container {
    text-align: center;
}
.load-more-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.load-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* Loader */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   6. Single Design Page & Pages
   ========================================================================== */
.page-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    line-height: 1.8;
}

.single-design-container {
    max-width: 1200px;
    margin: 40px auto;
}
.breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #7f8c8d;
}
.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumbs a:hover {
    color: var(--accent-color);
}
.single-design-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}
.main-design-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-soft);
}
.design-title {
    font-size: 36px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.design-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}
.design-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}
.design-actions .contact-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
}

.related-designs {
    margin-top: 80px;
    text-align: center;
}
.related-designs h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-color);
}

.related-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
}

/* ==========================================================================
   Pricing Page Styles
   ========================================================================== */
.pricing-page-container {
    padding: 40px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin: 40px auto;
    max-width: 1200px;
}
.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}
.pricing-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.pricing-description {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.pricing-card.popular {
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
    background: #fdfdfd;
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.plan-price-wrapper {
    margin-bottom: 30px;
}
.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}
.plan-cycle {
    font-size: 16px;
    color: #64748b;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}
.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-features li:last-child {
    border-bottom: none;
}
.plan-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}
.plan-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: all 0.3s ease;
}
.pricing-card.popular .plan-btn {
    background: var(--accent-color);
}
.plan-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* ==========================================================================
   7. Responsive Design
   ========================================================================== */
@media (max-width: 1100px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 20px;
    }
    .sidebar {
        position: relative;
        top: 0;
    }
}

/* Global utility classes */
.desktop-none { display: none !important; }

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .desktop-none {
        display: block !important;
    }
    
    .mobile-hamburger, .mobile-callback {
        display: block !important;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }
    .mobile-hamburger {
        order: 1;
    }
    .logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .mobile-callback {
        order: 3;
    }
    .header-search {
        order: 4;
        flex: 0 0 100%;
        margin-top: 5px;
    }
    #top-search-input {
        padding: 10px 15px 10px 40px;
        border-radius: 8px;
        background: #f1f3f4;
        border: none;
    }
    
    /* Make sidebar horizontal scroll on mobile */
    .sidebar {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100vw;
    }
    .sidebar-widget {
        padding: 0; /* Remove side padding to let scroll touch edges */
        background: transparent;
        box-shadow: none;
    }
    .sidebar-widget h3 {
        display: none; /* Hide 'Categories' title on mobile for cleaner look */
    }
    .sidebar-categories {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 5px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .sidebar-categories::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .sidebar-categories li {
        margin-bottom: 0;
        white-space: nowrap;
    }
    .sidebar-categories a {
        background: #fff;
        border-radius: 20px;
        border: 1px solid #e0e0e0;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }
    .sidebar-categories a.active {
        background: var(--accent-color);
        color: #fff;
        border-color: var(--accent-color);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .gallery-item {
        border-radius: 12px;
    }
    .gallery-item img {
        height: 140px;
        border-radius: 12px 12px 0 0;
    }
    .card-content {
        padding: 10px !important;
    }
    .card-content h3 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .single-design-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    .premium-action-bar {
        position: fixed;
        bottom: 60px; /* Above nav bar */
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px 20px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
        margin: 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        z-index: 999;
        justify-content: space-between;
        display: flex;
        flex-wrap: nowrap;
    }
    .premium-action-btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 14px;
        justify-content: center;
        text-align: center;
    }
    .action-stats {
        padding: 6px 10px;
        gap: 8px;
    }
    
    /* Bottom App Nav */
    .bottom-app-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        justify-content: space-around;
        padding: 10px 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
        z-index: 2100;
        border-top: 1px solid #f1f1f1;
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #777;
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        gap: 4px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-item.active {
        color: #f35d12;
    }
    
    /* Add padding to body to prevent bottom navs covering content */
    body {
        padding-bottom: 130px;
    }
}

/* ==========================================================================
   8. Advanced UI (Lightbox, Modals, Skeletons)
   ========================================================================== */

/* Skeleton Loaders */
.skeleton-loader {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}
.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (max-width: 768px) {
    .skeleton-loader { height: 180px; }
}

/* Lightbox Modal */
.archpro-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.archpro-lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

/* Request Callback Modal */
.callback-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.callback-modal.active {
    display: flex;
    opacity: 1;
}
.callback-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-callback {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}
.close-callback:hover {
    color: #333;
}
.callback-modal-content h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--primary-color);
}
.callback-modal-content p {
    font-size: 14px;
    color: #666;
}

/* Social Share Specific Styles */
.share-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.share-btn-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.share-btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: #fff;
}
.btn-wa { background: #25D366; }
.btn-pin { background: #E60023; }
.btn-fb { background: #1877F2; }
.btn-tw { background: #000000; }
.btn-copy { 
    background: #f1f5f9; 
    color: #334155; 
    flex-direction: row; 
    padding: 12px;
}
.btn-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   9. Mobile Drawer Menu
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    visibility: hidden;
    transition: visibility 0.3s;
}
.mobile-drawer.active {
    visibility: visible;
}
.mobile-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-drawer.active .mobile-drawer-overlay {
    opacity: 1;
}
.mobile-drawer-content {
    position: relative;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.mobile-drawer.active .mobile-drawer-content {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.mobile-drawer-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-color);
}
.mobile-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.close-drawer {
    font-size: 28px;
    color: #888;
    cursor: pointer;
}
.mobile-nav li {
    margin-bottom: 15px;
}
.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}
.mobile-drawer-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.mobile-drawer-contact h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--primary-color);
}
.mobile-drawer-contact p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* ==========================================================================
   Gallery Card Premium Styles & Mobile Adjustments
   ========================================================================== */
.card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    flex-grow: 1;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    transition: transform 0.3s ease;
}

.card-content {
    padding: 15px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.card-footer {
    padding: 0 15px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.card-like-btn, .card-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
    background: #f4f5f7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.card-like-btn:hover, .card-share-btn:hover {
    background: #e2e4e9;
}

.card-view-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.card-view-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

    /* Specific Mobile Fixes requested by user */
    @media (max-width: 768px) {
        /* Hide contact widget globally on mobile */
        .contact-widget {
            display: none !important; 
        }
        
        .gallery-item {
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.06);
            display: flex;
            flex-direction: column;
            background: #fff;
            border: 1px solid #f0f4f8;
            overflow: hidden;
        }
        .card-image {
            height: auto; 
            max-height: 250px;
            object-fit: contain;
            border-radius: 12px 12px 0 0;
            width: 100%;
            background: #fcfcfc;
        }
        .card-content {
            padding: 10px !important;
            flex-grow: 1;
        }
        .card-title {
            font-size: 13px !important; 
        }
        /* Show card footer on mobile since user requested likes/shares */
        .card-footer {
            display: flex !important;
            padding: 0 10px 10px 10px !important;
        }
        
        /* Hide view button on mobile, only show like and share */
        .card-view-btn {
            display: none !important;
        }
        
        /* Layout Padding Adjustments */
        .layout-wrapper {
            padding: 0px 5px !important;
            margin: 0px !important;
            gap: 0px !important;
        }
        
        /* Horizontal Menu for Categories (Non-Sticky, Vibrant) */
        .sidebar {
            position: relative; /* Removed sticky as requested */
            z-index: 990;
            background: #fff;
            padding: 6px 0;
            border-bottom: 1px solid #f0f0f0;
            margin: -5px -5px 0px -5px !important; 
            width: 100vw;
        }
        
        /* Mobile Horizontal Scroll for Sidebar Categories */
        .sidebar-categories {
            display: flex;
            overflow-x: auto;
            gap: 6px;
            padding: 2px 10px;
            scrollbar-width: none; /* Firefox */
        }
        
        /* Apply horizontal scroll to subcategories without forcing display */
        .sub-categories-wrapper .sub-categories-group {
            overflow-x: auto;
            gap: 6px;
            padding: 2px 10px;
            scrollbar-width: none; /* Firefox */
        }
        .sidebar-categories::-webkit-scrollbar, .sub-categories-wrapper .sub-categories-group::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }
        .sidebar-categories li, .sub-categories-wrapper li {
            margin-bottom: 0;
            white-space: nowrap;
        }
        .sidebar-categories a, .sub-categories-wrapper a {
            background: #fff;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
            padding: 6px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #4a5568;
            display: block;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            -webkit-tap-highlight-color: transparent;
        }
        
        /* Vibrant Main Category Active State */
        .sidebar-categories a.active {
            background: linear-gradient(135deg, #ff5722, #ff8a50);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
            transform: translateY(-1px);
        }
        
        /* Sub Category Active State (Light Orange Bg, Orange Text/Border) */
        .sub-categories-wrapper a.active {
            background: #fff4ed;
            color: var(--accent-color);
            border-color: var(--accent-color);
        }
        
        .sub-categories-wrapper {
            margin-top: 4px;
            margin-bottom: 0;
        }
        
        /* Single Design Page Framing Fix & Margins */
        .single-design-container {
            max-width: 100vw;
            overflow-x: hidden;
            padding: 0;
            margin: 0;
        }
        .single-design-grid {
            padding: 0px !important;
            gap: 5px !important;
            margin-bottom: 5px !important;
        }
        .main-design-img {
            border-radius: 8px;
            width: 100%;
            height: auto;
            max-height: 50vh;
            object-fit: cover;
        }
        .design-title {
            font-size: 20px;
        }
        .breadcrumbs {
            margin-top: 0px !important;
            margin-bottom: 5px !important;
            padding: 0 5px;
        }
        
        /* Action Bar Single Line Buttons */
        .premium-action-bar {
            position: fixed;
            bottom: 60px;
            left: 0;
            width: 100%;
            background: #fff;
            padding: 10px 15px;
            margin: 0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
            z-index: 999;
            display: flex;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: nowrap;
        }
        .premium-action-btn, .action-stats {
            flex: 1;
            padding: 10px 5px;
            font-size: 13px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            white-space: nowrap;
            background: #f4f5f7;
            border: none;
            color: #333;
        }
        .btn-primary {
            background: var(--accent-color);
            color: #fff;
        }
        .btn-whatsapp {
            background: #25D366;
            color: #fff;
        }
    }

/* Related Designs Responsive Grid */
@media (max-width: 1024px) {
    .related-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .related-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Related Designs Title Styling */
.related-designs-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .mobile-none {
        display: none !important;
    }
    
    .related-designs-title {
        font-size: 20px;
        margin-bottom: 10px !important;
        margin-top: 0px !important;
        font-weight: 700;
    }
    .related-designs {
        text-align: center;
        padding: 0 10px !important;
        margin-top: 20px !important;
    }
    .related-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-page-container {
        padding: 20px;
        margin: 20px 10px;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-5px);
    }

    /* Mobile Footer Layout - Reduce height */
    .premium-footer {
        padding-top: 40px;
        margin-top: 40px;
    }
    .footer-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 15px !important;
        padding: 0 15px 30px !important;
    }
    .footer-container .footer-column:nth-child(1),
    .footer-container .footer-column:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-logo {
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
    }
}
