/* Reset margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2; /* Light gray background */
    color: #333;
    text-align: center;
    padding: 20px;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adds padding inside the header */
    width: 80%; /* Same width as title section to match the space */
    margin: 0 auto; /* Centers the header */
}

h4 {
    font-size: 20px;
    font-weight: bold;
    color: #555; /* Dark gray text */
    letter-spacing: 2px;
}

/* Navigation styling */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center; /* Center the navigation links */
}

nav ul li a {
    text-decoration: none;
    color: #555; /* Dark gray text */
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #000; /* Black text on hover */
}

/*About the company*/
.about-section {
    background-color: #d8d5cc;
    padding: 50px 20px;
}
  
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}
  
.about-heading {
    flex: 1 1 30%;
    font-weight: bold;
}
  
.about-heading h1 {
    font-size: 3em;
    line-height: 1.2;
    color: #231f20;
}
  
.about-content {
    flex: 1 1 70%;
    padding-left: 20px;
    display: flex;
    flex-direction: row; /* Arrange items in a row */
    gap: 20px; /* Space between columns */
}
  
.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #231f20;
    flex: 1; /* Make each paragraph occupy equal width */
    text-align: left;
}
  
.about-content a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}
  
.about-content a:hover {
    text-decoration: underline;
}

/*shop section */
.goods {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /*creates 2 equal-width columns, each taking 1fr (1 fraction of available space)*/
    gap: 30px;
}

.goods_items {
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.goods_items:hover {
    transform: translateY(-6px);
}

.product-figure {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBEBEB;
}

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

.info {
    padding: 15px;
    text-align: center;
}

.title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 6px;
    color: #231f20;
    letter-spacing: 1px;
}

.price {
    font-size: 1em;
    color: #555;
    font-weight: bold;
}
