* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
}

.top-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.search-container {
    flex: 1;
    max-width: 600px;
    display: flex;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: none;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.currency-selector:hover {
    background-color: #f5f5f5;
}

.flag {
    font-size: 20px;
}

.login-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #f5f5f5;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #0d5c3d;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 32px;
    color: white;
    transition: transform 0.2s;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Cart Modal Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

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

.cart-modal-ui-blocker, .checkout-ui-blocker{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    padding: 20px;
}

.cart-modal-ui-blocker.active, .checkout-ui-blocker.active{
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #000;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #f5f5f5;
}

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    opacity: 0.6;
}

.delete-btn:hover {
    opacity: 1;
}

.cart-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.subtotal-price {
    font-size: 24px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #0d5c3d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background-color: #094a2f;
}

.continue-shopping {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 5px;
}

.clear-cart {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    color: #666;
}

footer {
    background-color: #000;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.subscribe-input {
    padding: 12px;
    width: 300px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
}

.subscribe-btn {
    padding: 12px 30px;
    background-color: #0d5c3d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.powered-by {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #888;
    font-size: 14px;
}