/* COMPLETE STYLE.CSS - Copy ALL below this line */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #cbeef5 url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
}

/*Logo */
.logo img {
    max-width: 50%; /* Makes image responsive */
    height: auto; /* Maintains aspect ratio */
    width: 200px; /* Default size for desktop */
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
    .logo img {
        width: 150px; /* Medium screens (tablets) */
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 100px; /* Small screens (mobile) */
    }
}

/* Navigation Ribbon */
.ribbon {
    background: linear-gradient(135deg, #48adec 0%, #97dcf5 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

#user-display {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/*Button */
/* Base button styles (applied to both primary and secondary) */
.action-button {
    padding: 15px 30px;
    font-size: 18px;
    min-height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Primary button specific styles */
.action-button.primary {
    background-color: #007bff; /* Blue */
    color: white;
}

.action-button.primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 187, 0.3);
}

/* Secondary button specific styles */
.action-button.secondary {
    background-color: #6c757d; /* Gray */
    color: white;
}

.action-button.secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}


/* Main Content */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
}

.price {
    color: #667eea;
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.add-to-cart:hover {
    opacity: 0.9;
}

/* Cart Page */
.cart-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.shipping-section, .address-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shipping-methods {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.shipping-method {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-method.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.address-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 16px;
}

.cart-items {
    margin: 30px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-total {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #667eea;
}

.total-price {
    font-size: 28px;
    color: #667eea;
    font-weight: bold;
}

.next-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    float: right;
    margin-top: 20px;
}

/* Upload Page */
.upload-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.upload-section {
    margin-bottom: 30px;
}

.upload-box {
    border: 2px dashed #667eea;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-top: 20px;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    background: #f0f2ff;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-label {
    display: block;
    color: #667eea;
    font-size: 20px;
    cursor: pointer;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.upload-progress {
    margin-top: 20px;
    color: #666;
}

.upload-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    float: right;
    margin-top: 20px;
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ribbon {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .shipping-methods {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Language Switcher Button */
.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 10px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.lang-btn:active {
    transform: scale(0.95);
}



#memo-banner {
    display: none;
    margin: 30px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fefcbf 0%, #f6e05e 100%);
    border-radius: 12px;
    border-left: 6px solid #d69e2e;
    box-shadow: 0 3px 15px rgba(214, 158, 46, 0.2);
}
#memo-banner .memo-icon {
    font-size: 28px;
    color: #d69e2e;
    flex-shrink: 0;
    margin-top: 3px;
}
#memo-banner .memo-text {
    flex: 1;
    font-size: 16px;
    color: #744210;
    line-height: 1.7;
}
@media (max-width: 480px) {
    #memo-banner {
        padding: 15px;
    }
    #memo-banner .memo-text {
        font-size: 14px;
    }
}


/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown .dropbtn {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.3s;
    cursor: pointer;
}
.dropdown .dropbtn:hover {
    background: rgba(255,255,255,0.1);
}
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
}
.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 0;
    background: none !important;
}
.dropdown-content a:hover {
    background: #f8f9ff !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* For mobile, we might want click instead of hover */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
    }
    .dropdown-content a {
        color: white !important;
    }
}
/* END OF STYLE.CSS */