/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation; /* Ensure touch interactions are smooth */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0d1b2a;
    color: #e0e1dd;
    overflow-x: hidden;
    touch-action: pan-y; /* Prevent unwanted horizontal scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Ensure touchable elements are accessible */
input, button, select, textarea, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 44px; /* iOS minimum touch target size */
    font-size: 16px;
    pointer-events: auto;
    z-index: 10; /* Ensure above potential overlays */
}

input[type="text"], input[type="password"], input[type="email"], textarea {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Navigation */
nav {
    background: linear-gradient(90deg, #1b263b, #415a77);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px 15px;
    display: block;
}

.nav-menu a:hover {
    color: #00f5ff;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: linear-gradient(45deg, #00ddeb, #3f3d58);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 5%;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    touch-action: manipulation;
    z-index: 1150;
}

.nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 221, 235, 1);
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    display: block;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle .bar:nth-child(1) { transform: translateY(-7px); }
.nav-toggle .bar:nth-child(3) { transform: translateY(7px); }
.nav-toggle.active .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* General Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #2a3b57, #415a77);
    border: 1px solid #415a77;
    border-radius: 15px;
}

/* Content */
.content {
    flex: 1;
    padding: 20px;
    z-index: 5;
    position: relative;
}

/* Card */
.card {
    background: linear-gradient(135deg, #1b263b, #415a77);
    border: 2px solid #00ddeb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;
    touch-action: auto;
    pointer-events: auto;
}

.card:hover {
    transform: translateY(-5px);
}

.card h5 {
    font-size: 24px;
    color: #00f5ff;
    font-weight: 600;
    margin-bottom: 20px;
}

.card p {
    font-size: 16px;
    color: #e0e1dd;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #1b263b, #415a77);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #415a77;
}

footer p {
    font-size: 14px;
    color: #e0e1dd;
    margin-bottom: 15px;
}

footer a {
    color: #00f5ff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #c7c3f5;
}

.connect-us {
    margin-top: 20px;
}

.connect-us h4 {
    font-size: 18px;
    color: #00f5ff;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #e0e1dd;
    font-size: 30px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffd700;
}

/* Links */
a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #00f5ff;
    text-decoration: underline;
}

/* Index.php Specific Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1b263b, #415a77);
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.swiper-slide h2 {
    font-size: 30px;
    margin: 20px 0;
    color: #00f5ff;
    font-weight: 600;
}

.swiper-slide p {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
}

.swiper-pagination-bullet {
    background-color: #415a77;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: #ffd700;
    opacity: 1;
}

.products {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #1b263b, #415a77);
    border-top: 1px solid #415a77;
    border-bottom: 1px solid #415a77;
}

.product-card {
    max-width: 320px;
    margin: 0 auto;
    padding: 25px;
    background: linear-gradient(135deg, #2a3b57, #1b263b);
    border: 2px solid #00ddeb;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 221, 235, 0.3);
}

.product-card h3 {
    font-size: 22px;
    color: #c7c3f5;
    margin-bottom: 5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.product-card h3 span {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
}

.product-card ul {
    list-style: none;
    text-align: left;
    margin: 15px 0;
}

.product-card ul li {
    margin: 8px 0;
    font-size: 14px;
    color: #e0e1dd;
    padding-left: 25px;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}

.product-card ul li:before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00f5ff;
    font-size: 16px;
}

.product-card a.details-button {
    display: inline-block;
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.product-card a.details-button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
    transform: scale(1.05);
}

.video-section {
    max-width: 1300px;
    margin: 40px auto;
    padding: 50px 30px;
    background: linear-gradient(135deg, #2a3b57, #415a77);
    border-top: 1px solid #415a77;
    border-bottom: 1px solid #415a77;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 20px;
    border: 3px solid #00ddeb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: none;
    display: block;
}

.testimonials {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    background: linear-gradient(135deg, #2a3b57, #415a77);
    border-top: 1px solid #415a77;
    border-bottom: 1px solid #415a77;
}

.testimonials h2 {
    font-size: 32px;
    text-align: center;
    color: #00f5ff;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.testimonials h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #ffd700;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: linear-gradient(135deg, #1b263b, #2a3b57);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #c7c3f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-card .author {
    font-size: 14px;
    color: #ffd700;
    font-weight: 600;
    text-align: right;
}

.bottom-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    background: linear-gradient(135deg, #2a3b57, #415a77);
    border-top: 1px solid #415a77;
    border-bottom: 1px solid #415a77;
    display: flex;
    justify-content: center;
}

.sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 960px;
    width: 100%;
}

.section {
    width: 100%;
    max-width: 320px;
    padding: 25px;
    background: linear-gradient(135deg, #1b263b, #2a3b57);
    border: 2px solid #00ddeb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    text-align: center;
}

.section:hover {
    transform: translateY(-5px);
}

.section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00f5ff;
    font-weight: 600;
}

.section p {
    font-size: 14px;
    color: #e0e1dd;
    line-height: 1.6;
    margin-bottom: 15px;
}

.section a {
    color: #c7c3f5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.section a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.section button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
}

.section button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
    transform: scale(1.05);
}

/* Shop.php Specific Styles */
.shop-banner {
    background: linear-gradient(135deg, #1b263b, #415a77);
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid #415a77;
}

.shop-banner h1 {
    font-size: 48px;
    font-weight: 700;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-banner p {
    font-size: 18px;
    margin-top: 10px;
    color: #e0e1dd;
}

.shop-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 200px;
    background: linear-gradient(135deg, #1b263b, #2a3b57);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sidebar h3 {
    font-size: 20px;
    color: #00f5ff;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #e0e1dd;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #c7c3f5;
}

.shop-content {
    flex: 1;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shop-header p {
    font-size: 14px;
    color: #e0e1dd;
}

.shop-header select {
    padding: 5px;
    background-color: #1b263b;
    color: #e0e1dd;
    border: 1px solid #415a77;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.shop-header select:focus {
    outline: none;
    border-color: #ffd700;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 20px 10px;
}

.products-grid .product-card {
    width: calc(33.33% - 14px);
    padding: 20px;
    background: linear-gradient(135deg, #2a3b57, #1b263b);
    border: 2px solid #00ddeb;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.products-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 221, 235, 0.3);
}

.products-grid .product-card .sale-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #ff6b6b;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.products-grid .product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.products-grid .product-card h3 {
    font-size: 20px;
    color: #c7c3f5;
    margin-bottom: 10px;
    font-weight: 600;
}

.products-grid .product-card p {
    font-size: 14px;
    color: #e0e1dd;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.products-grid .product-card .price {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 10px;
}

.products-grid .product-card .price del {
    color: #ff6b6b;
    font-weight: 400;
    margin-right: 10px;
}

.products-grid .product-card .rating {
    margin-bottom: 15px;
}

.products-grid .product-card .rating i {
    color: #ffd700;
    font-size: 14px;
}

.products-grid .product-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.products-grid .product-card input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #415a77;
    border-radius: 5px;
    background-color: #1b263b;
    color: #e0e1dd;
    text-align: center;
}

.products-grid .product-card input[type="number"]::-webkit-inner-spin-button,
.products-grid .product-card input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.products-grid .product-card input[type="number"] {
    -moz-appearance: textfield;
}

.products-grid .product-card button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.products-grid .product-card button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
    transform: scale(1.05);
}

.products-grid .product-card .view-details {
    display: inline-block;
    background: transparent;
    border: 1px solid #c7c3f5;
    color: #c7c3f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.products-grid .product-card .view-details:hover {
    background: #c7c3f5;
    color: #0d1b2a;
}

.product-details {
    background: linear-gradient(135deg, #2a3b57, #1b263b);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #00ddeb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.product-details .back-to-shop {
    display: inline-flex;
    align-items: center;
    color: #c7c3f5;
    font-weight: 600;
    margin-bottom: 20px;
    text-decoration: none;
}

.product-details .back-to-shop i {
    margin-right: 8px;
}

.product-details .back-to-shop:hover {
    color: #ffd700;
    text-decoration: underline;
}

.product-details .product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-details .product-header h2 {
    font-size: 28px;
    color: #c7c3f5;
    font-weight: 600;
}

.product-details .product-header .category {
    font-size: 14px;
    color: #00f5ff;
    background: #1b263b;
    padding: 5px 10px;
    border-radius: 5px;
}

.product-details .price {
    font-size: 20px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 15px;
}

.product-details .price del {
    color: #ff6b6b;
    font-weight: 400;
    margin-right: 10px;
}

.product-details .stock {
    font-size: 14px;
    margin-bottom: 15px;
    color: #00f5ff;
}

.product-details .stock.out-of-stock {
    color: #ff6b6b;
}

.product-details .description {
    font-size: 14px;
    color: #e0e1dd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-details .rating {
    margin-bottom: 20px;
}

.product-details .rating i {
    color: #ffd700;
    font-size: 16px;
}

.product-details form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.product-details input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #415a77;
    border-radius: 5px;
    background-color: #1b263b;
    color: #e0e1dd;
    text-align: center;
}

.product-details input[type="number"]::-webkit-inner-spin-button,
.product-details input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-details input[type="number"] {
    -moz-appearance: textfield;
}

.product-details button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.product-details button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
    transform: scale(1.05);
}

.product-details button[disabled] {
    background: #415a77;
    cursor: not-allowed;
    transform: none;
}

/* Cart Section */
.cart-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #2a3b57, #1b263b);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #00ddeb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cart-section h2 {
    font-size: 24px;
    color: #00f5ff;
    margin-bottom: 20px;
    font-weight: 600;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #415a77;
}

.cart-item p {
    font-size: 14px;
    color: #e0e1dd;
    flex: 1;
}

.cart-item form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-item input[type="number"] {
    width: 50px;
    padding: 5px;
    border: 1px solid #415a77;
    border-radius: 5px;
    background-color: #1b263b;
    color: #e0e1dd;
    text-align: center;
}

.cart-item input[type="number"]::-webkit-inner-spin-button,
.cart-item input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item input[type="number"] {
    -moz-appearance: textfield;
}

.cart-item button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-item button[name="remove_from_cart"] {
    background: #ff6b6b;
    color: #ffffff;
}

.cart-item button[name="remove_from_cart"]:hover {
    background: #ff8787;
}

.cart-item button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
}

.cart-total {
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
    text-align: right;
    margin-bottom: 20px;
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-form h3 {
    font-size: 20px;
    color: #00f5ff;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #e0e1dd;
    font-weight: 400;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #415a77;
    border-radius: 5px;
    background-color: #1b263b;
    color: #e0e1dd;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.payment-section {
    margin-top: 20px;
}

.payment-section h3 {
    font-size: 20px;
    color: #00f5ff;
    margin-bottom: 15px;
}

#paypal-button-container {
    margin-bottom: 20px;
}

.place-order {
    text-align: right;
}

.place-order button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.place-order button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
    transform: scale(1.05);
}

.place-order button[disabled] {
    background: #415a77;
    cursor: not-allowed;
    transform: none;
}

/* FAQ Section */
h1 {
    font-size: 32px;
    color: #00a3b1;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 163, 177, 0.2);
}

.faq-item {
    background: linear-gradient(135deg, #1a2a3a, #334d66);
    border: 2px solid #088396;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 153, 176, 0.2);
}

.faq-item summary {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #e0e1dd;
    background: linear-gradient(90deg, #4d8acc, #7799cc);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #1a2a3a;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 20px;
    font-size: 16px;
    color: #e0e1dd;
    line-height: 1.6;
    background: #2a3b57;
    margin: 0;
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, #2a3b57, #415a77);
    border: 2px solid #00f5ff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.chatbot-container.collapsed {
    display: none;
}

#chatbot.chatbot-container {
    display: flex;
}

#chatbot.chatbot-container.collapsed {
    display: none;
}

.chatbot-header {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 15px;
    border-radius: 13px 13px 0 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.chatbot-header .collapse-icon,
.chatbot-header .close-icon {
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

.chatbot-form,
.chatbot-connecting,
.chatbot-messages,
.chatbot-input {
    padding: 15px;
    background: #2a3b57;
}

.chatbot-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-form label {
    font-size: 14px;
    color: #e0e1dd;
    margin-bottom: 5px;
}

.chatbot-form input,
.chatbot-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #415a77;
    border-radius: 20px;
    background-color: #1b263b;
    color: #e0e1dd;
    font-size: 14px;
}

.chatbot-form input:focus,
.chatbot-form select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.chatbot-form .error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.chatbot-form button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    padding: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.chatbot-form button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
}

.chatbot-connecting {
    display: none;
    text-align: center;
    font-size: 14px;
    color: #e0e1dd;
}

.chatbot-messages {
    display: none;
    flex-grow: 1;
    max-height: 400px;
    overflow-y: auto;
}

.message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    font-weight: 400;
    max-width: 80%;
    line-height: 1.4;
}

.user-message {
    background-color: #c7c3f5;
    color: #0d1b2a;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background-color: #415a77;
    color: #ffffff;
    align-self: flex-start;
    margin-right: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chatbot-input {
    display: none;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #415a77;
    border-radius: 0 0 13px 13px;
}

.chatbot-input select,
.chatbot-input .input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #415a77;
    border-radius: 20px;
    background-color: #fff;
    color: #000;
    font-size: 14px;
}

.chatbot-input input::placeholder {
    color: #888;
}

.chatbot-input select:focus,
.chatbot-input input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.chatbot-input button {
    padding: 10px;
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button i {
    font-size: 16px;
}

.chatbot-input button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00ddeb, #ffd700);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.7), 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 1001;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 221, 235, 1), 0 0 25px rgba(255, 215, 0, 0.5);
}

.chatbot-toggle i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Gallery Specific Styles */
.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    z-index: 10;
    position: relative;
}

.gallery-controls .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-controls label {
    margin: 0;
    color: #e0e1dd;
}

.gallery-controls input[type="date"],
.gallery-controls button {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #415a77;
    background: #2a3b57;
    color: #e0e1dd;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.gallery-controls button {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
    border: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.gallery-controls button:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-item .image-info {
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    font-size: 12px;
}

.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-overlay img {
    max-width: 90%;
    max-height: 70%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.image-overlay .info {
    background: #1b263b;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #00ddeb;
    color: #e0e1dd;
    margin-bottom: 20px;
    width: 90%;
    max-width: 600px;
}

.image-overlay .qr-code {
    text-align: center;
    margin: 20px 0;
}

.image-overlay .qr-code h3 {
    font-size: 18px;
    color: #00f5ff;
    margin-bottom: 10px;
}

.image-overlay .buttons {
    display: flex;
    gap: 10px;
}

.image-overlay button,
.image-overlay a {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-overlay .btn-secondary {
    background: linear-gradient(90deg, #00ddeb, #ffd700);
    color: #0d1b2a;
}

.image-overlay .btn-secondary:hover {
    background: linear-gradient(90deg, #ffd700, #00ddeb);
    transform: scale(1.05);
}

.image-overlay .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2001;
}

.image-overlay .close-btn:hover {
    background: #e03e3e;
    transform: scale(1.1);
}

.image-overlay .close-btn i {
    vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .resources {
        max-width: 640px;
    }

    .sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        z-index: 1150;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1b263b, #415a77);
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        touch-action: manipulation;
        pointer-events: auto;
        z-index: 1100;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 10px 20px;
        display: block;
    }

    .nav-menu a:hover {
        color: #00f5ff;
        transform: none;
        background: rgba(0, 245, 255, 0.1);
        border-radius: 5px;
    }

    .container {
        padding: 0 15px;
        margin-left: 0;
        flex-direction: column;
        border-radius: 15px;
    }

    .content {
        padding: 10px;
    }

    .shop-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .shop-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .products-grid .product-card {
        width: calc(50% - 10px);
    }

    .product-details form {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item form {
        width: 100%;
        justify-content: space-between;
    }

    .place-order {
        text-align: center;
    }

    .sections {
        grid-template-columns: 1fr;
    }

    .section {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 120px;
    }

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-controls .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .image-overlay .close-btn {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    .image-overlay .close-btn i {
        font-size: 16px;
    }

    .video-section {
        padding: 30px 20px;
        margin: 20px auto;
        max-width: 95%;
        border-radius: 20px;
    }

    .video-placeholder {
        height: 400px;
        border-radius: 16px;
        max-width: 100%;
    }

    /* Ensure form elements are touchable */
    .form-group input,
    .form-group select,
    .form-group textarea,
    .btn {
        touch-action: manipulation;
        pointer-events: auto;
        min-height: 44px;
        min-width: 44px;
    }

    /* Fix for card containers */
    .card {
        touch-action: auto;
        pointer-events: auto;
    }

    /* Chatbot adjustments */
    .chatbot-container {
        width: 300px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 680px) {
    .resources {
        max-width: 320px;
    }

    .sections {
        grid-template-columns: 1fr;
    }

    .section {
        max-width: 100%;
    }

    .video-section {
        padding: 25px 15px;
        margin: 15px auto;
        border-radius: 16px;
    }

    .video-placeholder {
        height: 280px;
        border-radius: 12px;
    }

    .chatbot-container {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .products-grid .product-card {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .gallery-item .image-info {
        font-size: 10px;
        padding: 5px;
    }

    .chatbot-container {
        width: 250px;
    }

    .chatbot-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-menu {
        top: 70px;
    }
}