/* Custom styles for Supplement Store */

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Product card hover effect */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Button hover animations */
button, a {
    transition: all 0.2s ease;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #19375d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f2540;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(25, 55, 93, 0.3);
    border-radius: 50%;
    border-top-color: #19375d;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Image aspect ratio helper */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Flash message animation */
.flash-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #19375d 0%, #2a5298 100%);
}

/* Hero Banner Styles */
.hero-banner {
    width: 100%;
    overflow: visible;
}

.hero-banner img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Hexagon Styles for Quality Section */
.quality-section {
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L50 17.5 L50 42.5 L30 55 L10 42.5 L10 17.5 Z' fill='none' stroke='%2319375d' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

.hexagon-wrapper {
    width: 100px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon {
    width: 100px;
    height: 115px;
    background-color: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hexagon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .hexagon-wrapper {
        width: 130px;
        height: 150px;
    }
    .hexagon {
        width: 130px;
        height: 150px;
    }
}

@media (min-width: 1024px) {
    .hexagon-wrapper {
        width: 150px;
        height: 173px;
    }
    .hexagon {
        width: 150px;
        height: 173px;
    }
}

/* Category card overlay */
.category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* Quantity input styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Print styles */
@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
}
