
* {
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    font-weight: 300;
}
body {
    margin: 0;
    padding: 0;
}

.freeshipping {
    background-color: #004225;
    color: white;
    text-align: center;
    border-bottom: solid 2px white;
    padding: 5px;
}

header {
    background-color: #004225;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
}

header .logo {
    font-size: 15px;
    font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding-right: 35px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #a8d5a8;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 35px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #2d5a27;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }
   .hamburger.active span:nth-child(1){
    transform: translate(-50%, 70%) rotate(-45deg);
  }
    .hamburger.active span:nth-child(2){
    transform: translate(-50%, -30%) rotate(45deg);
  }
    .hamburger.active span:nth-child(3){
      opacity: 0;
  }
}

section h2 {
    text-align: center;
    text-decoration: underline;
}

.hero {

    padding: 60px 20px;
    text-align: center;
}

.b4-words {
    background: #004225;
    opacity: 0.5;

}
.hero-words {
    
    color: white;
    padding: 25px;
}

.categories, .featured {
    padding: 40px 20px;
}

.categories a {
    text-decoration: none;
    font-size: large;
    font-weight: bolder;
    color: #004225;
}
.categories a:hover {
    color: #00aa00;
    text-decoration: overline;
}

.category-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.category, .product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 15px;
}

.product-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}
.about-section {
    text-align: center;
    border: solid 3px green;
    border-radius: 20px;
    margin: 50px auto;
    padding: 30px;
    width: 80%;
}
.about-section h2 {
    font-size: x-large;
    color: #004225;
    text-align: center;
    justify-items: center;
}
.about-section p {
    font-size: larger;
    text-align: center;
}

        /* Footer Styles */
        footer {
            background-color: #004225;
            color: #fff;
            padding: 40px 20px;
            text-align: center;
        }

        .footing {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .footer-links, .footer-contacts {
            list-style: none;
            padding: 0;
            margin: 0;
            text-align: center;
        }

        .footer-links li, .footer-contacts li {
            margin-bottom: 10px;
        }

        .footer-links a, .footer-contacts a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover, .footer-contacts a:hover {
            color: #007bff;
        }

        .footer-contacts li {
            font-size: 1rem;
        }
                @media (min-width: 768px) {
            .footing {
                flex-direction: row;
                text-align: left;
            }
            .footer-links, .footer-contacts {
                text-align: left;
            }
        }

.product-listing h2 {
    text-align: center;
    margin-bottom: 20px;
}

.product-card a {
    display: inline-block;
    margin-top: 5px;
    color: #004225;
    text-decoration: underline;
}

/* Product Detail Section */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

/* Media query for tablet and desktop screens */
@media (min-width: 768px) {
    .product-detail {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Product Gallery Section */
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #ffffff;
}

#main-product-image {
    width: 450px;
    height: 450px;
    display: block;
    border-radius: 1rem;
}

.thumbnail-gallery {
    display: flex; /* Changed from grid to flex */
    flex-wrap: wrap; /* This is the key change to prevent overflow */
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0;
    list-style: none;
}

.thumbnail {
    width: calc(20% - 0.325rem); /* Adjusted to fit 4 per row with gap */
    height: 120px;
    border: solid 2px #02246a;
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Media queries to adjust thumbnail size for smaller screens */
@media (max-width: 1024px) {
    .thumbnail {
        width: calc(.30% - 0.333rem); /* 3 per row */
        height: 120px;
    }
}
@media (max-width: 768px) {
    .thumbnail {
        width: calc(30.33% - 0.333rem); /* 3 per row */
        height: 100px;
    }
}
@media (max-width: 640px) {
    .thumbnail {
        width: calc(47% - 0.25rem); /* 2 per row */
        height: 100px;
    }
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Product Info Section */
.product-info {
    flex: 1;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.product-info p {
    font-size: 1rem;
    color: #11192a;
    margin-bottom: 1.5rem;
}

.product-info form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-info label {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 3px;
}

.product-info select,
.product-info input[type="number"] {
    width: 200px;
    padding: 5px;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-info select:focus,
.product-info input[type="number"]:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.2);
}

.product-info button {
    background-color: #07469e;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-info button:hover {
    background-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.product-filter input[type="text"] {
    width: 200px;
    height: 30px;
    margin: 10px;
    border: solid 3px green;
}
.product-filter button {
    background-color: #3e14f9;
    border: solid 4px rgb(0, 0, 0);
    width: 200px;
    color: white;
    padding: 10px;
    margin: 20px;
    border-radius: 4px;
    cursor: pointer;
}
.product-filter select {
    width: 150px;
    height: 30px;
    border: solid 3px green;
}

.form-section {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.form-section h2 {
    text-align: center;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-box input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-box button {
    background-color: #004225;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-errors {
    background-color: #ffdddd;
    border: 1px solid #ff4444;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.form-success {
    background-color: #ddffdd;
    border: 1px solid #00aa00;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.cart-section {
    padding: 40px 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary .checkout-btn {
    background-color: #004225;
    color: white;
    padding: 5px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
}
.cart-summary button {
    background-color: #132bff;
    color: white;
    padding: 5px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
}
button:hover {
    background-color: #a327c8;

}

 /* Contact Us Section */
        .contact-us-section {
            background-color: #eee;
            padding: 20px 10px;
        }

        .contact-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-form .form-group {
            margin-bottom: 10px;
        }

        .contact-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .contact-form input[type="text"],
        .contact-form input[type="email"],
        .contact-form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box; /* Ensures padding doesn't affect total width */
        }

        .contact-form textarea {
            resize: both;
        }

        .btn.primary {
            display: inline-block;
            background-color: #28a745;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-weight: 600;
        }

        .btn.primary:hover {
            background-color: #218838;
        }
@media (max-width: 768px){
    .cart-table th:nth-child(6),
    .cart-table td:nth-child(6),
    .cart-table th:nth-child(7),
    .cart-table td:nth-child(7) {
        display: none; /* Hide Subtotal and Action on smaller screens */
    }
        .cart-page{
            padding: 0;
    }

    .cart-table {    
            padding: 0;
            width: 100%;
            max-width: 100%;
            font-size: small;
    }
         .cart-table th, .cart-table  td  {
            padding: 5px;
            text-align: left;
    }

    .cart-table .product-info {
        flex-direction: column;
        align-items: left;
    }

    .cart-table .product-info img {
        margin-bottom: 10px;
    }

    .cart-table td {
        padding: 8px 2px; /* Adjust padding */
    }

    .cart-table tfoot .checkout-actions {
        text-align: center;
    }

    .cart-table tfoot .checkout-actions a {
        display: block;
        margin: 10px 0;
    }
    input, select {
    width: 150px;
    height: 35px;
    margin: 10px;
   }
    .contact-us-section  {
        width: 300px;
    }
   button {
    width: 150px;
    padding: 10px;
    margin: 10px;

}
tr input {
    width: 25px;
}
.checkout-section {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 8px;
}

.checkout-section h2 {
    text-align: center;
}

.checkout-section .form-box select,
.checkout-section .form-box input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.confirmation-section {
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
    background: #f8fff8;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #cceacc;
}

.confirmation-section .btn {
    display: inline-block;
    margin-top: 20px;
    background: #004225;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.admin-dashboard ul {
    list-style: none;
    padding: 0;
}

.admin-dashboard ul li {
    margin: 10px 0;
}

.admin-dashboard ul li a {
    text-decoration: none;
    background: #004225;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
}

.admin-products table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-products table th,
.admin-products table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.admin-products .btn {
    display: inline-block;
    background: #004225;
    color: white;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-decoration: none;
    border-radius: 4px;
}


.admin-add-product form input,
.admin-add-product form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

.variant-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-orders table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-orders th,
.admin-orders td {
    padding: 10px;
    border: 1px solid #ddd;
}

.admin-orders td small {
    color: #666;
}

.admin-order-view table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.admin-order-view th,
.admin-order-view td {
    padding: 8px;
    border: 1px solid #ddd;
}
.order-summary p {
    margin: 4px 0;
}

.admin-users table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.admin-users th, .admin-users td {
    padding: 10px;
    border: 1px solid #ccc;
}
.admin-users td small {
    color: #666;
}

.admin-login {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}
.admin-login input {
    width: 90%;
    padding: 8px;
    margin: 8px 0;
}
.admin-login .error {
    color: red;
    font-size: 14px;
}

.contact-form {
    width: 300px;
    margin: 50px auto;
}
.form-group input,
.form-group textarea {
    width: 250px;
    padding: 5px;
    margin: 8px 0;
}
.form-group button {
    padding: 5px 10px;
}
.success {
    color: green;
}
.error {
    color: red;
}

/* Example CSS for the new structure */
/* Product Gallery Section */
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 230px;
    overflow: hidden;
    background-color: #ffffff;
}

#main-product-image {
    width: 200px;
    height: auto;
    display: block;
    border-radius: 1rem;
}

p, h2, h3, h4, h5, h6 {
    width: 200px;
}
th, tr, td {
    font-size: smaller;
    text-align: center;
    padding: 0px;
    margin: 0px;
}
button {
    padding: 10px;
    margin: 10px;
    font-size: smaller;
}
}