@charset "utf-8";
/* CSS Document */

body {
      background: url('images/background-scale.png') no-repeat center center fixed;
      background-size: cover;
      font-family: 'Georgia', serif;
      color: #4B3A22;
      padding: 40px;
      line-height: 1.6;
    }

    .parchment-container {
      max-width: 800px;
      margin: auto;
      background-color: rgba(255, 248, 220, 0.85);
      padding: 40px;
      border: 2px solid #c0a060;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
      border-radius: 10px;
    }

h1, h2 {
	color: #d0aaff;
        text-shadow: 0 0 10px #d0aaff;
}

.product, .cart {
        border: 1px solid #9b59b6;
        padding: 10px;
        margin-bottom: 10px;
        background-color: #2c234d;
        box-shadow: 0 0 10px #3e2f5b;
        border-radius: 8px;
}

.product button, .cart button, input[type="submit"] {
        background-color: #8e44ad;
        border: none;
        color: #fff;
        padding: 8px 12px;
        margin-left: 10px;
        border-radius: 5px;
        cursor: pointer;
}

.product button:hover, .cart button:hover, input[type="submit"]:hover {
        background-color: #732d91;
}

.product-rating {
  font-size: 0.9rem;
  margin: 0.3em 0 0.6em;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.product-rating .stars {
  font-size: 1rem;
  color: #f1c40f; /* gold-ish stars */
}

.product-rating--empty {
  color: #999;
  font-style: italic;
}

.error {
        color: #ff6b6b;
}
a {
        color: #b39ddb;
        text-decoration: none;
}
.logo {
        max-width: 200px;
}

.description {
        font-size: 1.1em;
        margin-bottom: 30px;
}

.fb-page {
    max-width: 100%;
    overflow: hidden;
}

.gallery img {
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.breadcrumb {
    font-size: 14px;
    margin: 10px 0;
    color: #666;
}

.breadcrumb a {
    color: #0077cc;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #000;
    font-weight: bold;
}

.star {
    font-size: 20px;
    color: gold;
}

.magic-menu {
    background: linear-gradient(to right, #2e1a47, #3b1e5f);
    padding: 15px 0;
    box-shadow: 0 0 15px #b38cff;
    border-top: 4px solid #cc99ff;
}

.magic-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.magic-menu li {
    margin: 0 20px;
    position: relative;
}

.magic-menu a {
    color: #f3e5f5;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
}

.magic-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px #cc99ff;
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 0 10px #b38cff, inset 0 0 5px #b38cff;
}

.magic-menu span {
    font-size: 1.3rem;
}

@media (max-width: 600px) {
    .magic-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .magic-menu li {
        margin: 10px 0;
    }
}

.magic-menu a.active {
  font-weight: bold;
  background: rgba(255,255,255,0.1);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.magic-menu .has-dropdown {
    position: relative;
}

.magic-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background: #442258;
    border: 1px solid #a67fe3;
    border-radius: 6px;
    box-shadow: 0 0 10px #b38cff;
    padding: 0;
    min-width: 160px;
    z-index: 999;
}

.magic-menu .dropdown li {
    margin: 0;
}

.magic-menu .dropdown a {
    display: block;
    padding: 10px 15px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.magic-menu .has-dropdown:hover .dropdown {
    display: block;
}

.magic-menu .dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px #cc99ff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
	flex: 1;
	margin: 20px;
}

.product {
    background: #2e1a47;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: #f3e5f5;
    box-shadow: 0 0 10px #b38cff;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: scale(1.05);
}

.shop-container {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.filter-sidebar {
    width: 250px;
    background: #2e1a47;
    padding: 20px;
    color: #f3e5f5;
    border-radius: 10px;
    box-shadow: 0 0 10px #cc99ff;
    font-size: 0.95rem;
}

.filter-sidebar h3 {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #cc99ff;
}

.filter-sidebar input[type="number"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 4px;
}

.product img {
    border-radius: 6px;
}

mark {
    background-color: #ffeb3b;
    padding: 0 3px;
    border-radius: 3px;
}

.admin-login-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}

.admin-login-btn button {
  padding: 8px 16px;
  background-color: #6a1b9a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 6px #cc99ff;
  transition: background-color 0.3s ease;
}

.admin-login-btn button:hover {
  background-color: #8e24aa;
}

.customer-login-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: right;
}

.customer-login-btn button {
  padding: 8px 14px;
  background-color: #4a148c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 6px #cc99ff;
  margin-left: 8px;
}

.customer-login-btn button:hover {
  background-color: #6a1b9a;
}

/* The Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 10px;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

input[type=email], input[type=password] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #4a148c;
  color: white;
  padding: 10px;
  border: none;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #6a1b9a;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.login-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #a67fe3;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #8a5bd0;
}

.product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

.product {
            background: #2e1a47;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 0 8px #cc99ff;
            color: #f3e5f5;
            text-align: center;
        }

.product img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin-bottom: 10px;
        }

.product button {
            margin-top: 10px;
            padding: 8px 12px;
            background-color: #a67fe3;
            border: none;
            color: white;
            border-radius: 6px;
            cursor: pointer;
        }

.product button:hover {
            background-color: #8a5bd0;
        }

.category-nav {
            text-align: center;
            margin-top: 20px;
        }

.category-nav a {
            margin: 0 10px;
            padding: 6px 12px;
            color: #f3e5f5;
            background: #3b1e5f;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.2s ease-in-out;
        }

.category-nav a:hover,
.category-nav .active {
            background: #cc99ff;
            color: #2e1a47;
        }

.error {
            color: #ffaaaa;
            text-align: center;
        }
		
.filter-sidebar {
    float: left;
    width: 200px;
    padding: 15px;
    background-color: #3b1e5f;
    color: #f3e5f5;
    border-radius: 10px;
    margin-right: 20px;
}
.shop-container {
    display: flex;
}

.cart-widget {
  position: absolute;
  top: 20px;
  right: 20px;
}

.cart-link {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  position: relative;
  padding: 8px 12px;
  background-color: #6c4db0;
  border-radius: 8px;
  transition: background 0.3s;
}

.cart-link:hover {
  background-color: #8a63d2;
}

.cart-badge {
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  padding: 3px 8px;
  font-size: 0.8em;
  position: absolute;
  top: -8px;
  right: -10px;
}

.success {
    background-color: #dff0d8;
    border-left: 5px solid #3c763d;
    color: #3c763d;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.pagination-container {
  text-align: center;
  margin-top: 20px;
}

.pagination-button {
  background-color: #6a1b9a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 4px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 6px #cc99ff;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pagination-button:hover {
  background-color: #8e24aa;
}

.pagination-button.active {
  background-color: #4a148c;
  cursor: default;
}

.product-page {
  max-width: 1200px;
  margin: 20px auto 40px;
  background-color: rgba(255, 248, 220, 0.95); /* parchment-ish */
  padding: 20px 25px;
  border: 2px solid #c0a060;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  font-family: 'Georgia', serif;
  color: #4B3A22;
}

.product-main-layout {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr; /* images | info | buy box */
  gap: 20px;
}

/* Left column: images */
.product-media-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-main-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #d8a9ff;
  background: #fdf7ff;
}

.product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d8a9ff;
  cursor: pointer;
}

/* Center column: info */
.product-info-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  font-size: 1.8rem;
  color: #4B3A22;
  margin-bottom: 0.3em;
}

.product-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.95rem;
}

.product-rating-summary .stars {
  color: #f1c40f;
}

.product-rating-summary .reviews-link {
  margin-left: 0.5em;
  color: #6a3d9a;
  text-decoration: none;
  font-size: 0.9rem;
}

.product-rating-summary .reviews-link:hover {
  text-decoration: underline;
}

.product-meta {
  font-size: 0.9rem;
  color: #6b5840;
}

.product-description-preview p {
  margin-top: 0.4em;
}

.product-specs-preview ul {
  padding-left: 1.2em;
  margin-top: 0.3em;
}

/* Right column: buy box */
.product-buy-column {
  display: flex;
  justify-content: flex-start;
}

.buy-box {
  width: 100%;
  border: 1px solid #d8a9ff;
  border-radius: 8px;
  padding: 15px;
  background: #f5ebff;
  box-shadow: 0 0 10px rgba(200, 150, 255, 0.25);
  font-size: 0.95rem;
}

.buy-price {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.buy-price .label {
  font-weight: bold;
  margin-right: 0.2em;
}

.buy-price .value {
  color: #6a3d9a;
  font-weight: bold;
}

.buy-stock {
  margin-bottom: 0.8em;
}

.buy-stock.in-stock {
  color: #2e7d32;
  font-weight: bold;
}

.buy-stock.out-of-stock {
  color: #c0392b;
  font-weight: bold;
}

.buy-form {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.buy-form select {
  max-width: 80px;
}

.buy-button {
  background-color: #6a3d9a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.3em;
  transition: background 0.3s, transform 0.05s;
}

.buy-button:hover:not(:disabled) {
  background-color: #9d5bce;
}

.buy-button:active:not(:disabled) {
  transform: scale(0.97);
}

.buy-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.buy-note {
  margin-top: 0.8em;
  font-size: 0.8rem;
  color: #6b5840;
}

/* Lower layout: description + reviews */
.product-lower-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 30px;
}

.product-full-details h2,
.product-reviews h2 {
  margin-bottom: 0.4em;
}

.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-item {
  border-bottom: 1px solid #e0d0b8;
  padding: 10px 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-header .star {
  color: #f1c40f;
}

.review-body {
  margin-top: 4px;
}

.review-meta small {
  color: #8a7a60;
}

.review-form {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
  width: 100%;
  max-width: 400px;
}

/* General */
.breadcrumb {
  max-width: 1200px;
  margin: 15px auto 5px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #6a3d9a;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.back-link {
  margin-top: 20px;
  text-align: right;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .product-main-layout {
    grid-template-columns: 1fr;
  }
  .product-buy-column {
    order: 3;
  }
  .product-media-column {
    order: 1;
  }
  .product-info-column {
    order: 2;
  }
  .product-lower-layout {
    grid-template-columns: 1fr;
  }
}

