/* ==========================================
   TAKKOUSH FLOWERS - COMPLETE STYLES
   ========================================== 
   Add these styles to your existing CSS file
   OR create a new file called styles-additions.css
*/

/* ==========================================
   NOTIFICATIONS
   ========================================== */

/* Success Notification (when item added to cart) */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  font-size: 14px;
}

/* Error Notification */
.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #f44336;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
  font-size: 14px;
}

/* ==========================================
   ORDER CONFIRMATION MODAL
   ========================================== */

.order-confirmation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease-out;
}

.confirmation-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease-out;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  margin: 0 auto 20px;
  font-weight: bold;
}

.confirmation-content h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.confirmation-content p {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 15px;
}

.confirmation-content button {
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.confirmation-content button:hover {
  background-color: #45a049;
}

/* ==========================================
   LOADING STATES
   ========================================== */

/* Disabled button state */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   FORM VALIDATION STYLES
   ========================================== */

.form-error {
  color: #f44336;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

input.error,
textarea.error,
select.error {
  border-color: #f44336 !important;
  background-color: #fff5f5;
}

input.valid,
textarea.valid,
select.valid {
  border-color: #4CAF50 !important;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .error-notification,
  .cart-notification {
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 13px;
    padding: 12px 20px;
  }

  .confirmation-content {
    margin: 20px;
    padding: 30px 20px;
    max-width: 90%;
  }

  .confirmation-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .confirmation-content h3 {
    font-size: 20px;
  }

  .confirmation-content p {
    font-size: 14px;
  }

  .confirmation-content button {
    padding: 10px 25px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cart-notification,
  .error-notification {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .confirmation-content {
    padding: 25px 15px;
  }
}

/* ==========================================
   ADDITIONAL CART STYLES (if needed)
   ========================================== */

.empty-cart {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 16px;
}

/* Smooth transitions for cart items */
.cart-item {
  transition: all 0.3s ease;
}

.cart-item:hover {
  background-color: #f9f9f9;
}

/* Button hover effects */
button {
  transition: all 0.3s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
   /* ===== COPYRIGHT BAR ===== */
.copyright-bar {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  line-height: 1.6;
}
.copyright-bar p { margin: 0; }

/* ===== CART MOBILE FIX ===== */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: row !important;
    text-align: left !important;
    gap: 10px;
    align-items: flex-start;
  }

  .cart-item img {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px;
    object-fit: cover;
    border-radius: 6px;
  }

  .cart-item-details {
    flex: 1;
    min-width: 0;
  }

  .cart-item-details h4 {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px;
  }

  .cart-item-total {
    text-align: right;
    min-width: 55px;
  }

  .cart-item-total p {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .quantity-controls button {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/* ===== IMAGE PROTECTION ===== */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== WRAP COLOR SELECTOR ===== */
.wrap-selector {
  margin: 10px 0 4px;
  padding: 10px 12px;
  background: #fff9fb;
  border: 1px solid rgba(233,30,99,0.15);
  border-radius: 8px;
}
.wrap-selector-label {
  font-size: 11px;
  font-weight: 600;
  color: #ad1457;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wrap-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}
.wrap-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
  flex-shrink: 0;
}
.wrap-swatch:hover { transform: scale(1.15); }
.wrap-swatch.selected {
  border-color: #e91e63;
  box-shadow: 0 0 0 2px rgba(233,30,99,0.3);
  transform: scale(1.12);
}
.wrap-swatch.transparent-swatch {
  background: white !important;
  border: 2px dashed #bbb;
}
.wrap-swatch.transparent-swatch.selected {
  border-color: #e91e63;
  border-style: dashed;
}
/* None swatch */
.wrap-swatch.none-swatch {
  background: #f0f0f0;
  border: 2px solid #ccc;
  color: #999;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.wrap-swatch.none-swatch.selected {
  border-color: #e91e63;
  color: #e91e63;
  background: #fff0f5;
  box-shadow: 0 0 0 2px rgba(233,30,99,0.3);
}
/* Custom swatch */
.wrap-swatch.custom-swatch {
  background: linear-gradient(135deg, #F9D5E0 0%, #C9A84C 50%, #4A7C59 100%);
  border: 2px solid #ccc;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.wrap-swatch.custom-swatch.selected {
  border-color: #e91e63;
  box-shadow: 0 0 0 2px rgba(233,30,99,0.3);
}
.wrap-selected-name {
  font-size: 11px;
  color: #888;
  font-style: italic;
}
.wrap-selected-name span {
  color: #c2185b;
  font-weight: 600;
  font-style: normal;
}
/* Custom text input */
.wrap-custom-input {
  display: none;
  margin-top: 7px;
}
.wrap-custom-input input {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid rgba(233,30,99,0.35);
  border-radius: 6px;
  font-size: 12px;
  color: #333;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s;
}
.wrap-custom-input input:focus { border-color: #e91e63; }
.wrap-custom-input input::placeholder { color: #bbb; }

/* Cart item wrap badge */
.cart-item-wrap {
  font-size: 12px;
  color: #c2185b;
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cart-item-wrap-swatch {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* Checkout summary wrap line */
.checkout-list { list-style: none; padding: 0; margin: 0 0 10px; }
.checkout-list li { padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.checkout-list li > div { display: flex; justify-content: space-between; font-size: 14px; color: #444; }
.checkout-wrap-line {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding-left: 2px;
}
.checkout-wrap-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* ===== WRAP TOGGLE BUTTON ===== */
.wrap-selector {
  margin: 10px 0 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.wrap-toggle-btn {
  width: 100%;
  padding: 9px 14px;
  background: #fff9fb;
  border: 1.5px solid rgba(233,30,99,0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ad1457;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.wrap-toggle-btn:hover {
  background: #fce4ec;
  border-color: #e91e63;
}
.wrap-toggle-btn.wrap-toggle-open {
  background: #fce4ec;
  border-color: #e91e63;
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}
.wrap-toggle-btn.wrap-toggle-chosen {
  border-color: #e91e63;
  background: #fff0f5;
}
.wrap-toggle-btn strong {
  color: #e91e63;
}
.wrap-toggle-arrow {
  font-size: 11px;
  margin-left: 6px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.wrap-body {
  background: #fff9fb;
  border: 1.5px solid #e91e63;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 10px 12px 12px;
  animation: wrapFadeIn 0.15s ease;
}
@keyframes wrapFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}