/* ============================================================
   DIVA SHOP — Admin base styles
   This is the original (pre-Phase-4) global stylesheet, kept
   as-is for the admin pages so their layout stays unchanged.
   Only the color palette was swapped to Diva pink.
   ============================================================ */

/* Global Styles */
:root {
  --bg: #fefafb;
  --bg-soft: #f8eef2;
  --primary: #d5548a;
  --secondary: #be3e74;
  --rose-active: #9c2f5f;
  --accent: #d4af37;
  --light: #fefafb;
  --dark: #5c2140;
  --plum-deep: #3f1530;
  --ink: #4a2338;
  --text: #4a2338;
  --gray: #8a4d68;
  --muted: #8a4d68;
  --line: #edd0dc;
  --card: #ffffff;
  --shadow-soft: 0 8px 22px rgba(92, 33, 64, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(92, 33, 64, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(92, 33, 64, 0.22);
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 8px 22px rgba(92, 33, 64, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-left: 10px;
  border-radius: 10px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 5px 15px #efa9c9;
  transition: transform 0.3s ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo h1 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.slide-content {
  position: absolute;
  bottom: 15%;
  right: 10%;
  background: transparent !important;
  padding: 0;
  max-width: 500px;
  text-align: right;
}

.slide-content h2 {
  color: white;
  margin-bottom: 15px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.slide-content .btn {
  background: linear-gradient(135deg, #e27da8, #d5548a);
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #d5548a, #be3e74);
}

/* Slide Dots */
.slide-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: white;
  transform: scale(1.2);
  border-color: #d5548a;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

/* Categories Section */
.section-title {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 32px;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.category-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-name {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
}

/* Products Page */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-img:hover {
  transform: scale(1.02);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary);
  text-align: right;
}

.product-price {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: right;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  direction: ltr;
}

.quantity-btn {
  background-color: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.quantity-btn:hover {
  background-color: #e0e0e0;
}

.quantity-display,
.quantity-input {
  font-weight: 600;
  width: 60px;
  text-align: center;
}

.quantity-input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: inherit;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type="number"] {
  -moz-appearance: textfield;
}

.add-to-cart {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
  width: 100%;
}

.add-to-cart:hover {
  background-color: var(--primary);
}

/* Cart Page */
.cart-items {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.cart-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-left: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cart-item-img:hover {
  transform: scale(1.05);
}

.cart-item-details {
  flex: 1;
  text-align: right;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 18px;
}

.cart-item-price {
  color: var(--secondary);
  font-weight: 700;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  direction: ltr;
}

.cart-item-quantity input {
  width: 60px;
  text-align: center;
  margin: 0 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.remove-item {
  color: #e74c3c;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 15px;
  font-size: 16px;
}

.cart-summary {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  text-align: right;
}

.shipping-region {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.shipping-region label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.shipping-region select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  color: var(--text);
  cursor: pointer;
  transition: border 0.3s;
  text-align: right;
}

.shipping-region select:focus {
  border-color: var(--secondary);
  outline: none;
}

.shipping-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.summary-total {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.customer-info {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  text-align: right;
}

.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-group label,
.form-group .form-group-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border 0.3s;
  text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

.confirm-order {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.3s;
  display: block;
  margin: 0 auto 30px;
}

.confirm-order:hover {
  background-color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 15px;
  color: #ecf0f1;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  margin-bottom: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 10px;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary);
}

.copyright {
  font-size: 14px;
  color: #bdc3c7;
  text-align: center;
}

/* Product Image Modal */
.product-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.modal-content {
  position: relative;
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.modal-close:hover {
  color: var(--secondary);
}

.modal-caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 18px;
}

/* Loading animation for modal */
.modal-content {
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    margin-top: 15px;
    justify-content: center;
  }

  .slide {
    height: 300px;
  }

  .slide-content {
    right: 20px;
    bottom: 20px;
  }

  .slide-content h2 {
    font-size: 24px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .categories,
  .products {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-img {
    margin-bottom: 15px;
    margin-left: 0;
  }

  .cart-item-quantity {
    margin-top: 15px;
  }

  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: 10px;
    left: 20px;
    font-size: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links a {
    margin: 5px 10px;
  }
}

/* Text center utility class */
.text-center {
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
