/* S2B Computer Solutions - global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and navigation */
header {
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}

.logo span {
    color: #3498db;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #34495e;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Main content */
main {
    min-height: 70vh;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-accent {
    background-color: #e74c3c;
}

.btn-accent:hover {
    background-color: #c0392b;
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Products section */
.products-section {
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 1rem 0;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Product detail */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-info h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.product-description {
    margin: 1rem 0;
    line-height: 1.6;
}

/* Cart */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-items th,
.cart-items td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.cart-items th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

.quantity-input {
    width: 60px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.remove-item:hover {
    opacity: 0.7;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 1.5rem;
    color: #777;
}

/* Forms */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Payment details (rendered dynamically on checkout) */
.payment-details {
    display: contents;
}

.form-hint {
    color: #777;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

/* Order summary (checkout) */
.order-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.order-summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

.order-summary-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.order-summary-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.order-summary-item span {
    color: #777;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    color: #95a5a6;
}

/* Floating WhatsApp button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.float-whatsapp:hover {
    background-color: #128C7E;
    color: #FFF;
}

.my-float {
    margin-top: 5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.team-member {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    background-color: #3498db;
}

.team-member:nth-child(2) .team-avatar {
    background-color: #e74c3c;
}

.team-member:nth-child(3) .team-avatar {
    background-color: #27ae60;
}

.team-member h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Services */
.service-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.8;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.service-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.service-card p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.service-price {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
}

.service-card:nth-child(2) .service-icon {
    color: #e67e22;
}

.service-card:nth-child(3) .service-icon {
    color: #27ae60;
}

.service-card:nth-child(4) .service-icon {
    color: #8e44ad;
}

.service-card:nth-child(5) .service-icon {
    color: #e74c3c;
}

.service-card:nth-child(6) .service-icon {
    color: #f39c12;
}

.service-cta {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-cta h3 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.service-cta p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.service-cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: #3498db;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Confirmation */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.order-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

#shippingInfo {
    text-align: left;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

#paymentInfo {
    text-align: left;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* Toast notification */
#toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #2c3e50;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 200;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Logo intro */
.logo-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.logo-intro .logo {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
}

.skip-intro {
    position: absolute;
    bottom: 20%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.logo-intro:hover .skip-intro {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .cart-actions {
        flex-direction: column;
    }

    .float-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
