/*
BrandCrafters Custom CSS
Color Scheme:
- Primary: #F95700 (Deep Orange)
- Secondary: #0057B7 (Royal Blue)  
- Background: #F8F9FA (Light Gray)
- Text/Contrast: #212529 (Charcoal Black)
- Success: #28A745 (Emerald Green)
*/

/* Override template colors with BrandCrafters theme */
.text-success { color: #F95700 !important; }
.bg-success { background-color: #F95700 !important; }
.btn-success {
  background-color: #F95700 !important;
  border-color: #F95700 !important;
}
.btn-success:hover {
  background-color: #e04a00 !important;
  border-color: #e04a00 !important;
}

/* MOBILE RESPONSIVE HEADER */
.mobile-header {
  padding: 0.75rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #333;
  padding: 0.5rem;
}

.mobile-logo {
  font-size: 1.5rem !important;
  margin: 0;
}

.mobile-logo .logo-text {
  font-size: 1.2rem;
}

.mobile-header-actions {
  gap: 0.5rem;
}

.mobile-search {
  width: 200px;
}

.mobile-search-input {
  border-radius: 20px 0 0 20px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  height: auto;
}

.mobile-search-btn {
  border-radius: 0 20px 20px 0;
  background-color: #F95700;
  color: white;
  border: 1px solid #F95700;
  padding: 0.5rem 0.75rem;
}

.mobile-search-btn:hover {
  background-color: #e04a00;
  border-color: #e04a00;
}

/* MOBILE PRODUCTS SECTION */
.mobile-products-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 80px);
}

.mobile-product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.mobile-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mobile-product-image {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.mobile-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.mobile-product-card:hover .mobile-product-image img {
  transform: scale(1.05);
}

.mobile-product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #F95700, #e04a00);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-product-info {
  padding: 0.75rem;
}

.mobile-product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6rem;
}

.mobile-product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-product-price-old {
  font-size: 0.75rem;
  color: #999;
  text-decoration: line-through;
}

.mobile-product-price-new {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F95700;
}

/* MOBILE PAGINATION */
.mobile-pagination {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.mobile-page-btn {
  background: white;
  border: 1px solid #ddd;
  color: #666;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin: 0 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-page-btn:hover {
  background-color: #F95700;
  color: white;
  border-color: #F95700;
}

.mobile-page-btn.active {
  background-color: #F95700;
  color: white;
  border-color: #F95700;
}

/* NEED HELP SECTION */
.need-help-section {
  padding: 1rem 0;
}

.need-help-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.need-help-content {
  display: flex;
  flex-direction: column;
}

.need-help-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.chat-with-us {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.whatsapp-icon-circle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.whatsapp-icon-circle:hover {
  transform: scale(1.1);
}

.whatsapp-icon-circle i {
  color: white;
  font-size: 1.5rem;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 767.98px) {
  /* Hide desktop navigation on mobile */
  .d-lg-block {
    display: none !important;
  }
  
  /* Show mobile sections */
  .mobile-products-section {
    display: block !important;
  }
  
  /* Adjust container padding */
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile grid spacing */
  .row.g-3 {
    margin: 0 -0.5rem;
  }
  
  .row.g-3 > * {
    padding: 0 0.5rem;
  }
  
  /* Cart counter positioning */
  .cart-counter {
    top: -8px;
    right: -8px;
  }
}

@media (min-width: 768px) {
  /* Hide mobile sections on desktop */
  .mobile-products-section {
    display: none !important;
  }
  
  /* Show desktop sections */
  .d-none.d-lg-block {
    display: block !important;
  }
}

/* BrandCrafters Logo */
.brandcrafters-logo {
  font-weight: 700 !important;
  font-size: 28px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brandcrafters-logo .logo-b {
  background: linear-gradient(45deg, #F95700, #0057B7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 32px;
  font-weight: 900;
}

.brandcrafters-logo .logo-text {
  color: #212529 !important;
  font-weight: 600;
}

/* Mobile Logo Adjustments */
@media (max-width: 767.98px) {
  .brandcrafters-logo {
    font-size: 1.5rem !important;
  }
  
  .brandcrafters-logo .logo-b {
    font-size: 1.8rem;
  }
  
  .brandcrafters-logo .logo-text {
    font-size: 1.3rem;
  }
}

/* Secondary color elements */
.text-secondary-brand { color: #0057B7 !important; }
.bg-secondary-brand { background-color: #0057B7 !important; }

/* Enhanced WhatsApp Floating Button with Chat Interface */

/* Delivery Animation Styles */
.delivery-animation-container {
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-scooter-animated {
    max-width: 100%;
    height: auto;
    animation: deliveryMove 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes deliveryMove {
    0% {
        transform: translateX(-20px) scale(1);
    }
    25% {
        transform: translateX(10px) scale(1.05);
    }
    50% {
        transform: translateX(20px) scale(1.1);
    }
    75% {
        transform: translateX(10px) scale(1.05);
    }
    100% {
        transform: translateX(-20px) scale(1);
    }
}

.delivery-scooter-animated:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

/* Hero banner image styling */
.hero-banner-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-banner-img:hover {
    transform: scale(1.05);
}

/* Product Card Image Consistency */
.product-wap .card-img-top {
    height: 250px !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 0.375rem 0.375rem 0 0;
}

.product-wap .card-img-top:hover {
    transform: scale(1.05);
}

.product-wap {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-wap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Category Card Images */
.category-card {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.category-card:hover {
    transform: scale(1.1);
}

/* Category section alignment */
.col-12.col-md-4.p-5.mt-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.col-12.col-md-4.p-5.mt-3 h5,
.col-12.col-md-4.p-5.mt-3 h2 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.col-12.col-md-4.p-5.mt-3 p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Cart Counter Styling */
.cart-counter {
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    animation: cartBadgeAppear 0.3s ease-in-out;
    transition: all 0.3s ease;
}

.cart-counter:not(.d-none) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes cartBadgeAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cart counter pulse animation when item added */
.cart-counter.pulse {
    animation: cartPulse 0.6s ease-in-out;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

.whatsapp-float a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.whatsapp-float i {
    margin-top: 16px;
}

/* WhatsApp Chat Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 99;
    display: none;
    overflow: hidden;
}

.whatsapp-chat-header {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-chat-header .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-chat-header .close-chat:hover {
    background: rgba(255,255,255,0.1);
}

.whatsapp-chat-info {
    display: flex;
    align-items: center;
}

.whatsapp-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F95700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.whatsapp-chat-details h4 {
    margin: 0;
    font-size: 16px;
}

.whatsapp-chat-details p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.whatsapp-chat-body {
    padding: 20px;
    background: #f0f0f0;
    min-height: 100px;
}

.chat-message {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.chat-message:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 5px solid white;
}

.whatsapp-chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.whatsapp-start-btn {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-start-btn i {
    margin-right: 8px;
}

/* Floating "Need Help?" prompt */
.whatsapp-prompt {
    position: fixed;
    bottom: 120px;
    right: 50px;
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 98;
    animation: bounce 2s infinite;
    cursor: pointer;
    white-space: nowrap;
}

.whatsapp-prompt:before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-chat-widget {
        width: 280px;
        right: 20px;
        bottom: 100px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .whatsapp-float i {
        margin-top: 13px;
    }
    
    .whatsapp-prompt {
        right: 30px;
        bottom: 90px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

/* Category cards */
.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
}

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

/* Product cards enhancement */
.product-wap {
  transition: transform 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.product-wap:hover {
  transform: translateY(-3px);
}

/* Checkout buttons */
.checkout-options {
  gap: 15px;
}

.checkout-btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.checkout-btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: white;
}

.checkout-btn-whatsapp:hover {
  background-color: #1ebea5;
  border-color: #1ebea5;
  color: white;
}

.checkout-btn-call {
  background-color: #0057B7;
  border-color: #0057B7;
  color: white;
}

.checkout-btn-call:hover {
  background-color: #004494;
  border-color: #004494;
  color: white;
}

.checkout-btn-mpesa {
  background-color: #28A745;
  border-color: #28A745;
  color: white;
}

.checkout-btn-mpesa:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  color: white;
}

.checkout-btn-visa {
  background-color: #1a1f71;
  border-color: #1a1f71;
  color: white;
}

.checkout-btn-visa:hover {
  background-color: #0d1247;
  border-color: #0d1247;
  color: white;
}

/* Till number display */
.till-info {
  background-color: #f8f9fa;
  border: 2px dashed #6c757d;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 15px;
}

.till-number {
  font-size: 24px;
  font-weight: 700;
  color: #28A745;
  margin: 10px 0;
}

/* Hero section enhancements */
.hero-content {
  background: linear-gradient(135deg, rgba(249, 87, 0, 0.1) 0%, rgba(0, 87, 183, 0.1) 100%);
  border-radius: 15px;
  padding: 2rem;
}

/* Footer updates */
#tempaltemo_footer {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

/* Navbar enhancements */
.navbar-brand:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float i {
    margin-top: 13px;
  }
  
  .brandcrafters-logo {
    font-size: 24px !important;
  }
  
  .brandcrafters-logo .logo-b {
    font-size: 28px;
  }
}
