/* ========================================
   FOODGASM DELIVERY - CUSTOM STYLES
   Enhanced with New Color Scheme
   ======================================== */

.ul-foods-container { max-width: 95vw; margin-left: auto; margin-right: auto; }
@media (min-width: 1200px) { .ul-foods-container { max-width: 92vw; } }
@media (min-width: 1400px) { .ul-foods-container { max-width: 90vw; } }
@media (min-width: 1600px) { .ul-foods-container { max-width: 88vw; } }

/* ========================================
   ENHANCED BUTTON STYLES
   ======================================== */

.ul-btn {
  /* background: var(--fg-secondary-gradient); */
  background: var(--fg-secondary);
  border: none;
  color: var(--fg-text-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  /* overflow: hidden; */
}

.ul-btn:hover {
  background: var(--fg-secondary-gradient-hover);
  color: var(--fg-text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--fg-shadow-medium);
  text-decoration: none;
}

.ul-btn:active {
  transform: translateY(0);
}

.ul-btn i {
  transition: transform 0.3s ease;
}

.ul-btn:hover i {
  transform: translateX(2px);
}

/* Primary Button Variant */
.ul-btn-primary {
  background-color: var(--fg-primary);
  color: var(--fg-text-white);
}

.ul-btn-primary:hover {
  background-color: var(--fg-primary-light);
  color: var(--fg-text-white);
}

/* ========================================
   ENHANCED CART BADGE
   ======================================== */

.cart-badge {
  background: var(--fg-secondary-gradient);
  color: var(--fg-text-white);
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -10px;
  box-shadow: 0 2px 4px var(--fg-shadow-light);
}

/* ========================================
   ENHANCED HEADER STYLES
   ======================================== */

.ul-header {
  background-color: var(--fg-primary);
  box-shadow: 0 2px 8px var(--fg-shadow-light);
}

.ul-header .nav-link {
  color: var(--fg-text-white);
  transition: color 0.3s ease;
}

.ul-header .nav-link:hover {
  color: var(--fg-secondary-light);
}

/* Logo styling for dark header */
.ul-header .logo {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  max-width: 180px;
  /* max-height: 50px; */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* .ul-header .logo:hover {
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(45deg);
} */

/* Footer logo styling - responsive sizing */
.ul-footer-about img {
  /* max-width: 200px;
  max-height: 60px; */
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* .ul-footer-about img:hover {
  transform: scale(1.05);
} */

/* ========================================
   MAIN HEADER AUTHENTICATION STYLES
   ======================================== */

/* Ensure icons are properly displayed */
.ul-header-auth-main i {
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main header authentication container */
.ul-header-auth-main {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 20px;
}

/* User profile link in main header */
.user-profile-link-main {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
}

.user-profile-link-main:hover {
  background: rgba(0,0,0,0.15);
  color: #1f2937;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.2);
}

.user-profile-link-main i {
  font-size: 16px;
  color: #1f2937;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.user-name {
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logout link in main header */
.logout-link-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #dc2626;
  text-decoration: none;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.3s ease;
  font-size: 14px;
}

.logout-link-main:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #dc2626;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.3);
}

.logout-link-main i {
  font-size: 14px;
  color: #dc2626;
  display: inline-block;
  width: 14px;
  height: 14px;
}

/* Authentication links for non-logged in users */
.auth-links-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-link-main {
  color: var(--fg-text-primary) !important;
  text-decoration: none !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  background: var(--fg-bg-primary) !important;
  border: 2px solid var(--fg-border-medium) !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 80px !important;
  box-shadow: 0 2px 4px var(--fg-shadow-light) !important;
}

.auth-link-main:hover {
  background: var(--fg-secondary-gradient) !important;
  color: var(--fg-text-white) !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  border-color: var(--fg-secondary) !important;
  box-shadow: 0 4px 12px var(--fg-shadow-medium) !important;
}

.auth-link-main:active {
  transform: translateY(0) !important;
}

.auth-separator {
  color: var(--fg-text-secondary) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  margin: 0 4px !important;
}

/* Enhanced button styling for better visibility */
.auth-link-main:first-child {
  background: var(--fg-secondary-gradient) !important;
  color: var(--fg-text-white) !important;
  border-color: var(--fg-secondary) !important;
}

.auth-link-main:first-child:hover {
  background: var(--fg-secondary-gradient-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px var(--fg-shadow-medium) !important;
}

.auth-link-main:last-child {
  background: var(--fg-bg-primary) !important;
  color: var(--fg-text-primary) !important;
  border-color: var(--fg-border-medium) !important;
}

.auth-link-main:last-child:hover {
  background: var(--fg-primary) !important;
  color: var(--fg-text-white) !important;
  border-color: var(--fg-primary) !important;
}

/* Mobile responsiveness for main header auth */
@media (max-width: 768px) {
  .ul-header-auth-main {
    display: none !important;
  }
  
  .auth-links-main {
    gap: 8px;
  }
  
  .auth-link-main {
    padding: 8px 14px !important;
    font-size: 13px !important;
    min-width: 70px !important;
  }
}

@media (max-width: 480px) {
  .auth-links-main {
    gap: 6px;
  }
  
  .auth-link-main {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-width: 60px !important;
  }
}

/* ========================================
   ENHANCED FOOTER STYLES
   ======================================== */

.ul-footer {
  background-color: var(--fg-primary);
  color: var(--fg-text-white);
}

.ul-footer a {
  color: var(--fg-text-white);
  transition: color 0.3s ease;
}

.ul-footer a:hover {
  color: #f68622;
  text-shadow: 0 8px 25px rgba(246, 134, 34, 0.3);
  transition: all 0.3s ease;
}

/* ========================================
   ENHANCED CARD STYLES
   ======================================== */

.ul-card {
  background-color: var(--fg-bg-primary);
  border: 1px solid var(--fg-border-light);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--fg-shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.ul-card:hover {
  box-shadow: 0 4px 16px var(--fg-shadow-medium);
  transform: translateY(-2px);
  border-color: var(--fg-secondary);
}

/* ========================================
   ENHANCED PRICE STYLES
   ======================================== */

.ul-price {
  color: var(--fg-secondary);
  font-weight: 700;
  font-size: 1.2em;
}

.ul-price-old {
  color: var(--fg-text-secondary);
  text-decoration: line-through;
  font-size: 0.9em;
}

/* ========================================
   ENHANCED FORM STYLES
   ======================================== */

.ul-form-control {
  border: 1px solid var(--fg-border-medium);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--fg-text-primary);
  background-color: var(--fg-bg-primary);
  transition: all 0.3s ease;
}

.ul-form-control:focus {
  border-color: var(--fg-secondary);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  outline: none;
}

/* ========================================
   ENHANCED STATUS BADGES
   ======================================== */

.ul-badge-success {
  background-color: var(--fg-success);
  color: var(--fg-text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ul-badge-error {
  background-color: var(--fg-error);
  color: var(--fg-text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ul-badge-warning {
  background-color: var(--fg-warning);
  color: var(--fg-text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.ul-gold-pulse {
  animation: goldPulse 2s infinite;
}

/* ========================================
   ENHANCED RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .ul-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .ul-card {
    margin-bottom: 20px;
  }
  
  .ul-header .logo {
    max-width: 120px;
  }
  
  /* .ul-footer-about img {
    max-width: 150px;
    max-height: 45px;
  } */
}


/* Item details: scoped overrides (only inside .ul-shop-details) */
.ul-shop-details .ul-shop-details-img img { width: 100%; height: auto; border-radius: 12px; }
.ul-shop-details .ul-shop-details-price { font-size: 28px; font-weight: 700; color: #111; }
.ul-shop-details .ul-shop-details-variation .list-group-item { border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; }
.ul-shop-details .ul-shop-details-variation .price-now { color: #e11d48; font-weight: 700; }
.ul-shop-details .ul-shop-details-variation .price-was { color: #9ca3af; }
.ul-shop-details .ul-shop-details-variation.is-required { background: #ffe9ed; padding: 16px; border-radius: 10px; }
.ul-shop-details .ul-shop-details-variation.is-completed { background: #f4f5f7; padding: 16px; border-radius: 10px; }
.ul-shop-details .ul-option-list .list-group-item { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; padding: 12px 14px; }
.ul-shop-details .ul-option-list input[type=radio],
.ul-shop-details .ul-option-list input[type=checkbox] { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d1d5db; }
.ul-shop-details .ul-addon-price { color:#e11d48; font-weight:700; }

/* Small pill badges */
.ul-pill { display:inline-block; padding:4px 10px; border-radius:16px; font-size:12px; font-weight:600; }
.ul-pill--required { background:#f43f5e; color:#fff; }
.ul-pill--completed { background:#10b981; color:#fff; }
.ul-pill--optional { background:#e5e7eb; color:#374151; }
/* Button styles removed to use template's original styling */
.ul-shop-details .ul-shop-details-option .title { display: inline-block; width: 150px; }
/* .ul-shop-details .ul-product-quantity-wrapper { display:inline-flex; align-items:center; gap:10px; vertical-align:middle; }
.ul-shop-details .ul-product-quantity { width:70px; text-align:center; border:1px solid #e5e7eb; border-radius:6px; padding:6px 8px; }
.ul-shop-details .ul-product-quantity-wrapper .btns { display:flex; flex-direction:row; gap:5px; }
.ul-shop-details .ul-product-quantity-wrapper .btns button { background:#f3f4f6; border:none; width:36px; height:36px; border-radius:6px; display:flex; align-items:center; justify-content:center; } */

/* Align variation and addons blocks spacing to match design */
.ul-shop-details .variation-section { margin-top: 12px; }
.ul-shop-details .frequently-bought-section { margin-top: 16px; }

/* Variation validation styles */
.ul-shop-details .variation-section.validation-error {
    background-color: #ffe9ed;
    border: 2px solid #f43f5e;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
}

/* Shake animation for validation error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Variation section states */
.ul-shop-details .variation-section {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.ul-shop-details .variation-section:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ul-shop-details .variation-section.required {
    background-color: #ffe9ed;
    border: 2px solid #f43f5e;
    border-radius: 10px;
    padding: 16px;
}

.ul-shop-details .variation-section.completed {
    background-color: white;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 16px;
}

/* Status badges */
.ul-shop-details .status-badge.required {
    background-color: #f43f5e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ul-shop-details .status-badge.optional {
    background-color: #6b7280;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ul-shop-details .status-badge.completed {
    background-color: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Radio button styles */
.ul-shop-details .radio-button {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.ul-shop-details .radio-button.selected {
    border-color: #f43f5e;
    background-color: #f43f5e;
}

.ul-shop-details .radio-button.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Checkbox button styles */
.ul-shop-details .checkbox-button {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ul-shop-details .variant-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ul-shop-details .variant-checkbox:checked + .checkbox-button {
    border-color: #f43f5e;
    background-color: #f43f5e;
}

.ul-shop-details .variant-checkbox:checked + .checkbox-button::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.ul-shop-details .checkbox-button:hover {
    border-color: #f43f5e;
    background-color: #f8fafc;
}

/* Sticky Add to Cart Styles */
.sticky-add-to-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    padding: 15px 20px;
}

.sticky-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.sticky-cart-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sticky-cart-price {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
}

.sticky-cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 5px;
}

.sticky-quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #374151;
    transition: all 0.2s ease;
}

.sticky-quantity-btn:hover {
    background: #e5e7eb;
}

#sticky-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

.sticky-add-to-cart-btn {
    background: #f68622;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.sticky-add-to-cart-btn:hover {
    background: #E6751F;
    transform: translateY(-1px);
}

.sticky-add-to-cart-btn:active {
    transform: translateY(0);
}

/* Responsive sticky cart */
@media (max-width: 768px) {
    .sticky-cart-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .sticky-cart-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .sticky-add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
}


