body {
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

@font-face {
  font-family: 'my font';
  src: url(fonts/Quicksand-Regular.ttf);
}

html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    font-family: 'my font', sans-serif;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.orders-section {
    flex: 1;
    background-color: #ffffff;
    padding: 0;
}

.orders-content {
    padding: 20px 40px;
    margin-top: -20px;
}

.orders-content h2 {
    color: #f4a6a6;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 30px;
    margin-top: 30px;
    letter-spacing: 1px;
}

/* Empty cart styles */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.continue-shopping-btn {
    background-color: #d4757a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.continue-shopping-btn:hover {
  background-color: #ff4a4a; 
  transform: scale(1.05); 
}

.order-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
    margin-top: -15px;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-price {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.qty-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-display {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    font-weight: bold;
}

.remove-btn {
    color: #c4423a;
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.remove-btn:hover {
    opacity: 0.7;
}

.item-total {
    font-size: 18px;
    font-weight: bold;
    color: #c4423a;
    min-width: 100px;
    text-align: right;
}

.checkout-section {
    width: 400px;
    background: #b85450;
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.checkout-content {
    flex: 1;
    padding: 30px;
}

.checkout-section h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.address-section {
    margin-bottom: 30px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.address-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.2);
}

.address-status.saved {
    background-color: rgb(255, 255, 255);
    color: #000000;
    border: 1px solid rgb(255, 255, 255);
}

.address-info {
    display: flex;
    gap: 15px;
}

.location-icon {
    font-size: 18px;
}

.address-details {
    flex: 1;
}

.customer-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
}

.address-details .city {
    font-weight: bold;
    margin-bottom: 5px;
}

.address-details .address-line {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.phone-info, .email-info {
    font-size: 11px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-address-btn {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-address-btn:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.delivery-section {
    margin-bottom: 30px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.delivery-option:hover {
    background-color: rgba(255,255,255,0.2);
}

.delivery-option.selected {
    border-color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.2);
}

.delivery-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.delivery-info {
    flex: 1;
}

.delivery-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.delivery-details {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.3;
}

.delivery-price {
    font-weight: bold;
    font-size: 14px;
}

.delivery-logo {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
}

.delivery-date-section {
    margin-bottom: 30px;
}

.date-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-date-input {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.delivery-date-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.2);
}

.delivery-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-note {
    font-size: 11px;
    opacity: 0.8;
    font-style: italic;
}

.payment-section {
    margin-bottom: 30px;
}

.payment-dropdown {
    position: relative;
}

.payment-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.payment-selected:hover {
    background-color: rgba(255,255,255,0.15);
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.payment-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.payment-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.95);
    border-radius: 6px;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
}

.payment-dropdown.open .payment-options {
    max-height: 200px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option:hover {
    background-color: rgba(196,66,58,0.1);
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.summary-section {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.detail-value {
    color: white;
}

.detail-row.total {
    font-weight: bold;
    font-size: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 15px;
    border-bottom: none;
}

.order-note {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    border-left: 4px solid rgba(255,255,255,0.5);
}

.order-note p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.checkout-btn {
    width: 100%;
    background-color: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover:not(:disabled) {
    background-color: rgba(255,255,255,0.3);
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.success-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .checkout-section {
        width: 100%;
    }
    
    .orders-content {
        padding: 20px;
    }
    
    .address-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .address-status {
        align-self: flex-end;
    }
    
    .delivery-date-input {
        font-size: 16px; 
    }
}

/* === NAVIGATION BAR === */
.sticky-nav {
    background-color: #f7f2b7;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ccc;
}

.nav-logo {
    width: 100px;
    border-radius: 50%;
    margin-right: 20px;
}

.navbar {
    list-style: none;
    justify-content: space-between;
    display: flex;
    gap: 30px;
    padding-right: -30px;
    margin: 0;
    font-size: 20px;
}

.navbar li {
    display: flex;
}

.navbar li a {
    text-decoration: none;
    color: #231955;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 16px;
    transition: 0.3s;
}

.navbar li a:hover {
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
}

.dropbtn {
    border: none;
    background-color: #f7f2b7;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

.dropdown {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #231955;
}

.dropdownContent {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdownContent a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdownContent a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdownContent {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #ff6b6b;
    border-bottom: 2px solid #0073e6;
}

.social-icons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons i,
.user-icons i {
    font-size: 28px;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.social-icons a,
.user-icons a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.phone-number {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.social-icons i:hover,
.user-icons i:hover {
    transform: scale(1.1);
    color: #007bff;
}

.fa-facebook:hover {
    color: #1877f2;
}

.fa-square-instagram:hover {
    color: #e4405f;
}

.fa-phone:hover {
    color: #28a745;
}

.fa-cart-shopping:hover {
    color: #ffc107;
}

.fa-circle-user:hover {
    color: #6f42c1;
}

@media (max-width: 768px) {
    .social-icons-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 3%;
    }
    
    .social-icons,
    .user-icons {
        gap: 20px;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .social-icons i,
    .user-icons i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .phone-number {
        display: none;
    }
    
    .social-icons,
    .user-icons {
        gap: 15px;
    }
}

.menu-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    background: #231955;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 5px;
}

.account-dropdown {
    position: center;
    display: inline-block;
    cursor: pointer;
}

.account-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.account-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.account-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.account-dropdown:hover .account-dropdown-content {
    display: block;
}

.account-dropdown .fa-circle-user {
    font-size: 20px;
    color: inherit;
    transition: color 0.3s ease;
}

.account-dropdown:hover .fa-circle-user {
    color: #007bff;
}

/* Footer Styles */
.footer {
  background-color: #f7f2b7;  
  padding: 40px 20px 10px;
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  position: relative;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-logo {
  flex: 1;
  min-width: 300px;
  margin-bottom: 20px;
  margin-right: 20px; 
}

.footer-logo img {
  width: 50px; 
  height: 50px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-logo h3 {
  color: #e88e8e;  
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  flex: 2;
}

.links-column, .footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  margin-left: 30px;
}

.footer-column h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.links-column a, .footer-column a {
  color: #555;  
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.links-column a:hover, .footer-column a:hover {
  color: #e88e8e;  
}

nav {
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
}

.copyright {
  text-align: center;
  padding: 15px 0;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

/* Media Query for max-width 968px */
@media (max-width: 968px) {
  .footer-content {
      flex-direction: column;
      gap: 30px;
  }

  .footer-links {
      flex-wrap: wrap;
      gap: 30px;
  }
}

/* Media Query for max-width 768px */
@media (max-width: 768px) {
  /* Header Layout */
  .header {
      flex-direction: column;
      padding: 15px;
  }

  .header-right {
      margin-top: 15px;
  }

  .nav-menu {
      margin: 15px 0;
      flex-wrap: wrap;
      justify-content: center;
  }

  .social-icons-header {
      margin-bottom: 10px;
  }

  /* Footer Layout */
  .footer-container {
      flex-direction: column;
  }

  .footer-logo,
  .footer-column {
      min-width: 100%;
  }

  /* Navbar and Burger */
  .navbar {
      position: fixed;
      top: 0;
      left: -300px;
      width: 300px;
      height: 100%;
      background-color: #f7f2b7;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 200px 20px 20px;
      transition: left 0.3s ease;
      z-index: 1000;
      gap: 10px;
  }

  .menu-toggle:checked ~ .navbar {
      left: 0;
  }

  .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 999;
  }

  .menu-toggle:checked ~ .overlay {
      display: block;
  }

  .burger {
      display: flex;
      order: -1;
      margin-right: 20px;
      z-index: 1001;
  }

  .menu-toggle:checked ~ .burger span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .burger span:nth-child(2) {
      opacity: 0;
  }

  .menu-toggle:checked ~ .burger span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  }

  .sticky-nav {
      justify-content: space-between;
      align-items: center;
  }

  .logo-container {
      flex: 1;
      text-align: center;
  }

  /* Cake Sizes Section */
  .cake-sizes {
      flex-direction: column;
      align-items: center;
  }

  /* Footer Links */
  .footer-links {
      flex-direction: column;
      gap: 20px;
  }
}

/* Notification Styles */
.notification-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.account-dropdown-content {
    min-width: 350px;
    max-width: 400px;
}

.notification-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.notification-header span {
    font-weight: 600;
    color: #333;
}

.mark-all-read {
    background: none;
    border: none;
    color: #d4757a;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.mark-all-read:hover {
    background: #f8f9fa;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.notification-content {
    flex: 1;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #fff8f0;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
}

.notification-message {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-order {
    font-size: 12px;
    color: #d4757a;
    font-weight: 600;
    margin-bottom: 3px;
}

.delete-notification-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.delete-notification-btn:hover {
    transform: scale(1.1);
    color: #c0392b;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.account-links {
    padding-top: 10px;
}

.account-links a {
    display: block;
    padding: 10px 15px;
}

.delivery-note {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

/* Order Modal Styles */
.order-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.order-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.order-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #d4757a 0%, #b85d62 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.order-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    padding: 5px;
    line-height: 1;
}

.order-modal-body {
    padding: 30px 30px 50px 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
