/* Global styles */
html {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
}
body {
    background: #EDEDEB;
    color: #424242;
    margin: 0 auto;
    padding: 10px 0;
    max-width: 1040px;
}

/* Typography */
p {
    margin: 1rem 0;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    color: #424242;
    font-weight: 500;
    margin-block-start: 0.83rem;
    margin-block-end: 0.17rem;
}

h1 {
    font-size: 1.5rem;
    text-decoration: underline;
}
h2 {
    font-size: 1.33rem;
}
/* Link styles */
a {
    color: #5511BB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* List styles */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.66rem;
}

header li {
    margin-bottom: 0.28rem;
}
main li {
    margin-bottom: 0.83rem;
    line-height: 1.5;
}

/* Blockquote styles */
blockquote {
    border-left: 4px solid #ff6600;
    padding-left: 1rem;
    margin: 1.33rem 0;
    font-size: 1.1rem;
}


/* Image styles */
img {
    max-width: 100%;
    height: auto;
}
main img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.product img {
    height: auto;
    object-fit: contain;
}

@media (min-width: 600px) {
  .product img {
      height: auto;
      width: 600px;
  }
}
/* Layout styles */
header {
    background: #00ff66;
    padding: 0 5px;
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap;
    align-items: center;
}

main {
    padding: 5px 10px;
    box-sizing: border-box;
    background: #f6f6ef;
}

@media (min-width: 768px) {
    main {
        padding: 5px 20px;
    }
}

/* Navigation styles */
header nav {
    flex-grow: 1; 
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; 
    padding: 8px 0 2px;
    margin: 0;
    flex-wrap: wrap; 
}

header nav ul li a {
    color: #000;
    text-decoration: none;
    padding: 0 5px;
}

header nav ul li:after {
    content: "|";
    margin: 0 1px;
}

header nav ul li:last-child:after {
    content: "";
    margin: 0;
}
/* Table styles */
.details-table {
    overflow-x: auto;
}
table {
    font-size: 14px;
    border-collapse: collapse;
    table-layout: fixed;
    overflow-wrap: break-word;
    margin: 0.66rem auto;
}

table th, table td {
    border: 1px solid #626262;
    padding: 5px;
}

table th {
    background: #F6F6AD;
    color: #424242;
}

table tr:nth-child(even) {
    background: #f2f2f2;
}

/* Homepage styles */
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.image-wrapper {
    position: relative;
    aspect-ratio: 1000 / 468;
    width: 100%;
    overflow: hidden;
}
.auto-fem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.66rem;
    margin-bottom: 0.66rem;
}
.auto-fem-container h3 {
    text-align: center;
}
.auto-fem-column {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.66rem;
    background: #FBFBF7;
}
@media (max-width: 768px) {
    .auto-fem-container {
        grid-template-columns: 1fr;
    }
}
.indica-sativa-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.66rem;
    margin-bottom: 1rem;
}
.indica-sativa-container h3 {
    text-align: center;
}
.indica-sativa-column {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.66rem;
    background: #FBFBF7;
}
@media (max-width: 768px) {
    .indica-sativa-container {
        grid-template-columns: 1fr;
    }
}
/*Shop and category styles */
@media screen and (min-width: 768px) {
  .shoplist {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 1rem 0;
  }
}

@media screen and (min-width: 600px) and (max-width: 767px) {
  .shoplist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 1rem 0;
  }
}

@media screen and (max-width: 599px) {
  .shoplist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
    margin: 1rem 0;
  }
}
.shoplist div {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    background: #FBFBF7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/*Button styles */
.button {
    background: #abf8ff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 90%;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 1.12rem;
    font-weight: 600;
    margin: 10px auto 25px;
    transition-duration: 0.3s;
    cursor: pointer;
    box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.2);
}

.button:hover {
    background: #00ff66;
    border: 1px solid #00ff66;
    text-decoration: none;
    box-shadow: 0px 6px 12px 0px rgba(0,0,0,0.4);
}

.image-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 10px;
    border: 1px solid #ccc;
    text-align: center;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 600;
    background: #00ff66;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition-duration: 0.3s;
    box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.5);
}
.image-button:hover {
    background: #95f54c;
    text-decoration: none;
    box-shadow: 0px 6px 12px 0px rgba(0,0,0,0.7);
}

ul[aria-labelledby="productOptions"] {
    list-style: none;
    padding-left: 0;
}

ul[aria-labelledby="productOptions"] li:nth-child(1) a {
    background: #05c87b;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

ul[aria-labelledby="productOptions"] li:nth-child(2) a {
    background: #ff5c00;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

ul[aria-labelledby="productOptions"] li:nth-child(3) a {
    background: #8c52ff;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.review-form button {
    font-size: 16px;
}
.review-form button, .small-button {
  display: block;
  width: 169px;
  padding: 10px;
  margin: 10px 0;
  color: #333;
  border: 1px solid #ccc;
  background: #f0f8ff;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.1);
}

.review-form button:hover, .small-button:hover {
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.1);
}
.small-button, .small-button:hover {
    text-decoration: none;
    text-align: center;
    margin: 0.66rem auto;
}
.small-button:hover {
    border: 1px solid #00ff66;
}
/* Price styles (added price-box div) */
.price-box { 
    text-align: center;
    font-weight: 600;
    font-size: 1.12rem;
    margin: 5px 0;
}
.price-amount {
    color: #0A875C;
}

/* Breeder styles */
/* Summary styles */
details {
    width: 95%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background: #FBFBF7;
    margin: 0.66rem auto;
}

/* Review styles */
.review-card {
    width: 95%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background: #FBFBF7;
    margin: 10px auto;
}

.review-rating {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.review-description {
    color: #555;
    margin: 10px 0;
}

.reviewer-name {
    text-align: right;
    color: #333;
    font-style: italic;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.reviewer-name::before {
    content: "— ";
}
.verified-buyer {
    color: #03643E;
    background: #FDFDFB;
    border: 1px solid #ccc;
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
    margin-left: 10px;
}
.verified-buyer::before {
    content: "✓ "
}
.stars {
    display: inline-block;
    font-size: 24px;
    color: #ccc;
}

.stars[data-rating="5"]::before {
    content: "★★★★★";
    color: gold;
}
/* Review Form Styles */
.review-form {
  width: 95%;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 10px;
  background: #FBFBF7;
  margin: 10px auto;
  font-size: 16px;
}

.review-form label {
  display: block;
  color: #333;
  margin: 5px 0;
}

.review-form select,
.review-form textarea,
.review-form input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 5px 0 10px;
  box-sizing: border-box;
  font-size: 16px;
}

.review-form textarea {
  height: 100px;
}

.hidden {
    display: none;
}

/* Header components */
main header {
    background: #f6f6ef;
    padding: 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    border: 2px solid white;
}
.sitename {
    font-size: 20px;
    margin-left: 5px;
    font-weight: 600;
    display: flex;
    color: #000;
    text-decoration: none;
}

/* Footer components */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f6f6ef;
    padding: 30px 10px;
}

footer nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    border-top: 1px solid #ccc;
    padding: 0.66rem 0;
}

.footer-columns {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0px;
}

.footer-columns a {
    color: #525252;
}
.footer-columns ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-columns li {
    margin-bottom: 0.83rem;
}

.organization-container {
    text-align: center;
    margin-bottom: 1rem;
    color: #525252;
}
.organization-container a {
    text-decoration: none;
    color: #525252;
}
.organization-container div {
    margin-bottom: 0.66rem;
}

.sitename-footer {
    font-size: 20px;
    font-weight: 500;
}
.copyright {
    width: 100%;
    text-align: center;
    color: #525252;
}

@media screen and (min-width: 569px) {
    footer nav {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
    .footer-columns {
        width: 33.33%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}
