/* Shop Page Styles */

/* Hero Section */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.1;
    z-index: 1;
}

.shop-hero .container {
    position: relative;
    z-index: 2;
}

.shop-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: block !important;
}

.shop-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
    display: block !important;
}

.shop-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
    display: block !important;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-features .feature svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Filters Section */
.shop-filters {
    background: var(--gray-100);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.filters-bar {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gradient-start);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-start);
    color: var(--white);
    border-color: var(--gradient-start);
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 120px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: white;
}

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

.software-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.software-icon svg {
    width: 40px;
    height: 40px;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-start);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.product-specs span {
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gradient-start);
}

.price-original {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateY(-1px);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.cart-close:hover {
    color: var(--text-primary);
}

.cart-close svg {
    width: 20px;
    height: 20px;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-cart svg {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--gradient-start);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--gradient-start);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.cart-checkout {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.cart-checkout:disabled {
    background: var(--gray-200);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Cart Toggle Button */
.cart-toggle {
    position: fixed;
    bottom: 2rem;
    right: 6rem; /* Position to the left of WhatsApp button (60px + 20px spacing + 20px margin = ~100px = 6rem) */
    width: 60px;
    height: 60px;
    background: var(--gradient-start);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-toggle:hover {
    background: var(--gradient-end);
    transform: scale(1.1);
}

.cart-toggle svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--white);
    color: var(--gradient-start);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shop Contact Section */
.shop-contact {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
}

.shop-contact .contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.shop-contact .contact-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.shop-contact .contact-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.shop-contact .contact-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.shop-contact .contact-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.shop-contact .contact-features .feature svg {
    width: 20px;
    height: 20px;
    color: var(--gradient-start);
}

.contact-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }
    
    .shop-hero p {
        font-size: 1rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .shop-contact .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .shop-contact .contact-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .contact-action {
        flex-direction: row;
        justify-content: center;
    }
}






@media (max-width: 480px) {
    .shop-hero {
        padding: 100px 0 60px;
    }
    
    .shop-hero h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-action {
        flex-direction: column;
    }
    
    .cart-toggle {
        right: 4.5rem; /* Further adjust for very small screens */
        bottom: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .cart-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -3px;
        right: -3px;
    }
}

/* Product Filter Animation */
.product-card.hidden {
    display: none;
}

.product-card.show {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.btn-add-cart.loading {
    background: var(--gray-200);
    color: var(--text-secondary);
}

.btn-add-cart.added {
    background: #22c55e;
    color: var(--white);
}

.btn-add-cart.added::after {
    content: "Added!";
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* FAQ Toggle Styles */
.faq-toggle-btn {
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.faq-toggle-btn:hover {
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    transform: translateY(-1px);
}

.faq-toggle-btn:active {
    transform: translateY(0);
}

.faq-section {
    border-top: 1px solid #e0e0e0;
}

#faqContent {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Item Responsive Styles */
@media (max-width: 768px) {
    .faq-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 1.5rem 0 !important;
    }
    
    .faq-item {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }
}