html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.fixed-top {
    z-index: 1030;
}

.navbar-nav .nav-link {
    color: #000 !important;
}

a.text-primary {
  color: #004085 !important;
}


.navbar-nav .nav-link:hover {
    color: #555 !important;
}

/* Custom navbar toggler styling to match other nav icons */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    background-color: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

.main-logo-link {
    width: fit-content;
}

h2.logo-font {
    display: block !important;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
    color: #000;
    z-index: 1000;
    position: relative;
    background: white;
}

#delivery-banner {
    background-color: #000;
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

#delivery-banner h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

#delivery-banner .logo-font {
    margin-bottom: 0;
    padding-top: 0;
}

.my-hero {
    background: url('/media/hero_image.webp') no-repeat center;
    background-size: cover;
    height: 600px;
    color: #555;
    font-family: 'Lato', sans-serif;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.my-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.my-hero .row {
    position: relative;
    z-index: 2;
}

h1.display-4 {
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.2;
    text-align: center;
    padding-top: 100px;
}

input[name='q']::placeholder {
    color: #aab7c4;
}

.shop-now-button {
    background: #000;
    color: #ffffff;
    min-width: 150px;
}

.btn-black {
    background: #000;
    color: #ffffff;
}

.btn-outline-black {
    background: #ffffff;
    color: #000 !important;
    border: 1px solid #000;
}

.shop-now-button:hover,
.shop-now-button:active,
.shop-now-button:focus,
.btn-black:hover,
.btn-black:active,
.btn-black:focus {
    background: #222;
    color: #ffffff;
}

.text-black {
    color: #000 !important;
}

.border-black {
    border: 1px solid #222 !important;
}

.btn-primary {
    background-color: #764ba2;
    color: #fff;
    border-color: #b8a3cc;
    padding: 10px 20px;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #764ba2;
    color: #fff;
    border-color: #b8a3cc
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-outline-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
}

.btt-button {
    height: 42px;
    width: 42px;
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.btt-link,
.update-link,
.remove-item {
    cursor: pointer;
}

.remove-item {
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.remove-item:hover {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.remove-item i {
    font-size: 14px;
}

.update-link {
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 3px;
}

.update-link:hover {
    color: #0056b3 !important;
    text-decoration: underline;
    background-color: rgba(0, 86, 179, 0.1);
    transform: translateY(-1px);
}

.message-container {
    position: fixed;
    top: 72px;
    right: 15px;
    z-index: 9999999999;
}

.custom-toast {
    overflow: visible;
}

.toast-capper {
    height: 2px;
}

/* from CSS-tricks.com: https://css-tricks.com/snippets/css/css-triangle/ */
.arrow-up {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid #000;
    position: absolute;
    top: -10px;
    right: 36px;
}

/* Convenience classes - colors copied from Bootstrap */

.arrow-primary {
    border-bottom-color: #555 !important;
}

.arrow-secondary {
    border-bottom-color: #6c757d !important;
}

.arrow-success {
    border-bottom-color: #28a745 !important;
}

.arrow-danger {
    border-bottom-color: #dc3545 !important;
}

.arrow-warning {
    border-bottom-color: #ffc107 !important;
}

.arrow-info {
    border-bottom-color: #17a2b8 !important;
}

.arrow-light {
    border-bottom-color: #f8f9fa !important;
}

.arrow-dark {
    border-bottom-color: #343a40 !important;
}

.bag-notification-wrapper {
    height: 100px;
    overflow-x: hidden;
    overflow-y: auto;
}

.overlay {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: white;
    z-index: -1;   
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    object-fit: cover;
    width: 100%;
}

.main-content {
    margin-top: 385px;
    min-height: calc(100vh - 400px);
    padding-top: 0px;
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.product-container {
    margin-bottom: 40px;
}

.col-sm-6.col-md-6.col-lg-4.col-xl-3 {
    margin-bottom: 30px;
}

.featured-col {
    margin-bottom: 30px;
}

.faq-center {
    text-align: center;
    padding-top: 20px;
}

.faq-question {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
}

.faq-answer {
    font-size: 1.3rem;
    color: #000;
}

.faq-link,
.faq-link:visited {
    color: #000 !important;
    text-decoration: underline;
}

.faq-link:hover {
    color: #555 !important;
}

.faq-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-left: 10px;
    flex-shrink: 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.faq-link:hover .faq-arrow {
    color: #555;
}
/* Review Styles */

.review-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #764ba2;
}

.review-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.review-body {
    padding: 20px;
}

.review-author {
    font-weight: bold;
    color: #495057;
}

.review-date {
    color: #6c757d;
    font-size: 0.9em;
}

.review-rating {
    color: #f3317e;
    font-weight: bold;
}

.review-comment {
    color: #000;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Star Rating Styles */
.star-rating-container {
    margin: 20px 0;
}

.star-rating {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star:hover,
.star:hover~.star {
    color: #b8a3cc;
}

.star.active {
    color: #a67ccd
}

.star-display {
    display: flex;
    gap: 2px;
    margin: 10px 0;
}

.star-display .fas {
    font-size: 18px;
    color: #373420;
}

.star-display .far {
    font-size: 18px;
    color: #ddd;
}

.rating-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-left: 10px;
}

.contact-heading {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-underline {
    border-top: 3px solid #764ba2;
    width: 60px;
    margin: 0 auto 1.5rem;
}

.contact-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Allauth Styling */

.allauth-form-inner-content p {
    margin-top: 1.5rem;
    color: #6c757d;
}

.allauth-form-inner-content input {
    border-color: #000;
    border-radius: 0;
}

.allauth-form-inner-content label:not([for='id_remember']) {
    display: none;
}

.allauth-form-inner-content input::placeholder {
    color: #aab7c4;
}

.allauth-form-inner-content button,
.allauth-form-inner-content input[type='submit'] {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #000;
    border: 1px solid #000;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0;

    /* standard bootstrap btn transitions */
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.allauth-form-inner-content button:hover,
.allauth-form-inner-content input[type='submit']:hover {
    color: #fff;
    background-color: #222;
    border-color: #222;
}

.allauth-form-inner-content a {
    color: #17a2b8;
}

/* Product Form */

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0;
    border-color: #dc3545;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0;
}

/* Wishlist Styles */
.uniform-wishlist-btn {
    min-width: 220px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-align: center;
}

.wishlist-empty {
    padding: 3rem 0;
    text-align: center;
}
.wishlist-empty-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.wishlist-empty-icon {
    color: #6c757d; 
    font-size: 2.5rem;
}
.wishlist-empty-title {
    color: #6c757d; 
    font-weight: 500;
}
.wishlist-empty-message {
    color: #6c757d;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.wishlist-empty-subtext {
    color: #6c757d; 
    margin-bottom: 1.5rem;
}

/* footer styles */

footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    margin-bottom: 5rem;
}

footer .form-control {
    max-width: 250px;
    margin: 0;
}

footer a {
    text-decoration: none !important;
    color: #ffffff;
}

footer a:hover {
    color: #764ba2 !important;
    text-decoration: underline;
}

.footer-text-small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2rem;
}

.footer-left-content p:first-of-type {
    margin-bottom: 2rem;
}

footer i:hover {
    color: #764ba2;
}

footer a.external-link:hover {
    color: #764ba2!important;
    text-decoration: underline !important;
}

hr {
    border: .5px solid #764ba2;
}

#mc_embed_signup .form-group,
#mc_embed_signup .mc-field-group {
    margin: 0 !important;
    padding: 0 !important;
}

#mc_embed_signup .form-control {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

#mc_embed_signup {
    width: 100%;
    max-width: 350px;
    text-align: left;
}

#mc_embed_signup button {
    display: block;
    margin: 0;
}

.btn-subscribe {
    background-color: #000000;
    color: #ffffff;
    border: solid 2px #764ba2;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.btn-subscribe:hover {
    background: #764ba2;
    color: #000000;
    text-decoration: none;
}


/* Error Page Styles */
.error-page {
    background: url('/media/hero_image.webp') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.error-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.error-page .display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.error-page .lead {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-page .btn-shop {
    background: linear-gradient(45deg, #000, #333);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.error-page .btn-shop:hover {
    background: linear-gradient(45deg, #333, #000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Error icon styles */
.error-icon {
    margin-bottom: 2rem;
}

.error-icon i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.error-panel:hover .error-icon i {
    opacity: 1;
    transform: scale(1.1);
}


/* Media Queries */

@media (min-width: 343px) {
    .main-content {
        margin-top: 195px;
    }
    .wishlist-empty {
        padding-top: 4rem;
        padding-bottom: 3rem;
        margin-top: 2.5rem;
    }
    .wishlist-empty-icon {
        font-size: 2.2rem;
    }
    .wishlist-empty-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 368px) {
    .main-content {
        margin-top: 180px;
    }
}

@media (min-width: 369px) {
    .main-content {
        margin-top: 179px;
    }
}

@media (min-width: 768px) {
    h1.display-4 {
        font-size: 3rem;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        right: 5px;
        left: auto;
        min-width: 150px;
        background: #fff;
        color: #000;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-radius: 0.25rem;
        z-index: 1051;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        color: #000;
        white-space: nowrap;
    }
    .navbar-nav .dropdown-menu .dropdown-item:hover,
    .navbar-nav .dropdown-menu .dropdown-item:focus {
        background: #f8f9fa;
        color: #333;
    }
    .navbar-toggler {
        display: none !important;
    }
    .fixed-top-desktop-only {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .featured-col {
        flex: 0 0 20%;
        max-width: 20%;
        margin-bottom: 40px;
    }

    .product-container {
        margin-bottom: 50px;
    }

    .col-sm-6.col-md-6.col-lg-4.col-xl-3 {
        margin-bottom: 40px;
    }

    #delivery-banner h4 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    h1.display-4 {
        font-size: 5rem;
        text-align: center;
    }
}

@media (min-width: 1400px) {
    .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (max-width: 420px) {
  .table-responsive {
    overflow-x: auto;
  }

  /* Only target shopping bag card images, not all product images */
  .bag .card img {
    width: 70px;
    height: auto;
  }

  .btn-block {
    width: 100%;
  }
}

@media (max-width: 768px) {
   .overlay {
        display: none;
    }

    .product-container {
        margin-bottom: 30px;
    }

    .col-sm-6.col-md-6.col-lg-4.col-xl-3 {
        margin-bottom: 25px;
    }

    .featured-col {
        margin-bottom: 25px;
    }
}

/* Responsive adjustments for error pages */
@media (max-width: 768px) {
    .error-page .display-4 {
        font-size: 2rem;
    }
    
    .error-page .lead {
        font-size: 1rem;
    }
    
    .error-panel {
        margin: 1rem;
        padding: 2rem 1rem !important;
    }
    
    .error-icon i {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
    }
}

