/* Dark Mode Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #111111;
    --bg-input: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #cccccc;
    --text-muted: #888;
    --border-color: #2a2a2a;
    --accent: #ffcc00;
    --accent-hover: #ffdd44;
    --success: #10b981;
    --danger: #ff3300;
    --whatsapp: #25D366;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666;
    --border-color: #e0e0e0;
    --accent: #ffcc00;
    --accent-hover: #e6b800;
    --success: #10b981;
    --danger: #ff3300;
    --whatsapp: #25D366;
}

/* Dark mode transition for smooth theme switching */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
header, .navbar {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--accent);
}

footer, .footer {
    background-color: var(--bg-secondary);
    border-top-color: var(--accent);
    color: var(--text-muted);
}

/* Cards */
.product-card, .size-card, .custom-card, .contact-info, .contact-form, .quote-box, .testimonial, .client-card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.product-card:hover, .size-card:hover, .custom-card:hover, .client-card:hover {
    border-color: var(--accent);
}

/* Inputs */
input, select, textarea, .option-group select, .search-input {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
}

input:focus, select:focus, textarea:focus, .search-input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Text */
.product-description, .step p, .info-item p, .contact-details p, .product-info p, .client-name {
    color: var(--text-secondary);
}

.product-category, .product-category span {
    background-color: var(--bg-input);
    color: var(--accent);
}

.dimension-info {
    background-color: var(--bg-input);
    color: var(--accent);
    border-color: var(--accent);
}

.human-adjust, .controls {
    background-color: var(--bg-input);
}

/* Links */
a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

/* Buttons */
.product-btn, .btn-view-details, .btn-primary, .submit-btn, .add-to-cart-btn {
    background-color: var(--accent);
    color: #000000;
}

.product-btn:hover, .btn-view-details:hover, .btn-primary:hover, .submit-btn:hover, .add-to-cart-btn:hover {
    background-color: var(--accent-hover);
    color: #000000;
}

.order-btn, .order-custom-btn {
    background-color: var(--accent);
    color: #000000;
}

.order-btn:hover, .order-custom-btn:hover {
    background-color: var(--accent-hover);
    color: #000000;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 40px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--accent);
    font-size: 0.85rem;
    transition: 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dark-mode-toggle:hover {
    background: var(--accent);
    color: #000000;
}

/* Mobile Dark Mode Toggle */
@media (max-width: 768px) {
    .dark-mode-toggle {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 10px;
    }
}

/* Search Bar */
.search-container {
    position: relative;
    display: inline-block;
}

.search-input {
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 200px;
    transition: 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    width: 250px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}

.search-result-item:hover {
    background: var(--accent);
    color: #000000;
}

.search-result-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    color: white;
}

/* Social Media Feed */
.social-feed {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-feed h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.instagram-feed {
    display: flex;
    justify-content: center;
}

.instagram-feed iframe {
    border-radius: 16px;
    max-width: 100%;
}

/* Cart Table */
.cart-table {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.cart-table th {
    background: var(--accent);
    color: #000000;
}

.cart-table td {
    border-bottom-color: var(--border-color);
    color: var(--text-secondary);
}

.cart-total {
    background: var(--bg-card);
    border-color: var(--accent);
}

.shipping-options {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.shipping-option {
    background: var(--bg-input);
    border-color: var(--border-color);
}

.shipping-option:hover {
    border-color: var(--accent);
}

.shipping-details {
    background: var(--bg-input);
    border-left-color: var(--accent);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #000000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Floating Social Panel - Mobile Optimized */
.float-social-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.float-main-btn {
    width: 55px;
    height: 55px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    border: none;
    color: #000;
    font-size: 24px;
}

.social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

/* Testimonial Popup - Mobile */
.testi-popup-modern {
    bottom: 85px;
    left: 15px;
    width: 280px;
    padding: 12px 16px;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-input {
        width: 100%;
    }
    .search-input:focus {
        width: 100%;
    }
    .search-container {
        width: 100%;
        margin: 0.5rem 0;
        order: 3;
    }
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Toast on mobile */
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* Dark mode styles for mobile menu */
.mobile-menu {
    background: var(--bg-secondary);
    border-left-color: var(--accent);
}

.mobile-menu ul li a {
    color: var(--accent);
    border-bottom-color: var(--border-color);
}

.mobile-menu ul li a:hover {
    color: var(--text-primary);
}

.mobile-cart a {
    background: var(--accent);
    color: #000000;
}

.mobile-lang button {
    background: var(--bg-input);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-lang button.active {
    background: var(--accent);
    color: #000000;
}

/* Overlay */
.overlay {
    background: rgba(0,0,0,0.7);
}