/* General Styling for the Body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    margin-bottom:60px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
}

.product-card img {
    width: 100%;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.product-card img:hover {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.product-card h2 {
    font-size: 1.5em;
    color: #290f44;
    margin: 10px 0;
    text-transform: capitalize;
    font-weight: 600;
}

.product-card p {
    font-size: 1.1em;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
}

/* Styling for Product Price */
.product-card .price {
    font-size: 1.3em;
    font-weight: bold;
    color: #16a085;
    margin-top: auto;

}

/* Type and Extra Type Styling */
.product-card .type {
    font-size: 1em;
    color: #7f8c8d;
    margin-top: 5px;
    font-weight: normal;
}

/* Rarity Styling */
.product-card .rarity {
    font-size: 1.1em;
    color: #85d8f7;
    margin-top: 5px;
}

/* Description or Extra Info Styling */
.product-card .extra-info {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 5px;
    font-style: italic;
}

/* Hover Effects for Text */
.product-card:hover h2 {
    color: #cc3de0; /* Change text color on hover */
}

/* Link Styling (Prevent Link Styling) */
.product-card a {
    text-decoration: none;
    color: inherit; /* Remove hyperlink color */
}

.product-card a:hover {
    color: inherit; /* Keep the same color on hover */
}


img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

strong {
    font-weight: bold;
}

/* Styling for description container */
.info {
    
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

/* Post content specific styling */
.post__content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;

    background-color: #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    word-wrap: break-word;
}

.post__content p {
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.post__content em {
    font-style: italic;
    color: #2c3e50;
}

.post__content strong {
    font-weight: bold;
    color: #16a085;
}

.post__content h4 {
    font-size: 1.3em;
    font-style: italic;
    font-weight: bold;
    margin-block-start: 0em;
    margin-block-end: 0em;
    font-family: Arial, sans-serif;
    color: #16a085;
}

.post__content ul,
.post__content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.post__content li {
    margin-bottom: 8px;
}

.post__content pre {
    background-color: #e0e0e0;
    padding: 0px;
    border-radius: 0px;
    margin: 0px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post__content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid #3498db;
}

.post__content a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

.post__content .highlight {
    background-color: #f39c12;
    padding: 0 5px;
    border-radius: 3px;
    color: white;
}

.post__content .quote {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    font-style: italic;
}


/* Styling for "Back to Shop" link */
a[href="/"] {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    /* align button to center */
    display: block;
    width: 100px;
    margin: 0 auto;
    margin-top: 50px;
    
}

a[href="/"]:hover {
    background-color: #2980b9;
}

.carousel-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Left Arrow */
.carousel-arrow.left {
    left: 10px;
}

/* Right Arrow */
.carousel-arrow.right {
    right: 10px;
}

/* Hover Effect */
.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.1);
}

/* Arrow Icon Styling */
.carousel-arrow .material-icons {
    font-size: 32px;
}




/* Carousel wrapper keeps overflow hidden */
.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Track: flex row, no fixed width. We'll move it using translateX */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;               /* important: don't wrap slides to next row */
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Each shelf is one slide. Use min-width to ensure each slide equals wrapper width */
.shelf {
  min-width: 100%;                 /* each slide takes full wrapper width */
  width: 100%;                     /* ensure internal sizing uses wrapper width */
  flex: 0 0 100%;                  /* prevent shrinking/growing */
  box-sizing: border-box;
  padding: 10px;
  overflow: hidden;                /* clip any accidental overflow */
}

.shelf .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px); /* Fixed column width for cards */
    justify-content: center;        /* ⬅ center cards horizontally */
    justify-items: center;          /* ⬅ center the items inside their grid cells */
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 15px;
}

.product-card .heart {
    position: absolute;      /* Float over card */
    bottom: 10px;            /* 10px from bottom */
    right: 10px;             /* 10px from right */
    width: 25px;             /* reset inherited width */
    height: 25px;           /* reset inherited height */
    margin: 0;               /* reset inherited margin */
    padding: 0;              /* reset inherited padding */
    display: inline-block;   /* reset inherited display */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;             /* make sure it’s above content */
    transition: transform 0.2s ease;
    font-size: 28px; /* icon size */
    color: #888;     /* default gray */
    
}

.product-card .heart.favoured {
    color: red;
}

.product-card .heart:hover {
    transform: scale(1.3);
}

/* styling for logo, centered at top of page */
.logo {
    display: block;
    margin: 20px auto;
    width: 300px;
    height: auto;
    /*Overide other styles*/
    border-radius: 0;
    box-shadow: none;
}


/* Footer container */
.site-footer {
    width: 100%;
    height: 40px;
    background: #f3f3f6;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid #ddd;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    position: fixed;

    bottom: 0;
}

/* Buttons inside footer */
.footer-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 600;
}

/* Primary button (Favourites) */
.footer-btn.primary {
    background: #290f44;
    color: white;
}

.footer-btn.primary:hover {
    background: #3a0f66;
}

/* Secondary button (Restock — more subtle) */
.footer-btn.secondary {
    background: #e4e4e7;
    color: #333;
    border: 1px solid #d0d0d3;
    /* align to right */
    position: absolute;
    left: 20px;
    bottom: 20px;

}

.footer-btn.secondary:hover {
    background: #d9d9dd;
}
