/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #ffbb33;
    --secondary-color: #ff8800;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --accent-color: #ff7043;
    --font-primary: 'Montserrat', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--light-color);
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

html{
        max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn-custom {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--accent-color);
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.navbar-nav .nav-link {
    font-size: 1rem;
    margin-right: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Carousel */
#heroCarousel {
    position: relative;
}

#heroCarousel .carousel-item {
    height: 93vh;
    min-height: 500px;
    background-color: #000;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.7;
}

#heroCarousel .carousel-caption {
    bottom: 20%;
    text-align: center;
}

#heroCarousel .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

#heroCarousel .carousel-caption p {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 20px;
}

#heroCarousel .carousel-caption .btn-custom {
    padding: 10px 30px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    #heroCarousel .carousel-caption h2 {
        font-size: 1.8rem;
    }
    #heroCarousel .carousel-caption p {
        font-size: 1rem;
    }
    #heroCarousel .carousel-caption .btn-custom {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}


@media (max-width: 576px) {
    #heroCarousel .carousel-caption {
        bottom: 41%;
    }
    #heroCarousel .carousel-caption h2 {
        font-size: 1.5rem;
    }
    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    #heroCarousel .carousel-caption .btn-custom {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
}


/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.products-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.product-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* About Us Section */
.about-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-us-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-us-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.about-us-section .btn-custom {
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 50px;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .about-us-section {
        padding: 60px 0;
    }

    .about-us-section .section-title {
        font-size: 2rem;
    }
}


/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background-color: var(--light-color);
}

.contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-info,
.contact-form {
    margin-bottom: 30px;
}

.contact-info h5,
.contact-form h5 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #666;
}

.contact-info a {
    color: var(--dark-color);
    text-decoration: none;
}

.contact-form .form-control {
    border-radius: 5px;
    margin-bottom: 15px;
}

.contact-form .btn {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.footer-social-icons a {
    color: var(--dark-color);
    margin: 0 8px;
    font-size: 1.2rem;
}

.footer-social-icons a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .products-section h2,
    .about-us-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
}

/* Notification */
#notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Ensure it takes 100% of the screen width */
    max-width: 100vw; /* Prevent it from extending beyond the viewport */
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in the width */
    overflow: hidden; /* Prevent content overflow */
    display: none; /* Hidden by default */
    flex-direction: row; /* Ensure close button and text are aligned horizontally */
    justify-content: space-between; /* Separate message and close button */
    align-items: center; /* Vertically align the text and close button */
}

#notification-message {
    flex-grow: 1; /* Allow message to take up available space */
    word-wrap: break-word; /* Break long words or lines */
    margin-right: 10px; /* Add space between message and close button */
}

#notification-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    #notification {
        font-size: 14px; /* Reduce font size for smaller screens */
        padding: 12px 15px; /* Adjust padding to fit smaller screens */
    }
}





/* Timeline Section */
.timeline-section {
    padding: 60px 0;
    background-color: #fff;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #ddd;
}

.timeline li {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline li:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline li:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    position: relative;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    font-size: 1rem;
    color: #555;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline li:nth-child(odd) .timeline-content::after {
    right: -5px;
}

.timeline li:nth-child(even) .timeline-content::after {
    left: -5px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline li {
        left: 0 !important;
        width: 100%;
        padding-left: 60px;
        text-align: left;
    }

    .timeline-content::after {
        left: 15px !important;
    }
}

#notification {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #ffc107;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

#notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}

/* Sticky cart container */
.sticky-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Cart button styling */
#cart-icon {
    display: flex;
    align-items: center;
    background-color: #ffc107; /* or var(--primary-color) if you prefer */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#cart-icon i {
    margin-right: 8px;
    font-size: 1.2rem; /* adjust icon size */
}

/* Hover/active effects for the cart button */
#cart-icon:hover {
    background-color: #ff9800; /* a slightly darker shade */
    transform: translateY(-2px);
}

/* Cart summary container */
.cart-summary {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;

    /* Hide by default (in addition to .d-none) */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When .d-none is removed, fade in + slide up */
.cart-summary:not(.d-none) {
    opacity: 1;
    transform: translateY(0);
}

/* The "Go to Cart" button inside the summary */
.cart-summary .btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 5px;
    margin-top: 10px;
}

.cart-summary h5 {
    margin-top: 0;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

#cart-items {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 150px; /* so it doesn't overflow too far */
    overflow-y: auto;
    margin-bottom: 10px;
}

#cart-items li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

#cart-total {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* CART PAGE BASE */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif; /* or your site’s font */
}

/* CART EMPTY */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cart-empty p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.cart-empty .btn-primary {
  background: #007bff;
  color: #fff;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
}

.cart-empty .btn-primary:hover {
  background: #0056b3;
}

/* CART CONTAINER */
.cart-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* CART TABLE */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart-table thead tr {
  background-color: #f0f0f0;
}

.cart-table th,
.cart-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

.cart-table th {
  font-weight: 600;
  font-size: 1rem;
}

.cart-table td {
  font-size: 0.95rem;
}

/* TABLE TOTAL ROW */
.cart-table .cart-total-row td {
  font-weight: 700;
  font-size: 1.05rem;
}

.text-right {
  text-align: right;
}

/* FORM INLINE */
.cart-form-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.cart-form-inline input[type="number"] {
  width: 60px;
  padding: 5px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 8px 20px;
  text-decoration: none;
  background: #444;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #666;
}

.btn-primary {
  background: #007bff;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #4a4f52;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 5px 10px;
}

.btn-update {
  background: #28a745; /* e.g., green for update */
}

.btn-update:hover {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

/* CART ACTIONS */
.cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cart-actions a {
  margin-left: 10px;
}

/* KefalosTech Button */
.btn-kefalostech {
    display: inline-block;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1rem;
    background: linear-gradient(45deg, #ffc107, #ff8800); /* Honey-inspired gradient */
    color: #fff;
    text-transform: uppercase;
    border: none;
    border-radius: 30px; /* Rounded edges */
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.5); /* Glow effect */
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-kefalostech:hover {
    background: linear-gradient(45deg, #ff8800, #ffc107); /* Reverse the gradient */
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.8); /* Intense glow */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.btn-kefalostech:active {
    transform: scale(0.95); /* Subtle press effect */
    box-shadow: 0 3px 10px rgba(255, 136, 0, 0.5);
}


