/* Apple-inspired Design System */

:root {
    --apple-primary: #000000;
    --apple-secondary: #86868b;
    --apple-blue: #0071e3;
    --apple-hover: #0077ed;
    --apple-light-bg: #f5f5f7;
    --apple-card-bg: #ffffff;
    --apple-border: #d2d2d7;
    --apple-spacing: 24px;
}

/* Apple-style Typography */
.apple-hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--apple-primary);
    margin-bottom: 0.5rem;
}

.apple-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--apple-secondary);
    margin-bottom: 1.5rem;
}

.apple-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--apple-primary);
    margin: 1.5rem 0;
}

.apple-body-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--apple-secondary);
}

/* Apple-style Container */
.apple-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--apple-spacing);
}

/* Apple-style Section */
.apple-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.apple-section-alt {
    padding: 80px 0;
    background-color: var(--apple-light-bg);
}

/* Apple-style Card */
.apple-card {
    background: var(--apple-card-bg);
    border: 1px solid var(--apple-border);
    border-radius: 18px;
    padding: 24px; /* Adjusted padding */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex; /* Enable Flexbox */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Pushes footer to the bottom */
    text-align: center; /* Center align all text */
}

.apple-card .card-content {
    flex-grow: 1; /* Allows this div to grow and push the footer down */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apple-card .card-footer {
    flex-shrink: 0; /* Prevents the footer from shrinking */
    padding-top: 16px;
    margin-top: auto; /* Pushes the footer to the bottom */
}

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

/* Apple-style Image Container */
.apple-image-container {
    width: 100%;
    border-radius: 12px; /* Slightly smaller radius */
    overflow: hidden;
    position: relative;
    background: var(--apple-light-bg);
    padding-top: 100%; /* Creates a 1:1 aspect ratio */
}

.apple-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-image-container:hover img {
    transform: scale(1.05);
}

/* Apple-style Buttons */
.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.apple-btn-primary {
    background-color: var(--apple-blue);
    color: #ffffff;
}

.apple-btn-primary:hover {
    background-color: var(--apple-hover);
    color: #ffffff;
    transform: scale(1.02);
}

.apple-btn-secondary {
    background-color: transparent;
    color: var(--apple-blue);
    border: 2px solid var(--apple-blue);
}

.apple-btn-secondary:hover {
    background-color: var(--apple-blue);
    color: #ffffff;
    transform: scale(1.02);
}

/* Apple-style Back Button */
.apple-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--apple-blue);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.apple-back-btn:hover {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--apple-hover);
}

.apple-back-btn svg {
    transition: transform 0.3s ease;
}

.apple-back-btn:hover svg {
    transform: translateX(-4px);
}

/* Apple-style Product Grid */
.apple-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .apple-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .apple-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Apple-style Details Section */
.apple-details {
    padding: 24px 0;
}

.apple-details dt {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--apple-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apple-details dd {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--apple-primary);
    margin-bottom: 16px;
}

/* Apple-style List */
.apple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apple-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--apple-border);
    font-size: 1rem;
    color: var(--apple-primary);
}

.apple-list li:last-child {
    border-bottom: none;
}

/* Apple-style Divider */
.apple-divider {
    height: 1px;
    background-color: var(--apple-border);
    border: none;
    margin: 40px 0;
}

/* Apple-style Badge */
.apple-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--apple-blue);
    background-color: rgba(0, 113, 227, 0.1);
    border-radius: 12px;
}

/* Apple-style Details Summary */
.apple-details-summary {
    cursor: pointer;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--apple-primary);
    list-style: none;
    transition: color 0.3s ease;
}

.apple-details-summary:hover {
    color: var(--apple-blue);
}

.apple-details-summary::-webkit-details-marker {
    display: none;
}

/* Contact Info Responsive */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.contact-info b {
    white-space: nowrap;
}

/* Footer Contact Responsive */
.footer-contact .footer-text {
    font-size: 25px;
}

.footer-contact .warning-text {
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Product Showcase */
.product-showcase {
    width: 100%;
}

.product-showcase .card-img-1 {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* Image and Video Responsive */
img {
    max-width: 100%;
    height: auto;
}

.video-active2 {
    width: 100%;
    height: auto;
}

/* Visitor Counter */
.visitor-counter {
    font-size: 0.95rem;
}

/* Touch Target Enhancement for Mobile */
@media (hover: none) and (pointer: coarse) {
    .apple-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .apple-hero-title {
        font-size: 3rem;
    }

    .apple-subtitle {
        font-size: 1.3rem;
    }

    .apple-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .apple-hero-title {
        font-size: 2.5rem;
    }

    .apple-subtitle {
        font-size: 1.2rem;
    }

    .apple-price {
        font-size: 1.5rem;
    }

    .apple-section,
    .apple-section-alt {
        padding: 60px 0;
    }

    .apple-card {
        padding: 24px;
    }

    .contact-info {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-contact .footer-text {
        font-size: 16px;
    }

    .footer-contact .warning-text {
        font-size: 0.95rem;
    }

    .apple-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .apple-btn-secondary {
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
    }

    .visitor-counter {
        font-size: 0.85rem;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .apple-hero-title {
        font-size: 2rem;
    }

    .apple-subtitle {
        font-size: 1rem;
    }

    .footer-contact .footer-text {
        font-size: 14px;
    }

    .apple-container {
        padding: 0 16px;
    }

    .apple-card {
        padding: 16px;
    }

    .visitor-counter {
        font-size: 0.8rem;
    }

    .apple-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .contact-info b {
        font-size: 0.9rem !important;
    }
}

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

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Container fluid adjustments */
.apple-container {
    overflow-x: hidden;
}

/* Enhanced focus states for accessibility */
.apple-btn:focus,
.apple-back-btn:focus {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

/* Disable text selection on buttons */
.apple-btn,
.apple-back-btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Loading animation */
@keyframes apple-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apple-fade-in {
    animation: apple-fade-in 0.6s ease-out;
}
