/* =============================================================================
   COOKIE CONSENT & GDPR MODAL
   ============================================================================= */

/* Cookie Modal Overlay */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal.hide {
    opacity: 0;
    visibility: hidden;
}

/* Cookie Modal Content */
.cookie-content {
    background: #ffffff;
    border-radius: 0;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--vixel-primary, #1a4c3e);
    transform: translateY(50px) scale(0.9);
    transition: all 0.3s ease-out;
    position: relative;
}

.cookie-modal.show .cookie-content {
    transform: translateY(0) scale(1);
}

/* Close Button */
.cookie-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--vixel-primary, #1a4c3e);
    background: white;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--vixel-primary, #1a4c3e);
    transition: all 0.3s ease;
    z-index: 10;
}

.cookie-close:hover {
    background: var(--vixel-primary, #1a4c3e);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 76, 62, 0.3);
}

/* Cookie Header */
.cookie-header {
    padding: 28px 28px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 76, 62, 0.03),
        rgba(139, 38, 53, 0.03));
    border-bottom: 1px solid rgba(26, 76, 62, 0.1);
}

.cookie-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: #f8f9fa;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #e9ecef;
}

.cookie-logo img {
    width: 60px;
    height: auto;
    filter: none;
}

.cookie-logo::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--vixel-primary, #1a4c3e), var(--vixel-accent, #d4af37));
    border-radius: 0;
    z-index: -1;
}

.cookie-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cookie-subtitle {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Cookie Body */
.cookie-body {
    padding: 20px 24px;
}

.cookie-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 400;
}

.cookie-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.cookie-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
}

.cookie-features li::before {
    content: "✓";
    color: var(--vixel-primary, #2c5530);
    font-weight: bold;
    margin-right: 8px;
    font-size: 1rem;
}

/* Cookie Actions */
.cookie-actions {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-btn {
    padding: 14px 28px;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    display: inline-block;
    font-family: 'Arial', sans-serif;
}

.cookie-btn-primary {
    background: var(--vixel-primary, #1a4c3e);
    color: white;
    border-color: var(--vixel-primary, #1a4c3e);
    box-shadow: 0 3px 10px rgba(26, 76, 62, 0.4);
}

.cookie-btn-primary:hover {
    background: var(--vixel-secondary, #8b2635);
    border-color: var(--vixel-secondary, #8b2635);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 38, 53, 0.5);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--vixel-primary, #1a4c3e);
    border-color: var(--vixel-primary, #1a4c3e);
}

.cookie-btn-secondary:hover {
    background: var(--vixel-primary, #1a4c3e);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 76, 62, 0.3);
}

/* Cookie Settings Toggle - Restored Original Style */
.cookie-settings-toggle {
    background: none;
    border: none;
    color: var(--vixel-primary, #1a4c3e);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 12px;
    align-self: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-settings-toggle:hover {
    color: var(--vixel-secondary, #8b2635);
    text-decoration: none;
}

/* Advanced Settings Panel */
.cookie-settings {
    display: none;
    border-top: 2px solid var(--vixel-primary, #1a4c3e);
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(26, 76, 62, 0.02),
        rgba(139, 38, 53, 0.02));
    margin: 16px 0;
}

.cookie-settings.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Highlight when settings are visible */
.cookie-modal.preferences-mode .cookie-settings.show {
    background: linear-gradient(135deg, 
        rgba(26, 76, 62, 0.08),
        rgba(139, 38, 53, 0.08));
    border: 2px solid var(--vixel-accent, #d4af37);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fafafa;
    transition: all 0.2s ease;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category:hover {
    border-color: var(--vixel-accent, #d4af37);
    background: #f8f9fa;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0;
}

.cookie-category-description {
    font-size: 0.85rem;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Toggle Switch - VIXELL Enhanced */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    /* Ensure clickability */
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    /* Force interactivity */
    pointer-events: none;
}

/* Ensure the toggle container captures clicks */
.cookie-toggle input:not(:disabled) + .cookie-toggle-slider {
    cursor: pointer;
    pointer-events: all;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s ease-in-out;
    border-radius: 0;
    border: 2px solid #e5e7eb;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s ease-in-out;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--vixel-primary, #1a4c3e);
    border-color: var(--vixel-primary, #1a4c3e);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(22px);
    background-color: var(--vixel-accent, #d4af37);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #f3f4f6;
}

.cookie-toggle:hover .cookie-toggle-slider:not([disabled]) {
    border-color: var(--vixel-primary, #1a4c3e);
}

/* Cookie Notice Bar (Alternative) */
.cookie-notice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vixel-primary, #2c5530);
    color: white;
    padding: 16px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-notice-bar.show {
    transform: translateY(0);
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-notice-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-notice-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-notice-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-notice-btn-accept {
    background: white;
    color: var(--vixel-primary, #2c5530);
    border-color: white;
}

.cookie-notice-btn-accept:hover {
    background: #f0f0f0;
    color: var(--vixel-primary, #2c5530);
}

.cookie-notice-btn-settings {
    background: transparent;
    color: white;
    border-color: white;
}

.cookie-notice-btn-settings:hover {
    background: white;
    color: var(--vixel-primary, #2c5530);
}

/* White Background CTA Section Enhancement */
.bg-white.shadow-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #e9ecef !important;
}

.bg-white .text-success {
    color: #28a745 !important;
}

.bg-white .btn-primary {
    background-color: var(--vixel-primary, #2c5530);
    border-color: var(--vixel-primary, #2c5530);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    transition: all 0.3s ease;
}

.bg-white .btn-primary:hover {
    background-color: var(--vixel-secondary, #1a3a1e);
    border-color: var(--vixel-secondary, #1a3a1e);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 85, 48, 0.4);
}

.bg-white .btn-outline-primary {
    color: var(--vixel-primary, #2c5530) !important;
    border-color: var(--vixel-primary, #2c5530);
    border-width: 2px;
    transition: all 0.3s ease;
}

.bg-white .btn-outline-primary strong {
    color: var(--vixel-primary, #2c5530) !important;
}

.bg-white .btn-outline-primary i {
    color: var(--vixel-primary, #2c5530) !important;
}

.bg-white .btn-outline-primary:hover {
    background-color: var(--vixel-primary, #2c5530);
    border-color: var(--vixel-primary, #2c5530);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.bg-white .btn-outline-primary:hover strong {
    color: white !important;
}

.bg-white .btn-outline-primary:hover i {
    color: white !important;
}

.bg-white .text-primary {
    color: var(--vixel-primary, #2c5530) !important;
    font-weight: 700;
}

.bg-white .fw-medium {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-header {
        padding: 20px 20px 0;
    }
    
    .cookie-body {
        padding: 16px 20px;
    }
    
    .cookie-actions {
        padding: 0 20px 20px;
    }
    
    .cookie-title {
        font-size: 1.3rem;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-notice-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Fix for CTA Section Button Contrast */
.bg-primary .btn-light {
    color: #333 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 600 !important;
}

.bg-primary .btn-light:hover {
    color: #333 !important;
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.bg-primary .btn-light i.text-primary {
    color: var(--vixel-primary, #2c5530) !important;
}

/* Full Coverage Images for Portfolio Items */
.portfolio-item-enhanced .img-fluid {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.portfolio-item-enhanced .product-image-container {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Remove any Bootstrap default margins/padding */
.portfolio-item-enhanced .col-lg-4,
.portfolio-item-enhanced .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Remove gray background spaces */
.portfolio-item-enhanced,
.portfolio-item-enhanced .product-image-container {
    background: transparent !important;
}

.portfolio-item-enhanced .img-fluid {
    background: transparent !important;
}