"use client"; import React, { useState, useEffect } from "react"; import ShippingHeader from "@/app/components/shipping/Header"; import { motion } from "framer-motion"; import { IoAirplaneOutline, IoTimeOutline, IoGlobeOutline, } from "react-icons/io5"; import { MdDone } from "react-icons/md"; import Image from "next/image"; import "./shipping.scss"; const ShippingPage = () => { const [selectedCountry, setSelectedCountry] = useState("United States"); const [weight, setWeight] = useState(1); const [shippingMethod, setShippingMethod] = useState("standard"); const [activeTab, setActiveTab] = useState(0); const [isCalculating, setIsCalculating] = useState(false); const [shippingCost, setShippingCost] = useState(null); const [expandedFaq, setExpandedFaq] = useState(null); const [activeDot, setActiveDot] = useState(0); const countries = [ "United States", "Canada", "United Kingdom", "Australia", "Germany", "France", "Japan", "Spain", ]; const shippingOptions = [ { id: "standard", name: "Standard", days: "5-7", icon: , }, { id: "express", name: "Express", days: "2-3", icon: , }, { id: "international", name: "International", days: "7-14", icon: , }, ]; useEffect(() => { const interval = setInterval(() => { setActiveDot((prev) => (prev + 1) % 4); }, 3000); return () => clearInterval(interval); }, []); const calculateShipping = () => { setIsCalculating(true); setTimeout(() => { let baseCost = weight * 5; if (shippingMethod === "express") { baseCost *= 2; } if (selectedCountry !== "United States") { baseCost *= 1.5; } setShippingCost(baseCost.toFixed(2)); setIsCalculating(false); }, 1500); }; const fadeInUp = { hidden: { opacity: 0, y: 20 }, visible: { opacity: 1, y: 0, transition: { duration: 0.6 } }, }; const staggerContainer = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.2, }, }, }; return (

Premium Shipping Services

{activeTab === 0 && (
Personal Delivery

White Glove Delivery

Our premium white glove service ensures your valuable purchases are handled with the utmost care from our warehouse to your home.

Same Day Delivery

Same-Day Delivery

Available in select cities, our same-day delivery ensures your items reach you within hours of purchase.

Signature Required

Signature & ID Verification

Enhanced security with signature and ID verification for valuable items and gifts.

)} {activeTab === 1 && (
Bulk Shipping

Bulk Shipping Solutions

Specialized logistics for business orders with volume discounts and dedicated account managers.

Business Account

Business Account Benefits

Special rates, priority handling, and custom shipping schedules for business clients.

API Integration

API Integration

Seamlessly integrate our shipping services with your e-commerce platform or inventory management system.

)} {activeTab === 2 && (
Global Shipping

Global Shipping Network

Our established network allows us to ship to over 200 countries with reliable tracking and competitive rates.

Customs Clearance

Customs Clearance Assistance

Our experts handle all documentation and customs requirements for smooth international shipping.

International Tracking

Enhanced International Tracking

Real-time tracking with detailed status updates throughout the international delivery journey.

)}
Shipping Cost Calculator
setWeight(parseFloat(e.target.value))} />
{weight} kg
{shippingOptions.map((option) => (
setShippingMethod(option.id)} >
{option.icon}
{option.name}
{option.days} business days
))}
{shippingCost !== null && !isCalculating && (

Estimated Shipping Cost

${shippingCost}

Shipping to {selectedCountry} via{" "} {shippingMethod.charAt(0).toUpperCase() + shippingMethod.slice(1)}

)}

Frequently Asked Questions

{[ { question: "How long will my order take to arrive?", answer: "Standard shipping typically takes 5-7 business days. Express shipping takes 2-3 business days within the continental US. International shipping times vary by destination, usually between 7-14 business days. You can always track your package in real-time through your account dashboard.", }, { question: "Can I change my shipping address after placing my order?", answer: "Address changes can only be accommodated if the order hasn't shipped. Please contact customer service immediately through our 24/7 chat support or premium customer service line. Our team will do everything possible to update your shipping details before the order is processed.", }, { question: "Do you ship to PO boxes?", answer: "Yes, we ship to PO boxes for standard shipping. Express shipping requires a physical address due to courier requirements. International shipping to PO boxes may be restricted in certain countries - please check with our customer service team before placing an order to a PO box outside the US.", }, { question: "What if my package is damaged or lost?", answer: "All shipments include premium insurance at no additional cost. If your package arrives damaged, please document with photos and contact our support within 48 hours. For lost packages, once tracking confirms no delivery after the estimated date, our dedicated resolution team will initiate a claim process and expedite a replacement or refund.", }, { question: "Do you offer gift wrapping and personalized messages?", answer: "Yes, we offer luxury gift wrapping services with premium materials and the option to include personalized handwritten messages with any order. You can select these options during checkout for a small additional fee. Our gift wrapping service includes high-quality paper, satin ribbon, and a wax seal for that special touch.", }, ].map((faq, index) => (
setExpandedFaq(expandedFaq === index ? null : index) } >

{faq.question}

{expandedFaq === index ? "−" : "+"}

{faq.answer}

))}

Need Personalized Shipping Solutions?

Our premium support team is available 24/7 to assist with special shipping requirements and custom orders.

Premium Support
); }; export default ShippingPage;