/* Basic Reset & Typography */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

h1, h2, h3 {
    color: white;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* Header & Navigation */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1em 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo-container {
    display: flex;
    flex-direction: column; /* Stack logo above name */
    align-items: center;
    margin-bottom: 1em;
}

.website-logo {
    max-width: 100px; /* Adjust logo size */
    height: auto;
    margin-bottom: 0.5em; /* Space between logo and name */
}

.website-name {
    font-size: 2.2em;
    margin: 0;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a:focus {
    background-color: #34495e;
}

/* Main Content Sections */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #e0f2f7; /* Light blue background for hero */
    border-radius: 8px;
    margin-bottom: 20px;
}

.hero h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 10px;
}

.info-section {
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-section:last-of-type {
    border-bottom: none;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between products */
    padding: 20px 0;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: contain; /* Ensures images fit without cropping */
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 1.4em;
    margin-top: 0;
    color: #2c3e50;
}

.product-item .price {
    font-size: 1.3em;
    color: #e74c3c; /* Attractive price color */
    font-weight: bold;
    margin-bottom: 15px;
}

.product-item button {
    background-color: #27ae60; /* Green for call to action */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-item button:hover {
    background-color: #229a53;
}

/* Shopping Cart Section */
.shopping-cart-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.shopping-cart-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

#cart-items {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 100px; /* Ensure space for empty message */
    margin-bottom: 20px;
    background-color: #fcfcfc;
}

.empty-cart-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allows it to take available space */
}

.cart-item-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.item-quantity-controls {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-shrink: 0; /* Prevent controls from shrinking */
}

.item-quantity-controls button {
    background-color: #3498db; /* Blue for quantity controls */
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.item-quantity-controls button:hover {
    background-color: #2980b9;
}

.item-quantity-controls span {
    padding: 0 10px;
    font-weight: bold;
    min-width: 25px; /* Ensure quantity display has enough space */
    text-align: center;
}

.remove-item-btn {
    background-color: #e74c3c; /* Red for remove button */
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 15px;
    transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
    background-color: #c0392b;
}

.cart-summary {
    background-color: #eaf6fa; /* Light background for summary */
    border: 1px solid #cce7f0;
    border-radius: 8px;
    padding: 20px;
    text-align: right;
}

.cart-summary p {
    margin: 5px 0;
    font-size: 1.1em;
}

.cart-summary h3 {
    margin-top: 15px;
    font-size: 1.6em;
    color: #2c3e50;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 15px;
}

.primary-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #229a53;
}

.secondary-btn {
    background-color: #95a5a6; /* Grey for secondary action */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9em;
}

/* Social Media Links Styling */
.social-media-links {
    margin-top: 15px;
    display: flex; /* Arrange icons in a row */
    justify-content: center; /* Center the icons */
    gap: 20px; /* Space between icons */
}

.social-media-links a {
    color: #fff; /* White icons */
    font-size: 1.8em; /* Size of the icons */
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-media-links a:hover {
    color: #3498db; /* Change color on hover (e.g., a nice blue) */
    transform: translateY(-3px); /* Slight lift on hover */
}

/* Print Styles for Receipt */
@media print {
    body * {
        visibility: hidden; /* Hide everything by default */
    }
    .receipt-content, .receipt-content * {
        visibility: visible; /* Show only receipt content */
    }
    .receipt-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        font-family: 'Courier New', Courier, monospace; /* Monospace font for receipt look */
        font-size: 12px;
        color: #000;
        background-color: #fff;
    }
    .receipt-content h2, .receipt-content h3 {
        text-align: center;
        margin-bottom: 10px;
    }
    .receipt-content table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 15px;
    }
    .receipt-content th, .receipt-content td {
        border-bottom: 1px dashed #bbb;
        padding: 5px 0;
        text-align: left;
    }
    .receipt-content th {
        font-weight: bold;
    }
    .receipt-content .receipt-total {
        text-align: right;
        font-size: 14px;
        font-weight: bold;
        margin-top: 10px;
    }
    .receipt-content .receipt-total p {
        margin: 5px 0;
    }
    .receipt-content .receipt-footer {
        text-align: center;
        margin-top: 20px;
        font-size: 10px;
    }
}


/* Responsive Design (for phones) */
@media (max-width: 768px) {
    header {
        padding: 0.8em 0;
    }

    .website-name {
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    main {
        padding: 15px;
        margin: 15px auto;
    }

    .hero h2 {
        font-size: 2em;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust for smaller screens */
        gap: 15px;
    }

    .product-item img {
        height: 150px; /* Smaller image height on mobile */
    }

    .product-item h3 {
        font-size: 1.2em;
    }

    .product-item .price {
        font-size: 1.1em;
    }

    .product-item button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .social-media-links {
        gap: 15px; /* Slightly less space on mobile */
    }

    .social-media-links a {
        font-size: 1.5em; /* Slightly smaller icons on mobile */
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-info {
        width: 100%;
        margin-bottom: 10px;
    }

    .item-quantity-controls, .remove-item-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .item-quantity-controls span {
        flex-grow: 1; /* Allow quantity span to grow */
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .website-logo {
        max-width: 80px;
    }

    .website-name {
        font-size: 1.5em;
    }

    nav ul li {
        margin: 3px 0;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Stack products vertically on very small screens */
    }
}



/* Special styling for "My Orders" card */
.category-card.special-card {
    background-color: #3498db; /* Blue background */
    color: #ffffff; /* White text */
}

.category-card.special-card .icon-large {
    color: #ffffff; /* White icon */
}

.category-card.special-card h3,
.category-card.special-card p {
    color: #ffffff; /* White text */
}

.category-card.special-card:hover {
    background-color: #2980b9; /* Darker blue on hover */
}



/* Add these styles to your existing style.css */

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block; /* Essential for making it work horizontally */
}

/* Dropdown Button (the category link itself) */
.dropbtn {
    /* Inherits styles from nav ul li a */
    padding-right: 10px; /* Space for the caret icon */
}

/* Dropdown Content (the actual menu) */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #34495e; /* Darker background for dropdown */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1; /* Ensure it appears above other content */
    border-radius: 4px;
    left: 0; /* Align with the left edge of the dropbtn */
    top: 100%; /* Position below the dropbtn */
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #ecf0f1; /* White text */
    padding: 12px 16px;
    text-decoration: none;
    display: block; /* Make each link take full width */
    text-align: left; /* Align text left */
    font-weight: normal; /* Normal weight for sub-links */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #2c3e50; /* Even darker on hover */
    color: #ffffff;
    border-radius: 0; /* No border radius inside dropdown */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Adjust caret icon for dropdown */
.dropbtn .fas {
    margin-left: 5px; /* Space between text and icon */
    font-size: 0.8em;
    vertical-align: middle;
}


/* Responsive adjustments for dropdown in header */
@media (max-width: 768px) {
    .dropdown {
        width: 100%; /* Take full width when stacked */
    }

    .dropdown .dropbtn {
        width: calc(100% - 30px); /* Adjust for padding on stacked link */
        text-align: center;
        padding: 8px 15px; /* Adjust padding for mobile links */
    }

    .dropdown-content {
        position: static; /* Stack dropdown items normally on mobile */
        width: 100%; /* Take full width of parent */
        box-shadow: none; /* No shadow needed when stacked */
        background-color: #3f5d7a; /* Slightly different background for nested links */
        border-radius: 0;
    }

    .dropdown-content a {
        padding-left: 30px; /* Indent sub-links */
        font-size: 0.9em;
    }
}

/* Add these styles to your existing style.css */

.category-showcase {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9; /* Light background for the section */
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.category-showcase h2 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between cards */
    max-width: 1200px; /* Limit width of the grid */
    margin: 0 auto; /* Center the grid */
}

.category-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px; /* Ensure cards have a consistent height */
}

.category-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* More pronounced shadow */
}

.category-card .icon-large {
    font-size: 3.5em; /* Large icons */
    color: #3498db; /* Blue color for icons */
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 10px;
    
}

.category-card p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
}

/* Special styling for "My Orders" card */
.category-card.special-card {
    background-color: #3498db; /* Blue background */
    color: #ffffff; /* White text */
}

.category-card.special-card .icon-large {
    color: #ffffff; /* White icon */
}

.category-card.special-card h3,
.category-card.special-card p {
    color: #ffffff; /* White text */
}

.category-card.special-card:hover {
    background-color: #2980b9; /* Darker blue on hover */
}


/* Responsive adjustments for category showcase */
@media (max-width: 768px) {
    .category-showcase {
        padding: 30px 15px;
    }
    .category-showcase h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .category-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }
    .category-card {
        padding: 25px;
        min-height: 180px;
    }
    .category-card .icon-large {
        font-size: 3em;
    }
    .category-card h3 {
        font-size: 1.4em;
    }
}

ul li a {
    background-color: #2a5877;
}

