/* Boutique Page Specific Styles */

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.shop-filters {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.shop-filters select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.shop-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.shop-view {
    display: flex;
    gap: var(--spacing-xs);
}

.view-btn {
    padding: var(--spacing-xs);
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.cart-icon:hover {
    background-color: var(--light-gray);
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    color: var(--dark-gray);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.product-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

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

.product-item.list-view {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
}

.product-item.list-view .product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: var(--spacing-md);
}

.product-item.list-view .product-content {
    flex: 1;
    padding: 0;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.product-content {
    padding: var(--spacing-xl);
}

.product-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.product-description {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.product-price {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.product-rating {
    display: flex;
    gap: 2px;
}

.product-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary-color);
}

.product-stock {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: var(--font-weight-medium);
}

.product-stock.out-of-stock {
    color: var(--error-color);
}

.add-to-cart {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.add-to-cart:hover:not(:disabled) {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.add-to-cart:disabled {
    background: var(--gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.add-to-cart svg {
    width: 18px;
    height: 18px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: var(--white);
}

.cart-header h3 {
    margin: 0;
    color: var(--white);
}

.cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-items {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    color: var(--gray);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #e9ecef;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-weight: var(--font-weight-medium);
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e9ecef;
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-sm);
    padding: 2px;
    font-size: 0.75rem;
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid #e9ecef;
    background: var(--light-gray);
}

.cart-total {
    margin-bottom: var(--spacing-md);
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-gray);
}

.cart-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.cart-actions .btn {
    flex: 1;
    justify-content: center;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: var(--white);
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(34, 139, 34, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payment-logo {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: bold;
    font-size: 10px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mtn-logo {
    background: linear-gradient(135deg, #FFCC00, #FF6600) !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><text x="30" y="25" text-anchor="middle" fill="white" font-family="Arial" font-weight="bold" font-size="8">MTN</text></svg>') !important;
}

.orange-logo {
    background: linear-gradient(135deg, #FF6600, #FF3300) !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><text x="30" y="25" text-anchor="middle" fill="white" font-family="Arial" font-weight="bold" font-size="7">ORANGE</text></svg>') !important;
}

.visa-logo {
    background: linear-gradient(135deg, #1A1F71, #0066CC) !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><text x="30" y="25" text-anchor="middle" fill="white" font-family="Arial" font-weight="bold" font-size="9">VISA</text></svg>') !important;
}

.payment-method:hover .payment-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* E-commerce Notice */
.ecommerce-notice {
    background: linear-gradient(135deg, var(--warning-color), #ff9800);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.notice-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}

.notice-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    color: var(--dark-gray);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--dark-gray);
}

.contact-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

.contact-btn.whatsapp:hover {
    background: #128c7e;
    color: var(--white);
}

.contact-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-filters {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .product-item.list-view {
        flex-direction: column;
        text-align: center;
    }
    
    .product-item.list-view .product-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .notice-content h2 {
        font-size: 1.5rem;
    }
    
    .notice-content p {
        font-size: 1rem;
    }
}

/* Product Loading Animation */
.product-item.loading {
    position: relative;
    pointer-events: none;
}

.product-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Cart Animation */
.cart-item {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-item.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}