/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-nav {
    background-color: var(--color-accent);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background-color: #b89a55;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Category Card */
.category-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.category-card h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    padding-top: 120%;
    /* Aspect ratio */
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-normal);
}

.product-image-hover {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-info {
    padding: var(--spacing-sm);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.product-sku {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--color-text-light);
    margin-left: 4px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: auto;
}

.product-actions {
    margin-top: var(--spacing-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Filters & Search */
.catalog-controls {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--color-secondary);
    border: 2px solid white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    overflow-x: hidden;
}

.modal-gallery {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.gallery-main {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 500px;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* Thumbnail Strip */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow-x: auto;
    background: white;
    border-top: 1px solid var(--color-border);
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #f0f0f0;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.gallery-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--color-primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.modal-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.modal-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: var(--spacing-sm) 0;
}

.modal-specs {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
    background-color: #f9f9f9;
    border-radius: var(--radius-sm);
}

.modal-specs ul {
    margin-top: var(--spacing-xs);
}

.modal-specs li {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-text-light);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-gallery {
        min-height: 250px;
    }

    .gallery-main {
        min-height: 250px;
    }

    .gallery-main img {
        max-height: 300px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-counter {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }

    .modal-details {
        padding: 1rem;
    }
}

/* Feature Card */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.feature-card {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Social Media Section */
.social-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.social-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.social-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-content>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    transition: transform var(--transition-normal);
}

.social-card:hover .social-icon svg {
    transform: scale(1.1);
}

.social-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: white;
}

.social-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Facebook */
.social-card.facebook .social-icon {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-card.facebook:hover {
    border-color: #1877f2;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.3);
}

/* Instagram */
.social-card.instagram .social-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card.instagram:hover {
    border-color: #e6683c;
    box-shadow: 0 12px 24px rgba(230, 104, 60, 0.3);
}

/* WhatsApp */
.social-card.whatsapp .social-icon {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.social-card.whatsapp:hover {
    border-color: #25d366;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

/* TikTok */
.social-card.tiktok .social-icon {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border: 2px solid #fe2c55;
}

.social-card.tiktok:hover {
    border-color: #fe2c55;
    box-shadow: 0 12px 24px rgba(254, 44, 85, 0.3);
}

@media (max-width: 768px) {
    .social-content h2 {
        font-size: 2rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* === Quotation System Styles === */

/* Quotation Badge in Navbar */
.quotation-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    animation: badge-bounce 0.5s ease;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quotation-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Modal Button States */
#modal-add-quotation {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#modal-add-quotation.in-quotation {
    background-color: #25D366;
    border-color: #25D366;
}

#modal-add-quotation.in-quotation:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Quantity Selector Styles */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.quantity-label {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    border-color: #25D366;
    color: #25D366;
    background-color: #f0fdf4;
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: white;
}

/* Remove spinner arrows from number input */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* WhatsApp Card Ready State */
.social-card.whatsapp.ready-to-quote {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: 3px solid #25D366;
    animation: pulse-glow 2s infinite;
    position: relative;
}

.social-card.whatsapp.ready-to-quote::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: #25D366;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.social-card.whatsapp.ready-to-quote .social-info h3,
.social-card.whatsapp.ready-to-quote .social-info p {
    color: white;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 211, 102, 0.8);
    }
}

/* Social Section Highlight Animation */
.social-section.highlight-pulse {
    animation: section-highlight 2s ease;
}

@keyframes section-highlight {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: bottom 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast-notification.show {
    bottom: 30px;
}

/* Responsive adjustments for quotation badge */
@media (max-width: 768px) {
    .quotation-badge {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }

    .toast-notification {
        padding: 12px 24px;
        font-size: 0.85rem;
        bottom: -80px;
    }

    .toast-notification.show {
        bottom: 20px;
    }
}