/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    background-color: #45a049;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

header h1 {
    color: #4CAF50;
    font-size: 24px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    padding: 8px 12px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #4CAF50;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Main Content Styles */
main {
    padding: 20px 5%;
    min-height: calc(100vh - 150px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Home Page Styles */
/* Home Page Styles */
.hero {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  animation: gradientBG 12s ease infinite;
  align-items: center;
  color: white;
  padding: 50px;
  text-align: center;
  margin-bottom: 30px;
  opacity:0.4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h2 {
  font-size: 2.0rem;
  font-weight: 900;
  background: linear-gradient(90deg, #ff3366, #33ccff, #ffcc00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: liquidFlow 4s linear infinite;
  text-align: center;
  letter-spacing: 1px;
}

@keyframes liquidFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero p{
  font-size:1rem;
  font-family: monospace;
  overflow: hidden;
  border-right: 2px solid #333;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 2px;
  animation: 
    typing 3.5s steps(30, end),
    blink-caret 0.5s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #333; }
}

.featured-products h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-style:italic;
    color: #333;
}
html {
    scroll-behavior: smooth;
}
/* Products Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff3333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.price-container {
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discount-price {
    color: #4CAF50;
    font-weight: bold;
}

.add-to-cart {
    width: 100%;
    padding: 8px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.add-to-cart:hover {
    background-color: #45a049;
}

/* Checkout and Order Notices */
.checkout-notice,
.order-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

.checkout-notice p,
.order-notice p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.checkout-notice i,
.order-notice i {
    color: #4CAF50;
    width: 20px;
    text-align: center;
}

/* Product Detail Page Styles */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #4CAF50;
    font-weight: bold;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.product-info-container h2 {
    margin-bottom: 15px;
    color: #333;
}

.price-container {
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 15px;
}

.discount-price {
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: bold;
}

.product-description {
    margin-bottom: 20px;
    color: #666;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.quantity-selector select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100px;
}

.discount-info {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #666;
}

.discount-info i {
    color: #4CAF50;
    margin-right: 5px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-items {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items-list {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

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

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #4CAF50;
    margin-bottom: 5px;
}

.cart-item-quantity {
    color: #666;
    margin-bottom: 10px;
}

.cart-item-remove {
    color: #ff3333;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-summary {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
}

/* Order Form Page Styles */
.order-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.order-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.order-summary {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.order-totals {
    margin-top: 20px;
}

.shipping-form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-order-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #4CAF50;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-media a {
    color: #4CAF50;
    font-size: 1.5rem;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 40px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #4CAF50;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #4CAF50;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Thank You Page Styles */
.thank-you-message {
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-message h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.thank-you-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        z-index: 100;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .contact-container,
    .product-detail,
    .order-form-wrapper,
    .cart-items {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
        margin-top: 20px;
    }
}
